blob: cd0cf109965a25f704358ac0abbf2c6e7733f919 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnercf067672008-01-17 05:57:22 +00003# Generated by GNU Autoconf 2.60 for llvm 2.3svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnercf067672008-01-17 05:57:22 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Tanya Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Tanya Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnercf067672008-01-17 05:57:22 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Tanya Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Tanya Lattnercf067672008-01-17 05:57:22 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Tanya Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnercf067672008-01-17 05:57:22 +0000718PACKAGE_VERSION='2.3svn'
719PACKAGE_STRING='llvm 2.3svn'
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>
Tanya Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000889OCAMLDOC
Reid Spencera773bd52006-08-04 18:18:08 +0000890INSTALL_LTDL_TRUE
891INSTALL_LTDL_FALSE
892CONVENIENCE_LTDL_TRUE
893CONVENIENCE_LTDL_FALSE
894LIBADD_DL
895ECHO
896AR
897STRIP
898CXXCPP
899F77
900FFLAGS
901ac_ct_F77
902LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000903LLVMGCC
904LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000905USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000906HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000907HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000908ALLOCA
909MMAP_FILE
910LLVMCC1
911LLVMCC1PLUS
912LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000913LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000914LLVMGCC_VERSION
915LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000916LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000917SHLIBEXT
918LLVM_PREFIX
919LLVM_BINDIR
920LLVM_LIBDIR
921LLVM_DATADIR
922LLVM_DOCSDIR
923LLVM_ETCDIR
924LLVM_INCLUDEDIR
925LLVM_INFODIR
926LLVM_MANDIR
927LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000928BINDINGS_TO_BUILD
929ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000930OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000931LIBOBJS
932LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000933ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
945YACC
946YFLAGS
947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/llvm-reopt
955projects/llvm-gcc
956projects/llvm-java
957projects/llvm-tv
958projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000959projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000960projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000961
962# Initialize some variables set by options.
963ac_init_help=
964ac_init_version=false
965# The variables have the same names as the options, with
966# dashes changed to underlines.
967cache_file=/dev/null
968exec_prefix=NONE
969no_create=
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
978verbose=
979x_includes=NONE
980x_libraries=NONE
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000987# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000996includedir='${prefix}/include'
997oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000998docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999infodir='${datarootdir}/info'
1000htmldir='${docdir}'
1001dvidir='${docdir}'
1002pdfdir='${docdir}'
1003psdir='${docdir}'
1004libdir='${exec_prefix}/lib'
1005localedir='${datarootdir}/locale'
1006mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001007
1008ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001009ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001010for ac_option
1011do
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001014 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001015 ac_prev=
1016 continue
1017 fi
1018
Reid Spencera773bd52006-08-04 18:18:08 +00001019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
John Criswell7a73b802003-06-30 21:59:07 +00001023
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1025
Reid Spencera773bd52006-08-04 18:18:08 +00001026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001029
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1034
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1049
Reid Spencera773bd52006-08-04 18:18:08 +00001050 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001051 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001053 datadir=$ac_optarg ;;
1054
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
John Criswell7a73b802003-06-30 21:59:07 +00001062 -disable-* | --disable-*)
1063 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001065 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001066 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1067 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001068 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001069 eval enable_$ac_feature=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001080
1081 -enable-* | --enable-*)
1082 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001084 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001085 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1086 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001087 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001088 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001089
1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092 | --exec | --exe | --ex)
1093 ac_prev=exec_prefix ;;
1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096 | --exec=* | --exe=* | --ex=*)
1097 exec_prefix=$ac_optarg ;;
1098
1099 -gas | --gas | --ga | --g)
1100 # Obsolete; use --with-gas.
1101 with_gas=yes ;;
1102
1103 -help | --help | --hel | --he | -h)
1104 ac_init_help=long ;;
1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106 ac_init_help=recursive ;;
1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108 ac_init_help=short ;;
1109
1110 -host | --host | --hos | --ho)
1111 ac_prev=host_alias ;;
1112 -host=* | --host=* | --hos=* | --ho=*)
1113 host_alias=$ac_optarg ;;
1114
Reid Spencera773bd52006-08-04 18:18:08 +00001115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116 ac_prev=htmldir ;;
1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118 | --ht=*)
1119 htmldir=$ac_optarg ;;
1120
John Criswell7a73b802003-06-30 21:59:07 +00001121 -includedir | --includedir | --includedi | --included | --include \
1122 | --includ | --inclu | --incl | --inc)
1123 ac_prev=includedir ;;
1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125 | --includ=* | --inclu=* | --incl=* | --inc=*)
1126 includedir=$ac_optarg ;;
1127
1128 -infodir | --infodir | --infodi | --infod | --info | --inf)
1129 ac_prev=infodir ;;
1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131 infodir=$ac_optarg ;;
1132
1133 -libdir | --libdir | --libdi | --libd)
1134 ac_prev=libdir ;;
1135 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136 libdir=$ac_optarg ;;
1137
1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139 | --libexe | --libex | --libe)
1140 ac_prev=libexecdir ;;
1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142 | --libexe=* | --libex=* | --libe=*)
1143 libexecdir=$ac_optarg ;;
1144
Reid Spencera773bd52006-08-04 18:18:08 +00001145 -localedir | --localedir | --localedi | --localed | --locale)
1146 ac_prev=localedir ;;
1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148 localedir=$ac_optarg ;;
1149
John Criswell7a73b802003-06-30 21:59:07 +00001150 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001151 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001152 ac_prev=localstatedir ;;
1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001155 localstatedir=$ac_optarg ;;
1156
1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158 ac_prev=mandir ;;
1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160 mandir=$ac_optarg ;;
1161
1162 -nfp | --nfp | --nf)
1163 # Obsolete; use --without-fp.
1164 with_fp=no ;;
1165
1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167 | --no-cr | --no-c | -n)
1168 no_create=yes ;;
1169
1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172 no_recursion=yes ;;
1173
1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176 | --oldin | --oldi | --old | --ol | --o)
1177 ac_prev=oldincludedir ;;
1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181 oldincludedir=$ac_optarg ;;
1182
1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184 ac_prev=prefix ;;
1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186 prefix=$ac_optarg ;;
1187
1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189 | --program-pre | --program-pr | --program-p)
1190 ac_prev=program_prefix ;;
1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193 program_prefix=$ac_optarg ;;
1194
1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196 | --program-suf | --program-su | --program-s)
1197 ac_prev=program_suffix ;;
1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200 program_suffix=$ac_optarg ;;
1201
1202 -program-transform-name | --program-transform-name \
1203 | --program-transform-nam | --program-transform-na \
1204 | --program-transform-n | --program-transform- \
1205 | --program-transform | --program-transfor \
1206 | --program-transfo | --program-transf \
1207 | --program-trans | --program-tran \
1208 | --progr-tra | --program-tr | --program-t)
1209 ac_prev=program_transform_name ;;
1210 -program-transform-name=* | --program-transform-name=* \
1211 | --program-transform-nam=* | --program-transform-na=* \
1212 | --program-transform-n=* | --program-transform-=* \
1213 | --program-transform=* | --program-transfor=* \
1214 | --program-transfo=* | --program-transf=* \
1215 | --program-trans=* | --program-tran=* \
1216 | --progr-tra=* | --program-tr=* | --program-t=*)
1217 program_transform_name=$ac_optarg ;;
1218
Reid Spencera773bd52006-08-04 18:18:08 +00001219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220 ac_prev=pdfdir ;;
1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222 pdfdir=$ac_optarg ;;
1223
1224 -psdir | --psdir | --psdi | --psd | --ps)
1225 ac_prev=psdir ;;
1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227 psdir=$ac_optarg ;;
1228
John Criswell7a73b802003-06-30 21:59:07 +00001229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 silent=yes ;;
1232
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
1237 sbindir=$ac_optarg ;;
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
1248 sharedstatedir=$ac_optarg ;;
1249
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
1253 site=$ac_optarg ;;
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1259
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1266
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1277
1278 -with-* | --with-*)
1279 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001281 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001282 { echo "$as_me: error: invalid package name: $ac_package" >&2
1283 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001284 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001285 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001286
1287 -without-* | --without-*)
1288 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001290 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001293 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001294 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1305 x_includes=$ac_optarg ;;
1306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1312 x_libraries=$ac_optarg ;;
1313
1314 -*) { echo "$as_me: error: unrecognized option: $ac_option
1315Try \`$0 --help' for more information." >&2
1316 { (exit 1); exit 1; }; }
1317 ;;
1318
1319 *=*)
1320 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1323 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1324 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001325 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001326 export $ac_envvar ;;
1327
1328 *)
1329 # FIXME: should be removed in autoconf 3.0.
1330 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1332 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1333 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
1340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1341 { echo "$as_me: error: missing argument to $ac_option" >&2
1342 { (exit 1); exit 1; }; }
1343fi
1344
Reid Spencera773bd52006-08-04 18:18:08 +00001345# Be sure to have absolute directory names.
1346for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347 datadir sysconfdir sharedstatedir localstatedir includedir \
1348 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001350do
Reid Spencera773bd52006-08-04 18:18:08 +00001351 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001352 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001355 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001356 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1357 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369 if test "x$build_alias" = x; then
1370 cross_compiling=maybe
1371 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used." >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
Reid Spencera773bd52006-08-04 18:18:08 +00001384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 { echo "$as_me: error: Working directory cannot be determined" >&2
1388 { (exit 1); exit 1; }; }
1389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 { echo "$as_me: error: pwd does not report name of working directory" >&2
1391 { (exit 1); exit 1; }; }
1392
1393
John Criswell7a73b802003-06-30 21:59:07 +00001394# Find the source files, if location was not specified.
1395if test -z "$srcdir"; then
1396 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001397 # Try the directory containing this script, then the parent directory.
1398 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001399$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001400 X"$0" : 'X\(//\)[^/]' \| \
1401 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001403echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)[^/].*/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\).*/{
1417 s//\1/
1418 q
1419 }
1420 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001421 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001422 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001423 srcdir=..
1424 fi
1425else
1426 ac_srcdir_defaulted=no
1427fi
Reid Spencera773bd52006-08-04 18:18:08 +00001428if test ! -r "$srcdir/$ac_unique_file"; then
1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1430 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001431 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001432fi
Reid Spencera773bd52006-08-04 18:18:08 +00001433ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1434ac_abs_confdir=`(
1435 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001436 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001437 pwd)`
1438# When building in place, set srcdir=.
1439if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441fi
1442# Remove unnecessary trailing slashes from srcdir.
1443# Double slashes in file names in object file debugging info
1444# mess up M-x gdb in Emacs.
1445case $srcdir in
1446*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447esac
1448for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453done
John Criswell7a73b802003-06-30 21:59:07 +00001454
1455#
1456# Report the --help message.
1457#
1458if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001462\`configure' configures llvm 2.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001463
1464Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469Defaults for the options are specified in brackets.
1470
1471Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
John Criswell7a73b802003-06-30 21:59:07 +00001482Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001484 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001486 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001487
1488By default, \`make install' will install all the files in
1489\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491for instance \`--prefix=\$HOME'.
1492
1493For better control, use the options below.
1494
1495Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001515_ACEOF
1516
1517 cat <<\_ACEOF
1518
1519System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 --target=TARGET configure for building compilers for TARGET [HOST]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527 case $ac_init_help in
Tanya Lattnercf067672008-01-17 05:57:22 +00001528 short | recursive ) echo "Configuration of llvm 2.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001529 esac
1530 cat <<\_ACEOF
1531
1532Optional Features:
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001535 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001536 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001537 --enable-expensive-checks
1538
Reid Spencer8b2e1412006-11-17 03:32:33 +00001539 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001541 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001542 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001543 --enable-pic Build LLVM with Position Independent Code (default
1544 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001545 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001546 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001547 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1548 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001549 --enable-bindings Build specific language bindings:
1550 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001551 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001554 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001556 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001558 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001559 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001564 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1565 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001566 --with-llvmgcc Specify location of llvm-gcc driver (default
1567 searches PATH)
1568 --with-llvmgxx Specify location of llvm-g++ driver (default
1569 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001570 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001571 --with-ocaml-libdir Specify install location for ocaml bindings (default
1572 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001573 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001578 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001581 CC C compiler command
1582 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001587 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001590 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1591 the first program found out of: `bison -y', `byacc', `yacc'.
1592 YFLAGS The list of arguments that will be passed by default to $YACC.
1593 This script will default YFLAGS to the empty string to avoid a
1594 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001595 CXXCPP C++ preprocessor
1596 F77 Fortran 77 compiler command
1597 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
1602Report bugs to <llvmbugs@cs.uiuc.edu>.
1603_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001604ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001610 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_builddir=.
1612
Reid Spencera773bd52006-08-04 18:18:08 +00001613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001628
1629case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001630 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001642esac
Reid Spencera773bd52006-08-04 18:18:08 +00001643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001644
Reid Spencera773bd52006-08-04 18:18:08 +00001645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001653 else
1654 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001657 done
1658fi
1659
Reid Spencera773bd52006-08-04 18:18:08 +00001660test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001661if $ac_init_version; then
1662 cat <<\_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001663llvm configure 2.3svn
1664generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001665
Reid Spencera773bd52006-08-04 18:18:08 +00001666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16672002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001670
Tanya Lattnercf067672008-01-17 05:57:22 +00001671Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001672_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001673 exit
John Criswell7a73b802003-06-30 21:59:07 +00001674fi
Reid Spencera773bd52006-08-04 18:18:08 +00001675cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001676This file contains any messages produced by compilers while
1677running configure, to aid debugging if configure makes a mistake.
1678
Tanya Lattnercf067672008-01-17 05:57:22 +00001679It was created by llvm $as_me 2.3svn, which was
1680generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001681
1682 $ $0 $@
1683
1684_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001685exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001686{
1687cat <<_ASUNAME
1688## --------- ##
1689## Platform. ##
1690## --------- ##
1691
1692hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001704/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001705/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709_ASUNAME
1710
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1717done
Reid Spencera773bd52006-08-04 18:18:08 +00001718IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001719
1720} >&5
1721
1722cat >&5 <<_ACEOF
1723
1724
1725## ----------- ##
1726## Core tests. ##
1727## ----------- ##
1728
1729_ACEOF
1730
1731
1732# Keep a trace of the command line.
1733# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001734# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001735# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001736# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001737ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001738ac_configure_args0=
1739ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001740ac_must_keep_next=false
1741for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001742do
John Criswell0c38eaf2003-09-10 15:17:25 +00001743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001750 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001758 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001771 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001772 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001773 ;;
1774 esac
1775 done
John Criswell7a73b802003-06-30 21:59:07 +00001776done
John Criswell0c38eaf2003-09-10 15:17:25 +00001777$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778$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 +00001779
1780# When interrupted or exit'd, cleanup temporary files, and complete
1781# config.log. We remove comments because anyway the quotes in there
1782# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001783# WARNING: Use '\'' to represent an apostrophe within the trap.
1784# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001785trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001789
John Criswell7a73b802003-06-30 21:59:07 +00001790 cat <<\_ASBOX
1791## ---------------- ##
1792## Cache variables. ##
1793## ---------------- ##
1794_ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001797(
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
John Criswell7a73b802003-06-30 21:59:07 +00001812 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001815 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001819 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001822 esac |
1823 sort
1824)
John Criswell7a73b802003-06-30 21:59:07 +00001825 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001826
1827 cat <<\_ASBOX
1828## ----------------- ##
1829## Output variables. ##
1830## ----------------- ##
1831_ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
Reid Spencera773bd52006-08-04 18:18:08 +00001835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001845## ------------------- ##
1846## File substitutions. ##
1847## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001848_ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
Reid Spencera773bd52006-08-04 18:18:08 +00001852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001857 done | sort
1858 echo
1859 fi
1860
John Criswell7a73b802003-06-30 21:59:07 +00001861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863## ----------- ##
1864## confdefs.h. ##
1865## ----------- ##
1866_ASBOX
1867 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001868 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1874 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001877 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001878' 0
John Criswell7a73b802003-06-30 21:59:07 +00001879for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881done
1882ac_signal=0
1883
1884# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001885rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001886
1887# Predefined preprocessor variables.
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_NAME "$PACKAGE_NAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_VERSION "$PACKAGE_VERSION"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_STRING "$PACKAGE_STRING"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911_ACEOF
1912
1913
1914# Let the site file select an alternate cache file if it wants to.
1915# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001916if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920else
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001923fi
Reid Spencera773bd52006-08-04 18:18:08 +00001924shift
1925for ac_site_file
1926do
John Criswell7a73b802003-06-30 21:59:07 +00001927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933done
1934
1935if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001944 esac
1945 fi
1946else
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950fi
1951
1952# Check that the precious variables saved in the cache have kept the same
1953# value.
1954ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001955for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001960 case $ac_old_set,$ac_new_set in
1961 set,)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,set)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,);;
1970 *)
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001973echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001975echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001978 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001979 fi;;
1980 esac
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1983 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001985 *) ac_arg=$ac_var=$ac_new_val ;;
1986 esac
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990 esac
1991 fi
1992done
1993if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
1999fi
2000
Reid Spencera773bd52006-08-04 18:18:08 +00002001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
John Criswell7a73b802003-06-30 21:59:07 +00002025ac_ext=c
2026ac_cpp='$CPP $CPPFLAGS'
2027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2029ac_compiler_gnu=$ac_cv_c_compiler_gnu
2030
2031
2032
Tanya Lattnercf067672008-01-17 05:57:22 +00002033LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002034
2035
2036
2037
2038
2039
2040
John Criswell7a73b802003-06-30 21:59:07 +00002041ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002042for ac_dir in autoconf "$srcdir"/autoconf; do
2043 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
Reid Spencera773bd52006-08-04 18:18:08 +00002047 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
Reid Spencera773bd52006-08-04 18:18:08 +00002051 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056done
2057if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002058 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2059echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002060 { (exit 1); exit 1; }; }
2061fi
Reid Spencera773bd52006-08-04 18:18:08 +00002062
2063# These three variables are undocumented and unsupported,
2064# and are intended to be withdrawn in a future Autoconf release.
2065# They can cause serious problems if a builder's source tree is in a directory
2066# whose full name contains unusual characters.
2067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
John Criswell7a73b802003-06-30 21:59:07 +00002071
John Criswell392aaa32003-07-22 19:18:09 +00002072
Reid Spencer2706f8c2004-09-19 23:53:36 +00002073if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2075 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002076echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2077 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 fi
John Criswell93e1c722003-09-15 17:04:06 +00002079fi
2080
John Criswell33a911a2003-11-25 20:36:46 +00002081for i in `ls ${srcdir}/projects`
2082do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 if test -d ${srcdir}/projects/${i} ; then
2084 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 CVS) ;;
2086 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002088 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002089 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002092 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 ;;
2094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002103 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002107 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002111 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 esac
John Criswell33a911a2003-11-25 20:36:46 +00002113 fi
2114done
John Criswell559a6c12003-09-30 16:31:48 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116
2117# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002121 { (exit 1); exit 1; }; }
2122
Reid Spencera773bd52006-08-04 18:18:08 +00002123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
Reid Spencera773bd52006-08-04 18:18:08 +00002128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002138 { (exit 1); exit 1; }; }
2139
2140fi
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
John Criswell7a73b802003-06-30 21:59:07 +00002149build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002161
2162
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
Reid Spencera773bd52006-08-04 18:18:08 +00002168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002175fi
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177fi
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
John Criswell7a73b802003-06-30 21:59:07 +00002186host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
Reid Spencera773bd52006-08-04 18:18:08 +00002205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214fi
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
John Criswell7a73b802003-06-30 21:59:07 +00002223target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
Reid Spencera773bd52006-08-04 18:18:08 +00002244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002249 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002275 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002285 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002288 llvm_cv_os_type="HP-UX"
2289 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002290 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 llvm_cv_os_type="Interix"
2294 llvm_cv_platform_type="Unix" ;;
2295 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="Linux"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,-z,allextract"
2302 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="SunOS"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="Win32"
2309 llvm_cv_platform_type="Win32" ;;
2310 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="MingW"
2314 llvm_cv_platform_type="Win32" ;;
2315 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option=""
2317 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="Unknown"
2319 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002320esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002321fi
Reid Spencera773bd52006-08-04 18:18:08 +00002322{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2323echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325if test "$llvm_cv_os_type" = "Unknown" ; then
2326 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2327echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002328 { (exit 1); exit 1; }; }
2329fi
2330
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332
2333
Reid Spencera773bd52006-08-04 18:18:08 +00002334LINKALL=$llvm_cv_link_all_option
2335
2336NOLINKALL=$llvm_cv_no_link_all_option
2337
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339case $llvm_cv_platform_type in
2340 Unix)
2341
2342cat >>confdefs.h <<\_ACEOF
2343#define LLVM_ON_UNIX 1
2344_ACEOF
2345
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002346 LLVM_ON_UNIX=1
2347
2348 LLVM_ON_WIN32=0
2349
Reid Spencer7b3e8512004-12-24 06:29:05 +00002350 ;;
2351 Win32)
2352
2353cat >>confdefs.h <<\_ACEOF
2354#define LLVM_ON_WIN32 1
2355_ACEOF
2356
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002357 LLVM_ON_UNIX=0
2358
2359 LLVM_ON_WIN32=1
2360
Reid Spencer7b3e8512004-12-24 06:29:05 +00002361 ;;
2362esac
2363
Reid Spencera773bd52006-08-04 18:18:08 +00002364{ echo "$as_me:$LINENO: checking target architecture" >&5
2365echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366if test "${llvm_cv_target_arch+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002370 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002371 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002372 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2373 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002374 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002375 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002376 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002377 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002378 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002379esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380fi
Reid Spencera773bd52006-08-04 18:18:08 +00002381{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2382echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002383
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384if test "$llvm_cv_target_arch" = "Unknown" ; then
2385 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2386echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2387fi
John Criswell76595452003-07-01 22:07:39 +00002388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002390
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392ac_ext=c
2393ac_cpp='$CPP $CPPFLAGS'
2394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2396ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002397if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2399set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402if test "${ac_cv_prog_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 if test -n "$CC"; then
2406 ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411 IFS=$as_save_IFS
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002414 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 +00002415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 break 2
2418 fi
2419done
2420done
Reid Spencera773bd52006-08-04 18:18:08 +00002421IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422
2423fi
2424fi
2425CC=$ac_cv_prog_CC
2426if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002427 { echo "$as_me:$LINENO: result: $CC" >&5
2428echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429else
Reid Spencera773bd52006-08-04 18:18:08 +00002430 { echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432fi
2433
Reid Spencera773bd52006-08-04 18:18:08 +00002434
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435fi
2436if test -z "$ac_cv_prog_CC"; then
2437 ac_ct_CC=$CC
2438 # Extract the first word of "gcc", so it can be a program name with args.
2439set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2444else
2445 if test -n "$ac_ct_CC"; then
2446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2447else
2448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449for as_dir in $PATH
2450do
2451 IFS=$as_save_IFS
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002454 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 +00002455 ac_cv_prog_ac_ct_CC="gcc"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 break 2
2458 fi
2459done
2460done
Reid Spencera773bd52006-08-04 18:18:08 +00002461IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462
2463fi
2464fi
2465ac_ct_CC=$ac_cv_prog_ac_ct_CC
2466if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2468echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469else
Reid Spencera773bd52006-08-04 18:18:08 +00002470 { echo "$as_me:$LINENO: result: no" >&5
2471echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002472fi
2473
Reid Spencera773bd52006-08-04 18:18:08 +00002474 if test "x$ac_ct_CC" = x; then
2475 CC=""
2476 else
2477 case $cross_compiling:$ac_tool_warned in
2478yes:)
2479{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2480whose name does not start with the host triplet. If you think this
2481configuration is useful to you, please write to autoconf@gnu.org." >&5
2482echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2483whose name does not start with the host triplet. If you think this
2484configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2485ac_tool_warned=yes ;;
2486esac
2487 CC=$ac_ct_CC
2488 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489else
2490 CC="$ac_cv_prog_CC"
2491fi
2492
2493if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002494 if test -n "$ac_tool_prefix"; then
2495 # 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 +00002496set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002499if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002511 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 +00002512 ac_cv_prog_CC="${ac_tool_prefix}cc"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516done
2517done
Reid Spencera773bd52006-08-04 18:18:08 +00002518IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002519
2520fi
2521fi
2522CC=$ac_cv_prog_CC
2523if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002524 { echo "$as_me:$LINENO: result: $CC" >&5
2525echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526else
Reid Spencera773bd52006-08-04 18:18:08 +00002527 { echo "$as_me:$LINENO: result: no" >&5
2528echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529fi
2530
Reid Spencera773bd52006-08-04 18:18:08 +00002531
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533fi
2534if test -z "$CC"; then
2535 # Extract the first word of "cc", so it can be a program name with args.
2536set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002537{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539if test "${ac_cv_prog_CC+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2541else
2542 if test -n "$CC"; then
2543 ac_cv_prog_CC="$CC" # Let the user override the test.
2544else
2545 ac_prog_rejected=no
2546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547for as_dir in $PATH
2548do
2549 IFS=$as_save_IFS
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002552 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 +00002553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2554 ac_prog_rejected=yes
2555 continue
2556 fi
2557 ac_cv_prog_CC="cc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561done
2562done
Reid Spencera773bd52006-08-04 18:18:08 +00002563IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002564
2565if test $ac_prog_rejected = yes; then
2566 # We found a bogon in the path, so make sure we never use it.
2567 set dummy $ac_cv_prog_CC
2568 shift
2569 if test $# != 0; then
2570 # We chose a different compiler from the bogus one.
2571 # However, it has the same basename, so the bogon will be chosen
2572 # first if we set CC to just the basename; use the full file name.
2573 shift
2574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2575 fi
2576fi
2577fi
2578fi
2579CC=$ac_cv_prog_CC
2580if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002581 { echo "$as_me:$LINENO: result: $CC" >&5
2582echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583else
Reid Spencera773bd52006-08-04 18:18:08 +00002584 { echo "$as_me:$LINENO: result: no" >&5
2585echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586fi
2587
Reid Spencera773bd52006-08-04 18:18:08 +00002588
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589fi
2590if test -z "$CC"; then
2591 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002593 do
2594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2595set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002599 echo $ECHO_N "(cached) $ECHO_C" >&6
2600else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601 if test -n "$CC"; then
2602 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002610 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 +00002611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615done
2616done
Reid Spencera773bd52006-08-04 18:18:08 +00002617IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002618
2619fi
2620fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002621CC=$ac_cv_prog_CC
2622if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002623 { echo "$as_me:$LINENO: result: $CC" >&5
2624echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002625else
Reid Spencera773bd52006-08-04 18:18:08 +00002626 { echo "$as_me:$LINENO: result: no" >&5
2627echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002628fi
2629
Reid Spencera773bd52006-08-04 18:18:08 +00002630
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002631 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002632 done
2633fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634if test -z "$CC"; then
2635 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002636 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002637do
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002643 echo $ECHO_N "(cached) $ECHO_C" >&6
2644else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 if test -n "$ac_ct_CC"; then
2646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002647else
2648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649for as_dir in $PATH
2650do
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002654 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 +00002655 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2658 fi
2659done
2660done
Reid Spencera773bd52006-08-04 18:18:08 +00002661IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002662
2663fi
2664fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002669else
Reid Spencera773bd52006-08-04 18:18:08 +00002670 { echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002672fi
2673
Reid Spencera773bd52006-08-04 18:18:08 +00002674
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002675 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002676done
John Criswell7a73b802003-06-30 21:59:07 +00002677
Reid Spencera773bd52006-08-04 18:18:08 +00002678 if test "x$ac_ct_CC" = x; then
2679 CC=""
2680 else
2681 case $cross_compiling:$ac_tool_warned in
2682yes:)
2683{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684whose name does not start with the host triplet. If you think this
2685configuration is useful to you, please write to autoconf@gnu.org." >&5
2686echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687whose name does not start with the host triplet. If you think this
2688configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689ac_tool_warned=yes ;;
2690esac
2691 CC=$ac_ct_CC
2692 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693fi
2694
John Criswell7a73b802003-06-30 21:59:07 +00002695fi
2696
2697
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: no acceptable C compiler found in \$PATH
2701See \`config.log' for more details." >&2;}
2702 { (exit 1); exit 1; }; }
2703
John Criswell7a73b802003-06-30 21:59:07 +00002704# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002705echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002706ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002707{ (ac_try="$ac_compiler --version >&5"
2708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002714 ac_status=$?
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002717{ (ac_try="$ac_compiler -v >&5"
2718case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2721esac
2722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002727{ (ac_try="$ac_compiler -V >&5"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
2732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }
2737
2738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002744
John Criswell7a73b802003-06-30 21:59:07 +00002745int
2746main ()
2747{
2748
2749 ;
2750 return 0;
2751}
2752_ACEOF
2753ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002754ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002755# Try to create an executable without -o first, disregard a.out.
2756# It will help us diagnose broken compilers, and finding out an intuition
2757# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002758{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2759echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002760ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002761#
2762# List of possible output files, starting from the most likely.
2763# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2764# only as a last resort. b.out is created by i960 compilers.
2765ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2766#
2767# The IRIX 6 linker writes into existing files which may not be
2768# executable, retaining their permissions. Remove them first so a
2769# subsequent execution test works.
2770ac_rmfiles=
2771for ac_file in $ac_files
2772do
2773 case $ac_file in
2774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2775 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2776 esac
2777done
2778rm -f $ac_rmfiles
2779
2780if { (ac_try="$ac_link_default"
2781case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2784esac
2785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002787 ac_status=$?
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2791# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2792# in a Makefile. We should not override ac_cv_exeext if it was cached,
2793# so that the user can short-circuit this test for compilers unknown to
2794# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002795for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002796do
2797 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002798 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002800 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002801 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 # We found the default executable, but exeext='' is most
2803 # certainly right.
2804 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002805 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 then :; else
2808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 fi
2810 # We set ac_cv_exeext here because the later test for it is not
2811 # safe: cross compilers may not add the suffix if given an `-o'
2812 # argument, so we may need to know it at that point already.
2813 # Even if this section looks crufty: it has the advantage of
2814 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002817 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002818 esac
2819done
Reid Spencera773bd52006-08-04 18:18:08 +00002820test "$ac_cv_exeext" = no && ac_cv_exeext=
2821
John Criswell7a73b802003-06-30 21:59:07 +00002822else
2823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002824sed 's/^/| /' conftest.$ac_ext >&5
2825
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002826{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002827See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002828echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002829See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002830 { (exit 77); exit 77; }; }
2831fi
2832
2833ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002834{ echo "$as_me:$LINENO: result: $ac_file" >&5
2835echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002836
Reid Spencera773bd52006-08-04 18:18:08 +00002837# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002838# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002839{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2840echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002841# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2842# If not cross compiling, check that we can run a simple program.
2843if test "$cross_compiling" != yes; then
2844 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 cross_compiling=no
2855 else
2856 if test "$cross_compiling" = maybe; then
2857 cross_compiling=yes
2858 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002859 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002860If you meant to cross compile, use \`--host'.
2861See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002862echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002863If you meant to cross compile, use \`--host'.
2864See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002865 { (exit 1); exit 1; }; }
2866 fi
2867 fi
2868fi
Reid Spencera773bd52006-08-04 18:18:08 +00002869{ echo "$as_me:$LINENO: result: yes" >&5
2870echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002871
John Criswell0c38eaf2003-09-10 15:17:25 +00002872rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002873ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002874# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002875# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2877echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2878{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2879echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002880
Reid Spencera773bd52006-08-04 18:18:08 +00002881{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2882echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2883if { (ac_try="$ac_link"
2884case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; then
2893 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2894# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2895# work properly (i.e., refer to `conftest.exe'), while it won't with
2896# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002897for ac_file in conftest.exe conftest conftest.*; do
2898 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002899 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002900 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002901 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002902 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002903 * ) break;;
2904 esac
2905done
2906else
John Criswell0c38eaf2003-09-10 15:17:25 +00002907 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2908See \`config.log' for more details." >&5
2909echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2910See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002911 { (exit 1); exit 1; }; }
2912fi
2913
2914rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002915{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2916echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002917
2918rm -f conftest.$ac_ext
2919EXEEXT=$ac_cv_exeext
2920ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002921{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2922echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002923if test "${ac_cv_objext+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2925else
2926 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002927/* confdefs.h. */
2928_ACEOF
2929cat confdefs.h >>conftest.$ac_ext
2930cat >>conftest.$ac_ext <<_ACEOF
2931/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002932
John Criswell7a73b802003-06-30 21:59:07 +00002933int
2934main ()
2935{
2936
2937 ;
2938 return 0;
2939}
2940_ACEOF
2941rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002942if { (ac_try="$ac_compile"
2943case "(($ac_try" in
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2946esac
2947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002952 for ac_file in conftest.o conftest.obj conftest.*; do
2953 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002954 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002955 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002956 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2957 break;;
2958 esac
2959done
2960else
2961 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002962sed 's/^/| /' conftest.$ac_ext >&5
2963
2964{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2965See \`config.log' for more details." >&5
2966echo "$as_me: error: cannot compute suffix of object files: cannot compile
2967See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002968 { (exit 1); exit 1; }; }
2969fi
2970
2971rm -f conftest.$ac_cv_objext conftest.$ac_ext
2972fi
Reid Spencera773bd52006-08-04 18:18:08 +00002973{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2974echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002975OBJEXT=$ac_cv_objext
2976ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002977{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2978echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002979if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002980 echo $ECHO_N "(cached) $ECHO_C" >&6
2981else
2982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002983/* confdefs.h. */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002988
John Criswell7a73b802003-06-30 21:59:07 +00002989int
2990main ()
2991{
2992#ifndef __GNUC__
2993 choke me
2994#endif
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003001if { (ac_try="$ac_compile"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003009 grep -v '^ *+' conftest.er1 >conftest.err
3010 rm -f conftest.er1
3011 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003013 (exit $ac_status); } &&
3014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3015 { (case "(($ac_try" in
3016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017 *) ac_try_echo=$ac_try;;
3018esac
3019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020 (eval "$ac_try") 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028esac
3029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003034 ac_compiler_gnu=yes
3035else
3036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003037sed 's/^/| /' conftest.$ac_ext >&5
3038
Reid Spencera773bd52006-08-04 18:18:08 +00003039 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003040fi
Reid Spencera773bd52006-08-04 18:18:08 +00003041
3042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003043ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003044
3045fi
Reid Spencera773bd52006-08-04 18:18:08 +00003046{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3047echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003048GCC=`test $ac_compiler_gnu = yes && echo yes`
3049ac_test_CFLAGS=${CFLAGS+set}
3050ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003051{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3052echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003053if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003054 echo $ECHO_N "(cached) $ECHO_C" >&6
3055else
Reid Spencera773bd52006-08-04 18:18:08 +00003056 ac_save_c_werror_flag=$ac_c_werror_flag
3057 ac_c_werror_flag=yes
3058 ac_cv_prog_cc_g=no
3059 CFLAGS="-g"
3060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003066
John Criswell7a73b802003-06-30 21:59:07 +00003067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003076if { (ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003083 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003084 grep -v '^ *+' conftest.er1 >conftest.err
3085 rm -f conftest.er1
3086 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003088 (exit $ac_status); } &&
3089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3096 ac_status=$?
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; } &&
3099 { ac_try='test -s conftest.$ac_objext'
3100 { (case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
3104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3105 (eval "$ac_try") 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003109 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003110else
3111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003112sed 's/^/| /' conftest.$ac_ext >&5
3113
Reid Spencera773bd52006-08-04 18:18:08 +00003114 CFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121
3122int
3123main ()
3124{
3125
3126 ;
3127 return 0;
3128}
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003143 (exit $ac_status); } &&
3144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3145 { (case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; } &&
3154 { ac_try='test -s conftest.$ac_objext'
3155 { (case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_try") 2>&5
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003164 :
3165else
3166 echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169 ac_c_werror_flag=$ac_save_c_werror_flag
3170 CFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
3186rm -f conftest.$ac_objext
3187if { (ac_try="$ac_compile"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
3192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003199 (exit $ac_status); } &&
3200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3201 { (case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204esac
3205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; } &&
3210 { ac_try='test -s conftest.$ac_objext'
3211 { (case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3216 (eval "$ac_try") 2>&5
3217 ac_status=$?
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003220 ac_cv_prog_cc_g=yes
3221else
3222 echo "$as_me: failed program was:" >&5
3223sed 's/^/| /' conftest.$ac_ext >&5
3224
3225
John Criswell7a73b802003-06-30 21:59:07 +00003226fi
Reid Spencera773bd52006-08-04 18:18:08 +00003227
3228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003229fi
Reid Spencera773bd52006-08-04 18:18:08 +00003230
3231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232fi
3233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3236fi
3237{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3238echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003239if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003244 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003246 fi
3247else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003250 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003252 fi
3253fi
Reid Spencera773bd52006-08-04 18:18:08 +00003254{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3255echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3256if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257 echo $ECHO_N "(cached) $ECHO_C" >&6
3258else
Reid Spencera773bd52006-08-04 18:18:08 +00003259 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260ac_save_CC=$CC
3261cat >conftest.$ac_ext <<_ACEOF
3262/* confdefs.h. */
3263_ACEOF
3264cat confdefs.h >>conftest.$ac_ext
3265cat >>conftest.$ac_ext <<_ACEOF
3266/* end confdefs.h. */
3267#include <stdarg.h>
3268#include <stdio.h>
3269#include <sys/types.h>
3270#include <sys/stat.h>
3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3272struct buf { int x; };
3273FILE * (*rcsopen) (struct buf *, struct stat *, int);
3274static char *e (p, i)
3275 char **p;
3276 int i;
3277{
3278 return p[i];
3279}
3280static char *f (char * (*g) (char **, int), char **p, ...)
3281{
3282 char *s;
3283 va_list v;
3284 va_start (v,p);
3285 s = g (p, va_arg (v,int));
3286 va_end (v);
3287 return s;
3288}
3289
3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3291 function prototypes and stuff, but not '\xHH' hex character constants.
3292 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003293 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3295 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003296 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003297int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298
Reid Spencera773bd52006-08-04 18:18:08 +00003299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3300 inside strings and character constants. */
3301#define FOO(x) 'x'
3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304int test (int i, double x);
3305struct s1 {int (*f) (int a);};
3306struct s2 {int (*f) (double a);};
3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308int argc;
3309char **argv;
3310int
3311main ()
3312{
3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 ;
3315 return 0;
3316}
3317_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003320do
3321 CC="$ac_save_CC $ac_arg"
3322 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003323if { (ac_try="$ac_compile"
3324case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327esac
3328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3329 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330 ac_status=$?
3331 grep -v '^ *+' conftest.er1 >conftest.err
3332 rm -f conftest.er1
3333 cat conftest.err >&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003335 (exit $ac_status); } &&
3336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
3341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350esac
3351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_try") 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003356 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357else
3358 echo "$as_me: failed program was:" >&5
3359sed 's/^/| /' conftest.$ac_ext >&5
3360
Reid Spencera773bd52006-08-04 18:18:08 +00003361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362fi
Reid Spencera773bd52006-08-04 18:18:08 +00003363
3364rm -f core conftest.err conftest.$ac_objext
3365 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003366done
Reid Spencera773bd52006-08-04 18:18:08 +00003367rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368CC=$ac_save_CC
3369
3370fi
Reid Spencera773bd52006-08-04 18:18:08 +00003371# AC_CACHE_VAL
3372case "x$ac_cv_prog_cc_c89" in
3373 x)
3374 { echo "$as_me:$LINENO: result: none needed" >&5
3375echo "${ECHO_T}none needed" >&6; } ;;
3376 xno)
3377 { echo "$as_me:$LINENO: result: unsupported" >&5
3378echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003380 CC="$CC $ac_cv_prog_cc_c89"
3381 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3382echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383esac
3384
John Criswell0c38eaf2003-09-10 15:17:25 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386ac_ext=c
3387ac_cpp='$CPP $CPPFLAGS'
3388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391
3392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003398{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3399echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400# On Suns, sometimes $CPP names a directory.
3401if test -n "$CPP" && test -d "$CPP"; then
3402 CPP=
3403fi
3404if test -z "$CPP"; then
3405 if test "${ac_cv_prog_CPP+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 # Double quotes because CPP needs to be expanded
3409 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3410 do
3411 ac_preproc_ok=false
3412for ac_c_preproc_warn_flag in '' yes
3413do
3414 # Use a header file that comes with gcc, so configuring glibc
3415 # with a fresh cross-compiler works.
3416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3417 # <limits.h> exists even on freestanding compilers.
3418 # On the NeXT, cc -E runs the code through the compiler's parser,
3419 # not just through cpp. "Syntax error" is here to catch this case.
3420 cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h. */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h. */
3426#ifdef __STDC__
3427# include <limits.h>
3428#else
3429# include <assert.h>
3430#endif
3431 Syntax error
3432_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003433if { (ac_try="$ac_cpp conftest.$ac_ext"
3434case "(($ac_try" in
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3437esac
3438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003445 (exit $ac_status); } >/dev/null; then
3446 if test -s conftest.err; then
3447 ac_cpp_err=$ac_c_preproc_warn_flag
3448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 else
3450 ac_cpp_err=
3451 fi
3452else
3453 ac_cpp_err=yes
3454fi
3455if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003456 :
3457else
3458 echo "$as_me: failed program was:" >&5
3459sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 # Broken: fails on valid input.
3462continue
3463fi
Reid Spencera773bd52006-08-04 18:18:08 +00003464
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003465rm -f conftest.err conftest.$ac_ext
3466
Reid Spencera773bd52006-08-04 18:18:08 +00003467 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003468 # can be detected and how.
3469 cat >conftest.$ac_ext <<_ACEOF
3470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
3475#include <ac_nonexistent.h>
3476_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003477if { (ac_try="$ac_cpp conftest.$ac_ext"
3478case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481esac
3482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484 ac_status=$?
3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003489 (exit $ac_status); } >/dev/null; then
3490 if test -s conftest.err; then
3491 ac_cpp_err=$ac_c_preproc_warn_flag
3492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 else
3494 ac_cpp_err=
3495 fi
3496else
3497 ac_cpp_err=yes
3498fi
3499if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003500 # Broken: success on invalid input.
3501continue
3502else
3503 echo "$as_me: failed program was:" >&5
3504sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
Reid Spencera773bd52006-08-04 18:18:08 +00003510
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511rm -f conftest.err conftest.$ac_ext
3512
3513done
3514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515rm -f conftest.err conftest.$ac_ext
3516if $ac_preproc_ok; then
3517 break
3518fi
3519
3520 done
3521 ac_cv_prog_CPP=$CPP
3522
3523fi
3524 CPP=$ac_cv_prog_CPP
3525else
3526 ac_cv_prog_CPP=$CPP
3527fi
Reid Spencera773bd52006-08-04 18:18:08 +00003528{ echo "$as_me:$LINENO: result: $CPP" >&5
3529echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003530ac_preproc_ok=false
3531for ac_c_preproc_warn_flag in '' yes
3532do
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h. */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h. */
3545#ifdef __STDC__
3546# include <limits.h>
3547#else
3548# include <assert.h>
3549#endif
3550 Syntax error
3551_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003552if { (ac_try="$ac_cpp conftest.$ac_ext"
3553case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556esac
3557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003559 ac_status=$?
3560 grep -v '^ *+' conftest.er1 >conftest.err
3561 rm -f conftest.er1
3562 cat conftest.err >&5
3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003564 (exit $ac_status); } >/dev/null; then
3565 if test -s conftest.err; then
3566 ac_cpp_err=$ac_c_preproc_warn_flag
3567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 else
3569 ac_cpp_err=
3570 fi
3571else
3572 ac_cpp_err=yes
3573fi
3574if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003575 :
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580 # Broken: fails on valid input.
3581continue
3582fi
Reid Spencera773bd52006-08-04 18:18:08 +00003583
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003584rm -f conftest.err conftest.$ac_ext
3585
Reid Spencera773bd52006-08-04 18:18:08 +00003586 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003587 # can be detected and how.
3588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594#include <ac_nonexistent.h>
3595_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003596if { (ac_try="$ac_cpp conftest.$ac_ext"
3597case "(($ac_try" in
3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599 *) ac_try_echo=$ac_try;;
3600esac
3601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003603 ac_status=$?
3604 grep -v '^ *+' conftest.er1 >conftest.err
3605 rm -f conftest.er1
3606 cat conftest.err >&5
3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003608 (exit $ac_status); } >/dev/null; then
3609 if test -s conftest.err; then
3610 ac_cpp_err=$ac_c_preproc_warn_flag
3611 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 else
3613 ac_cpp_err=
3614 fi
3615else
3616 ac_cpp_err=yes
3617fi
3618if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003619 # Broken: success on invalid input.
3620continue
3621else
3622 echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625 # Passes both tests.
3626ac_preproc_ok=:
3627break
3628fi
Reid Spencera773bd52006-08-04 18:18:08 +00003629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630rm -f conftest.err conftest.$ac_ext
3631
3632done
3633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3634rm -f conftest.err conftest.$ac_ext
3635if $ac_preproc_ok; then
3636 :
3637else
3638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3639See \`config.log' for more details." >&5
3640echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3641See \`config.log' for more details." >&2;}
3642 { (exit 1); exit 1; }; }
3643fi
3644
John Criswell7a73b802003-06-30 21:59:07 +00003645ac_ext=c
3646ac_cpp='$CPP $CPPFLAGS'
3647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649ac_compiler_gnu=$ac_cv_c_compiler_gnu
3650
John Criswell7a73b802003-06-30 21:59:07 +00003651
Reid Spencera773bd52006-08-04 18:18:08 +00003652{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3653echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003654if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
Reid Spencera773bd52006-08-04 18:18:08 +00003657 # Extract the first word of "grep ggrep" to use in msg output
3658if test -z "$GREP"; then
3659set dummy grep ggrep; ac_prog_name=$2
3660if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
Reid Spencera773bd52006-08-04 18:18:08 +00003663 ac_path_GREP_found=false
3664# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003670 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003673 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676case `"$ac_path_GREP" --version 2>&1` in
3677*GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3679*)
3680 ac_count=0
3681 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3682 while :
3683 do
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700esac
3701
3702
3703 $ac_path_GREP_found && break 3
3704 done
3705done
3706
3707done
3708IFS=$as_save_IFS
3709
3710
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003711fi
Reid Spencera773bd52006-08-04 18:18:08 +00003712
3713GREP="$ac_cv_path_GREP"
3714if test -z "$GREP"; then
3715 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3716echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3717 { (exit 1); exit 1; }; }
3718fi
3719
3720else
3721 ac_cv_path_GREP=$GREP
3722fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003723
John Criswell7a73b802003-06-30 21:59:07 +00003724
Reid Spencera773bd52006-08-04 18:18:08 +00003725fi
3726{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3727echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3728 GREP="$ac_cv_path_GREP"
3729
3730
3731{ echo "$as_me:$LINENO: checking for egrep" >&5
3732echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3733if test "${ac_cv_path_EGREP+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3737 then ac_cv_path_EGREP="$GREP -E"
3738 else
3739 # Extract the first word of "egrep" to use in msg output
3740if test -z "$EGREP"; then
3741set dummy egrep; ac_prog_name=$2
3742if test "${ac_cv_path_EGREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3744else
3745 ac_path_EGREP_found=false
3746# Loop through the user's path and test for each of PROGNAME-LIST
3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3749do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in egrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003755 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003756 # Check for GNU ac_path_EGREP and select it if it is found.
3757 # Check for GNU $ac_path_EGREP
3758case `"$ac_path_EGREP" --version 2>&1` in
3759*GNU*)
3760 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3761*)
3762 ac_count=0
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3764 while :
3765 do
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'EGREP' >> "conftest.nl"
3770 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_EGREP="$ac_path_EGREP"
3776 ac_path_EGREP_max=$ac_count
3777 fi
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3780 done
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3782esac
3783
3784
3785 $ac_path_EGREP_found && break 3
3786 done
3787done
3788
3789done
3790IFS=$as_save_IFS
3791
3792
3793fi
3794
3795EGREP="$ac_cv_path_EGREP"
3796if test -z "$EGREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3800fi
3801
3802else
3803 ac_cv_path_EGREP=$EGREP
3804fi
3805
3806
3807 fi
3808fi
3809{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3810echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3811 EGREP="$ac_cv_path_EGREP"
3812
3813
3814{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3815echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003816if test "${ac_cv_header_stdc+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003820/* confdefs.h. */
3821_ACEOF
3822cat confdefs.h >>conftest.$ac_ext
3823cat >>conftest.$ac_ext <<_ACEOF
3824/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003825#include <stdlib.h>
3826#include <stdarg.h>
3827#include <string.h>
3828#include <float.h>
3829
John Criswell0c38eaf2003-09-10 15:17:25 +00003830int
3831main ()
3832{
3833
3834 ;
3835 return 0;
3836}
John Criswell7a73b802003-06-30 21:59:07 +00003837_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003838rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003839if { (ac_try="$ac_compile"
3840case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3843esac
3844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003851 (exit $ac_status); } &&
3852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3853 { (case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;;
3856esac
3857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3858 (eval "$ac_try") 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; } &&
3862 { ac_try='test -s conftest.$ac_objext'
3863 { (case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866esac
3867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_try") 2>&5
3869 ac_status=$?
3870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003872 ac_cv_header_stdc=yes
3873else
3874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003875sed 's/^/| /' conftest.$ac_ext >&5
3876
Reid Spencera773bd52006-08-04 18:18:08 +00003877 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003878fi
Reid Spencera773bd52006-08-04 18:18:08 +00003879
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003881
3882if test $ac_cv_header_stdc = yes; then
3883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003890#include <string.h>
3891
3892_ACEOF
3893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003894 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003895 :
3896else
3897 ac_cv_header_stdc=no
3898fi
3899rm -f conftest*
3900
3901fi
3902
3903if test $ac_cv_header_stdc = yes; then
3904 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003906/* confdefs.h. */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003911#include <stdlib.h>
3912
3913_ACEOF
3914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003915 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003916 :
3917else
3918 ac_cv_header_stdc=no
3919fi
3920rm -f conftest*
3921
3922fi
3923
3924if test $ac_cv_header_stdc = yes; then
3925 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3926 if test "$cross_compiling" = yes; then
3927 :
3928else
3929 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003935#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003936#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003937#if ((' ' & 0x0FF) == 0x020)
3938# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3939# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3940#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003941# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003942 (('a' <= (c) && (c) <= 'i') \
3943 || ('j' <= (c) && (c) <= 'r') \
3944 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003945# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3946#endif
3947
3948#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3949int
3950main ()
3951{
3952 int i;
3953 for (i = 0; i < 256; i++)
3954 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003955 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003956 return 2;
3957 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003958}
3959_ACEOF
3960rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003961if { (ac_try="$ac_link"
3962case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965esac
3966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003971 { (case "(($ac_try" in
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3974esac
3975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; }; then
3980 :
3981else
3982 echo "$as_me: program exited with status $ac_status" >&5
3983echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003984sed 's/^/| /' conftest.$ac_ext >&5
3985
John Criswell7a73b802003-06-30 21:59:07 +00003986( exit $ac_status )
3987ac_cv_header_stdc=no
3988fi
Reid Spencera773bd52006-08-04 18:18:08 +00003989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990fi
3991
3992
John Criswell7a73b802003-06-30 21:59:07 +00003993fi
3994fi
Reid Spencera773bd52006-08-04 18:18:08 +00003995{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3996echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003997if test $ac_cv_header_stdc = yes; then
3998
3999cat >>confdefs.h <<\_ACEOF
4000#define STDC_HEADERS 1
4001_ACEOF
4002
4003fi
4004
Reid Spencera773bd52006-08-04 18:18:08 +00004005# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4016 inttypes.h stdint.h unistd.h
4017do
4018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4019{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4021if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4023else
4024 cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h. */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h. */
4030$ac_includes_default
4031
4032#include <$ac_header>
4033_ACEOF
4034rm -f conftest.$ac_objext
4035if { (ac_try="$ac_compile"
4036case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_compile") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004047 (exit $ac_status); } &&
4048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4049 { (case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4054 (eval "$ac_try") 2>&5
4055 ac_status=$?
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); }; } &&
4058 { ac_try='test -s conftest.$ac_objext'
4059 { (case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_try") 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004068 eval "$as_ac_Header=yes"
4069else
4070 echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 eval "$as_ac_Header=no"
4074fi
4075
4076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077fi
4078ac_res=`eval echo '${'$as_ac_Header'}'`
4079 { echo "$as_me:$LINENO: result: $ac_res" >&5
4080echo "${ECHO_T}$ac_res" >&6; }
4081if test `eval echo '${'$as_ac_Header'}'` = yes; then
4082 cat >>confdefs.h <<_ACEOF
4083#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084_ACEOF
4085
4086fi
4087
4088done
4089
4090
4091{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4092echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4093if test "${ac_cv_c_bigendian+set}" = set; then
4094 echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096 # See if sys/param.h defines the BYTE_ORDER macro.
4097cat >conftest.$ac_ext <<_ACEOF
4098/* confdefs.h. */
4099_ACEOF
4100cat confdefs.h >>conftest.$ac_ext
4101cat >>conftest.$ac_ext <<_ACEOF
4102/* end confdefs.h. */
4103#include <sys/types.h>
4104#include <sys/param.h>
4105
4106int
4107main ()
4108{
Tanya Lattnercf067672008-01-17 05:57:22 +00004109#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004110 bogus endian macros
4111#endif
4112
4113 ;
4114 return 0;
4115}
4116_ACEOF
4117rm -f conftest.$ac_objext
4118if { (ac_try="$ac_compile"
4119case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122esac
4123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_compile") 2>conftest.er1
4125 ac_status=$?
4126 grep -v '^ *+' conftest.er1 >conftest.err
4127 rm -f conftest.er1
4128 cat conftest.err >&5
4129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004130 (exit $ac_status); } &&
4131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4132 { (case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_try") 2>&5
4138 ac_status=$?
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4148 ac_status=$?
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004151 # It does; now see whether it defined to BIG_ENDIAN or not.
4152cat >conftest.$ac_ext <<_ACEOF
4153/* confdefs.h. */
4154_ACEOF
4155cat confdefs.h >>conftest.$ac_ext
4156cat >>conftest.$ac_ext <<_ACEOF
4157/* end confdefs.h. */
4158#include <sys/types.h>
4159#include <sys/param.h>
4160
4161int
4162main ()
4163{
4164#if BYTE_ORDER != BIG_ENDIAN
4165 not big endian
4166#endif
4167
4168 ;
4169 return 0;
4170}
4171_ACEOF
4172rm -f conftest.$ac_objext
4173if { (ac_try="$ac_compile"
4174case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4179 (eval "$ac_compile") 2>conftest.er1
4180 ac_status=$?
4181 grep -v '^ *+' conftest.er1 >conftest.err
4182 rm -f conftest.er1
4183 cat conftest.err >&5
4184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004185 (exit $ac_status); } &&
4186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4187 { (case "(($ac_try" in
4188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4189 *) ac_try_echo=$ac_try;;
4190esac
4191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4192 (eval "$ac_try") 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; } &&
4196 { ac_try='test -s conftest.$ac_objext'
4197 { (case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200esac
4201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_try") 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004206 ac_cv_c_bigendian=yes
4207else
4208 echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ac_cv_c_bigendian=no
4212fi
4213
4214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215else
4216 echo "$as_me: failed program was:" >&5
4217sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 # It does not; compile a test program.
4220if test "$cross_compiling" = yes; then
4221 # try to guess the endianness by grepping values into an object file
4222 ac_cv_c_bigendian=unknown
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4230short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4231void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4232short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4233short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4234void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235int
4236main ()
4237{
4238 _ascii (); _ebcdic ();
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243rm -f conftest.$ac_objext
4244if { (ac_try="$ac_compile"
4245case "(($ac_try" in
4246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4247 *) ac_try_echo=$ac_try;;
4248esac
4249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4250 (eval "$ac_compile") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004256 (exit $ac_status); } &&
4257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4258 { (case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4261esac
4262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest.$ac_objext'
4268 { (case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271esac
4272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004277 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4278 ac_cv_c_bigendian=yes
4279fi
4280if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4281 if test "$ac_cv_c_bigendian" = unknown; then
4282 ac_cv_c_bigendian=no
4283 else
4284 # finding both strings is unlikely to happen, but who knows?
4285 ac_cv_c_bigendian=unknown
4286 fi
4287fi
4288else
4289 echo "$as_me: failed program was:" >&5
4290sed 's/^/| /' conftest.$ac_ext >&5
4291
4292
4293fi
4294
4295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296else
4297 cat >conftest.$ac_ext <<_ACEOF
4298/* confdefs.h. */
4299_ACEOF
4300cat confdefs.h >>conftest.$ac_ext
4301cat >>conftest.$ac_ext <<_ACEOF
4302/* end confdefs.h. */
4303$ac_includes_default
4304int
4305main ()
4306{
4307
4308 /* Are we little or big endian? From Harbison&Steele. */
4309 union
4310 {
4311 long int l;
4312 char c[sizeof (long int)];
4313 } u;
4314 u.l = 1;
4315 return u.c[sizeof (long int) - 1] == 1;
4316
4317 ;
4318 return 0;
4319}
4320_ACEOF
4321rm -f conftest$ac_exeext
4322if { (ac_try="$ac_link"
4323case "(($ac_try" in
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4326esac
4327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_link") 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4332 { (case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4337 (eval "$ac_try") 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_c_bigendian=no
4342else
4343 echo "$as_me: program exited with status $ac_status" >&5
4344echo "$as_me: failed program was:" >&5
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
4347( exit $ac_status )
4348ac_cv_c_bigendian=yes
4349fi
4350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351fi
4352
4353
4354fi
4355
4356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357fi
4358{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4359echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4360case $ac_cv_c_bigendian in
4361 yes)
4362 ENDIAN=big
4363 ;;
4364 no)
4365 ENDIAN=little
4366 ;;
4367 *)
4368 { { echo "$as_me:$LINENO: error: unknown endianness
4369presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4370echo "$as_me: error: unknown endianness
4371presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4372 { (exit 1); exit 1; }; } ;;
4373esac
4374
4375
4376if test "$cross_compiling" = yes; then
4377 LLVM_CROSS_COMPILING=1
4378
4379
4380{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4381echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4382if test "${ac_cv_build_exeext+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384else
4385 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4386 ac_cv_build_exeext=.exe
4387else
4388 ac_build_prefix=${build_alias}-
4389
4390 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4391set dummy ${ac_build_prefix}gcc; ac_word=$2
4392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004407 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411done
4412done
4413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CC=$ac_cv_prog_BUILD_CC
4418if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420echo "${ECHO_T}$BUILD_CC" >&6; }
4421else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
4424fi
4425
4426
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429set dummy gcc; ac_word=$2
4430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439for as_dir in $PATH
4440do
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004445 ac_cv_prog_BUILD_CC="gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4448 fi
4449done
4450done
4451IFS=$as_save_IFS
4452
4453fi
4454fi
4455BUILD_CC=$ac_cv_prog_BUILD_CC
4456if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458echo "${ECHO_T}$BUILD_CC" >&6; }
4459else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461echo "${ECHO_T}no" >&6; }
4462fi
4463
4464
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "cc", so it can be a program name with args.
4467set dummy cc; ac_word=$2
4468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4475else
4476 ac_prog_rejected=no
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004484 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4485 ac_prog_rejected=yes
4486 continue
4487 fi
4488 ac_cv_prog_BUILD_CC="cc"
4489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4491 fi
4492done
4493done
4494IFS=$as_save_IFS
4495
4496if test $ac_prog_rejected = yes; then
4497 # We found a bogon in the path, so make sure we never use it.
4498 set dummy $ac_cv_prog_BUILD_CC
4499 shift
4500 if test $# != 0; then
4501 # We chose a different compiler from the bogus one.
4502 # However, it has the same basename, so the bogon will be chosen
4503 # first if we set BUILD_CC to just the basename; use the full file name.
4504 shift
4505 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4506 fi
4507fi
4508fi
4509fi
4510BUILD_CC=$ac_cv_prog_BUILD_CC
4511if test -n "$BUILD_CC"; then
4512 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4513echo "${ECHO_T}$BUILD_CC" >&6; }
4514else
4515 { echo "$as_me:$LINENO: result: no" >&5
4516echo "${ECHO_T}no" >&6; }
4517fi
4518
4519
4520 fi
4521 fi
4522 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4523echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4524 { (exit 1); exit 1; }; }
4525 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4526 rm -f conftest*
4527 echo 'int main () { return 0; }' > conftest.$ac_ext
4528 ac_cv_build_exeext=
4529 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4530 (eval $ac_build_link) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; then
4534 for file in conftest.*; do
4535 case $file in
4536 *.c | *.o | *.obj) ;;
4537 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4538 esac
4539 done
4540 else
4541 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4542echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4543 { (exit 1); exit 1; }; }
4544 fi
4545 rm -f conftest*
4546 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4547fi
4548fi
4549
4550BUILD_EXEEXT=""
4551test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4552{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4553echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4554ac_build_exeext=$BUILD_EXEEXT
4555
4556else
4557 LLVM_CROSS_COMPILING=0
4558
4559fi
4560
Reid Spencer0b1e4662007-04-02 15:41:39 +00004561if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004562 cvsbuild="yes"
4563 optimize="no"
4564 CVSBUILD=CVSBUILD=1
4565
4566else
4567 cvsbuild="no"
4568 optimize="yes"
4569fi
4570
4571
4572# Check whether --enable-optimized was given.
4573if test "${enable_optimized+set}" = set; then
4574 enableval=$enable_optimized;
4575else
4576 enableval=$optimize
4577fi
4578
4579if test ${enableval} = "no" ; then
4580 ENABLE_OPTIMIZED=
4581
4582else
4583 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4584
4585fi
4586
4587# Check whether --enable-assertions was given.
4588if test "${enable_assertions+set}" = set; then
4589 enableval=$enable_assertions;
4590else
4591 enableval="yes"
4592fi
4593
4594if test ${enableval} = "yes" ; then
4595 DISABLE_ASSERTIONS=
4596
4597else
4598 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4599
4600fi
4601
David Greenea696d242007-06-28 19:36:08 +00004602# Check whether --enable-expensive-checks was given.
4603if test "${enable_expensive_checks+set}" = set; then
4604 enableval=$enable_expensive_checks;
4605else
4606 enableval="no"
4607fi
4608
4609if test ${enableval} = "yes" ; then
4610 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4611
4612 EXPENSIVE_CHECKS=yes
4613
4614else
4615 ENABLE_EXPENSIVE_CHECKS=
4616
4617 EXPENSIVE_CHECKS=no
4618
4619fi
4620
Reid Spencer8b2e1412006-11-17 03:32:33 +00004621# Check whether --enable-debug-runtime was given.
4622if test "${enable_debug_runtime+set}" = set; then
4623 enableval=$enable_debug_runtime;
4624else
4625 enableval=no
4626fi
4627
4628if test ${enableval} = "no" ; then
4629 DEBUG_RUNTIME=
4630
4631else
4632 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4633
4634fi
4635
Reid Spencera773bd52006-08-04 18:18:08 +00004636# Check whether --enable-jit was given.
4637if test "${enable_jit+set}" = set; then
4638 enableval=$enable_jit;
4639else
4640 enableval=default
4641fi
4642
4643if test ${enableval} = "no"
4644then
4645 JIT=
4646
4647else
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGET_HAS_JIT=1
4650 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004651 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004652 ;;
4653 PowerPC) TARGET_HAS_JIT=1
4654 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004655 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004656 ;;
4657 Alpha) TARGET_HAS_JIT=1
4658 ;;
4659 IA64) TARGET_HAS_JIT=0
4660 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004661 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004662 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004663 Mips) TARGET_HAS_JIT=0
4664 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004665 *) TARGET_HAS_JIT=0
4666 ;;
4667 esac
4668fi
4669
4670# Check whether --enable-doxygen was given.
4671if test "${enable_doxygen+set}" = set; then
4672 enableval=$enable_doxygen;
4673else
4674 enableval=default
4675fi
4676
4677case "$enableval" in
4678 yes) ENABLE_DOXYGEN=1
4679 ;;
4680 no) ENABLE_DOXYGEN=0
4681 ;;
4682 default) ENABLE_DOXYGEN=0
4683 ;;
4684 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4685echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4686 { (exit 1); exit 1; }; } ;;
4687esac
4688
4689# Check whether --enable-threads was given.
4690if test "${enable_threads+set}" = set; then
4691 enableval=$enable_threads;
4692else
Reid Spencer65c5d752006-11-05 17:08:18 +00004693 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004694fi
4695
4696case "$enableval" in
4697 yes) ENABLE_THREADS=1
4698 ;;
4699 no) ENABLE_THREADS=0
4700 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004701 default) ENABLE_THREADS=1
4702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004703 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4704echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706esac
4707
4708cat >>confdefs.h <<_ACEOF
4709#define ENABLE_THREADS $ENABLE_THREADS
4710_ACEOF
4711
4712
Reid Spencer89b0d992006-12-16 22:07:52 +00004713# Check whether --enable-pic was given.
4714if test "${enable_pic+set}" = set; then
4715 enableval=$enable_pic;
4716else
4717 enableval=default
4718fi
4719
4720case "$enableval" in
4721 yes) ENABLE_PIC=1
4722 ;;
4723 no) ENABLE_PIC=0
4724 ;;
4725 default) ENABLE_PIC=0
4726 ;;
4727 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4728echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4729 { (exit 1); exit 1; }; } ;;
4730esac
4731
4732cat >>confdefs.h <<_ACEOF
4733#define ENABLE_PIC $ENABLE_PIC
4734_ACEOF
4735
4736
Reid Spencera773bd52006-08-04 18:18:08 +00004737TARGETS_TO_BUILD=""
4738# Check whether --enable-targets was given.
4739if test "${enable_targets+set}" = set; then
4740 enableval=$enable_targets;
4741else
4742 enableval=all
4743fi
4744
4745case "$enableval" in
Nate Begeman57b1efb2007-12-13 01:18:52 +00004746 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004747 host-only)
4748 case "$llvm_cv_target_arch" in
4749 x86) TARGETS_TO_BUILD="X86" ;;
4750 x86_64) TARGETS_TO_BUILD="X86" ;;
4751 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4752 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4753 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4754 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004755 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004756 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004757 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004758 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4759echo "$as_me: error: Can not set target to build" >&2;}
4760 { (exit 1); exit 1; }; } ;;
4761 esac
4762 ;;
4763 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4764 case "$a_target" in
4765 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4767 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4768 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4769 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4770 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004771 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004772 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004773 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004774 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4775 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004776 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4777echo "$as_me: error: Unrecognized target $a_target" >&2;}
4778 { (exit 1); exit 1; }; } ;;
4779 esac
4780 done
4781 ;;
4782esac
Reid Spencera773bd52006-08-04 18:18:08 +00004783TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4784
4785
Reid Spencer65c5d752006-11-05 17:08:18 +00004786# Check whether --enable-cbe-printf-a was given.
4787if test "${enable_cbe_printf_a+set}" = set; then
4788 enableval=$enable_cbe_printf_a;
4789else
4790 enableval=default
4791fi
4792
4793case "$enableval" in
4794 yes) ENABLE_CBE_PRINTF_A=1
4795 ;;
4796 no) ENABLE_CBE_PRINTF_A=0
4797 ;;
4798 default) ENABLE_CBE_PRINTF_A=1
4799 ;;
4800 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4801echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4802 { (exit 1); exit 1; }; } ;;
4803esac
4804
4805cat >>confdefs.h <<_ACEOF
4806#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4807_ACEOF
4808
4809
Reid Spencera773bd52006-08-04 18:18:08 +00004810
4811# Check whether --with-llvmgccdir was given.
4812if test "${with_llvmgccdir+set}" = set; then
4813 withval=$with_llvmgccdir;
4814else
4815 withval=default
4816fi
4817
4818case "$withval" in
4819 default) WITH_LLVMGCCDIR=default ;;
4820 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4821 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4822echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4823 { (exit 1); exit 1; }; } ;;
4824esac
4825
4826
Devang Patel5d28b882007-12-04 22:54:47 +00004827# Check whether --with-llvmgcc was given.
4828if test "${with_llvmgcc+set}" = set; then
4829 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4830 WITH_LLVMGCCDIR=""
4831fi
4832
4833
4834
4835# Check whether --with-llvmgxx was given.
4836if test "${with_llvmgxx+set}" = set; then
4837 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4838 WITH_LLVMGCCDIR=""
4839fi
4840
4841
4842if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4843 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4844echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4845 { (exit 1); exit 1; }; };
4846fi
4847
4848if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4849 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4850echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4851 { (exit 1); exit 1; }; };
4852fi
4853
4854
Reid Spencera773bd52006-08-04 18:18:08 +00004855# Check whether --with-extra-options was given.
4856if test "${with_extra_options+set}" = set; then
4857 withval=$with_extra_options;
4858else
4859 withval=default
4860fi
4861
4862case "$withval" in
4863 default) EXTRA_OPTIONS= ;;
4864 *) EXTRA_OPTIONS=$withval ;;
4865esac
4866EXTRA_OPTIONS=$EXTRA_OPTIONS
4867
4868
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004869# Check whether --enable-bindings was given.
4870if test "${enable_bindings+set}" = set; then
4871 enableval=$enable_bindings;
4872else
4873 enableval=default
4874fi
4875
4876BINDINGS_TO_BUILD=""
4877case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004878 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004879 all ) BINDINGS_TO_BUILD="ocaml" ;;
4880 none | no) BINDINGS_TO_BUILD="" ;;
4881 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4882 case "$a_binding" in
4883 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4884 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4885echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4886 { (exit 1); exit 1; }; } ;;
4887 esac
4888 done
4889 ;;
4890esac
4891
Reid Spencera773bd52006-08-04 18:18:08 +00004892
Gordon Henriksenf0915682007-10-02 16:42:22 +00004893# Check whether --with-ocaml-libdir was given.
4894if test "${with_ocaml_libdir+set}" = set; then
4895 withval=$with_ocaml_libdir;
4896else
4897 withval=auto
4898fi
4899
4900case "$withval" in
4901 auto) with_ocaml_libdir="$withval" ;;
4902 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4903 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4904echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4906esac
4907
4908
Reid Spencera773bd52006-08-04 18:18:08 +00004909ac_ext=c
4910ac_cpp='$CPP $CPPFLAGS'
4911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4915echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4916# On Suns, sometimes $CPP names a directory.
4917if test -n "$CPP" && test -d "$CPP"; then
4918 CPP=
4919fi
4920if test -z "$CPP"; then
4921 if test "${ac_cv_prog_CPP+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924 # Double quotes because CPP needs to be expanded
4925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926 do
4927 ac_preproc_ok=false
4928for ac_c_preproc_warn_flag in '' yes
4929do
4930 # Use a header file that comes with gcc, so configuring glibc
4931 # with a fresh cross-compiler works.
4932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933 # <limits.h> exists even on freestanding compilers.
4934 # On the NeXT, cc -E runs the code through the compiler's parser,
4935 # not just through cpp. "Syntax error" is here to catch this case.
4936 cat >conftest.$ac_ext <<_ACEOF
4937/* confdefs.h. */
4938_ACEOF
4939cat confdefs.h >>conftest.$ac_ext
4940cat >>conftest.$ac_ext <<_ACEOF
4941/* end confdefs.h. */
4942#ifdef __STDC__
4943# include <limits.h>
4944#else
4945# include <assert.h>
4946#endif
4947 Syntax error
4948_ACEOF
4949if { (ac_try="$ac_cpp conftest.$ac_ext"
4950case "(($ac_try" in
4951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4952 *) ac_try_echo=$ac_try;;
4953esac
4954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4956 ac_status=$?
4957 grep -v '^ *+' conftest.er1 >conftest.err
4958 rm -f conftest.er1
4959 cat conftest.err >&5
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004961 (exit $ac_status); } >/dev/null; then
4962 if test -s conftest.err; then
4963 ac_cpp_err=$ac_c_preproc_warn_flag
4964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4965 else
4966 ac_cpp_err=
4967 fi
4968else
4969 ac_cpp_err=yes
4970fi
4971if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004972 :
4973else
4974 echo "$as_me: failed program was:" >&5
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 # Broken: fails on valid input.
4978continue
4979fi
4980
4981rm -f conftest.err conftest.$ac_ext
4982
4983 # OK, works on sane cases. Now check whether nonexistent headers
4984 # can be detected and how.
4985 cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h. */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h. */
4991#include <ac_nonexistent.h>
4992_ACEOF
4993if { (ac_try="$ac_cpp conftest.$ac_ext"
4994case "(($ac_try" in
4995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4996 *) ac_try_echo=$ac_try;;
4997esac
4998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5000 ac_status=$?
5001 grep -v '^ *+' conftest.er1 >conftest.err
5002 rm -f conftest.er1
5003 cat conftest.err >&5
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005005 (exit $ac_status); } >/dev/null; then
5006 if test -s conftest.err; then
5007 ac_cpp_err=$ac_c_preproc_warn_flag
5008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5009 else
5010 ac_cpp_err=
5011 fi
5012else
5013 ac_cpp_err=yes
5014fi
5015if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005016 # Broken: success on invalid input.
5017continue
5018else
5019 echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 # Passes both tests.
5023ac_preproc_ok=:
5024break
5025fi
5026
5027rm -f conftest.err conftest.$ac_ext
5028
5029done
5030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031rm -f conftest.err conftest.$ac_ext
5032if $ac_preproc_ok; then
5033 break
5034fi
5035
5036 done
5037 ac_cv_prog_CPP=$CPP
5038
5039fi
5040 CPP=$ac_cv_prog_CPP
5041else
5042 ac_cv_prog_CPP=$CPP
5043fi
5044{ echo "$as_me:$LINENO: result: $CPP" >&5
5045echo "${ECHO_T}$CPP" >&6; }
5046ac_preproc_ok=false
5047for ac_c_preproc_warn_flag in '' yes
5048do
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h. */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h. */
5061#ifdef __STDC__
5062# include <limits.h>
5063#else
5064# include <assert.h>
5065#endif
5066 Syntax error
5067_ACEOF
5068if { (ac_try="$ac_cpp conftest.$ac_ext"
5069case "(($ac_try" in
5070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5071 *) ac_try_echo=$ac_try;;
5072esac
5073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 ac_status=$?
5076 grep -v '^ *+' conftest.er1 >conftest.err
5077 rm -f conftest.er1
5078 cat conftest.err >&5
5079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005080 (exit $ac_status); } >/dev/null; then
5081 if test -s conftest.err; then
5082 ac_cpp_err=$ac_c_preproc_warn_flag
5083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5084 else
5085 ac_cpp_err=
5086 fi
5087else
5088 ac_cpp_err=yes
5089fi
5090if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005091 :
5092else
5093 echo "$as_me: failed program was:" >&5
5094sed 's/^/| /' conftest.$ac_ext >&5
5095
5096 # Broken: fails on valid input.
5097continue
5098fi
5099
5100rm -f conftest.err conftest.$ac_ext
5101
5102 # OK, works on sane cases. Now check whether nonexistent headers
5103 # can be detected and how.
5104 cat >conftest.$ac_ext <<_ACEOF
5105/* confdefs.h. */
5106_ACEOF
5107cat confdefs.h >>conftest.$ac_ext
5108cat >>conftest.$ac_ext <<_ACEOF
5109/* end confdefs.h. */
5110#include <ac_nonexistent.h>
5111_ACEOF
5112if { (ac_try="$ac_cpp conftest.$ac_ext"
5113case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116esac
5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5119 ac_status=$?
5120 grep -v '^ *+' conftest.er1 >conftest.err
5121 rm -f conftest.er1
5122 cat conftest.err >&5
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005124 (exit $ac_status); } >/dev/null; then
5125 if test -s conftest.err; then
5126 ac_cpp_err=$ac_c_preproc_warn_flag
5127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5128 else
5129 ac_cpp_err=
5130 fi
5131else
5132 ac_cpp_err=yes
5133fi
5134if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005135 # Broken: success on invalid input.
5136continue
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 # Passes both tests.
5142ac_preproc_ok=:
5143break
5144fi
5145
5146rm -f conftest.err conftest.$ac_ext
5147
5148done
5149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5150rm -f conftest.err conftest.$ac_ext
5151if $ac_preproc_ok; then
5152 :
5153else
5154 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5155See \`config.log' for more details." >&5
5156echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5157See \`config.log' for more details." >&2;}
5158 { (exit 1); exit 1; }; }
5159fi
5160
5161ac_ext=c
5162ac_cpp='$CPP $CPPFLAGS'
5163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166
5167ac_ext=c
5168ac_cpp='$CPP $CPPFLAGS'
5169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171ac_compiler_gnu=$ac_cv_c_compiler_gnu
5172if test -n "$ac_tool_prefix"; then
5173 for ac_prog in gcc
5174 do
5175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5176set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5177{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179if test "${ac_cv_prog_CC+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181else
5182 if test -n "$CC"; then
5183 ac_cv_prog_CC="$CC" # Let the user override the test.
5184else
5185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186for as_dir in $PATH
5187do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
5197done
5198IFS=$as_save_IFS
5199
5200fi
5201fi
5202CC=$ac_cv_prog_CC
5203if test -n "$CC"; then
5204 { echo "$as_me:$LINENO: result: $CC" >&5
5205echo "${ECHO_T}$CC" >&6; }
5206else
5207 { echo "$as_me:$LINENO: result: no" >&5
5208echo "${ECHO_T}no" >&6; }
5209fi
5210
5211
5212 test -n "$CC" && break
5213 done
5214fi
5215if test -z "$CC"; then
5216 ac_ct_CC=$CC
5217 for ac_prog in gcc
5218do
5219 # Extract the first word of "$ac_prog", so it can be a program name with args.
5220set dummy $ac_prog; ac_word=$2
5221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 if test -n "$ac_ct_CC"; then
5227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5228else
5229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230for as_dir in $PATH
5231do
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005236 ac_cv_prog_ac_ct_CC="$ac_prog"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5239 fi
5240done
5241done
5242IFS=$as_save_IFS
5243
5244fi
5245fi
5246ac_ct_CC=$ac_cv_prog_ac_ct_CC
5247if test -n "$ac_ct_CC"; then
5248 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5249echo "${ECHO_T}$ac_ct_CC" >&6; }
5250else
5251 { echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6; }
5253fi
5254
5255
5256 test -n "$ac_ct_CC" && break
5257done
5258
5259 if test "x$ac_ct_CC" = x; then
5260 CC=""
5261 else
5262 case $cross_compiling:$ac_tool_warned in
5263yes:)
5264{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5265whose name does not start with the host triplet. If you think this
5266configuration is useful to you, please write to autoconf@gnu.org." >&5
5267echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5268whose name does not start with the host triplet. If you think this
5269configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5270ac_tool_warned=yes ;;
5271esac
5272 CC=$ac_ct_CC
5273 fi
5274fi
5275
5276
5277test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5278See \`config.log' for more details." >&5
5279echo "$as_me: error: no acceptable C compiler found in \$PATH
5280See \`config.log' for more details." >&2;}
5281 { (exit 1); exit 1; }; }
5282
5283# Provide some information about the compiler.
5284echo "$as_me:$LINENO: checking for C compiler version" >&5
5285ac_compiler=`set X $ac_compile; echo $2`
5286{ (ac_try="$ac_compiler --version >&5"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_compiler --version >&5") 2>&5
5293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }
5296{ (ac_try="$ac_compiler -v >&5"
5297case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300esac
5301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_compiler -v >&5") 2>&5
5303 ac_status=$?
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }
5306{ (ac_try="$ac_compiler -V >&5"
5307case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310esac
5311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compiler -V >&5") 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }
5316
5317{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5318echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5319if test "${ac_cv_c_compiler_gnu+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321else
5322 cat >conftest.$ac_ext <<_ACEOF
5323/* confdefs.h. */
5324_ACEOF
5325cat confdefs.h >>conftest.$ac_ext
5326cat >>conftest.$ac_ext <<_ACEOF
5327/* end confdefs.h. */
5328
5329int
5330main ()
5331{
5332#ifndef __GNUC__
5333 choke me
5334#endif
5335
5336 ;
5337 return 0;
5338}
5339_ACEOF
5340rm -f conftest.$ac_objext
5341if { (ac_try="$ac_compile"
5342case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345esac
5346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005353 (exit $ac_status); } &&
5354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5355 { (case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358esac
5359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_try") 2>&5
5361 ac_status=$?
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368esac
5369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_try") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005374 ac_compiler_gnu=yes
5375else
5376 echo "$as_me: failed program was:" >&5
5377sed 's/^/| /' conftest.$ac_ext >&5
5378
5379 ac_compiler_gnu=no
5380fi
5381
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383ac_cv_c_compiler_gnu=$ac_compiler_gnu
5384
5385fi
5386{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5387echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5388GCC=`test $ac_compiler_gnu = yes && echo yes`
5389ac_test_CFLAGS=${CFLAGS+set}
5390ac_save_CFLAGS=$CFLAGS
5391{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5392echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5393if test "${ac_cv_prog_cc_g+set}" = set; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5395else
5396 ac_save_c_werror_flag=$ac_c_werror_flag
5397 ac_c_werror_flag=yes
5398 ac_cv_prog_cc_g=no
5399 CFLAGS="-g"
5400 cat >conftest.$ac_ext <<_ACEOF
5401/* confdefs.h. */
5402_ACEOF
5403cat confdefs.h >>conftest.$ac_ext
5404cat >>conftest.$ac_ext <<_ACEOF
5405/* end confdefs.h. */
5406
5407int
5408main ()
5409{
5410
5411 ;
5412 return 0;
5413}
5414_ACEOF
5415rm -f conftest.$ac_objext
5416if { (ac_try="$ac_compile"
5417case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420esac
5421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_compile") 2>conftest.er1
5423 ac_status=$?
5424 grep -v '^ *+' conftest.er1 >conftest.err
5425 rm -f conftest.er1
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005428 (exit $ac_status); } &&
5429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5430 { (case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433esac
5434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_try") 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); }; } &&
5439 { ac_try='test -s conftest.$ac_objext'
5440 { (case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443esac
5444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5445 (eval "$ac_try") 2>&5
5446 ac_status=$?
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005449 ac_cv_prog_cc_g=yes
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 CFLAGS=""
5455 cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h. */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h. */
5461
5462int
5463main ()
5464{
5465
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext
5471if { (ac_try="$ac_compile"
5472case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005483 (exit $ac_status); } &&
5484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5485 { (case "(($ac_try" in
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5488esac
5489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_try") 2>&5
5491 ac_status=$?
5492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493 (exit $ac_status); }; } &&
5494 { ac_try='test -s conftest.$ac_objext'
5495 { (case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498esac
5499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_try") 2>&5
5501 ac_status=$?
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005504 :
5505else
5506 echo "$as_me: failed program was:" >&5
5507sed 's/^/| /' conftest.$ac_ext >&5
5508
5509 ac_c_werror_flag=$ac_save_c_werror_flag
5510 CFLAGS="-g"
5511 cat >conftest.$ac_ext <<_ACEOF
5512/* confdefs.h. */
5513_ACEOF
5514cat confdefs.h >>conftest.$ac_ext
5515cat >>conftest.$ac_ext <<_ACEOF
5516/* end confdefs.h. */
5517
5518int
5519main ()
5520{
5521
5522 ;
5523 return 0;
5524}
5525_ACEOF
5526rm -f conftest.$ac_objext
5527if { (ac_try="$ac_compile"
5528case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005539 (exit $ac_status); } &&
5540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5541 { (case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_try") 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest.$ac_objext'
5551 { (case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_try") 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005560 ac_cv_prog_cc_g=yes
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565
5566fi
5567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569fi
5570
5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5572fi
5573
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575 ac_c_werror_flag=$ac_save_c_werror_flag
5576fi
5577{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5578echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5579if test "$ac_test_CFLAGS" = set; then
5580 CFLAGS=$ac_save_CFLAGS
5581elif test $ac_cv_prog_cc_g = yes; then
5582 if test "$GCC" = yes; then
5583 CFLAGS="-g -O2"
5584 else
5585 CFLAGS="-g"
5586 fi
5587else
5588 if test "$GCC" = yes; then
5589 CFLAGS="-O2"
5590 else
5591 CFLAGS=
5592 fi
5593fi
5594{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5595echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5596if test "${ac_cv_prog_cc_c89+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599 ac_cv_prog_cc_c89=no
5600ac_save_CC=$CC
5601cat >conftest.$ac_ext <<_ACEOF
5602/* confdefs.h. */
5603_ACEOF
5604cat confdefs.h >>conftest.$ac_ext
5605cat >>conftest.$ac_ext <<_ACEOF
5606/* end confdefs.h. */
5607#include <stdarg.h>
5608#include <stdio.h>
5609#include <sys/types.h>
5610#include <sys/stat.h>
5611/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5612struct buf { int x; };
5613FILE * (*rcsopen) (struct buf *, struct stat *, int);
5614static char *e (p, i)
5615 char **p;
5616 int i;
5617{
5618 return p[i];
5619}
5620static char *f (char * (*g) (char **, int), char **p, ...)
5621{
5622 char *s;
5623 va_list v;
5624 va_start (v,p);
5625 s = g (p, va_arg (v,int));
5626 va_end (v);
5627 return s;
5628}
5629
5630/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5631 function prototypes and stuff, but not '\xHH' hex character constants.
5632 These don't provoke an error unfortunately, instead are silently treated
5633 as 'x'. The following induces an error, until -std is added to get
5634 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5635 array size at least. It's necessary to write '\x00'==0 to get something
5636 that's true only with -std. */
5637int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5638
5639/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5640 inside strings and character constants. */
5641#define FOO(x) 'x'
5642int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5643
5644int test (int i, double x);
5645struct s1 {int (*f) (int a);};
5646struct s2 {int (*f) (double a);};
5647int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5648int argc;
5649char **argv;
5650int
5651main ()
5652{
5653return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5654 ;
5655 return 0;
5656}
5657_ACEOF
5658for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5659 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5660do
5661 CC="$ac_save_CC $ac_arg"
5662 rm -f conftest.$ac_objext
5663if { (ac_try="$ac_compile"
5664case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667esac
5668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005675 (exit $ac_status); } &&
5676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5677 { (case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; } &&
5686 { ac_try='test -s conftest.$ac_objext'
5687 { (case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_try") 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005696 ac_cv_prog_cc_c89=$ac_arg
5697else
5698 echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701
5702fi
5703
5704rm -f core conftest.err conftest.$ac_objext
5705 test "x$ac_cv_prog_cc_c89" != "xno" && break
5706done
5707rm -f conftest.$ac_ext
5708CC=$ac_save_CC
5709
5710fi
5711# AC_CACHE_VAL
5712case "x$ac_cv_prog_cc_c89" in
5713 x)
5714 { echo "$as_me:$LINENO: result: none needed" >&5
5715echo "${ECHO_T}none needed" >&6; } ;;
5716 xno)
5717 { echo "$as_me:$LINENO: result: unsupported" >&5
5718echo "${ECHO_T}unsupported" >&6; } ;;
5719 *)
5720 CC="$CC $ac_cv_prog_cc_c89"
5721 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5722echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5723esac
5724
5725
5726ac_ext=c
5727ac_cpp='$CPP $CPPFLAGS'
5728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5730ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731
5732ac_ext=cpp
5733ac_cpp='$CXXCPP $CPPFLAGS'
5734ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5735ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5736ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5737if test -z "$CXX"; then
5738 if test -n "$CCC"; then
5739 CXX=$CCC
5740 else
5741 if test -n "$ac_tool_prefix"; then
5742 for ac_prog in g++
5743 do
5744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5745set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5748if test "${ac_cv_prog_CXX+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751 if test -n "$CXX"; then
5752 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5753else
5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755for as_dir in $PATH
5756do
5757 IFS=$as_save_IFS
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005761 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5763 break 2
5764 fi
5765done
5766done
5767IFS=$as_save_IFS
5768
5769fi
5770fi
5771CXX=$ac_cv_prog_CXX
5772if test -n "$CXX"; then
5773 { echo "$as_me:$LINENO: result: $CXX" >&5
5774echo "${ECHO_T}$CXX" >&6; }
5775else
5776 { echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6; }
5778fi
5779
5780
5781 test -n "$CXX" && break
5782 done
5783fi
5784if test -z "$CXX"; then
5785 ac_ct_CXX=$CXX
5786 for ac_prog in g++
5787do
5788 # Extract the first word of "$ac_prog", so it can be a program name with args.
5789set dummy $ac_prog; ac_word=$2
5790{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5792if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795 if test -n "$ac_ct_CXX"; then
5796 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5797else
5798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799for as_dir in $PATH
5800do
5801 IFS=$as_save_IFS
5802 test -z "$as_dir" && as_dir=.
5803 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005805 ac_cv_prog_ac_ct_CXX="$ac_prog"
5806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809done
5810done
5811IFS=$as_save_IFS
5812
5813fi
5814fi
5815ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5816if test -n "$ac_ct_CXX"; then
5817 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5818echo "${ECHO_T}$ac_ct_CXX" >&6; }
5819else
5820 { echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6; }
5822fi
5823
5824
5825 test -n "$ac_ct_CXX" && break
5826done
5827
5828 if test "x$ac_ct_CXX" = x; then
5829 CXX="g++"
5830 else
5831 case $cross_compiling:$ac_tool_warned in
5832yes:)
5833{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5834whose name does not start with the host triplet. If you think this
5835configuration is useful to you, please write to autoconf@gnu.org." >&5
5836echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5837whose name does not start with the host triplet. If you think this
5838configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5839ac_tool_warned=yes ;;
5840esac
5841 CXX=$ac_ct_CXX
5842 fi
5843fi
5844
5845 fi
5846fi
5847# Provide some information about the compiler.
5848echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5849ac_compiler=`set X $ac_compile; echo $2`
5850{ (ac_try="$ac_compiler --version >&5"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compiler --version >&5") 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5860{ (ac_try="$ac_compiler -v >&5"
5861case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compiler -v >&5") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }
5870{ (ac_try="$ac_compiler -V >&5"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compiler -V >&5") 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }
5880
5881{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5882echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5883if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892
5893int
5894main ()
5895{
5896#ifndef __GNUC__
5897 choke me
5898#endif
5899
5900 ;
5901 return 0;
5902}
5903_ACEOF
5904rm -f conftest.$ac_objext
5905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
5910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5912 ac_status=$?
5913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5925 ac_status=$?
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005938 ac_compiler_gnu=yes
5939else
5940 echo "$as_me: failed program was:" >&5
5941sed 's/^/| /' conftest.$ac_ext >&5
5942
5943 ac_compiler_gnu=no
5944fi
5945
5946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5948
5949fi
5950{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5951echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5952GXX=`test $ac_compiler_gnu = yes && echo yes`
5953ac_test_CXXFLAGS=${CXXFLAGS+set}
5954ac_save_CXXFLAGS=$CXXFLAGS
5955{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5956echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5957if test "${ac_cv_prog_cxx_g+set}" = set; then
5958 echo $ECHO_N "(cached) $ECHO_C" >&6
5959else
5960 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5961 ac_cxx_werror_flag=yes
5962 ac_cv_prog_cxx_g=no
5963 CXXFLAGS="-g"
5964 cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h. */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h. */
5970
5971int
5972main ()
5973{
5974
5975 ;
5976 return 0;
5977}
5978_ACEOF
5979rm -f conftest.$ac_objext
5980if { (ac_try="$ac_compile"
5981case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984esac
5985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_compile") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005992 (exit $ac_status); } &&
5993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997esac
5998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; } &&
6003 { ac_try='test -s conftest.$ac_objext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6010 ac_status=$?
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006013 ac_cv_prog_cxx_g=yes
6014else
6015 echo "$as_me: failed program was:" >&5
6016sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 CXXFLAGS=""
6019 cat >conftest.$ac_ext <<_ACEOF
6020/* confdefs.h. */
6021_ACEOF
6022cat confdefs.h >>conftest.$ac_ext
6023cat >>conftest.$ac_ext <<_ACEOF
6024/* end confdefs.h. */
6025
6026int
6027main ()
6028{
6029
6030 ;
6031 return 0;
6032}
6033_ACEOF
6034rm -f conftest.$ac_objext
6035if { (ac_try="$ac_compile"
6036case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6049 { (case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052esac
6053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_try") 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; } &&
6058 { ac_try='test -s conftest.$ac_objext'
6059 { (case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062esac
6063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6064 (eval "$ac_try") 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006068 :
6069else
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6074 CXXFLAGS="-g"
6075 cat >conftest.$ac_ext <<_ACEOF
6076/* confdefs.h. */
6077_ACEOF
6078cat confdefs.h >>conftest.$ac_ext
6079cat >>conftest.$ac_ext <<_ACEOF
6080/* end confdefs.h. */
6081
6082int
6083main ()
6084{
6085
6086 ;
6087 return 0;
6088}
6089_ACEOF
6090rm -f conftest.$ac_objext
6091if { (ac_try="$ac_compile"
6092case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006103 (exit $ac_status); } &&
6104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6105 { (case "(($ac_try" in
6106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6107 *) ac_try_echo=$ac_try;;
6108esac
6109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_try") 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_try") 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006124 ac_cv_prog_cxx_g=yes
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129
6130fi
6131
6132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133fi
6134
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136fi
6137
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6140fi
6141{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6142echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6143if test "$ac_test_CXXFLAGS" = set; then
6144 CXXFLAGS=$ac_save_CXXFLAGS
6145elif test $ac_cv_prog_cxx_g = yes; then
6146 if test "$GXX" = yes; then
6147 CXXFLAGS="-g -O2"
6148 else
6149 CXXFLAGS="-g"
6150 fi
6151else
6152 if test "$GXX" = yes; then
6153 CXXFLAGS="-O2"
6154 else
6155 CXXFLAGS=
6156 fi
6157fi
6158ac_ext=c
6159ac_cpp='$CPP $CPPFLAGS'
6160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6162ac_compiler_gnu=$ac_cv_c_compiler_gnu
6163
6164{ echo "$as_me:$LINENO: checking " >&5
6165echo $ECHO_N "checking ... $ECHO_C" >&6; }
6166if test "${ac_cv_has_flex+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169 for ac_prog in flex lex
6170do
6171 # Extract the first word of "$ac_prog", so it can be a program name with args.
6172set dummy $ac_prog; ac_word=$2
6173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6175if test "${ac_cv_prog_LEX+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177else
6178 if test -n "$LEX"; then
6179 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6180else
6181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182for as_dir in $PATH
6183do
6184 IFS=$as_save_IFS
6185 test -z "$as_dir" && as_dir=.
6186 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006188 ac_cv_prog_LEX="$ac_prog"
6189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 break 2
6191 fi
6192done
6193done
6194IFS=$as_save_IFS
6195
6196fi
6197fi
6198LEX=$ac_cv_prog_LEX
6199if test -n "$LEX"; then
6200 { echo "$as_me:$LINENO: result: $LEX" >&5
6201echo "${ECHO_T}$LEX" >&6; }
6202else
6203 { echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6; }
6205fi
6206
6207
6208 test -n "$LEX" && break
6209done
6210test -n "$LEX" || LEX=":"
6211
Tanya Lattnercf067672008-01-17 05:57:22 +00006212if test -z "$LEXLIB"
6213then
6214 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6215echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6216if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 ac_check_lib_save_LIBS=$LIBS
6220LIBS="-lfl $LIBS"
6221cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h. */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h. */
6227
6228/* Override any GCC internal prototype to avoid an error.
6229 Use char because int might match the return type of a GCC
6230 builtin and then its argument prototype would still apply. */
6231#ifdef __cplusplus
6232extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006233#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006234char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006235int
Tanya Lattnercf067672008-01-17 05:57:22 +00006236main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006237{
Tanya Lattnercf067672008-01-17 05:57:22 +00006238return yywrap ();
6239 ;
6240 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006241}
Reid Spencera773bd52006-08-04 18:18:08 +00006242_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006243rm -f conftest.$ac_objext conftest$ac_exeext
6244if { (ac_try="$ac_link"
6245case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_link") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_try") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_lib_fl_yywrap=yes
6278else
6279 echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 ac_cv_lib_fl_yywrap=no
6283fi
6284
6285rm -f core conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287LIBS=$ac_check_lib_save_LIBS
6288fi
6289{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6290echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6291if test $ac_cv_lib_fl_yywrap = yes; then
6292 LEXLIB="-lfl"
6293else
6294 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6295echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6296if test "${ac_cv_lib_l_yywrap+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298else
6299 ac_check_lib_save_LIBS=$LIBS
6300LIBS="-ll $LIBS"
6301cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h. */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h. */
6307
6308/* Override any GCC internal prototype to avoid an error.
6309 Use char because int might match the return type of a GCC
6310 builtin and then its argument prototype would still apply. */
6311#ifdef __cplusplus
6312extern "C"
6313#endif
6314char yywrap ();
6315int
6316main ()
6317{
6318return yywrap ();
6319 ;
6320 return 0;
6321}
6322_ACEOF
6323rm -f conftest.$ac_objext conftest$ac_exeext
6324if { (ac_try="$ac_link"
6325case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328esac
6329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_link") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } &&
6337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6338 { (case "(($ac_try" in
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6341esac
6342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_try") 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }; } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351esac
6352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_try") 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_lib_l_yywrap=yes
6358else
6359 echo "$as_me: failed program was:" >&5
6360sed 's/^/| /' conftest.$ac_ext >&5
6361
6362 ac_cv_lib_l_yywrap=no
6363fi
6364
6365rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6367LIBS=$ac_check_lib_save_LIBS
6368fi
6369{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6370echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6371if test $ac_cv_lib_l_yywrap = yes; then
6372 LEXLIB="-ll"
6373fi
6374
6375fi
6376
6377fi
6378
6379if test "x$LEX" != "x:"; then
6380 { echo "$as_me:$LINENO: checking lex output file root" >&5
6381echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6382if test "${ac_cv_prog_lex_root+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6384else
6385 # The minimal lex program is just a single line: %%. But some broken lexes
6386# (Solaris, I think it was) want two %% lines, so accommodate them.
6387cat >conftest.l <<_ACEOF
6388%%
6389%%
6390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006391{ (ac_try="$LEX conftest.l"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$LEX conftest.l") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); }
6401if test -f lex.yy.c; then
6402 ac_cv_prog_lex_root=lex.yy
6403elif test -f lexyy.c; then
6404 ac_cv_prog_lex_root=lexyy
6405else
6406 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6407echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6408 { (exit 1); exit 1; }; }
6409fi
6410fi
6411{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6412echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006413rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006414LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6415
Scott Michel96dcd2b2007-12-05 21:24:02 +00006416{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6417echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6418if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006422# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006423# not all implementations provide the %pointer and %array declarations.
6424ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006425echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006426ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006427LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006428cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006429`cat $LEX_OUTPUT_ROOT.c`
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (ac_try="$ac_link"
6433case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436esac
6437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006438 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006439 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006440 grep -v '^ *+' conftest.er1 >conftest.err
6441 rm -f conftest.er1
6442 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006444 (exit $ac_status); } &&
6445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6446 { (case "(($ac_try" in
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6449esac
6450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_try") 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6459esac
6460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006465 ac_cv_prog_lex_yytext_pointer=yes
6466else
6467 echo "$as_me: failed program was:" >&5
6468sed 's/^/| /' conftest.$ac_ext >&5
6469
6470
6471fi
6472
Tanya Lattnercf067672008-01-17 05:57:22 +00006473rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006474 conftest$ac_exeext conftest.$ac_ext
6475LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006476rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006477
6478fi
6479{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6480echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6481if test $ac_cv_prog_lex_yytext_pointer = yes; then
6482
6483cat >>confdefs.h <<\_ACEOF
6484#define YYTEXT_POINTER 1
6485_ACEOF
6486
6487fi
6488
6489fi
6490
6491fi
6492{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6493echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6494if test "$LEX" != "flex"; then
6495 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6496echo "$as_me: error: flex not found but required" >&2;}
6497 { (exit 1); exit 1; }; }
6498else
6499 FLEX=flex
6500
6501fi
6502
6503{ echo "$as_me:$LINENO: checking " >&5
6504echo $ECHO_N "checking ... $ECHO_C" >&6; }
6505if test "${llvm_cv_has_bison+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 for ac_prog in 'bison -y' byacc
6509do
6510 # Extract the first word of "$ac_prog", so it can be a program name with args.
6511set dummy $ac_prog; ac_word=$2
6512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6514if test "${ac_cv_prog_YACC+set}" = set; then
6515 echo $ECHO_N "(cached) $ECHO_C" >&6
6516else
6517 if test -n "$YACC"; then
6518 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6519else
6520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521for as_dir in $PATH
6522do
6523 IFS=$as_save_IFS
6524 test -z "$as_dir" && as_dir=.
6525 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006527 ac_cv_prog_YACC="$ac_prog"
6528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6529 break 2
6530 fi
6531done
6532done
6533IFS=$as_save_IFS
6534
6535fi
6536fi
6537YACC=$ac_cv_prog_YACC
6538if test -n "$YACC"; then
6539 { echo "$as_me:$LINENO: result: $YACC" >&5
6540echo "${ECHO_T}$YACC" >&6; }
6541else
6542 { echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6; }
6544fi
6545
6546
6547 test -n "$YACC" && break
6548done
6549test -n "$YACC" || YACC="yacc"
6550
6551fi
6552{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6553echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6554if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006555
6556 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6557echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006558else
6559 BISON=bison
6560
6561fi
6562
6563{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6564echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6565if test "${lt_cv_path_NM+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6567else
6568 if test -n "$NM"; then
6569 # Let the user override the test.
6570 lt_cv_path_NM="$NM"
6571else
6572 lt_nm_to_check="${ac_tool_prefix}nm"
6573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6574 lt_nm_to_check="$lt_nm_to_check nm"
6575 fi
6576 for lt_tmp_nm in $lt_nm_to_check; do
6577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6579 IFS="$lt_save_ifs"
6580 test -z "$ac_dir" && ac_dir=.
6581 tmp_nm="$ac_dir/$lt_tmp_nm"
6582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6583 # Check to see if the nm accepts a BSD-compat flag.
6584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6585 # nm: unknown option "B" ignored
6586 # Tru64's nm complains that /dev/null is an invalid object file
6587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6588 */dev/null* | *'Invalid file or object type'*)
6589 lt_cv_path_NM="$tmp_nm -B"
6590 break
6591 ;;
6592 *)
6593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6594 */dev/null*)
6595 lt_cv_path_NM="$tmp_nm -p"
6596 break
6597 ;;
6598 *)
6599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6600 continue # so that we can try to find one that supports BSD flags
6601 ;;
6602 esac
6603 ;;
6604 esac
6605 fi
6606 done
6607 IFS="$lt_save_ifs"
6608 done
6609 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6610fi
6611fi
6612{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6613echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6614NM="$lt_cv_path_NM"
6615
6616
6617
6618{ echo "$as_me:$LINENO: checking for GNU make" >&5
6619echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6620if test "${llvm_cv_gnu_make_command+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622else
6623 llvm_cv_gnu_make_command=''
6624 for a in "$MAKE" make gmake gnumake ; do
6625 if test -z "$a" ; then continue ; fi ;
6626 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6627 then
6628 llvm_cv_gnu_make_command=$a ;
6629 break;
6630 fi
6631 done
6632fi
6633{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6634echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6635 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6636 ifGNUmake='' ;
6637 else
6638 ifGNUmake='#' ;
6639 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6640echo "${ECHO_T}\"Not found\"" >&6; };
6641 fi
6642
6643
6644{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6645echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6646LN_S=$as_ln_s
6647if test "$LN_S" = "ln -s"; then
6648 { echo "$as_me:$LINENO: result: yes" >&5
6649echo "${ECHO_T}yes" >&6; }
6650else
6651 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6652echo "${ECHO_T}no, using $LN_S" >&6; }
6653fi
6654
6655# Extract the first word of "cmp", so it can be a program name with args.
6656set dummy cmp; ac_word=$2
6657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659if test "${ac_cv_path_CMP+set}" = set; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
6661else
6662 case $CMP in
6663 [\\/]* | ?:[\\/]*)
6664 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6665 ;;
6666 *)
6667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668for as_dir in $PATH
6669do
6670 IFS=$as_save_IFS
6671 test -z "$as_dir" && as_dir=.
6672 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006674 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 break 2
6677 fi
6678done
6679done
6680IFS=$as_save_IFS
6681
6682 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6683 ;;
6684esac
6685fi
6686CMP=$ac_cv_path_CMP
6687if test -n "$CMP"; then
6688 { echo "$as_me:$LINENO: result: $CMP" >&5
6689echo "${ECHO_T}$CMP" >&6; }
6690else
6691 { echo "$as_me:$LINENO: result: no" >&5
6692echo "${ECHO_T}no" >&6; }
6693fi
6694
6695
6696# Extract the first word of "cp", so it can be a program name with args.
6697set dummy cp; ac_word=$2
6698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700if test "${ac_cv_path_CP+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 case $CP in
6704 [\\/]* | ?:[\\/]*)
6705 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6706 ;;
6707 *)
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709for as_dir in $PATH
6710do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006715 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719done
6720done
6721IFS=$as_save_IFS
6722
6723 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6724 ;;
6725esac
6726fi
6727CP=$ac_cv_path_CP
6728if test -n "$CP"; then
6729 { echo "$as_me:$LINENO: result: $CP" >&5
6730echo "${ECHO_T}$CP" >&6; }
6731else
6732 { echo "$as_me:$LINENO: result: no" >&5
6733echo "${ECHO_T}no" >&6; }
6734fi
6735
6736
6737# Extract the first word of "date", so it can be a program name with args.
6738set dummy date; ac_word=$2
6739{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6741if test "${ac_cv_path_DATE+set}" = set; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744 case $DATE in
6745 [\\/]* | ?:[\\/]*)
6746 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6747 ;;
6748 *)
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006756 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761done
6762IFS=$as_save_IFS
6763
6764 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6765 ;;
6766esac
6767fi
6768DATE=$ac_cv_path_DATE
6769if test -n "$DATE"; then
6770 { echo "$as_me:$LINENO: result: $DATE" >&5
6771echo "${ECHO_T}$DATE" >&6; }
6772else
6773 { echo "$as_me:$LINENO: result: no" >&5
6774echo "${ECHO_T}no" >&6; }
6775fi
6776
6777
6778# Extract the first word of "find", so it can be a program name with args.
6779set dummy find; ac_word=$2
6780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6782if test "${ac_cv_path_FIND+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785 case $FIND in
6786 [\\/]* | ?:[\\/]*)
6787 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6788 ;;
6789 *)
6790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6791for as_dir in $PATH
6792do
6793 IFS=$as_save_IFS
6794 test -z "$as_dir" && as_dir=.
6795 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006797 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 break 2
6800 fi
6801done
6802done
6803IFS=$as_save_IFS
6804
6805 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6806 ;;
6807esac
6808fi
6809FIND=$ac_cv_path_FIND
6810if test -n "$FIND"; then
6811 { echo "$as_me:$LINENO: result: $FIND" >&5
6812echo "${ECHO_T}$FIND" >&6; }
6813else
6814 { echo "$as_me:$LINENO: result: no" >&5
6815echo "${ECHO_T}no" >&6; }
6816fi
6817
6818
6819# Extract the first word of "grep", so it can be a program name with args.
6820set dummy grep; ac_word=$2
6821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823if test "${ac_cv_path_GREP+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6825else
6826 case $GREP in
6827 [\\/]* | ?:[\\/]*)
6828 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6829 ;;
6830 *)
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832for as_dir in $PATH
6833do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006838 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842done
6843done
6844IFS=$as_save_IFS
6845
6846 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6847 ;;
6848esac
6849fi
6850GREP=$ac_cv_path_GREP
6851if test -n "$GREP"; then
6852 { echo "$as_me:$LINENO: result: $GREP" >&5
6853echo "${ECHO_T}$GREP" >&6; }
6854else
6855 { echo "$as_me:$LINENO: result: no" >&5
6856echo "${ECHO_T}no" >&6; }
6857fi
6858
6859
6860# Extract the first word of "mkdir", so it can be a program name with args.
6861set dummy mkdir; ac_word=$2
6862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6864if test "${ac_cv_path_MKDIR+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6866else
6867 case $MKDIR in
6868 [\\/]* | ?:[\\/]*)
6869 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6870 ;;
6871 *)
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873for as_dir in $PATH
6874do
6875 IFS=$as_save_IFS
6876 test -z "$as_dir" && as_dir=.
6877 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006879 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 break 2
6882 fi
6883done
6884done
6885IFS=$as_save_IFS
6886
6887 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6888 ;;
6889esac
6890fi
6891MKDIR=$ac_cv_path_MKDIR
6892if test -n "$MKDIR"; then
6893 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6894echo "${ECHO_T}$MKDIR" >&6; }
6895else
6896 { echo "$as_me:$LINENO: result: no" >&5
6897echo "${ECHO_T}no" >&6; }
6898fi
6899
6900
6901# Extract the first word of "mv", so it can be a program name with args.
6902set dummy mv; ac_word=$2
6903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905if test "${ac_cv_path_MV+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6907else
6908 case $MV in
6909 [\\/]* | ?:[\\/]*)
6910 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6911 ;;
6912 *)
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914for as_dir in $PATH
6915do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006920 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924done
6925done
6926IFS=$as_save_IFS
6927
6928 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6929 ;;
6930esac
6931fi
6932MV=$ac_cv_path_MV
6933if test -n "$MV"; then
6934 { echo "$as_me:$LINENO: result: $MV" >&5
6935echo "${ECHO_T}$MV" >&6; }
6936else
6937 { echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6; }
6939fi
6940
6941
6942if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6947if test "${ac_cv_prog_RANLIB+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949else
6950 if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952else
6953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH
6955do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964done
6965done
6966IFS=$as_save_IFS
6967
6968fi
6969fi
6970RANLIB=$ac_cv_prog_RANLIB
6971if test -n "$RANLIB"; then
6972 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6973echo "${ECHO_T}$RANLIB" >&6; }
6974else
6975 { echo "$as_me:$LINENO: result: no" >&5
6976echo "${ECHO_T}no" >&6; }
6977fi
6978
6979
6980fi
6981if test -z "$ac_cv_prog_RANLIB"; then
6982 ac_ct_RANLIB=$RANLIB
6983 # Extract the first word of "ranlib", so it can be a program name with args.
6984set dummy ranlib; ac_word=$2
6985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
6989else
6990 if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005done
7006IFS=$as_save_IFS
7007
7008fi
7009fi
7010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011if test -n "$ac_ct_RANLIB"; then
7012 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7013echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7014else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019 if test "x$ac_ct_RANLIB" = x; then
7020 RANLIB=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023yes:)
7024{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7025whose name does not start with the host triplet. If you think this
7026configuration is useful to you, please write to autoconf@gnu.org." >&5
7027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7028whose name does not start with the host triplet. If you think this
7029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7030ac_tool_warned=yes ;;
7031esac
7032 RANLIB=$ac_ct_RANLIB
7033 fi
7034else
7035 RANLIB="$ac_cv_prog_RANLIB"
7036fi
7037
7038# Extract the first word of "rm", so it can be a program name with args.
7039set dummy rm; ac_word=$2
7040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042if test "${ac_cv_path_RM+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044else
7045 case $RM in
7046 [\\/]* | ?:[\\/]*)
7047 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7048 ;;
7049 *)
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007057 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7060 fi
7061done
7062done
7063IFS=$as_save_IFS
7064
7065 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7066 ;;
7067esac
7068fi
7069RM=$ac_cv_path_RM
7070if test -n "$RM"; then
7071 { echo "$as_me:$LINENO: result: $RM" >&5
7072echo "${ECHO_T}$RM" >&6; }
7073else
7074 { echo "$as_me:$LINENO: result: no" >&5
7075echo "${ECHO_T}no" >&6; }
7076fi
7077
7078
7079# Extract the first word of "sed", so it can be a program name with args.
7080set dummy sed; ac_word=$2
7081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7083if test "${ac_cv_path_SED+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7085else
7086 case $SED in
7087 [\\/]* | ?:[\\/]*)
7088 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7089 ;;
7090 *)
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094 IFS=$as_save_IFS
7095 test -z "$as_dir" && as_dir=.
7096 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007098 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100 break 2
7101 fi
7102done
7103done
7104IFS=$as_save_IFS
7105
7106 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7107 ;;
7108esac
7109fi
7110SED=$ac_cv_path_SED
7111if test -n "$SED"; then
7112 { echo "$as_me:$LINENO: result: $SED" >&5
7113echo "${ECHO_T}$SED" >&6; }
7114else
7115 { echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6; }
7117fi
7118
7119
7120# Extract the first word of "tar", so it can be a program name with args.
7121set dummy tar; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_TAR+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $TAR in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007139 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7148 ;;
7149esac
7150fi
7151TAR=$ac_cv_path_TAR
7152if test -n "$TAR"; then
7153 { echo "$as_me:$LINENO: result: $TAR" >&5
7154echo "${ECHO_T}$TAR" >&6; }
7155else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158fi
7159
7160
7161# Extract the first word of "pwd", so it can be a program name with args.
7162set dummy pwd; 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_BINPWD+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $BINPWD in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_BINPWD="$BINPWD" # 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
Tanya Lattnercf067672008-01-17 05:57:22 +00007179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007180 ac_cv_path_BINPWD="$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 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7189 ;;
7190esac
7191fi
7192BINPWD=$ac_cv_path_BINPWD
7193if test -n "$BINPWD"; then
7194 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7195echo "${ECHO_T}$BINPWD" >&6; }
7196else
7197 { echo "$as_me:$LINENO: result: no" >&5
7198echo "${ECHO_T}no" >&6; }
7199fi
7200
7201
7202
7203# Extract the first word of "Graphviz", so it can be a program name with args.
7204set dummy Graphviz; ac_word=$2
7205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209else
7210 case $GRAPHVIZ in
7211 [\\/]* | ?:[\\/]*)
7212 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7213 ;;
7214 *)
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007222 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226done
7227done
7228IFS=$as_save_IFS
7229
7230 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7231 ;;
7232esac
7233fi
7234GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7235if test -n "$GRAPHVIZ"; then
7236 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7237echo "${ECHO_T}$GRAPHVIZ" >&6; }
7238else
7239 { echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6; }
7241fi
7242
7243
7244if test "$GRAPHVIZ" != "echo Graphviz" ; then
7245
7246cat >>confdefs.h <<\_ACEOF
7247#define HAVE_GRAPHVIZ 1
7248_ACEOF
7249
Jeff Cohen28783c32007-01-12 18:22:38 +00007250 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007251 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7252 fi
7253
7254cat >>confdefs.h <<_ACEOF
7255#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7256_ACEOF
7257
7258fi
7259# Extract the first word of "dot", so it can be a program name with args.
7260set dummy dot; ac_word=$2
7261{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263if test "${ac_cv_path_DOT+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7265else
7266 case $DOT in
7267 [\\/]* | ?:[\\/]*)
7268 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7269 ;;
7270 *)
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272for as_dir in $PATH
7273do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007278 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282done
7283done
7284IFS=$as_save_IFS
7285
7286 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7287 ;;
7288esac
7289fi
7290DOT=$ac_cv_path_DOT
7291if test -n "$DOT"; then
7292 { echo "$as_me:$LINENO: result: $DOT" >&5
7293echo "${ECHO_T}$DOT" >&6; }
7294else
7295 { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299
7300if test "$DOT" != "echo dot" ; then
7301
7302cat >>confdefs.h <<\_ACEOF
7303#define HAVE_DOT 1
7304_ACEOF
7305
Jeff Cohen28783c32007-01-12 18:22:38 +00007306 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007307 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7308 fi
7309
7310cat >>confdefs.h <<_ACEOF
7311#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7312_ACEOF
7313
7314fi
7315for ac_prog in gv gsview32
7316do
7317 # Extract the first word of "$ac_prog", so it can be a program name with args.
7318set dummy $ac_prog; ac_word=$2
7319{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321if test "${ac_cv_path_GV+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324 case $GV in
7325 [\\/]* | ?:[\\/]*)
7326 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7327 ;;
7328 *)
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332 IFS=$as_save_IFS
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007336 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 break 2
7339 fi
7340done
7341done
7342IFS=$as_save_IFS
7343
7344 ;;
7345esac
7346fi
7347GV=$ac_cv_path_GV
7348if test -n "$GV"; then
7349 { echo "$as_me:$LINENO: result: $GV" >&5
7350echo "${ECHO_T}$GV" >&6; }
7351else
7352 { echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6; }
7354fi
7355
7356
7357 test -n "$GV" && break
7358done
7359test -n "$GV" || GV="echo gv"
7360
7361if test "$GV" != "echo gv" ; then
7362
7363cat >>confdefs.h <<\_ACEOF
7364#define HAVE_GV 1
7365_ACEOF
7366
Jeff Cohen28783c32007-01-12 18:22:38 +00007367 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007368 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7369 fi
7370
7371cat >>confdefs.h <<_ACEOF
7372#define LLVM_PATH_GV "$GV${EXEEXT}"
7373_ACEOF
7374
7375fi
7376# Extract the first word of "dotty", so it can be a program name with args.
7377set dummy dotty; ac_word=$2
7378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7380if test "${ac_cv_path_DOTTY+set}" = set; then
7381 echo $ECHO_N "(cached) $ECHO_C" >&6
7382else
7383 case $DOTTY in
7384 [\\/]* | ?:[\\/]*)
7385 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7386 ;;
7387 *)
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007395 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 break 2
7398 fi
7399done
7400done
7401IFS=$as_save_IFS
7402
7403 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7404 ;;
7405esac
7406fi
7407DOTTY=$ac_cv_path_DOTTY
7408if test -n "$DOTTY"; then
7409 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7410echo "${ECHO_T}$DOTTY" >&6; }
7411else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
7414fi
7415
7416
7417if test "$DOTTY" != "echo dotty" ; then
7418
7419cat >>confdefs.h <<\_ACEOF
7420#define HAVE_DOTTY 1
7421_ACEOF
7422
Jeff Cohen28783c32007-01-12 18:22:38 +00007423 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007424 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7425 fi
7426
7427cat >>confdefs.h <<_ACEOF
7428#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7429_ACEOF
7430
7431fi
7432
7433
7434# Extract the first word of "perl", so it can be a program name with args.
7435set dummy perl; ac_word=$2
7436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438if test "${ac_cv_path_PERL+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441 case $PERL in
7442 [\\/]* | ?:[\\/]*)
7443 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7444 ;;
7445 *)
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447for as_dir in $PATH
7448do
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007453 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7456 fi
7457done
7458done
7459IFS=$as_save_IFS
7460
7461 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7462 ;;
7463esac
7464fi
7465PERL=$ac_cv_path_PERL
7466if test -n "$PERL"; then
7467 { echo "$as_me:$LINENO: result: $PERL" >&5
7468echo "${ECHO_T}$PERL" >&6; }
7469else
7470 { echo "$as_me:$LINENO: result: no" >&5
7471echo "${ECHO_T}no" >&6; }
7472fi
7473
7474
7475if test "$PERL" != "none"; then
7476 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7477echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7478 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7479 { echo "$as_me:$LINENO: result: yes" >&5
7480echo "${ECHO_T}yes" >&6; }
7481 else
7482 PERL=none
7483 { echo "$as_me:$LINENO: result: not found" >&5
7484echo "${ECHO_T}not found" >&6; }
7485 fi
7486fi
7487
7488
7489if test x"$PERL" = xnone; then
7490 HAVE_PERL=0
7491
Reid Spencer59807fa2007-05-17 18:11:03 +00007492 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7493echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7494 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007495else
7496 HAVE_PERL=1
7497
7498fi
7499
7500# Find a good install program. We prefer a C program (faster),
7501# so one script is as good as another. But avoid the broken or
7502# incompatible versions:
7503# SysV /etc/install, /usr/sbin/install
7504# SunOS /usr/etc/install
7505# IRIX /sbin/install
7506# AIX /bin/install
7507# AmigaOS /C/install, which installs bootblocks on floppy discs
7508# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7509# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7510# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7511# OS/2's system install, which has a completely different semantic
7512# ./install, which can be erroneously created by make from ./install.sh.
7513{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7514echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7515if test -z "$INSTALL"; then
7516if test "${ac_cv_path_install+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7518else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520for as_dir in $PATH
7521do
7522 IFS=$as_save_IFS
7523 test -z "$as_dir" && as_dir=.
7524 # Account for people who put trailing slashes in PATH elements.
7525case $as_dir/ in
7526 ./ | .// | /cC/* | \
7527 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7528 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7529 /usr/ucb/* ) ;;
7530 *)
7531 # OSF1 and SCO ODT 3.0 have their own names for install.
7532 # Don't use installbsd from OSF since it installs stuff as root
7533 # by default.
7534 for ac_prog in ginstall scoinst install; do
7535 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007536 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007537 if test $ac_prog = install &&
7538 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7539 # AIX install. It has an incompatible calling convention.
7540 :
7541 elif test $ac_prog = install &&
7542 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7543 # program-specific install script used by HP pwplus--don't use.
7544 :
7545 else
7546 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7547 break 3
7548 fi
7549 fi
7550 done
7551 done
7552 ;;
7553esac
7554done
7555IFS=$as_save_IFS
7556
7557
7558fi
7559 if test "${ac_cv_path_install+set}" = set; then
7560 INSTALL=$ac_cv_path_install
7561 else
7562 # As a last resort, use the slow shell script. Don't cache a
7563 # value for INSTALL within a source directory, because that will
7564 # break other packages using the cache if that directory is
7565 # removed, or if the value is a relative name.
7566 INSTALL=$ac_install_sh
7567 fi
7568fi
7569{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7570echo "${ECHO_T}$INSTALL" >&6; }
7571
7572# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7573# It thinks the first close brace ends the variable substitution.
7574test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7575
7576test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7577
7578test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7579
7580
7581# Extract the first word of "bzip2", so it can be a program name with args.
7582set dummy bzip2; ac_word=$2
7583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585if test "${ac_cv_path_BZIP2+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588 case $BZIP2 in
7589 [\\/]* | ?:[\\/]*)
7590 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7591 ;;
7592 *)
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007600 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 break 2
7603 fi
7604done
7605done
7606IFS=$as_save_IFS
7607
Reid Spencera773bd52006-08-04 18:18:08 +00007608 ;;
7609esac
7610fi
7611BZIP2=$ac_cv_path_BZIP2
7612if test -n "$BZIP2"; then
7613 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7614echo "${ECHO_T}$BZIP2" >&6; }
7615else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
7618fi
7619
7620
7621# Extract the first word of "doxygen", so it can be a program name with args.
7622set dummy doxygen; ac_word=$2
7623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625if test "${ac_cv_path_DOXYGEN+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 case $DOXYGEN in
7629 [\\/]* | ?:[\\/]*)
7630 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7631 ;;
7632 *)
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007640 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645done
7646IFS=$as_save_IFS
7647
Reid Spencera773bd52006-08-04 18:18:08 +00007648 ;;
7649esac
7650fi
7651DOXYGEN=$ac_cv_path_DOXYGEN
7652if test -n "$DOXYGEN"; then
7653 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7654echo "${ECHO_T}$DOXYGEN" >&6; }
7655else
7656 { echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6; }
7658fi
7659
7660
Reid Spencera773bd52006-08-04 18:18:08 +00007661# Extract the first word of "groff", so it can be a program name with args.
7662set dummy groff; ac_word=$2
7663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7665if test "${ac_cv_path_GROFF+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668 case $GROFF in
7669 [\\/]* | ?:[\\/]*)
7670 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7671 ;;
7672 *)
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007680 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685done
7686IFS=$as_save_IFS
7687
Reid Spencera773bd52006-08-04 18:18:08 +00007688 ;;
7689esac
7690fi
7691GROFF=$ac_cv_path_GROFF
7692if test -n "$GROFF"; then
7693 { echo "$as_me:$LINENO: result: $GROFF" >&5
7694echo "${ECHO_T}$GROFF" >&6; }
7695else
7696 { echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6; }
7698fi
7699
7700
7701# Extract the first word of "gzip", so it can be a program name with args.
7702set dummy gzip; ac_word=$2
7703{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705if test "${ac_cv_path_GZIP+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708 case $GZIP in
7709 [\\/]* | ?:[\\/]*)
7710 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7711 ;;
7712 *)
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007720 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724done
7725done
7726IFS=$as_save_IFS
7727
Reid Spencera773bd52006-08-04 18:18:08 +00007728 ;;
7729esac
7730fi
7731GZIP=$ac_cv_path_GZIP
7732if test -n "$GZIP"; then
7733 { echo "$as_me:$LINENO: result: $GZIP" >&5
7734echo "${ECHO_T}$GZIP" >&6; }
7735else
7736 { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
7738fi
7739
7740
7741# Extract the first word of "pod2html", so it can be a program name with args.
7742set dummy pod2html; ac_word=$2
7743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745if test "${ac_cv_path_POD2HTML+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 case $POD2HTML in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007760 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766IFS=$as_save_IFS
7767
Reid Spencera773bd52006-08-04 18:18:08 +00007768 ;;
7769esac
7770fi
7771POD2HTML=$ac_cv_path_POD2HTML
7772if test -n "$POD2HTML"; then
7773 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7774echo "${ECHO_T}$POD2HTML" >&6; }
7775else
7776 { echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6; }
7778fi
7779
7780
7781# Extract the first word of "pod2man", so it can be a program name with args.
7782set dummy pod2man; ac_word=$2
7783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_POD2MAN+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 case $POD2MAN in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007800 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806IFS=$as_save_IFS
7807
Reid Spencera773bd52006-08-04 18:18:08 +00007808 ;;
7809esac
7810fi
7811POD2MAN=$ac_cv_path_POD2MAN
7812if test -n "$POD2MAN"; then
7813 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7814echo "${ECHO_T}$POD2MAN" >&6; }
7815else
7816 { echo "$as_me:$LINENO: result: no" >&5
7817echo "${ECHO_T}no" >&6; }
7818fi
7819
7820
7821# Extract the first word of "runtest", so it can be a program name with args.
7822set dummy runtest; ac_word=$2
7823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7825if test "${ac_cv_path_RUNTEST+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 case $RUNTEST in
7829 [\\/]* | ?:[\\/]*)
7830 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7831 ;;
7832 *)
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834for as_dir in $PATH
7835do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007840 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844done
7845done
7846IFS=$as_save_IFS
7847
Reid Spencera773bd52006-08-04 18:18:08 +00007848 ;;
7849esac
7850fi
7851RUNTEST=$ac_cv_path_RUNTEST
7852if test -n "$RUNTEST"; then
7853 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7854echo "${ECHO_T}$RUNTEST" >&6; }
7855else
7856 { echo "$as_me:$LINENO: result: no" >&5
7857echo "${ECHO_T}no" >&6; }
7858fi
7859
7860
7861
7862no_itcl=true
7863{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7864echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7865
7866# Check whether --with-tclinclude was given.
7867if test "${with_tclinclude+set}" = set; then
7868 withval=$with_tclinclude; with_tclinclude=${withval}
7869else
7870 with_tclinclude=''
7871fi
7872
7873if test "${ac_cv_path_tclsh+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876
7877if test x"${with_tclinclude}" != x ; then
7878 if test -f ${with_tclinclude}/tclsh ; then
7879 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7880 elif test -f ${with_tclinclude}/src/tclsh ; then
7881 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7882 else
7883 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7884echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7885 { (exit 1); exit 1; }; }
7886 fi
7887fi
7888
7889if test x"${ac_cv_path_tclsh}" = x ; then
7890 { echo "$as_me:$LINENO: result: none" >&5
7891echo "${ECHO_T}none" >&6; }
7892 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
7893do
7894 # Extract the first word of "$ac_prog", so it can be a program name with args.
7895set dummy $ac_prog; ac_word=$2
7896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7898if test "${ac_cv_path_TCLSH+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900else
7901 case $TCLSH in
7902 [\\/]* | ?:[\\/]*)
7903 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7904 ;;
7905 *)
7906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
7911 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007913 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 break 2
7916 fi
7917done
7918done
7919IFS=$as_save_IFS
7920
7921 ;;
7922esac
7923fi
7924TCLSH=$ac_cv_path_TCLSH
7925if test -n "$TCLSH"; then
7926 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7927echo "${ECHO_T}$TCLSH" >&6; }
7928else
7929 { echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6; }
7931fi
7932
7933
7934 test -n "$TCLSH" && break
7935done
7936
7937 if test x"${TCLSH}" = x ; then
7938 ac_cv_path_tclsh='';
7939 else
7940 ac_cv_path_tclsh="${TCLSH}";
7941 fi
7942else
7943 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7944echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7945 TCLSH="${ac_cv_path_tclsh}"
7946
7947fi
7948
7949fi
7950
7951# Extract the first word of "zip", so it can be a program name with args.
7952set dummy zip; ac_word=$2
7953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7955if test "${ac_cv_path_ZIP+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958 case $ZIP in
7959 [\\/]* | ?:[\\/]*)
7960 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7961 ;;
7962 *)
7963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964for as_dir in $PATH
7965do
7966 IFS=$as_save_IFS
7967 test -z "$as_dir" && as_dir=.
7968 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007970 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7972 break 2
7973 fi
7974done
7975done
7976IFS=$as_save_IFS
7977
Reid Spencera773bd52006-08-04 18:18:08 +00007978 ;;
7979esac
7980fi
7981ZIP=$ac_cv_path_ZIP
7982if test -n "$ZIP"; then
7983 { echo "$as_me:$LINENO: result: $ZIP" >&5
7984echo "${ECHO_T}$ZIP" >&6; }
7985else
7986 { echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6; }
7988fi
7989
7990
Gordon Henriksene7072162008-03-07 18:20:01 +00007991for ac_prog in ocamlc.opt ocamlc
7992do
7993 # Extract the first word of "$ac_prog", so it can be a program name with args.
7994set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007995{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7997if test "${ac_cv_path_OCAMLC+set}" = set; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000 case $OCAMLC in
8001 [\\/]* | ?:[\\/]*)
8002 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8003 ;;
8004 *)
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
8010 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008012 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8014 break 2
8015 fi
8016done
8017done
8018IFS=$as_save_IFS
8019
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008020 ;;
8021esac
8022fi
8023OCAMLC=$ac_cv_path_OCAMLC
8024if test -n "$OCAMLC"; then
8025 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8026echo "${ECHO_T}$OCAMLC" >&6; }
8027else
8028 { echo "$as_me:$LINENO: result: no" >&5
8029echo "${ECHO_T}no" >&6; }
8030fi
8031
8032
Gordon Henriksene7072162008-03-07 18:20:01 +00008033 test -n "$OCAMLC" && break
8034done
8035
8036for ac_prog in ocamlopt.opt ocamlopt
8037do
8038 # Extract the first word of "$ac_prog", so it can be a program name with args.
8039set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8042if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045 case $OCAMLOPT in
8046 [\\/]* | ?:[\\/]*)
8047 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8048 ;;
8049 *)
8050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051for as_dir in $PATH
8052do
8053 IFS=$as_save_IFS
8054 test -z "$as_dir" && as_dir=.
8055 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008057 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 break 2
8060 fi
8061done
8062done
8063IFS=$as_save_IFS
8064
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008065 ;;
8066esac
8067fi
8068OCAMLOPT=$ac_cv_path_OCAMLOPT
8069if test -n "$OCAMLOPT"; then
8070 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8071echo "${ECHO_T}$OCAMLOPT" >&6; }
8072else
8073 { echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6; }
8075fi
8076
8077
Gordon Henriksene7072162008-03-07 18:20:01 +00008078 test -n "$OCAMLOPT" && break
8079done
8080
8081for ac_prog in ocamldep.opt ocamldep
8082do
8083 # Extract the first word of "$ac_prog", so it can be a program name with args.
8084set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8087if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089else
8090 case $OCAMLDEP in
8091 [\\/]* | ?:[\\/]*)
8092 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8093 ;;
8094 *)
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
8100 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008102 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 break 2
8105 fi
8106done
8107done
8108IFS=$as_save_IFS
8109
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008110 ;;
8111esac
8112fi
8113OCAMLDEP=$ac_cv_path_OCAMLDEP
8114if test -n "$OCAMLDEP"; then
8115 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8116echo "${ECHO_T}$OCAMLDEP" >&6; }
8117else
8118 { echo "$as_me:$LINENO: result: no" >&5
8119echo "${ECHO_T}no" >&6; }
8120fi
8121
8122
Gordon Henriksene7072162008-03-07 18:20:01 +00008123 test -n "$OCAMLDEP" && break
8124done
8125
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008126for ac_prog in ocamldoc.opt ocamldoc
8127do
8128 # Extract the first word of "$ac_prog", so it can be a program name with args.
8129set dummy $ac_prog; ac_word=$2
8130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8132if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8134else
8135 case $OCAMLDOC in
8136 [\\/]* | ?:[\\/]*)
8137 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8138 ;;
8139 *)
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152done
8153IFS=$as_save_IFS
8154
8155 ;;
8156esac
8157fi
8158OCAMLDOC=$ac_cv_path_OCAMLDOC
8159if test -n "$OCAMLDOC"; then
8160 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8161echo "${ECHO_T}$OCAMLDOC" >&6; }
8162else
8163 { echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6; }
8165fi
8166
8167
8168 test -n "$OCAMLDOC" && break
8169done
8170
Reid Spencera773bd52006-08-04 18:18:08 +00008171
8172{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8173echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8174if test "${llvm_cv_link_use_r+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177 ac_ext=c
8178ac_cpp='$CPP $CPPFLAGS'
8179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183 oldcflags="$CFLAGS"
8184 CFLAGS="$CFLAGS -Wl,-R."
8185 cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h. */
8191
8192int
8193main ()
8194{
8195int main() { return 0; }
8196 ;
8197 return 0;
8198}
8199_ACEOF
8200rm -f conftest.$ac_objext conftest$ac_exeext
8201if { (ac_try="$ac_link"
8202case "(($ac_try" in
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8205esac
8206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>conftest.er1
8208 ac_status=$?
8209 grep -v '^ *+' conftest.er1 >conftest.err
8210 rm -f conftest.er1
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008213 (exit $ac_status); } &&
8214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
8221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; } &&
8224 { ac_try='test -s conftest$ac_exeext'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008234 llvm_cv_link_use_r=yes
8235else
8236 echo "$as_me: failed program was:" >&5
8237sed 's/^/| /' conftest.$ac_ext >&5
8238
8239 llvm_cv_link_use_r=no
8240fi
8241
Tanya Lattnercf067672008-01-17 05:57:22 +00008242rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008243 conftest$ac_exeext conftest.$ac_ext
8244 CFLAGS="$oldcflags"
8245 ac_ext=c
8246ac_cpp='$CPP $CPPFLAGS'
8247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251
8252fi
8253{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8254echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8255if test "$llvm_cv_link_use_r" = yes ; then
8256
8257cat >>confdefs.h <<\_ACEOF
8258#define HAVE_LINK_R 1
8259_ACEOF
8260
8261 fi
8262
8263
8264
8265
8266{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8267echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8268if test "${ac_cv_c_const+set}" = set; then
8269 echo $ECHO_N "(cached) $ECHO_C" >&6
8270else
8271 cat >conftest.$ac_ext <<_ACEOF
8272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
8277
8278int
8279main ()
8280{
8281/* FIXME: Include the comments suggested by Paul. */
8282#ifndef __cplusplus
8283 /* Ultrix mips cc rejects this. */
8284 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008285 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008286 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008287 char const *const *ccp;
8288 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008289 /* NEC SVR4.0.2 mips cc rejects this. */
8290 struct point {int x, y;};
8291 static struct point const zero = {0,0};
8292 /* AIX XL C 1.02.0.0 rejects this.
8293 It does not let you subtract one const X* pointer from another in
8294 an arm of an if-expression whose if-part is not a constant
8295 expression */
8296 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008297 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008298 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008299 ++ccp;
8300 p = (char**) ccp;
8301 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008302 { /* SCO 3.2v4 cc rejects this. */
8303 char *t;
8304 char const *s = 0 ? (char *) 0 : (char const *) 0;
8305
8306 *t++ = 0;
8307 if (s) return 0;
8308 }
8309 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8310 int x[] = {25, 17};
8311 const int *foo = &x[0];
8312 ++foo;
8313 }
8314 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8315 typedef const int *iptr;
8316 iptr p = 0;
8317 ++p;
8318 }
8319 { /* AIX XL C 1.02.0.0 rejects this saying
8320 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8321 struct s { int j; const int *ap[3]; };
8322 struct s *b; b->j = 5;
8323 }
8324 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8325 const int foo = 10;
8326 if (!foo) return 0;
8327 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008328 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008329#endif
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
8335rm -f conftest.$ac_objext
8336if { (ac_try="$ac_compile"
8337case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_compile") 2>conftest.er1
8343 ac_status=$?
8344 grep -v '^ *+' conftest.er1 >conftest.err
8345 rm -f conftest.er1
8346 cat conftest.err >&5
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008348 (exit $ac_status); } &&
8349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8350 { (case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353esac
8354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_try") 2>&5
8356 ac_status=$?
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); }; } &&
8359 { ac_try='test -s conftest.$ac_objext'
8360 { (case "(($ac_try" in
8361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362 *) ac_try_echo=$ac_try;;
8363esac
8364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365 (eval "$ac_try") 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008369 ac_cv_c_const=yes
8370else
8371 echo "$as_me: failed program was:" >&5
8372sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 ac_cv_c_const=no
8375fi
8376
8377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378fi
8379{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8380echo "${ECHO_T}$ac_cv_c_const" >&6; }
8381if test $ac_cv_c_const = no; then
8382
8383cat >>confdefs.h <<\_ACEOF
8384#define const
8385_ACEOF
8386
8387fi
8388
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008389
8390
8391
8392
8393
8394ac_header_dirent=no
8395for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8396 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008397{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8398echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008400 echo $ECHO_N "(cached) $ECHO_C" >&6
8401else
8402 cat >conftest.$ac_ext <<_ACEOF
8403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
8408#include <sys/types.h>
8409#include <$ac_hdr>
8410
8411int
8412main ()
8413{
8414if ((DIR *) 0)
8415return 0;
8416 ;
8417 return 0;
8418}
8419_ACEOF
8420rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008421if { (ac_try="$ac_compile"
8422case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425esac
8426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008433 (exit $ac_status); } &&
8434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8435 { (case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438esac
8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_try") 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; } &&
8444 { ac_try='test -s conftest.$ac_objext'
8445 { (case "(($ac_try" in
8446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8448esac
8449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_try") 2>&5
8451 ac_status=$?
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008454 eval "$as_ac_Header=yes"
8455else
8456 echo "$as_me: failed program was:" >&5
8457sed 's/^/| /' conftest.$ac_ext >&5
8458
Reid Spencera773bd52006-08-04 18:18:08 +00008459 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008460fi
Reid Spencera773bd52006-08-04 18:18:08 +00008461
8462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463fi
Reid Spencera773bd52006-08-04 18:18:08 +00008464ac_res=`eval echo '${'$as_ac_Header'}'`
8465 { echo "$as_me:$LINENO: result: $ac_res" >&5
8466echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008467if test `eval echo '${'$as_ac_Header'}'` = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8470_ACEOF
8471
8472ac_header_dirent=$ac_hdr; break
8473fi
8474
8475done
8476# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8477if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008478 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8479echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008480if test "${ac_cv_search_opendir+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
8483 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008484cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490
Reid Spencera773bd52006-08-04 18:18:08 +00008491/* Override any GCC internal prototype to avoid an error.
8492 Use char because int might match the return type of a GCC
8493 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008494#ifdef __cplusplus
8495extern "C"
8496#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497char opendir ();
8498int
8499main ()
8500{
Reid Spencera773bd52006-08-04 18:18:08 +00008501return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008502 ;
8503 return 0;
8504}
8505_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008506for ac_lib in '' dir; do
8507 if test -z "$ac_lib"; then
8508 ac_res="none required"
8509 else
8510 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008512 fi
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008526 (exit $ac_status); } &&
8527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
8544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008547 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008548else
8549 echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008552
8553fi
8554
Tanya Lattnercf067672008-01-17 05:57:22 +00008555rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008556 conftest$ac_exeext
8557 if test "${ac_cv_search_opendir+set}" = set; then
8558 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008559fi
John Criswell7a73b802003-06-30 21:59:07 +00008560done
Reid Spencera773bd52006-08-04 18:18:08 +00008561if test "${ac_cv_search_opendir+set}" = set; then
8562 :
8563else
8564 ac_cv_search_opendir=no
8565fi
8566rm conftest.$ac_ext
8567LIBS=$ac_func_search_save_LIBS
8568fi
8569{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8570echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8571ac_res=$ac_cv_search_opendir
8572if test "$ac_res" != no; then
8573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008574
Reid Spencera773bd52006-08-04 18:18:08 +00008575fi
8576
8577else
8578 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8579echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8580if test "${ac_cv_search_opendir+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582else
8583 ac_func_search_save_LIBS=$LIBS
8584cat >conftest.$ac_ext <<_ACEOF
8585/* confdefs.h. */
8586_ACEOF
8587cat confdefs.h >>conftest.$ac_ext
8588cat >>conftest.$ac_ext <<_ACEOF
8589/* end confdefs.h. */
8590
8591/* Override any GCC internal prototype to avoid an error.
8592 Use char because int might match the return type of a GCC
8593 builtin and then its argument prototype would still apply. */
8594#ifdef __cplusplus
8595extern "C"
8596#endif
8597char opendir ();
8598int
8599main ()
8600{
8601return opendir ();
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606for ac_lib in '' x; do
8607 if test -z "$ac_lib"; then
8608 ac_res="none required"
8609 else
8610 ac_res=-l$ac_lib
8611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8612 fi
8613 rm -f conftest.$ac_objext conftest$ac_exeext
8614if { (ac_try="$ac_link"
8615case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618esac
8619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_link") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008626 (exit $ac_status); } &&
8627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; } &&
8637 { ac_try='test -s conftest$ac_exeext'
8638 { (case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641esac
8642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_try") 2>&5
8644 ac_status=$?
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008647 ac_cv_search_opendir=$ac_res
8648else
8649 echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652
8653fi
8654
Tanya Lattnercf067672008-01-17 05:57:22 +00008655rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008656 conftest$ac_exeext
8657 if test "${ac_cv_search_opendir+set}" = set; then
8658 break
8659fi
8660done
8661if test "${ac_cv_search_opendir+set}" = set; then
8662 :
8663else
8664 ac_cv_search_opendir=no
8665fi
8666rm conftest.$ac_ext
8667LIBS=$ac_func_search_save_LIBS
8668fi
8669{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8670echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8671ac_res=$ac_cv_search_opendir
8672if test "$ac_res" != no; then
8673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8674
8675fi
8676
8677fi
John Criswell7a73b802003-06-30 21:59:07 +00008678
8679
8680for ac_header in dlfcn.h
8681do
8682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008687 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008688fi
Reid Spencera773bd52006-08-04 18:18:08 +00008689ac_res=`eval echo '${'$as_ac_Header'}'`
8690 { echo "$as_me:$LINENO: result: $ac_res" >&5
8691echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008692else
Brian Gaeke0a621332004-09-08 20:38:05 +00008693 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008694{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008696cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008697/* confdefs.h. */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008702$ac_includes_default
8703#include <$ac_header>
8704_ACEOF
8705rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008706if { (ac_try="$ac_compile"
8707case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008713 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008718 (exit $ac_status); } &&
8719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720 { (case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8723esac
8724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_try") 2>&5
8726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest.$ac_objext'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008739 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008740else
8741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008742sed 's/^/| /' conftest.$ac_ext >&5
8743
Reid Spencera773bd52006-08-04 18:18:08 +00008744 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008745fi
Reid Spencera773bd52006-08-04 18:18:08 +00008746
8747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8749echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008750
8751# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008752{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8753echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008754cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008755/* confdefs.h. */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h. */
8760#include <$ac_header>
8761_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008762if { (ac_try="$ac_cpp conftest.$ac_ext"
8763case "(($ac_try" in
8764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765 *) ac_try_echo=$ac_try;;
8766esac
8767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008774 (exit $ac_status); } >/dev/null; then
8775 if test -s conftest.err; then
8776 ac_cpp_err=$ac_c_preproc_warn_flag
8777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8778 else
8779 ac_cpp_err=
8780 fi
8781else
8782 ac_cpp_err=yes
8783fi
8784if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008785 ac_header_preproc=yes
8786else
8787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_header_preproc=no
8791fi
Reid Spencera773bd52006-08-04 18:18:08 +00008792
Brian Gaeke0a621332004-09-08 20:38:05 +00008793rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008794{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008796
8797# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8799 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8804 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008805 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008806 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008819 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008820## ----------------------------------- ##
8821## Report this to llvmbugs@cs.uiuc.edu ##
8822## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008823_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008824 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008825 ;;
8826esac
Reid Spencera773bd52006-08-04 18:18:08 +00008827{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008830 echo $ECHO_N "(cached) $ECHO_C" >&6
8831else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008832 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008833fi
Reid Spencera773bd52006-08-04 18:18:08 +00008834ac_res=`eval echo '${'$as_ac_Header'}'`
8835 { echo "$as_me:$LINENO: result: $ac_res" >&5
8836echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008837
8838fi
John Criswell7a73b802003-06-30 21:59:07 +00008839if test `eval echo '${'$as_ac_Header'}'` = yes; then
8840 cat >>confdefs.h <<_ACEOF
8841#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8842_ACEOF
8843
8844fi
8845
8846done
8847
Reid Spencera773bd52006-08-04 18:18:08 +00008848# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008849if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008850 enableval=$enable_ltdl_install;
8851fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008852
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008853
Duncan Sands1eff7042007-12-10 17:43:13 +00008854
8855
8856if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008857 INSTALL_LTDL_TRUE=
8858 INSTALL_LTDL_FALSE='#'
8859else
8860 INSTALL_LTDL_TRUE='#'
8861 INSTALL_LTDL_FALSE=
8862fi
8863
Duncan Sands1eff7042007-12-10 17:43:13 +00008864
8865
8866if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008867 CONVENIENCE_LTDL_TRUE=
8868 CONVENIENCE_LTDL_FALSE='#'
8869else
8870 CONVENIENCE_LTDL_TRUE='#'
8871 CONVENIENCE_LTDL_FALSE=
8872fi
8873
8874
Reid Spencera773bd52006-08-04 18:18:08 +00008875{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8876echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008877library_names_spec=
8878libname_spec='lib$name'
8879soname_spec=
8880shrext_cmds=".so"
8881postinstall_cmds=
8882postuninstall_cmds=
8883finish_cmds=
8884finish_eval=
8885shlibpath_var=
8886shlibpath_overrides_runpath=unknown
8887version_type=none
8888dynamic_linker="$host_os ld.so"
8889sys_lib_dlsearch_path_spec="/lib /usr/lib"
8890if test "$GCC" = yes; then
8891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8892 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8893 # if the path contains ";" then we assume it to be the separator
8894 # otherwise default to the standard path separator (i.e. ":") - it is
8895 # assumed that no part of a normal pathname contains ";" but that should
8896 # okay in the real world where ";" in dirpaths is itself problematic.
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 else
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8900 fi
8901else
8902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8903fi
8904need_lib_prefix=unknown
8905hardcode_into_libs=no
8906
8907# when you set need_version to no, make sure it does not cause -set_version
8908# flags to be left without arguments
8909need_version=unknown
8910
8911case $host_os in
8912aix3*)
8913 version_type=linux
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8915 shlibpath_var=LIBPATH
8916
8917 # AIX 3 has no versioning support, so we append a major version to the name.
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 ;;
8920
8921aix4* | aix5*)
8922 version_type=linux
8923 need_lib_prefix=no
8924 need_version=no
8925 hardcode_into_libs=yes
8926 if test "$host_cpu" = ia64; then
8927 # AIX 5 supports IA64
8928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8929 shlibpath_var=LD_LIBRARY_PATH
8930 else
8931 # With GCC up to 2.95.x, collect2 would create an import file
8932 # for dependence libraries. The import file would start with
8933 # the line `#! .'. This would cause the generated library to
8934 # depend on `.', always an invalid library. This was fixed in
8935 # development snapshots of GCC prior to 3.0.
8936 case $host_os in
8937 aix4 | aix4.[01] | aix4.[01].*)
8938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8939 echo ' yes '
8940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8941 :
8942 else
8943 can_build_shared=no
8944 fi
8945 ;;
8946 esac
8947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8948 # soname into executable. Probably we can add versioning support to
8949 # collect2, so additional links can be useful in future.
8950 if test "$aix_use_runtimelinking" = yes; then
8951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8952 # instead of lib<name>.a to let people know that these are not
8953 # typical AIX shared libraries.
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 else
8956 # We preserve .a as extension for shared libraries through AIX4.2
8957 # and later when we are not doing run time linking.
8958 library_names_spec='${libname}${release}.a $libname.a'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8960 fi
8961 shlibpath_var=LIBPATH
8962 fi
8963 ;;
8964
8965amigaos*)
8966 library_names_spec='$libname.ixlibrary $libname.a'
8967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8968 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'
8969 ;;
8970
8971beos*)
8972 library_names_spec='${libname}${shared_ext}'
8973 dynamic_linker="$host_os ld.so"
8974 shlibpath_var=LIBRARY_PATH
8975 ;;
8976
8977bsdi[45]*)
8978 version_type=linux
8979 need_version=no
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8981 soname_spec='${libname}${release}${shared_ext}$major'
8982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8986 # the default ld.so.conf also contains /usr/contrib/lib and
8987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8988 # libtool to hard-code these into programs
8989 ;;
8990
8991cygwin* | mingw* | pw32*)
8992 version_type=windows
8993 shrext_cmds=".dll"
8994 need_version=no
8995 need_lib_prefix=no
8996
8997 case $GCC,$host_os in
8998 yes,cygwin* | yes,mingw* | yes,pw32*)
8999 library_names_spec='$libname.dll.a'
9000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9001 postinstall_cmds='base_file=`basename \${file}`~
9002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9003 dldir=$destdir/`dirname \$dlpath`~
9004 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009005 $install_prog $dir/$dlname \$dldir/$dlname~
9006 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9008 dlpath=$dir/\$dldll~
9009 $rm \$dlpath'
9010 shlibpath_overrides_runpath=yes
9011
9012 case $host_os in
9013 cygwin*)
9014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9017 ;;
9018 mingw*)
9019 # MinGW DLLs use traditional 'lib' prefix
9020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9023 # It is most probably a Windows format PATH printed by
9024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9025 # path with ; separators, and with drive letters. We can handle the
9026 # drive letters (cygwin fileutils understands them), so leave them,
9027 # especially as we might pass files found there to a mingw objdump,
9028 # which wouldn't understand a cygwinified path. Ahh.
9029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030 else
9031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9032 fi
9033 ;;
9034 pw32*)
9035 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009036 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 +00009037 ;;
9038 esac
9039 ;;
9040
9041 *)
9042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9043 ;;
9044 esac
9045 dynamic_linker='Win32 ld.exe'
9046 # FIXME: first we should search . and the directory the executable is in
9047 shlibpath_var=PATH
9048 ;;
9049
9050darwin* | rhapsody*)
9051 dynamic_linker="$host_os dyld"
9052 version_type=darwin
9053 need_lib_prefix=no
9054 need_version=no
9055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9056 soname_spec='${libname}${release}${major}$shared_ext'
9057 shlibpath_overrides_runpath=yes
9058 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009059 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009060 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9061 if test "$GCC" = yes; then
9062 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"`
9063 else
9064 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9065 fi
9066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9067 ;;
9068
9069dgux*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 ;;
9077
9078freebsd1*)
9079 dynamic_linker=no
9080 ;;
9081
9082kfreebsd*-gnu)
9083 version_type=linux
9084 need_lib_prefix=no
9085 need_version=no
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9087 soname_spec='${libname}${release}${shared_ext}$major'
9088 shlibpath_var=LD_LIBRARY_PATH
9089 shlibpath_overrides_runpath=no
9090 hardcode_into_libs=yes
9091 dynamic_linker='GNU ld.so'
9092 ;;
9093
Reid Spencera773bd52006-08-04 18:18:08 +00009094freebsd* | dragonfly*)
9095 # DragonFly does not have aout. When/if they implement a new
9096 # versioning mechanism, adjust this.
9097 if test -x /usr/bin/objformat; then
9098 objformat=`/usr/bin/objformat`
9099 else
9100 case $host_os in
9101 freebsd[123]*) objformat=aout ;;
9102 *) objformat=elf ;;
9103 esac
9104 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009105 version_type=freebsd-$objformat
9106 case $version_type in
9107 freebsd-elf*)
9108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9109 need_version=no
9110 need_lib_prefix=no
9111 ;;
9112 freebsd-*)
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9114 need_version=yes
9115 ;;
9116 esac
9117 shlibpath_var=LD_LIBRARY_PATH
9118 case $host_os in
9119 freebsd2*)
9120 shlibpath_overrides_runpath=yes
9121 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009122 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009123 shlibpath_overrides_runpath=yes
9124 hardcode_into_libs=yes
9125 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009128 shlibpath_overrides_runpath=no
9129 hardcode_into_libs=yes
9130 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009131 freebsd*) # from 4.6 on
9132 shlibpath_overrides_runpath=yes
9133 hardcode_into_libs=yes
9134 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009135 esac
9136 ;;
9137
9138gnu*)
9139 version_type=linux
9140 need_lib_prefix=no
9141 need_version=no
9142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9143 soname_spec='${libname}${release}${shared_ext}$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9145 hardcode_into_libs=yes
9146 ;;
9147
9148hpux9* | hpux10* | hpux11*)
9149 # Give a soname corresponding to the major version so that dld.sl refuses to
9150 # link against other versions.
9151 version_type=sunos
9152 need_lib_prefix=no
9153 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009154 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155 ia64*)
9156 shrext_cmds='.so'
9157 hardcode_into_libs=yes
9158 dynamic_linker="$host_os dld.so"
9159 shlibpath_var=LD_LIBRARY_PATH
9160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9162 soname_spec='${libname}${release}${shared_ext}$major'
9163 if test "X$HPUX_IA64_MODE" = X32; then
9164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9165 else
9166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9167 fi
9168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9169 ;;
9170 hppa*64*)
9171 shrext_cmds='.sl'
9172 hardcode_into_libs=yes
9173 dynamic_linker="$host_os dld.sl"
9174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177 soname_spec='${libname}${release}${shared_ext}$major'
9178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9180 ;;
9181 *)
9182 shrext_cmds='.sl'
9183 dynamic_linker="$host_os dld.sl"
9184 shlibpath_var=SHLIB_PATH
9185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 ;;
9189 esac
9190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9191 postinstall_cmds='chmod 555 $lib'
9192 ;;
9193
Reid Spencera773bd52006-08-04 18:18:08 +00009194interix3*)
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 hardcode_into_libs=yes
9204 ;;
9205
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009206irix5* | irix6* | nonstopux*)
9207 case $host_os in
9208 nonstopux*) version_type=nonstopux ;;
9209 *)
9210 if test "$lt_cv_prog_gnu_ld" = yes; then
9211 version_type=linux
9212 else
9213 version_type=irix
9214 fi ;;
9215 esac
9216 need_lib_prefix=no
9217 need_version=no
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9220 case $host_os in
9221 irix5* | nonstopux*)
9222 libsuff= shlibsuff=
9223 ;;
9224 *)
9225 case $LD in # libtool.m4 will add one of these switches to LD
9226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9227 libsuff= shlibsuff= libmagic=32-bit;;
9228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9229 libsuff=32 shlibsuff=N32 libmagic=N32;;
9230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9232 *) libsuff= shlibsuff= libmagic=never-match;;
9233 esac
9234 ;;
9235 esac
9236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9237 shlibpath_overrides_runpath=no
9238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9240 hardcode_into_libs=yes
9241 ;;
9242
9243# No shared lib support for Linux oldld, aout, or coff.
9244linux*oldld* | linux*aout* | linux*coff*)
9245 dynamic_linker=no
9246 ;;
9247
9248# This must be Linux ELF.
9249linux*)
9250 version_type=linux
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=no
9258 # This implies no fast_install, which is unacceptable.
9259 # Some rework will be needed to allow for fast_install
9260 # before this can be enabled.
9261 hardcode_into_libs=yes
9262
9263 # Append ld.so.conf contents to the search path
9264 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009265 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 +00009266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9267 fi
9268
9269 # We used to test for /lib/ld.so.1 and disable shared libraries on
9270 # powerpc, because MkLinux only supported shared libraries with the
9271 # GNU dynamic linker. Since this was broken with cross compilers,
9272 # most powerpc-linux boxes support dynamic linking these days and
9273 # people can always --disable-shared, the test was removed, and we
9274 # assume the GNU/Linux dynamic linker is in use.
9275 dynamic_linker='GNU/Linux ld.so'
9276 ;;
9277
9278knetbsd*-gnu)
9279 version_type=linux
9280 need_lib_prefix=no
9281 need_version=no
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec='${libname}${release}${shared_ext}$major'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=no
9286 hardcode_into_libs=yes
9287 dynamic_linker='GNU ld.so'
9288 ;;
9289
9290netbsd*)
9291 version_type=sunos
9292 need_lib_prefix=no
9293 need_version=no
9294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9297 dynamic_linker='NetBSD (a.out) ld.so'
9298 else
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 dynamic_linker='NetBSD ld.elf_so'
9302 fi
9303 shlibpath_var=LD_LIBRARY_PATH
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9306 ;;
9307
9308newsos6)
9309 version_type=linux
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 shlibpath_overrides_runpath=yes
9313 ;;
9314
9315nto-qnx*)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 ;;
9324
9325openbsd*)
9326 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009327 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009328 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009329 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9330 case $host_os in
9331 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9332 *) need_version=no ;;
9333 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9336 shlibpath_var=LD_LIBRARY_PATH
9337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9338 case $host_os in
9339 openbsd2.[89] | openbsd2.[89].*)
9340 shlibpath_overrides_runpath=no
9341 ;;
9342 *)
9343 shlibpath_overrides_runpath=yes
9344 ;;
9345 esac
9346 else
9347 shlibpath_overrides_runpath=yes
9348 fi
9349 ;;
9350
9351os2*)
9352 libname_spec='$name'
9353 shrext_cmds=".dll"
9354 need_lib_prefix=no
9355 library_names_spec='$libname${shared_ext} $libname.a'
9356 dynamic_linker='OS/2 ld.exe'
9357 shlibpath_var=LIBPATH
9358 ;;
9359
9360osf3* | osf4* | osf5*)
9361 version_type=osf
9362 need_lib_prefix=no
9363 need_version=no
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9366 shlibpath_var=LD_LIBRARY_PATH
9367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9369 ;;
9370
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009371solaris*)
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
9375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9376 soname_spec='${libname}${release}${shared_ext}$major'
9377 shlibpath_var=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath=yes
9379 hardcode_into_libs=yes
9380 # ldd complains unless libraries are executable
9381 postinstall_cmds='chmod +x $lib'
9382 ;;
9383
9384sunos4*)
9385 version_type=sunos
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9388 shlibpath_var=LD_LIBRARY_PATH
9389 shlibpath_overrides_runpath=yes
9390 if test "$with_gnu_ld" = yes; then
9391 need_lib_prefix=no
9392 fi
9393 need_version=yes
9394 ;;
9395
Reid Spencera773bd52006-08-04 18:18:08 +00009396sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397 version_type=linux
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_vendor in
9402 sni)
9403 shlibpath_overrides_runpath=no
9404 need_lib_prefix=no
9405 export_dynamic_flag_spec='${wl}-Blargedynsym'
9406 runpath_var=LD_RUN_PATH
9407 ;;
9408 siemens)
9409 need_lib_prefix=no
9410 ;;
9411 motorola)
9412 need_lib_prefix=no
9413 need_version=no
9414 shlibpath_overrides_runpath=no
9415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9416 ;;
9417 esac
9418 ;;
9419
9420sysv4*MP*)
9421 if test -d /usr/nec ;then
9422 version_type=linux
9423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9424 soname_spec='$libname${shared_ext}.$major'
9425 shlibpath_var=LD_LIBRARY_PATH
9426 fi
9427 ;;
9428
Reid Spencera773bd52006-08-04 18:18:08 +00009429sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9430 version_type=freebsd-elf
9431 need_lib_prefix=no
9432 need_version=no
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 hardcode_into_libs=yes
9437 if test "$with_gnu_ld" = yes; then
9438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9439 shlibpath_overrides_runpath=no
9440 else
9441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9442 shlibpath_overrides_runpath=yes
9443 case $host_os in
9444 sco3.2v5*)
9445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9446 ;;
9447 esac
9448 fi
9449 sys_lib_dlsearch_path_spec='/usr/lib'
9450 ;;
9451
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452uts4*)
9453 version_type=linux
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 shlibpath_var=LD_LIBRARY_PATH
9457 ;;
9458
9459*)
9460 dynamic_linker=no
9461 ;;
9462esac
Reid Spencera773bd52006-08-04 18:18:08 +00009463{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9464echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009465test "$dynamic_linker" = no && can_build_shared=no
9466
Reid Spencera773bd52006-08-04 18:18:08 +00009467variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9468if test "$GCC" = yes; then
9469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9470fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009471
Reid Spencera773bd52006-08-04 18:18:08 +00009472
9473{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9474echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475if test "${libltdl_cv_shlibext+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478
9479module=yes
9480eval libltdl_cv_shlibext=$shrext_cmds
9481
9482fi
Reid Spencera773bd52006-08-04 18:18:08 +00009483{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9484echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485if test -n "$libltdl_cv_shlibext"; then
9486
9487cat >>confdefs.h <<_ACEOF
9488#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9489_ACEOF
9490
9491fi
9492
9493
Reid Spencera773bd52006-08-04 18:18:08 +00009494{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9495echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009496if test "${libltdl_cv_shlibpath_var+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9498else
9499 libltdl_cv_shlibpath_var="$shlibpath_var"
9500fi
Reid Spencera773bd52006-08-04 18:18:08 +00009501{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9502echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009503if test -n "$libltdl_cv_shlibpath_var"; then
9504
9505cat >>confdefs.h <<_ACEOF
9506#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9507_ACEOF
9508
9509fi
9510
9511
Reid Spencera773bd52006-08-04 18:18:08 +00009512{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9513echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514if test "${libltdl_cv_sys_search_path+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9518fi
Reid Spencera773bd52006-08-04 18:18:08 +00009519{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9520echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009521if test -n "$libltdl_cv_sys_search_path"; then
9522 sys_search_path=
9523 for dir in $libltdl_cv_sys_search_path; do
9524 if test -z "$sys_search_path"; then
9525 sys_search_path="$dir"
9526 else
9527 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9528 fi
9529 done
9530
9531cat >>confdefs.h <<_ACEOF
9532#define LTDL_SYSSEARCHPATH "$sys_search_path"
9533_ACEOF
9534
9535fi
9536
Reid Spencera773bd52006-08-04 18:18:08 +00009537{ echo "$as_me:$LINENO: checking for objdir" >&5
9538echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009539if test "${libltdl_cv_objdir+set}" = set; then
9540 echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542 libltdl_cv_objdir="$objdir"
9543 if test -n "$objdir"; then
9544 :
9545 else
9546 rm -f .libs 2>/dev/null
9547 mkdir .libs 2>/dev/null
9548 if test -d .libs; then
9549 libltdl_cv_objdir=.libs
9550 else
9551 # MS-DOS does not allow filenames that begin with a dot.
9552 libltdl_cv_objdir=_libs
9553 fi
9554 rmdir .libs 2>/dev/null
9555 fi
9556
9557fi
Reid Spencera773bd52006-08-04 18:18:08 +00009558{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9559echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560
9561cat >>confdefs.h <<_ACEOF
9562#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9563_ACEOF
9564
9565
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566
9567
9568
9569
9570# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009571{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9572echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9575else
9576
9577# These are sane defaults that work on at least a few old systems.
9578# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9579
9580# Character class describing NM global symbol codes.
9581symcode='[BCDEGRST]'
9582
9583# Regexp to match symbols that can be accessed directly from C.
9584sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9585
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586# Transform an extracted symbol line into a proper C declaration
9587lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9588
9589# Transform an extracted symbol line into symbol name and symbol address
9590lt_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'"
9591
9592# Define system-specific variables.
9593case $host_os in
9594aix*)
9595 symcode='[BCDT]'
9596 ;;
9597cygwin* | mingw* | pw32*)
9598 symcode='[ABCDGISTW]'
9599 ;;
9600hpux*) # Its linker distinguishes data from code symbols
9601 if test "$host_cpu" = ia64; then
9602 symcode='[ABCDEGRST]'
9603 fi
9604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9605 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'"
9606 ;;
9607linux*)
9608 if test "$host_cpu" = ia64; then
9609 symcode='[ABCDGIRSTW]'
9610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9611 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'"
9612 fi
9613 ;;
9614irix* | nonstopux*)
9615 symcode='[BCDEGRST]'
9616 ;;
9617osf*)
9618 symcode='[BCDEGQRST]'
9619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009620solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009621 symcode='[BDRT]'
9622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009623sco3.2v5*)
9624 symcode='[DT]'
9625 ;;
9626sysv4.2uw2*)
9627 symcode='[DT]'
9628 ;;
9629sysv5* | sco5v6* | unixware* | OpenUNIX*)
9630 symcode='[ABDT]'
9631 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009632sysv4)
9633 symcode='[DFNSTU]'
9634 ;;
9635esac
9636
9637# Handle CRLF in mingw tool chain
9638opt_cr=
9639case $build_os in
9640mingw*)
9641 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9642 ;;
9643esac
9644
9645# If we're using GNU nm, then use its standard symbol codes.
9646case `$NM -V 2>&1` in
9647*GNU* | *'with BFD'*)
9648 symcode='[ABCDGIRSTW]' ;;
9649esac
9650
9651# Try without a prefix undercore, then with it.
9652for ac_symprfx in "" "_"; do
9653
Reid Spencera773bd52006-08-04 18:18:08 +00009654 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9655 symxfrm="\\1 $ac_symprfx\\2 \\2"
9656
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009658 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 +00009659
9660 # Check to see that the pipe works correctly.
9661 pipe_works=no
9662
9663 rm -f conftest*
9664 cat > conftest.$ac_ext <<EOF
9665#ifdef __cplusplus
9666extern "C" {
9667#endif
9668char nm_test_var;
9669void nm_test_func(){}
9670#ifdef __cplusplus
9671}
9672#endif
9673int main(){nm_test_var='a';nm_test_func();return(0);}
9674EOF
9675
9676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9677 (eval $ac_compile) 2>&5
9678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; then
9681 # Now try to grab the symbols.
9682 nlist=conftest.nm
9683 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9684 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && test -s "$nlist"; then
9688 # Try sorting and uniquifying the output.
9689 if sort "$nlist" | uniq > "$nlist"T; then
9690 mv -f "$nlist"T "$nlist"
9691 else
9692 rm -f "$nlist"T
9693 fi
9694
9695 # Make sure that we snagged all the symbols we need.
9696 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9697 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9698 cat <<EOF > conftest.$ac_ext
9699#ifdef __cplusplus
9700extern "C" {
9701#endif
9702
9703EOF
9704 # Now generate the symbol file.
9705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9706
9707 cat <<EOF >> conftest.$ac_ext
9708#if defined (__STDC__) && __STDC__
9709# define lt_ptr_t void *
9710#else
9711# define lt_ptr_t char *
9712# define const
9713#endif
9714
9715/* The mapping between symbol names and symbols. */
9716const struct {
9717 const char *name;
9718 lt_ptr_t address;
9719}
9720lt_preloaded_symbols[] =
9721{
9722EOF
9723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9724 cat <<\EOF >> conftest.$ac_ext
9725 {0, (lt_ptr_t) 0}
9726};
9727
9728#ifdef __cplusplus
9729}
9730#endif
9731EOF
9732 # Now try linking the two files.
9733 mv conftest.$ac_objext conftstm.$ac_objext
9734 lt_save_LIBS="$LIBS"
9735 lt_save_CFLAGS="$CFLAGS"
9736 LIBS="conftstm.$ac_objext"
9737 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9739 (eval $ac_link) 2>&5
9740 ac_status=$?
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9743 pipe_works=yes
9744 fi
9745 LIBS="$lt_save_LIBS"
9746 CFLAGS="$lt_save_CFLAGS"
9747 else
9748 echo "cannot find nm_test_func in $nlist" >&5
9749 fi
9750 else
9751 echo "cannot find nm_test_var in $nlist" >&5
9752 fi
9753 else
9754 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9755 fi
9756 else
9757 echo "$progname: failed program was:" >&5
9758 cat conftest.$ac_ext >&5
9759 fi
9760 rm -f conftest* conftst*
9761
9762 # Do not use the global_symbol_pipe unless it works.
9763 if test "$pipe_works" = yes; then
9764 break
9765 else
9766 lt_cv_sys_global_symbol_pipe=
9767 fi
9768done
9769
9770fi
9771
9772if test -z "$lt_cv_sys_global_symbol_pipe"; then
9773 lt_cv_sys_global_symbol_to_cdecl=
9774fi
9775if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009776 { echo "$as_me:$LINENO: result: failed" >&5
9777echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778else
Reid Spencera773bd52006-08-04 18:18:08 +00009779 { echo "$as_me:$LINENO: result: ok" >&5
9780echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781fi
9782
9783
Reid Spencera773bd52006-08-04 18:18:08 +00009784{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9785echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9790 libltdl_cv_preloaded_symbols=yes
9791 else
9792 libltdl_cv_preloaded_symbols=no
9793 fi
9794
9795fi
Reid Spencera773bd52006-08-04 18:18:08 +00009796{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9797echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9799
9800cat >>confdefs.h <<\_ACEOF
9801#define HAVE_PRELOADED_SYMBOLS 1
9802_ACEOF
9803
9804fi
9805
9806LIBADD_DL=
9807
9808ac_ext=c
9809ac_cpp='$CPP $CPPFLAGS'
9810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9812ac_compiler_gnu=$ac_cv_c_compiler_gnu
9813
9814
Reid Spencera773bd52006-08-04 18:18:08 +00009815{ echo "$as_me:$LINENO: checking for shl_load" >&5
9816echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test "${ac_cv_func_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819else
9820 cat >conftest.$ac_ext <<_ACEOF
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
9826/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9828#define shl_load innocuous_shl_load
9829
9830/* System header to define __stub macros and hopefully few prototypes,
9831 which can conflict with char shl_load (); below.
9832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9833 <limits.h> exists even on freestanding compilers. */
9834
9835#ifdef __STDC__
9836# include <limits.h>
9837#else
9838# include <assert.h>
9839#endif
9840
9841#undef shl_load
9842
Reid Spencera773bd52006-08-04 18:18:08 +00009843/* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846#ifdef __cplusplus
9847extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009848#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849char shl_load ();
9850/* The GNU C library defines this for functions which it implements
9851 to always fail with ENOSYS. Some functions are actually named
9852 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009853#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009854choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855#endif
9856
9857int
9858main ()
9859{
Reid Spencera773bd52006-08-04 18:18:08 +00009860return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 ;
9862 return 0;
9863}
9864_ACEOF
9865rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009866if { (ac_try="$ac_link"
9867case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
9871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880 { (case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_try") 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; } &&
9889 { ac_try='test -s conftest$ac_exeext'
9890 { (case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_try") 2>&5
9896 ac_status=$?
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ac_cv_func_shl_load=yes
9900else
9901 echo "$as_me: failed program was:" >&5
9902sed 's/^/| /' conftest.$ac_ext >&5
9903
Reid Spencera773bd52006-08-04 18:18:08 +00009904 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905fi
Reid Spencera773bd52006-08-04 18:18:08 +00009906
Tanya Lattnercf067672008-01-17 05:57:22 +00009907rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908 conftest$ac_exeext conftest.$ac_ext
9909fi
Reid Spencera773bd52006-08-04 18:18:08 +00009910{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9911echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009912if test $ac_cv_func_shl_load = yes; then
9913
9914cat >>confdefs.h <<\_ACEOF
9915#define HAVE_SHL_LOAD 1
9916_ACEOF
9917
9918else
Reid Spencera773bd52006-08-04 18:18:08 +00009919 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9920echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9922 echo $ECHO_N "(cached) $ECHO_C" >&6
9923else
9924 ac_check_lib_save_LIBS=$LIBS
9925LIBS="-ldld $LIBS"
9926cat >conftest.$ac_ext <<_ACEOF
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932
Reid Spencera773bd52006-08-04 18:18:08 +00009933/* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936#ifdef __cplusplus
9937extern "C"
9938#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939char shl_load ();
9940int
9941main ()
9942{
Reid Spencera773bd52006-08-04 18:18:08 +00009943return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009944 ;
9945 return 0;
9946}
9947_ACEOF
9948rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009949if { (ac_try="$ac_link"
9950case "(($ac_try" in
9951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9952 *) ac_try_echo=$ac_try;;
9953esac
9954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9955 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009956 ac_status=$?
9957 grep -v '^ *+' conftest.er1 >conftest.err
9958 rm -f conftest.er1
9959 cat conftest.err >&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009961 (exit $ac_status); } &&
9962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9963 { (case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_try") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; } &&
9972 { ac_try='test -s conftest$ac_exeext'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9976esac
9977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982 ac_cv_lib_dld_shl_load=yes
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
Reid Spencera773bd52006-08-04 18:18:08 +00009987 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988fi
Reid Spencera773bd52006-08-04 18:18:08 +00009989
Tanya Lattnercf067672008-01-17 05:57:22 +00009990rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991 conftest$ac_exeext conftest.$ac_ext
9992LIBS=$ac_check_lib_save_LIBS
9993fi
Reid Spencera773bd52006-08-04 18:18:08 +00009994{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9995echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996if test $ac_cv_lib_dld_shl_load = yes; then
9997
9998cat >>confdefs.h <<\_ACEOF
9999#define HAVE_SHL_LOAD 1
10000_ACEOF
10001
10002 LIBADD_DL="$LIBADD_DL -ldld"
10003else
Reid Spencera773bd52006-08-04 18:18:08 +000010004 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10005echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10007 echo $ECHO_N "(cached) $ECHO_C" >&6
10008else
10009 ac_check_lib_save_LIBS=$LIBS
10010LIBS="-ldl $LIBS"
10011cat >conftest.$ac_ext <<_ACEOF
10012/* confdefs.h. */
10013_ACEOF
10014cat confdefs.h >>conftest.$ac_ext
10015cat >>conftest.$ac_ext <<_ACEOF
10016/* end confdefs.h. */
10017
Reid Spencera773bd52006-08-04 18:18:08 +000010018/* Override any GCC internal prototype to avoid an error.
10019 Use char because int might match the return type of a GCC
10020 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021#ifdef __cplusplus
10022extern "C"
10023#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024char dlopen ();
10025int
10026main ()
10027{
Reid Spencera773bd52006-08-04 18:18:08 +000010028return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029 ;
10030 return 0;
10031}
10032_ACEOF
10033rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010034if { (ac_try="$ac_link"
10035case "(($ac_try" in
10036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037 *) ac_try_echo=$ac_try;;
10038esac
10039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10048 { (case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10051esac
10052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_try") 2>&5
10054 ac_status=$?
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; } &&
10057 { ac_try='test -s conftest$ac_exeext'
10058 { (case "(($ac_try" in
10059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10060 *) ac_try_echo=$ac_try;;
10061esac
10062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10063 (eval "$ac_try") 2>&5
10064 ac_status=$?
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010067 ac_cv_lib_dl_dlopen=yes
10068else
10069 echo "$as_me: failed program was:" >&5
10070sed 's/^/| /' conftest.$ac_ext >&5
10071
Reid Spencera773bd52006-08-04 18:18:08 +000010072 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073fi
Reid Spencera773bd52006-08-04 18:18:08 +000010074
Tanya Lattnercf067672008-01-17 05:57:22 +000010075rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076 conftest$ac_exeext conftest.$ac_ext
10077LIBS=$ac_check_lib_save_LIBS
10078fi
Reid Spencera773bd52006-08-04 18:18:08 +000010079{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10080echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081if test $ac_cv_lib_dl_dlopen = yes; then
10082
10083cat >>confdefs.h <<\_ACEOF
10084#define HAVE_LIBDL 1
10085_ACEOF
10086
10087 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10088else
10089 cat >conftest.$ac_ext <<_ACEOF
10090/* confdefs.h. */
10091_ACEOF
10092cat confdefs.h >>conftest.$ac_ext
10093cat >>conftest.$ac_ext <<_ACEOF
10094/* end confdefs.h. */
10095#if HAVE_DLFCN_H
10096# include <dlfcn.h>
10097#endif
10098
10099int
10100main ()
10101{
10102dlopen(0, 0);
10103 ;
10104 return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010108if { (ac_try="$ac_link"
10109case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125esac
10126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; } &&
10131 { ac_try='test -s conftest$ac_exeext'
10132 { (case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10135esac
10136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_try") 2>&5
10138 ac_status=$?
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141
10142cat >>confdefs.h <<\_ACEOF
10143#define HAVE_LIBDL 1
10144_ACEOF
10145 libltdl_cv_func_dlopen="yes"
10146else
10147 echo "$as_me: failed program was:" >&5
10148sed 's/^/| /' conftest.$ac_ext >&5
10149
Reid Spencera773bd52006-08-04 18:18:08 +000010150 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10151echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 ac_check_lib_save_LIBS=$LIBS
10156LIBS="-lsvld $LIBS"
10157cat >conftest.$ac_ext <<_ACEOF
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163
Reid Spencera773bd52006-08-04 18:18:08 +000010164/* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167#ifdef __cplusplus
10168extern "C"
10169#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170char dlopen ();
10171int
10172main ()
10173{
Reid Spencera773bd52006-08-04 18:18:08 +000010174return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175 ;
10176 return 0;
10177}
10178_ACEOF
10179rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010180if { (ac_try="$ac_link"
10181case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ac_status=$?
10188 grep -v '^ *+' conftest.er1 >conftest.err
10189 rm -f conftest.er1
10190 cat conftest.err >&5
10191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010192 (exit $ac_status); } &&
10193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10194 { (case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_try") 2>&5
10200 ac_status=$?
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; } &&
10203 { ac_try='test -s conftest$ac_exeext'
10204 { (case "(($ac_try" in
10205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10206 *) ac_try_echo=$ac_try;;
10207esac
10208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_try") 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213 ac_cv_lib_svld_dlopen=yes
10214else
10215 echo "$as_me: failed program was:" >&5
10216sed 's/^/| /' conftest.$ac_ext >&5
10217
Reid Spencera773bd52006-08-04 18:18:08 +000010218 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219fi
Reid Spencera773bd52006-08-04 18:18:08 +000010220
Tanya Lattnercf067672008-01-17 05:57:22 +000010221rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
Reid Spencera773bd52006-08-04 18:18:08 +000010225{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10226echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227if test $ac_cv_lib_svld_dlopen = yes; then
10228
10229cat >>confdefs.h <<\_ACEOF
10230#define HAVE_LIBDL 1
10231_ACEOF
10232
10233 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10234else
Reid Spencera773bd52006-08-04 18:18:08 +000010235 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10236echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 ac_check_lib_save_LIBS=$LIBS
10241LIBS="-ldld $LIBS"
10242cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248
Reid Spencera773bd52006-08-04 18:18:08 +000010249/* Override any GCC internal prototype to avoid an error.
10250 Use char because int might match the return type of a GCC
10251 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252#ifdef __cplusplus
10253extern "C"
10254#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255char dld_link ();
10256int
10257main ()
10258{
Reid Spencera773bd52006-08-04 18:18:08 +000010259return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010260 ;
10261 return 0;
10262}
10263_ACEOF
10264rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010265if { (ac_try="$ac_link"
10266case "(($ac_try" in
10267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10268 *) ac_try_echo=$ac_try;;
10269esac
10270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10271 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272 ac_status=$?
10273 grep -v '^ *+' conftest.er1 >conftest.err
10274 rm -f conftest.er1
10275 cat conftest.err >&5
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010277 (exit $ac_status); } &&
10278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10279 { (case "(($ac_try" in
10280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281 *) ac_try_echo=$ac_try;;
10282esac
10283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10284 (eval "$ac_try") 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; } &&
10288 { ac_try='test -s conftest$ac_exeext'
10289 { (case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292esac
10293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_try") 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298 ac_cv_lib_dld_dld_link=yes
10299else
10300 echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
Reid Spencera773bd52006-08-04 18:18:08 +000010303 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304fi
Reid Spencera773bd52006-08-04 18:18:08 +000010305
Tanya Lattnercf067672008-01-17 05:57:22 +000010306rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307 conftest$ac_exeext conftest.$ac_ext
10308LIBS=$ac_check_lib_save_LIBS
10309fi
Reid Spencera773bd52006-08-04 18:18:08 +000010310{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10311echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312if test $ac_cv_lib_dld_dld_link = yes; then
10313
10314cat >>confdefs.h <<\_ACEOF
10315#define HAVE_DLD 1
10316_ACEOF
10317
10318 LIBADD_DL="$LIBADD_DL -ldld"
10319else
Reid Spencera773bd52006-08-04 18:18:08 +000010320 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10321echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010322if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10324else
10325 cat >conftest.$ac_ext <<_ACEOF
10326/* confdefs.h. */
10327_ACEOF
10328cat confdefs.h >>conftest.$ac_ext
10329cat >>conftest.$ac_ext <<_ACEOF
10330/* end confdefs.h. */
10331/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10333#define _dyld_func_lookup innocuous__dyld_func_lookup
10334
10335/* System header to define __stub macros and hopefully few prototypes,
10336 which can conflict with char _dyld_func_lookup (); below.
10337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10338 <limits.h> exists even on freestanding compilers. */
10339
10340#ifdef __STDC__
10341# include <limits.h>
10342#else
10343# include <assert.h>
10344#endif
10345
10346#undef _dyld_func_lookup
10347
Reid Spencera773bd52006-08-04 18:18:08 +000010348/* Override any GCC internal prototype to avoid an error.
10349 Use char because int might match the return type of a GCC
10350 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351#ifdef __cplusplus
10352extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354char _dyld_func_lookup ();
10355/* The GNU C library defines this for functions which it implements
10356 to always fail with ENOSYS. Some functions are actually named
10357 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010358#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360#endif
10361
10362int
10363main ()
10364{
Reid Spencera773bd52006-08-04 18:18:08 +000010365return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010366 ;
10367 return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010371if { (ac_try="$ac_link"
10372case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10375esac
10376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010383 (exit $ac_status); } &&
10384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10385 { (case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388esac
10389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_try") 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; } &&
10394 { ac_try='test -s conftest$ac_exeext'
10395 { (case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398esac
10399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_try") 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 ac_cv_func__dyld_func_lookup=yes
10405else
10406 echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
Reid Spencera773bd52006-08-04 18:18:08 +000010409 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010410fi
Reid Spencera773bd52006-08-04 18:18:08 +000010411
Tanya Lattnercf067672008-01-17 05:57:22 +000010412rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413 conftest$ac_exeext conftest.$ac_ext
10414fi
Reid Spencera773bd52006-08-04 18:18:08 +000010415{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10416echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417if test $ac_cv_func__dyld_func_lookup = yes; then
10418
10419cat >>confdefs.h <<\_ACEOF
10420#define HAVE_DYLD 1
10421_ACEOF
10422
10423fi
10424
10425
10426fi
10427
10428
10429fi
10430
10431
10432fi
Reid Spencera773bd52006-08-04 18:18:08 +000010433
Tanya Lattnercf067672008-01-17 05:57:22 +000010434rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 conftest$ac_exeext conftest.$ac_ext
10436
10437fi
10438
10439
10440fi
10441
10442
10443fi
10444
10445
10446if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10447then
10448 lt_save_LIBS="$LIBS"
10449 LIBS="$LIBS $LIBADD_DL"
10450
10451for ac_func in dlerror
10452do
10453as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010454{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10455echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10456if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 echo $ECHO_N "(cached) $ECHO_C" >&6
10458else
10459 cat >conftest.$ac_ext <<_ACEOF
10460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10466 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10467#define $ac_func innocuous_$ac_func
10468
10469/* System header to define __stub macros and hopefully few prototypes,
10470 which can conflict with char $ac_func (); below.
10471 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10472 <limits.h> exists even on freestanding compilers. */
10473
10474#ifdef __STDC__
10475# include <limits.h>
10476#else
10477# include <assert.h>
10478#endif
10479
10480#undef $ac_func
10481
Reid Spencera773bd52006-08-04 18:18:08 +000010482/* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485#ifdef __cplusplus
10486extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488char $ac_func ();
10489/* The GNU C library defines this for functions which it implements
10490 to always fail with ENOSYS. Some functions are actually named
10491 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010492#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010493choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010494#endif
10495
10496int
10497main ()
10498{
Reid Spencera773bd52006-08-04 18:18:08 +000010499return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 ;
10501 return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010505if { (ac_try="$ac_link"
10506case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10509esac
10510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519 { (case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_try") 2>&5
10525 ac_status=$?
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; } &&
10528 { ac_try='test -s conftest$ac_exeext'
10529 { (case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532esac
10533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_try") 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 eval "$as_ac_var=yes"
10539else
10540 echo "$as_me: failed program was:" >&5
10541sed 's/^/| /' conftest.$ac_ext >&5
10542
Reid Spencera773bd52006-08-04 18:18:08 +000010543 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544fi
Reid Spencera773bd52006-08-04 18:18:08 +000010545
Tanya Lattnercf067672008-01-17 05:57:22 +000010546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547 conftest$ac_exeext conftest.$ac_ext
10548fi
Reid Spencera773bd52006-08-04 18:18:08 +000010549ac_res=`eval echo '${'$as_ac_var'}'`
10550 { echo "$as_me:$LINENO: result: $ac_res" >&5
10551echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010552if test `eval echo '${'$as_ac_var'}'` = yes; then
10553 cat >>confdefs.h <<_ACEOF
10554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10555_ACEOF
10556
10557fi
10558done
10559
10560 LIBS="$lt_save_LIBS"
10561fi
10562ac_ext=c
10563ac_cpp='$CPP $CPPFLAGS'
10564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10566ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567
10568
10569
Reid Spencera773bd52006-08-04 18:18:08 +000010570{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10571echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010572if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575 ac_cv_sys_symbol_underscore=no
10576 cat > conftest.$ac_ext <<EOF
10577void nm_test_func(){}
10578int main(){nm_test_func;return 0;}
10579EOF
10580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10581 (eval $ac_compile) 2>&5
10582 ac_status=$?
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); }; then
10585 # Now try to grab the symbols.
10586 ac_nlist=conftest.nm
10587 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10588 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); } && test -s "$ac_nlist"; then
10592 # See whether the symbols have a leading underscore.
10593 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10594 ac_cv_sys_symbol_underscore=yes
10595 else
10596 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10597 :
10598 else
10599 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10600 fi
10601 fi
10602 else
10603 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10604 fi
10605 else
10606 echo "configure: failed program was:" >&5
10607 cat conftest.c >&5
10608 fi
10609 rm -rf conftest*
10610
10611fi
Reid Spencera773bd52006-08-04 18:18:08 +000010612{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10613echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010614
10615
10616if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10617 if test x"$libltdl_cv_func_dlopen" = xyes ||
10618 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010619 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10620echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621if test "${libltdl_cv_need_uscore+set}" = set; then
10622 echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624 libltdl_cv_need_uscore=unknown
10625 save_LIBS="$LIBS"
10626 LIBS="$LIBS $LIBADD_DL"
10627 if test "$cross_compiling" = yes; then :
10628 libltdl_cv_need_uscore=cross
10629else
10630 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10631 lt_status=$lt_dlunknown
10632 cat > conftest.$ac_ext <<EOF
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000010633#line 10633 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634#include "confdefs.h"
10635
10636#if HAVE_DLFCN_H
10637#include <dlfcn.h>
10638#endif
10639
10640#include <stdio.h>
10641
10642#ifdef RTLD_GLOBAL
10643# define LT_DLGLOBAL RTLD_GLOBAL
10644#else
10645# ifdef DL_GLOBAL
10646# define LT_DLGLOBAL DL_GLOBAL
10647# else
10648# define LT_DLGLOBAL 0
10649# endif
10650#endif
10651
10652/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10653 find out it does not work in some platform. */
10654#ifndef LT_DLLAZY_OR_NOW
10655# ifdef RTLD_LAZY
10656# define LT_DLLAZY_OR_NOW RTLD_LAZY
10657# else
10658# ifdef DL_LAZY
10659# define LT_DLLAZY_OR_NOW DL_LAZY
10660# else
10661# ifdef RTLD_NOW
10662# define LT_DLLAZY_OR_NOW RTLD_NOW
10663# else
10664# ifdef DL_NOW
10665# define LT_DLLAZY_OR_NOW DL_NOW
10666# else
10667# define LT_DLLAZY_OR_NOW 0
10668# endif
10669# endif
10670# endif
10671# endif
10672#endif
10673
10674#ifdef __cplusplus
10675extern "C" void exit (int);
10676#endif
10677
10678void fnord() { int i=42;}
10679int main ()
10680{
10681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10682 int status = $lt_dlunknown;
10683
10684 if (self)
10685 {
10686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10687 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10688 /* dlclose (self); */
10689 }
Reid Spencera773bd52006-08-04 18:18:08 +000010690 else
10691 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692
10693 exit (status);
10694}
10695EOF
10696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>&5
10698 ac_status=$?
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010701 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702 lt_status=$?
10703 case x$lt_status in
10704 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10705 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010706 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010707 esac
10708 else :
10709 # compilation failed
10710
10711 fi
10712fi
10713rm -fr conftest*
10714
10715 LIBS="$save_LIBS"
10716
10717fi
Reid Spencera773bd52006-08-04 18:18:08 +000010718{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10719echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720 fi
10721fi
10722
10723if test x"$libltdl_cv_need_uscore" = xyes; then
10724
10725cat >>confdefs.h <<\_ACEOF
10726#define NEED_USCORE 1
10727_ACEOF
10728
10729fi
10730
10731
Reid Spencera773bd52006-08-04 18:18:08 +000010732{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10733echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10735 echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737 # PORTME does your system automatically load deplibs for dlopen?
10738 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10739 # For now, we just catch OSes we know something about -- in the
10740 # future, we'll try test this programmatically.
10741 libltdl_cv_sys_dlopen_deplibs=unknown
10742 case "$host_os" in
10743 aix3*|aix4.1.*|aix4.2.*)
10744 # Unknown whether this is true for these versions of AIX, but
10745 # we want this `case' here to explicitly catch those versions.
10746 libltdl_cv_sys_dlopen_deplibs=unknown
10747 ;;
10748 aix[45]*)
10749 libltdl_cv_sys_dlopen_deplibs=yes
10750 ;;
10751 darwin*)
10752 # Assuming the user has installed a libdl from somewhere, this is true
10753 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10754 libltdl_cv_sys_dlopen_deplibs=yes
10755 ;;
10756 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10757 # GNU and its variants, using gnu ld.so (Glibc)
10758 libltdl_cv_sys_dlopen_deplibs=yes
10759 ;;
10760 hpux10*|hpux11*)
10761 libltdl_cv_sys_dlopen_deplibs=yes
10762 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010763 interix*)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10765 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010766 irix[12345]*|irix6.[01]*)
10767 # Catch all versions of IRIX before 6.2, and indicate that we don't
10768 # know how it worked for any of those versions.
10769 libltdl_cv_sys_dlopen_deplibs=unknown
10770 ;;
10771 irix*)
10772 # The case above catches anything before 6.2, and it's known that
10773 # at 6.2 and later dlopen does load deplibs.
10774 libltdl_cv_sys_dlopen_deplibs=yes
10775 ;;
10776 netbsd*)
10777 libltdl_cv_sys_dlopen_deplibs=yes
10778 ;;
10779 openbsd*)
10780 libltdl_cv_sys_dlopen_deplibs=yes
10781 ;;
10782 osf[1234]*)
10783 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10784 # it did *not* use an RPATH in a shared library to find objects the
10785 # library depends on, so we explictly say `no'.
10786 libltdl_cv_sys_dlopen_deplibs=no
10787 ;;
10788 osf5.0|osf5.0a|osf5.1)
10789 # dlopen *does* load deplibs and with the right loader patch applied
10790 # it even uses RPATH in a shared library to search for shared objects
10791 # that the library depends on, but there's no easy way to know if that
10792 # patch is installed. Since this is the case, all we can really
10793 # say is unknown -- it depends on the patch being installed. If
10794 # it is, this changes to `yes'. Without it, it would be `no'.
10795 libltdl_cv_sys_dlopen_deplibs=unknown
10796 ;;
10797 osf*)
10798 # the two cases above should catch all versions of osf <= 5.1. Read
10799 # the comments above for what we know about them.
10800 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10801 # is used to find them so we can finally say `yes'.
10802 libltdl_cv_sys_dlopen_deplibs=yes
10803 ;;
10804 solaris*)
10805 libltdl_cv_sys_dlopen_deplibs=yes
10806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010807 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10808 libltdl_cv_sys_dlopen_deplibs=yes
10809 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810 esac
10811
10812fi
Reid Spencera773bd52006-08-04 18:18:08 +000010813{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10814echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10816
10817cat >>confdefs.h <<\_ACEOF
10818#define LTDL_DLOPEN_DEPLIBS 1
10819_ACEOF
10820
10821fi
10822
10823
10824for ac_header in argz.h
10825do
10826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832fi
Reid Spencera773bd52006-08-04 18:18:08 +000010833ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836else
10837 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010838{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840cat >conftest.$ac_ext <<_ACEOF
10841/* confdefs.h. */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h. */
10846$ac_includes_default
10847#include <$ac_header>
10848_ACEOF
10849rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010850if { (ac_try="$ac_compile"
10851case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010862 (exit $ac_status); } &&
10863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest.$ac_objext'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 ac_header_compiler=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
Reid Spencera773bd52006-08-04 18:18:08 +000010888 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010889fi
Reid Spencera773bd52006-08-04 18:18:08 +000010890
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10892{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10893echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894
10895# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010896{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010898cat >conftest.$ac_ext <<_ACEOF
10899/* confdefs.h. */
10900_ACEOF
10901cat confdefs.h >>conftest.$ac_ext
10902cat >>conftest.$ac_ext <<_ACEOF
10903/* end confdefs.h. */
10904#include <$ac_header>
10905_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010906if { (ac_try="$ac_cpp conftest.$ac_ext"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
10911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 ac_status=$?
10914 grep -v '^ *+' conftest.er1 >conftest.err
10915 rm -f conftest.er1
10916 cat conftest.err >&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010918 (exit $ac_status); } >/dev/null; then
10919 if test -s conftest.err; then
10920 ac_cpp_err=$ac_c_preproc_warn_flag
10921 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10922 else
10923 ac_cpp_err=
10924 fi
10925else
10926 ac_cpp_err=yes
10927fi
10928if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929 ac_header_preproc=yes
10930else
10931 echo "$as_me: failed program was:" >&5
10932sed 's/^/| /' conftest.$ac_ext >&5
10933
10934 ac_header_preproc=no
10935fi
Reid Spencera773bd52006-08-04 18:18:08 +000010936
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010938{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10939echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940
10941# So? What about this header?
10942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10943 yes:no: )
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10945echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10947echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10948 ac_header_preproc=yes
10949 ;;
10950 no:yes:* )
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10952echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10954echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10956echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10958echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10960echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10962echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010963 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964## ----------------------------------- ##
10965## Report this to llvmbugs@cs.uiuc.edu ##
10966## ----------------------------------- ##
10967_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010968 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969 ;;
10970esac
Reid Spencera773bd52006-08-04 18:18:08 +000010971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 eval "$as_ac_Header=\$ac_header_preproc"
10977fi
Reid Spencera773bd52006-08-04 18:18:08 +000010978ac_res=`eval echo '${'$as_ac_Header'}'`
10979 { echo "$as_me:$LINENO: result: $ac_res" >&5
10980echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981
10982fi
10983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
10987
10988fi
10989
10990done
10991
10992
Reid Spencera773bd52006-08-04 18:18:08 +000010993{ echo "$as_me:$LINENO: checking for error_t" >&5
10994echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995if test "${ac_cv_type_error_t+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10997else
10998 cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004#if HAVE_ARGZ_H
11005# include <argz.h>
11006#endif
11007
Reid Spencera773bd52006-08-04 18:18:08 +000011008typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009int
11010main ()
11011{
Reid Spencera773bd52006-08-04 18:18:08 +000011012if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011014if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015 return 0;
11016 ;
11017 return 0;
11018}
11019_ACEOF
11020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011021if { (ac_try="$ac_compile"
11022case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011028 ac_status=$?
11029 grep -v '^ *+' conftest.er1 >conftest.err
11030 rm -f conftest.er1
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011033 (exit $ac_status); } &&
11034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11035 { (case "(($ac_try" in
11036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037 *) ac_try_echo=$ac_try;;
11038esac
11039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040 (eval "$ac_try") 2>&5
11041 ac_status=$?
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); }; } &&
11044 { ac_try='test -s conftest.$ac_objext'
11045 { (case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048esac
11049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11050 (eval "$ac_try") 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 ac_cv_type_error_t=yes
11055else
11056 echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
Reid Spencera773bd52006-08-04 18:18:08 +000011059 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060fi
Reid Spencera773bd52006-08-04 18:18:08 +000011061
11062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063fi
Reid Spencera773bd52006-08-04 18:18:08 +000011064{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11065echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066if test $ac_cv_type_error_t = yes; then
11067
11068cat >>confdefs.h <<_ACEOF
11069#define HAVE_ERROR_T 1
11070_ACEOF
11071
11072
11073else
11074
11075cat >>confdefs.h <<\_ACEOF
11076#define error_t int
11077_ACEOF
11078
11079fi
11080
11081
11082
11083
11084
11085
11086
11087for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11088do
11089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011090{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11092if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093 echo $ECHO_N "(cached) $ECHO_C" >&6
11094else
11095 cat >conftest.$ac_ext <<_ACEOF
11096/* confdefs.h. */
11097_ACEOF
11098cat confdefs.h >>conftest.$ac_ext
11099cat >>conftest.$ac_ext <<_ACEOF
11100/* end confdefs.h. */
11101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11103#define $ac_func innocuous_$ac_func
11104
11105/* System header to define __stub macros and hopefully few prototypes,
11106 which can conflict with char $ac_func (); below.
11107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11108 <limits.h> exists even on freestanding compilers. */
11109
11110#ifdef __STDC__
11111# include <limits.h>
11112#else
11113# include <assert.h>
11114#endif
11115
11116#undef $ac_func
11117
Reid Spencera773bd52006-08-04 18:18:08 +000011118/* Override any GCC internal prototype to avoid an error.
11119 Use char because int might match the return type of a GCC
11120 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121#ifdef __cplusplus
11122extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124char $ac_func ();
11125/* The GNU C library defines this for functions which it implements
11126 to always fail with ENOSYS. Some functions are actually named
11127 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011128#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130#endif
11131
11132int
11133main ()
11134{
Reid Spencera773bd52006-08-04 18:18:08 +000011135return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136 ;
11137 return 0;
11138}
11139_ACEOF
11140rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011141if { (ac_try="$ac_link"
11142case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011153 (exit $ac_status); } &&
11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11155 { (case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158esac
11159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160 (eval "$ac_try") 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest$ac_exeext'
11165 { (case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_try") 2>&5
11171 ac_status=$?
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011174 eval "$as_ac_var=yes"
11175else
11176 echo "$as_me: failed program was:" >&5
11177sed 's/^/| /' conftest.$ac_ext >&5
11178
Reid Spencera773bd52006-08-04 18:18:08 +000011179 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180fi
Reid Spencera773bd52006-08-04 18:18:08 +000011181
Tanya Lattnercf067672008-01-17 05:57:22 +000011182rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183 conftest$ac_exeext conftest.$ac_ext
11184fi
Reid Spencera773bd52006-08-04 18:18:08 +000011185ac_res=`eval echo '${'$as_ac_var'}'`
11186 { echo "$as_me:$LINENO: result: $ac_res" >&5
11187echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011188if test `eval echo '${'$as_ac_var'}'` = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191_ACEOF
11192
11193fi
11194done
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11224 stdio.h unistd.h
11225do
11226as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232fi
Reid Spencera773bd52006-08-04 18:18:08 +000011233ac_res=`eval echo '${'$as_ac_Header'}'`
11234 { echo "$as_me:$LINENO: result: $ac_res" >&5
11235echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236else
11237 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011238{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240cat >conftest.$ac_ext <<_ACEOF
11241/* confdefs.h. */
11242_ACEOF
11243cat confdefs.h >>conftest.$ac_ext
11244cat >>conftest.$ac_ext <<_ACEOF
11245/* end confdefs.h. */
11246$ac_includes_default
11247#include <$ac_header>
11248_ACEOF
11249rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011250if { (ac_try="$ac_compile"
11251case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11254esac
11255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11264 { (case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267esac
11268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_try") 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; } &&
11273 { ac_try='test -s conftest.$ac_objext'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
11280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283 ac_header_compiler=yes
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
Reid Spencera773bd52006-08-04 18:18:08 +000011288 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011289fi
Reid Spencera773bd52006-08-04 18:18:08 +000011290
11291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11292{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11293echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294
11295# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011296{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11297echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298cat >conftest.$ac_ext <<_ACEOF
11299/* confdefs.h. */
11300_ACEOF
11301cat confdefs.h >>conftest.$ac_ext
11302cat >>conftest.$ac_ext <<_ACEOF
11303/* end confdefs.h. */
11304#include <$ac_header>
11305_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011306if { (ac_try="$ac_cpp conftest.$ac_ext"
11307case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011313 ac_status=$?
11314 grep -v '^ *+' conftest.er1 >conftest.err
11315 rm -f conftest.er1
11316 cat conftest.err >&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011318 (exit $ac_status); } >/dev/null; then
11319 if test -s conftest.err; then
11320 ac_cpp_err=$ac_c_preproc_warn_flag
11321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11322 else
11323 ac_cpp_err=
11324 fi
11325else
11326 ac_cpp_err=yes
11327fi
11328if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329 ac_header_preproc=yes
11330else
11331 echo "$as_me: failed program was:" >&5
11332sed 's/^/| /' conftest.$ac_ext >&5
11333
11334 ac_header_preproc=no
11335fi
Reid Spencera773bd52006-08-04 18:18:08 +000011336
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011338{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11339echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340
11341# So? What about this header?
11342case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11343 yes:no: )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11345echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11347echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11348 ac_header_preproc=yes
11349 ;;
11350 no:yes:* )
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11356echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11358echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11362echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011363 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011364## ----------------------------------- ##
11365## Report this to llvmbugs@cs.uiuc.edu ##
11366## ----------------------------------- ##
11367_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011368 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011369 ;;
11370esac
Reid Spencera773bd52006-08-04 18:18:08 +000011371{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375else
11376 eval "$as_ac_Header=\$ac_header_preproc"
11377fi
Reid Spencera773bd52006-08-04 18:18:08 +000011378ac_res=`eval echo '${'$as_ac_Header'}'`
11379 { echo "$as_me:$LINENO: result: $ac_res" >&5
11380echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381
11382fi
11383if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386_ACEOF
11387
11388fi
11389
11390done
11391
11392
11393
11394
11395
11396for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11397do
11398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404fi
Reid Spencera773bd52006-08-04 18:18:08 +000011405ac_res=`eval echo '${'$as_ac_Header'}'`
11406 { echo "$as_me:$LINENO: result: $ac_res" >&5
11407echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408else
11409 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011410{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412cat >conftest.$ac_ext <<_ACEOF
11413/* confdefs.h. */
11414_ACEOF
11415cat confdefs.h >>conftest.$ac_ext
11416cat >>conftest.$ac_ext <<_ACEOF
11417/* end confdefs.h. */
11418$ac_includes_default
11419#include <$ac_header>
11420_ACEOF
11421rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011422if { (ac_try="$ac_compile"
11423case "(($ac_try" in
11424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11425 *) ac_try_echo=$ac_try;;
11426esac
11427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011434 (exit $ac_status); } &&
11435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439esac
11440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (case "(($ac_try" in
11447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448 *) ac_try_echo=$ac_try;;
11449esac
11450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_try") 2>&5
11452 ac_status=$?
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 ac_header_compiler=yes
11456else
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
Reid Spencera773bd52006-08-04 18:18:08 +000011460 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461fi
Reid Spencera773bd52006-08-04 18:18:08 +000011462
11463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11465echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466
11467# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011468{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <$ac_header>
11477_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011478if { (ac_try="$ac_cpp conftest.$ac_ext"
11479case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11482esac
11483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485 ac_status=$?
11486 grep -v '^ *+' conftest.er1 >conftest.err
11487 rm -f conftest.er1
11488 cat conftest.err >&5
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011490 (exit $ac_status); } >/dev/null; then
11491 if test -s conftest.err; then
11492 ac_cpp_err=$ac_c_preproc_warn_flag
11493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11494 else
11495 ac_cpp_err=
11496 fi
11497else
11498 ac_cpp_err=yes
11499fi
11500if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501 ac_header_preproc=yes
11502else
11503 echo "$as_me: failed program was:" >&5
11504sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_header_preproc=no
11507fi
Reid Spencera773bd52006-08-04 18:18:08 +000011508
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011509rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011510{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512
11513# So? What about this header?
11514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515 yes:no: )
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11521 ;;
11522 no:yes:* )
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011535 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536## ----------------------------------- ##
11537## Report this to llvmbugs@cs.uiuc.edu ##
11538## ----------------------------------- ##
11539_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011540 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011541 ;;
11542esac
Reid Spencera773bd52006-08-04 18:18:08 +000011543{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547else
11548 eval "$as_ac_Header=\$ac_header_preproc"
11549fi
Reid Spencera773bd52006-08-04 18:18:08 +000011550ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553
11554fi
11555if test `eval echo '${'$as_ac_Header'}'` = yes; then
11556 cat >>confdefs.h <<_ACEOF
11557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11558_ACEOF
11559
11560fi
11561
11562done
11563
11564
11565
11566for ac_header in string.h strings.h
11567do
11568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011569if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574fi
Reid Spencera773bd52006-08-04 18:18:08 +000011575ac_res=`eval echo '${'$as_ac_Header'}'`
11576 { echo "$as_me:$LINENO: result: $ac_res" >&5
11577echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578else
11579 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011580{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582cat >conftest.$ac_ext <<_ACEOF
11583/* confdefs.h. */
11584_ACEOF
11585cat confdefs.h >>conftest.$ac_ext
11586cat >>conftest.$ac_ext <<_ACEOF
11587/* end confdefs.h. */
11588$ac_includes_default
11589#include <$ac_header>
11590_ACEOF
11591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011592if { (ac_try="$ac_compile"
11593case "(($ac_try" in
11594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595 *) ac_try_echo=$ac_try;;
11596esac
11597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11598 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011604 (exit $ac_status); } &&
11605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11606 { (case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_try") 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (case "(($ac_try" in
11617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618 *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_try") 2>&5
11622 ac_status=$?
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011625 ac_header_compiler=yes
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
Reid Spencera773bd52006-08-04 18:18:08 +000011630 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631fi
Reid Spencera773bd52006-08-04 18:18:08 +000011632
11633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11635echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636
11637# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011638{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11639echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646#include <$ac_header>
11647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011648if { (ac_try="$ac_cpp conftest.$ac_ext"
11649case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652esac
11653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011660 (exit $ac_status); } >/dev/null; then
11661 if test -s conftest.err; then
11662 ac_cpp_err=$ac_c_preproc_warn_flag
11663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11664 else
11665 ac_cpp_err=
11666 fi
11667else
11668 ac_cpp_err=yes
11669fi
11670if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_header_preproc=yes
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
11676 ac_header_preproc=no
11677fi
Reid Spencera773bd52006-08-04 18:18:08 +000011678
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011679rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682
11683# So? What about this header?
11684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11685 yes:no: )
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc=yes
11691 ;;
11692 no:yes:* )
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011705 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706## ----------------------------------- ##
11707## Report this to llvmbugs@cs.uiuc.edu ##
11708## ----------------------------------- ##
11709_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011710 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 ;;
11712esac
Reid Spencera773bd52006-08-04 18:18:08 +000011713{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11715if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716 echo $ECHO_N "(cached) $ECHO_C" >&6
11717else
11718 eval "$as_ac_Header=\$ac_header_preproc"
11719fi
Reid Spencera773bd52006-08-04 18:18:08 +000011720ac_res=`eval echo '${'$as_ac_Header'}'`
11721 { echo "$as_me:$LINENO: result: $ac_res" >&5
11722echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723
11724fi
11725if test `eval echo '${'$as_ac_Header'}'` = yes; then
11726 cat >>confdefs.h <<_ACEOF
11727#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11728_ACEOF
11729 break
11730fi
11731
11732done
11733
11734
11735
11736
11737for ac_func in strchr index
11738do
11739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011740{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11742if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 echo $ECHO_N "(cached) $ECHO_C" >&6
11744else
11745 cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753#define $ac_func innocuous_$ac_func
11754
11755/* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11759
11760#ifdef __STDC__
11761# include <limits.h>
11762#else
11763# include <assert.h>
11764#endif
11765
11766#undef $ac_func
11767
Reid Spencera773bd52006-08-04 18:18:08 +000011768/* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011771#ifdef __cplusplus
11772extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774char $ac_func ();
11775/* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011778#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011779choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780#endif
11781
11782int
11783main ()
11784{
Reid Spencera773bd52006-08-04 18:18:08 +000011785return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786 ;
11787 return 0;
11788}
11789_ACEOF
11790rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011791if { (ac_try="$ac_link"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798 ac_status=$?
11799 grep -v '^ *+' conftest.er1 >conftest.err
11800 rm -f conftest.er1
11801 cat conftest.err >&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011803 (exit $ac_status); } &&
11804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11805 { (case "(($ac_try" in
11806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11808esac
11809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11811 ac_status=$?
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; } &&
11814 { ac_try='test -s conftest$ac_exeext'
11815 { (case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818esac
11819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_try") 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824 eval "$as_ac_var=yes"
11825else
11826 echo "$as_me: failed program was:" >&5
11827sed 's/^/| /' conftest.$ac_ext >&5
11828
Reid Spencera773bd52006-08-04 18:18:08 +000011829 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830fi
Reid Spencera773bd52006-08-04 18:18:08 +000011831
Tanya Lattnercf067672008-01-17 05:57:22 +000011832rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 conftest$ac_exeext conftest.$ac_ext
11834fi
Reid Spencera773bd52006-08-04 18:18:08 +000011835ac_res=`eval echo '${'$as_ac_var'}'`
11836 { echo "$as_me:$LINENO: result: $ac_res" >&5
11837echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011838if test `eval echo '${'$as_ac_var'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11841_ACEOF
11842 break
11843fi
11844done
11845
11846
11847
11848for ac_func in strrchr rindex
11849do
11850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011851{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854 echo $ECHO_N "(cached) $ECHO_C" >&6
11855else
11856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11864#define $ac_func innocuous_$ac_func
11865
11866/* System header to define __stub macros and hopefully few prototypes,
11867 which can conflict with char $ac_func (); below.
11868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11869 <limits.h> exists even on freestanding compilers. */
11870
11871#ifdef __STDC__
11872# include <limits.h>
11873#else
11874# include <assert.h>
11875#endif
11876
11877#undef $ac_func
11878
Reid Spencera773bd52006-08-04 18:18:08 +000011879/* Override any GCC internal prototype to avoid an error.
11880 Use char because int might match the return type of a GCC
11881 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882#ifdef __cplusplus
11883extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885char $ac_func ();
11886/* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011889#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011890choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011891#endif
11892
11893int
11894main ()
11895{
Reid Spencera773bd52006-08-04 18:18:08 +000011896return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897 ;
11898 return 0;
11899}
11900_ACEOF
11901rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011902if { (ac_try="$ac_link"
11903case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11906esac
11907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909 ac_status=$?
11910 grep -v '^ *+' conftest.er1 >conftest.err
11911 rm -f conftest.er1
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919esac
11920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest$ac_exeext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11929esac
11930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935 eval "$as_ac_var=yes"
11936else
11937 echo "$as_me: failed program was:" >&5
11938sed 's/^/| /' conftest.$ac_ext >&5
11939
Reid Spencera773bd52006-08-04 18:18:08 +000011940 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941fi
Reid Spencera773bd52006-08-04 18:18:08 +000011942
Tanya Lattnercf067672008-01-17 05:57:22 +000011943rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 conftest$ac_exeext conftest.$ac_ext
11945fi
Reid Spencera773bd52006-08-04 18:18:08 +000011946ac_res=`eval echo '${'$as_ac_var'}'`
11947 { echo "$as_me:$LINENO: result: $ac_res" >&5
11948echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949if test `eval echo '${'$as_ac_var'}'` = yes; then
11950 cat >>confdefs.h <<_ACEOF
11951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11952_ACEOF
11953 break
11954fi
11955done
11956
11957
11958
11959for ac_func in memcpy bcopy
11960do
11961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011962{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11964if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 cat >conftest.$ac_ext <<_ACEOF
11968/* confdefs.h. */
11969_ACEOF
11970cat confdefs.h >>conftest.$ac_ext
11971cat >>conftest.$ac_ext <<_ACEOF
11972/* end confdefs.h. */
11973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11975#define $ac_func innocuous_$ac_func
11976
11977/* System header to define __stub macros and hopefully few prototypes,
11978 which can conflict with char $ac_func (); below.
11979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11980 <limits.h> exists even on freestanding compilers. */
11981
11982#ifdef __STDC__
11983# include <limits.h>
11984#else
11985# include <assert.h>
11986#endif
11987
11988#undef $ac_func
11989
Reid Spencera773bd52006-08-04 18:18:08 +000011990/* Override any GCC internal prototype to avoid an error.
11991 Use char because int might match the return type of a GCC
11992 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993#ifdef __cplusplus
11994extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011995#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996char $ac_func ();
11997/* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012000#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012001choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002#endif
12003
12004int
12005main ()
12006{
Reid Spencera773bd52006-08-04 18:18:08 +000012007return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008 ;
12009 return 0;
12010}
12011_ACEOF
12012rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012013if { (ac_try="$ac_link"
12014case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12019 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020 ac_status=$?
12021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012025 (exit $ac_status); } &&
12026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12027 { (case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030esac
12031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_try") 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046 eval "$as_ac_var=yes"
12047else
12048 echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
Reid Spencera773bd52006-08-04 18:18:08 +000012051 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052fi
Reid Spencera773bd52006-08-04 18:18:08 +000012053
Tanya Lattnercf067672008-01-17 05:57:22 +000012054rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 conftest$ac_exeext conftest.$ac_ext
12056fi
Reid Spencera773bd52006-08-04 18:18:08 +000012057ac_res=`eval echo '${'$as_ac_var'}'`
12058 { echo "$as_me:$LINENO: result: $ac_res" >&5
12059echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060if test `eval echo '${'$as_ac_var'}'` = yes; then
12061 cat >>confdefs.h <<_ACEOF
12062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12063_ACEOF
12064 break
12065fi
12066done
12067
12068
12069
12070for ac_func in memmove strcmp
12071do
12072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012073{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12075if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078 cat >conftest.$ac_ext <<_ACEOF
12079/* confdefs.h. */
12080_ACEOF
12081cat confdefs.h >>conftest.$ac_ext
12082cat >>conftest.$ac_ext <<_ACEOF
12083/* end confdefs.h. */
12084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12086#define $ac_func innocuous_$ac_func
12087
12088/* System header to define __stub macros and hopefully few prototypes,
12089 which can conflict with char $ac_func (); below.
12090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091 <limits.h> exists even on freestanding compilers. */
12092
12093#ifdef __STDC__
12094# include <limits.h>
12095#else
12096# include <assert.h>
12097#endif
12098
12099#undef $ac_func
12100
Reid Spencera773bd52006-08-04 18:18:08 +000012101/* Override any GCC internal prototype to avoid an error.
12102 Use char because int might match the return type of a GCC
12103 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012104#ifdef __cplusplus
12105extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012106#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107char $ac_func ();
12108/* The GNU C library defines this for functions which it implements
12109 to always fail with ENOSYS. Some functions are actually named
12110 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012111#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012112choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113#endif
12114
12115int
12116main ()
12117{
Reid Spencera773bd52006-08-04 18:18:08 +000012118return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119 ;
12120 return 0;
12121}
12122_ACEOF
12123rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012124if { (ac_try="$ac_link"
12125case "(($ac_try" in
12126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12127 *) ac_try_echo=$ac_try;;
12128esac
12129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 ac_status=$?
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012136 (exit $ac_status); } &&
12137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12138 { (case "(($ac_try" in
12139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140 *) ac_try_echo=$ac_try;;
12141esac
12142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143 (eval "$ac_try") 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157 eval "$as_ac_var=yes"
12158else
12159 echo "$as_me: failed program was:" >&5
12160sed 's/^/| /' conftest.$ac_ext >&5
12161
Reid Spencera773bd52006-08-04 18:18:08 +000012162 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163fi
Reid Spencera773bd52006-08-04 18:18:08 +000012164
Tanya Lattnercf067672008-01-17 05:57:22 +000012165rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 conftest$ac_exeext conftest.$ac_ext
12167fi
Reid Spencera773bd52006-08-04 18:18:08 +000012168ac_res=`eval echo '${'$as_ac_var'}'`
12169 { echo "$as_me:$LINENO: result: $ac_res" >&5
12170echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012171if test `eval echo '${'$as_ac_var'}'` = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12174_ACEOF
12175
12176fi
12177done
12178
12179
12180
12181
12182for ac_func in closedir opendir readdir
12183do
12184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012185{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12187if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
12196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12198#define $ac_func innocuous_$ac_func
12199
12200/* System header to define __stub macros and hopefully few prototypes,
12201 which can conflict with char $ac_func (); below.
12202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12203 <limits.h> exists even on freestanding compilers. */
12204
12205#ifdef __STDC__
12206# include <limits.h>
12207#else
12208# include <assert.h>
12209#endif
12210
12211#undef $ac_func
12212
Reid Spencera773bd52006-08-04 18:18:08 +000012213/* Override any GCC internal prototype to avoid an error.
12214 Use char because int might match the return type of a GCC
12215 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216#ifdef __cplusplus
12217extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012219char $ac_func ();
12220/* The GNU C library defines this for functions which it implements
12221 to always fail with ENOSYS. Some functions are actually named
12222 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012223#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225#endif
12226
12227int
12228main ()
12229{
Reid Spencera773bd52006-08-04 18:18:08 +000012230return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012231 ;
12232 return 0;
12233}
12234_ACEOF
12235rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012236if { (ac_try="$ac_link"
12237case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12240esac
12241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243 ac_status=$?
12244 grep -v '^ *+' conftest.er1 >conftest.err
12245 rm -f conftest.er1
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12256 ac_status=$?
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest$ac_exeext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12263esac
12264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012269 eval "$as_ac_var=yes"
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
Reid Spencera773bd52006-08-04 18:18:08 +000012274 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012275fi
Reid Spencera773bd52006-08-04 18:18:08 +000012276
Tanya Lattnercf067672008-01-17 05:57:22 +000012277rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 conftest$ac_exeext conftest.$ac_ext
12279fi
Reid Spencera773bd52006-08-04 18:18:08 +000012280ac_res=`eval echo '${'$as_ac_var'}'`
12281 { echo "$as_me:$LINENO: result: $ac_res" >&5
12282echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283if test `eval echo '${'$as_ac_var'}'` = yes; then
12284 cat >>confdefs.h <<_ACEOF
12285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12286_ACEOF
12287
12288fi
12289done
12290
12291
Reid Spencera773bd52006-08-04 18:18:08 +000012292# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012294 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295 case $enableval in
12296 yes) enable_shared=yes ;;
12297 no) enable_shared=no ;;
12298 *)
12299 enable_shared=no
12300 # Look at the argument we got. We use all the common list separators.
12301 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12302 for pkg in $enableval; do
12303 IFS="$lt_save_ifs"
12304 if test "X$pkg" = "X$p"; then
12305 enable_shared=yes
12306 fi
12307 done
12308 IFS="$lt_save_ifs"
12309 ;;
12310 esac
12311else
12312 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012313fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314
Reid Spencera773bd52006-08-04 18:18:08 +000012315
12316# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012318 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012319 case $enableval in
12320 yes) enable_static=yes ;;
12321 no) enable_static=no ;;
12322 *)
12323 enable_static=no
12324 # Look at the argument we got. We use all the common list separators.
12325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12326 for pkg in $enableval; do
12327 IFS="$lt_save_ifs"
12328 if test "X$pkg" = "X$p"; then
12329 enable_static=yes
12330 fi
12331 done
12332 IFS="$lt_save_ifs"
12333 ;;
12334 esac
12335else
12336 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012337fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338
Reid Spencera773bd52006-08-04 18:18:08 +000012339
12340# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012342 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343 case $enableval in
12344 yes) enable_fast_install=yes ;;
12345 no) enable_fast_install=no ;;
12346 *)
12347 enable_fast_install=no
12348 # Look at the argument we got. We use all the common list separators.
12349 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12350 for pkg in $enableval; do
12351 IFS="$lt_save_ifs"
12352 if test "X$pkg" = "X$p"; then
12353 enable_fast_install=yes
12354 fi
12355 done
12356 IFS="$lt_save_ifs"
12357 ;;
12358 esac
12359else
12360 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012361fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362
Reid Spencera773bd52006-08-04 18:18:08 +000012363
12364{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12365echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366if test "${lt_cv_path_SED+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368else
12369 # Loop through the user's path and test for sed and gsed.
12370# Then use that list of sed's as ones to test for truncation.
12371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12372for as_dir in $PATH
12373do
12374 IFS=$as_save_IFS
12375 test -z "$as_dir" && as_dir=.
12376 for lt_ac_prog in sed gsed; do
12377 for ac_exec_ext in '' $ac_executable_extensions; do
12378 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12379 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12380 fi
12381 done
12382 done
12383done
12384lt_ac_max=0
12385lt_ac_count=0
12386# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12387# along with /bin/sed that truncates output.
12388for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012389 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390 cat /dev/null > conftest.in
12391 lt_ac_count=0
12392 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12393 # Check for GNU sed and select it if it is found.
12394 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12395 lt_cv_path_SED=$lt_ac_sed
12396 break
12397 fi
12398 while true; do
12399 cat conftest.in conftest.in >conftest.tmp
12400 mv conftest.tmp conftest.in
12401 cp conftest.in conftest.nl
12402 echo >>conftest.nl
12403 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12404 cmp -s conftest.out conftest.nl || break
12405 # 10000 chars as input seems more than enough
12406 test $lt_ac_count -gt 10 && break
12407 lt_ac_count=`expr $lt_ac_count + 1`
12408 if test $lt_ac_count -gt $lt_ac_max; then
12409 lt_ac_max=$lt_ac_count
12410 lt_cv_path_SED=$lt_ac_sed
12411 fi
12412 done
12413done
12414
12415fi
12416
12417SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012418{ echo "$as_me:$LINENO: result: $SED" >&5
12419echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420
12421
Reid Spencera773bd52006-08-04 18:18:08 +000012422# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012424 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425else
12426 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012427fi
12428
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429ac_prog=ld
12430if test "$GCC" = yes; then
12431 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012432 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12433echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434 case $host in
12435 *-*-mingw*)
12436 # gcc leaves a trailing carriage return which upsets mingw
12437 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12438 *)
12439 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12440 esac
12441 case $ac_prog in
12442 # Accept absolute paths.
12443 [\\/]* | ?:[\\/]*)
12444 re_direlt='/[^/][^/]*/\.\./'
12445 # Canonicalize the pathname of ld
12446 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12447 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12448 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12449 done
12450 test -z "$LD" && LD="$ac_prog"
12451 ;;
12452 "")
12453 # If it fails, then pretend we aren't using GCC.
12454 ac_prog=ld
12455 ;;
12456 *)
12457 # If it is relative, then search for the first ld in PATH.
12458 with_gnu_ld=unknown
12459 ;;
12460 esac
12461elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012462 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12463echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464else
Reid Spencera773bd52006-08-04 18:18:08 +000012465 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12466echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467fi
12468if test "${lt_cv_path_LD+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 if test -z "$LD"; then
12472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12473 for ac_dir in $PATH; do
12474 IFS="$lt_save_ifs"
12475 test -z "$ac_dir" && ac_dir=.
12476 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12477 lt_cv_path_LD="$ac_dir/$ac_prog"
12478 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012479 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480 # Break only if it was the GNU/non-GNU ld that we prefer.
12481 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12482 *GNU* | *'with BFD'*)
12483 test "$with_gnu_ld" != no && break
12484 ;;
12485 *)
12486 test "$with_gnu_ld" != yes && break
12487 ;;
12488 esac
12489 fi
12490 done
12491 IFS="$lt_save_ifs"
12492else
12493 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12494fi
12495fi
12496
12497LD="$lt_cv_path_LD"
12498if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012499 { echo "$as_me:$LINENO: result: $LD" >&5
12500echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501else
Reid Spencera773bd52006-08-04 18:18:08 +000012502 { echo "$as_me:$LINENO: result: no" >&5
12503echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012504fi
12505test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12506echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12507 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012508{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12509echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510if test "${lt_cv_prog_gnu_ld+set}" = set; then
12511 echo $ECHO_N "(cached) $ECHO_C" >&6
12512else
Reid Spencera773bd52006-08-04 18:18:08 +000012513 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514case `$LD -v 2>&1 </dev/null` in
12515*GNU* | *'with BFD'*)
12516 lt_cv_prog_gnu_ld=yes
12517 ;;
12518*)
12519 lt_cv_prog_gnu_ld=no
12520 ;;
12521esac
12522fi
Reid Spencera773bd52006-08-04 18:18:08 +000012523{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12524echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012525with_gnu_ld=$lt_cv_prog_gnu_ld
12526
12527
Reid Spencera773bd52006-08-04 18:18:08 +000012528{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12529echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012530if test "${lt_cv_ld_reload_flag+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12532else
12533 lt_cv_ld_reload_flag='-r'
12534fi
Reid Spencera773bd52006-08-04 18:18:08 +000012535{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12536echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012537reload_flag=$lt_cv_ld_reload_flag
12538case $reload_flag in
12539"" | " "*) ;;
12540*) reload_flag=" $reload_flag" ;;
12541esac
12542reload_cmds='$LD$reload_flag -o $output$reload_objs'
12543case $host_os in
12544 darwin*)
12545 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012546 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 else
12548 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12549 fi
12550 ;;
12551esac
12552
Reid Spencera773bd52006-08-04 18:18:08 +000012553{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12554echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012555if test "${lt_cv_deplibs_check_method+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12557else
12558 lt_cv_file_magic_cmd='$MAGIC_CMD'
12559lt_cv_file_magic_test_file=
12560lt_cv_deplibs_check_method='unknown'
12561# Need to set the preceding variable on all platforms that support
12562# interlibrary dependencies.
12563# 'none' -- dependencies not supported.
12564# `unknown' -- same as none, but documents that we really don't know.
12565# 'pass_all' -- all dependencies passed with no checks.
12566# 'test_compile' -- check by making test program.
12567# 'file_magic [[regex]]' -- check by looking for files in library path
12568# which responds to the $file_magic_cmd with a given extended regex.
12569# If you have `file' or equivalent on your system and you're not sure
12570# whether `pass_all' will *always* work, you probably want this one.
12571
12572case $host_os in
12573aix4* | aix5*)
12574 lt_cv_deplibs_check_method=pass_all
12575 ;;
12576
12577beos*)
12578 lt_cv_deplibs_check_method=pass_all
12579 ;;
12580
12581bsdi[45]*)
12582 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12583 lt_cv_file_magic_cmd='/usr/bin/file -L'
12584 lt_cv_file_magic_test_file=/shlib/libc.so
12585 ;;
12586
12587cygwin*)
12588 # func_win32_libid is a shell function defined in ltmain.sh
12589 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12590 lt_cv_file_magic_cmd='func_win32_libid'
12591 ;;
12592
12593mingw* | pw32*)
12594 # Base MSYS/MinGW do not provide the 'file' command needed by
12595 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12596 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12597 lt_cv_file_magic_cmd='$OBJDUMP -f'
12598 ;;
12599
12600darwin* | rhapsody*)
12601 lt_cv_deplibs_check_method=pass_all
12602 ;;
12603
Reid Spencera773bd52006-08-04 18:18:08 +000012604freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012605 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12606 case $host_cpu in
12607 i*86 )
12608 # Not sure whether the presence of OpenBSD here was a mistake.
12609 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012610 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 +000012611 lt_cv_file_magic_cmd=/usr/bin/file
12612 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12613 ;;
12614 esac
12615 else
12616 lt_cv_deplibs_check_method=pass_all
12617 fi
12618 ;;
12619
12620gnu*)
12621 lt_cv_deplibs_check_method=pass_all
12622 ;;
12623
12624hpux10.20* | hpux11*)
12625 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012626 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627 ia64*)
12628 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12629 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12630 ;;
12631 hppa*64*)
12632 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]'
12633 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12634 ;;
12635 *)
12636 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12637 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12638 ;;
12639 esac
12640 ;;
12641
Reid Spencera773bd52006-08-04 18:18:08 +000012642interix3*)
12643 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12645 ;;
12646
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012647irix5* | irix6* | nonstopux*)
12648 case $LD in
12649 *-32|*"-32 ") libmagic=32-bit;;
12650 *-n32|*"-n32 ") libmagic=N32;;
12651 *-64|*"-64 ") libmagic=64-bit;;
12652 *) libmagic=never-match;;
12653 esac
12654 lt_cv_deplibs_check_method=pass_all
12655 ;;
12656
12657# This must be Linux ELF.
12658linux*)
12659 lt_cv_deplibs_check_method=pass_all
12660 ;;
12661
12662netbsd*)
12663 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12665 else
12666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12667 fi
12668 ;;
12669
12670newos6*)
12671 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12672 lt_cv_file_magic_cmd=/usr/bin/file
12673 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12674 ;;
12675
12676nto-qnx*)
12677 lt_cv_deplibs_check_method=unknown
12678 ;;
12679
12680openbsd*)
12681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12683 else
12684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12685 fi
12686 ;;
12687
12688osf3* | osf4* | osf5*)
12689 lt_cv_deplibs_check_method=pass_all
12690 ;;
12691
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692solaris*)
12693 lt_cv_deplibs_check_method=pass_all
12694 ;;
12695
Reid Spencera773bd52006-08-04 18:18:08 +000012696sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697 case $host_vendor in
12698 motorola)
12699 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]'
12700 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12701 ;;
12702 ncr)
12703 lt_cv_deplibs_check_method=pass_all
12704 ;;
12705 sequent)
12706 lt_cv_file_magic_cmd='/bin/file'
12707 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12708 ;;
12709 sni)
12710 lt_cv_file_magic_cmd='/bin/file'
12711 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12712 lt_cv_file_magic_test_file=/lib/libc.so
12713 ;;
12714 siemens)
12715 lt_cv_deplibs_check_method=pass_all
12716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012717 pc)
12718 lt_cv_deplibs_check_method=pass_all
12719 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012720 esac
12721 ;;
12722
Reid Spencera773bd52006-08-04 18:18:08 +000012723sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012724 lt_cv_deplibs_check_method=pass_all
12725 ;;
12726esac
12727
12728fi
Reid Spencera773bd52006-08-04 18:18:08 +000012729{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12730echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012731file_magic_cmd=$lt_cv_file_magic_cmd
12732deplibs_check_method=$lt_cv_deplibs_check_method
12733test -z "$deplibs_check_method" && deplibs_check_method=unknown
12734
12735
12736
12737# If no C compiler was specified, use CC.
12738LTCC=${LTCC-"$CC"}
12739
Reid Spencera773bd52006-08-04 18:18:08 +000012740# If no C compiler flags were specified, use CFLAGS.
12741LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12742
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012743# Allow CC to be a program name with arguments.
12744compiler=$CC
12745
Reid Spencera773bd52006-08-04 18:18:08 +000012746# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012747if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012748 enableval=$enable_libtool_lock;
12749fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012750
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012751test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12752
12753# Some flags need to be propagated to the compiler or linker for good
12754# libtool support.
12755case $host in
12756ia64-*-hpux*)
12757 # Find out which ABI we are using.
12758 echo 'int i;' > conftest.$ac_ext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12760 (eval $ac_compile) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; then
12764 case `/usr/bin/file conftest.$ac_objext` in
12765 *ELF-32*)
12766 HPUX_IA64_MODE="32"
12767 ;;
12768 *ELF-64*)
12769 HPUX_IA64_MODE="64"
12770 ;;
12771 esac
12772 fi
12773 rm -rf conftest*
12774 ;;
12775*-*-irix6*)
12776 # Find out which ABI we are using.
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000012777 echo '#line 12777 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12779 (eval $ac_compile) 2>&5
12780 ac_status=$?
12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); }; then
12783 if test "$lt_cv_prog_gnu_ld" = yes; then
12784 case `/usr/bin/file conftest.$ac_objext` in
12785 *32-bit*)
12786 LD="${LD-ld} -melf32bsmip"
12787 ;;
12788 *N32*)
12789 LD="${LD-ld} -melf32bmipn32"
12790 ;;
12791 *64-bit*)
12792 LD="${LD-ld} -melf64bmip"
12793 ;;
12794 esac
12795 else
12796 case `/usr/bin/file conftest.$ac_objext` in
12797 *32-bit*)
12798 LD="${LD-ld} -32"
12799 ;;
12800 *N32*)
12801 LD="${LD-ld} -n32"
12802 ;;
12803 *64-bit*)
12804 LD="${LD-ld} -64"
12805 ;;
12806 esac
12807 fi
12808 fi
12809 rm -rf conftest*
12810 ;;
12811
12812x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12813 # Find out which ABI we are using.
12814 echo 'int i;' > conftest.$ac_ext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>&5
12817 ac_status=$?
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012820 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012821 *32-bit*)
12822 case $host in
12823 x86_64-*linux*)
12824 LD="${LD-ld} -m elf_i386"
12825 ;;
12826 ppc64-*linux*|powerpc64-*linux*)
12827 LD="${LD-ld} -m elf32ppclinux"
12828 ;;
12829 s390x-*linux*)
12830 LD="${LD-ld} -m elf_s390"
12831 ;;
12832 sparc64-*linux*)
12833 LD="${LD-ld} -m elf32_sparc"
12834 ;;
12835 esac
12836 ;;
12837 *64-bit*)
12838 case $host in
12839 x86_64-*linux*)
12840 LD="${LD-ld} -m elf_x86_64"
12841 ;;
12842 ppc*-*linux*|powerpc*-*linux*)
12843 LD="${LD-ld} -m elf64ppc"
12844 ;;
12845 s390*-*linux*)
12846 LD="${LD-ld} -m elf64_s390"
12847 ;;
12848 sparc*-*linux*)
12849 LD="${LD-ld} -m elf64_sparc"
12850 ;;
12851 esac
12852 ;;
12853 esac
12854 fi
12855 rm -rf conftest*
12856 ;;
12857
12858*-*-sco3.2v5*)
12859 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12860 SAVE_CFLAGS="$CFLAGS"
12861 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012862 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12863echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012864if test "${lt_cv_cc_needs_belf+set}" = set; then
12865 echo $ECHO_N "(cached) $ECHO_C" >&6
12866else
12867 ac_ext=c
12868ac_cpp='$CPP $CPPFLAGS'
12869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12871ac_compiler_gnu=$ac_cv_c_compiler_gnu
12872
12873 cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */
12879
Reid Spencera773bd52006-08-04 18:18:08 +000012880int
12881main ()
12882{
12883
12884 ;
12885 return 0;
12886}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012887_ACEOF
12888rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012889if { (ac_try="$ac_link"
12890case "(($ac_try" in
12891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892 *) ac_try_echo=$ac_try;;
12893esac
12894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906esac
12907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; } &&
12912 { ac_try='test -s conftest$ac_exeext'
12913 { (case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916esac
12917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_try") 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012922 lt_cv_cc_needs_belf=yes
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
Reid Spencera773bd52006-08-04 18:18:08 +000012927 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928fi
Reid Spencera773bd52006-08-04 18:18:08 +000012929
Tanya Lattnercf067672008-01-17 05:57:22 +000012930rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931 conftest$ac_exeext conftest.$ac_ext
12932 ac_ext=c
12933ac_cpp='$CPP $CPPFLAGS'
12934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936ac_compiler_gnu=$ac_cv_c_compiler_gnu
12937
12938fi
Reid Spencera773bd52006-08-04 18:18:08 +000012939{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12940echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12943 CFLAGS="$SAVE_CFLAGS"
12944 fi
12945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012946sparc*-*solaris*)
12947 # Find out which ABI we are using.
12948 echo 'int i;' > conftest.$ac_ext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950 (eval $ac_compile) 2>&5
12951 ac_status=$?
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; then
12954 case `/usr/bin/file conftest.o` in
12955 *64-bit*)
12956 case $lt_cv_prog_gnu_ld in
12957 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12958 *) LD="${LD-ld} -64" ;;
12959 esac
12960 ;;
12961 esac
12962 fi
12963 rm -rf conftest*
12964 ;;
12965
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012966
12967esac
12968
12969need_locks="$enable_libtool_lock"
12970
12971
Reid Spencer2706f8c2004-09-19 23:53:36 +000012972
12973
12974if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12976 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012977 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012978ac_cpp='$CXXCPP $CPPFLAGS'
12979ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12980ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12981ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012982{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12983echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012984if test -z "$CXXCPP"; then
12985 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
John Criswell47fdd832003-07-14 16:52:07 +000012988 # Double quotes because CXXCPP needs to be expanded
12989 for CXXCPP in "$CXX -E" "/lib/cpp"
12990 do
12991 ac_preproc_ok=false
12992for ac_cxx_preproc_warn_flag in '' yes
12993do
12994 # Use a header file that comes with gcc, so configuring glibc
12995 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012996 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12997 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012998 # On the NeXT, cc -E runs the code through the compiler's parser,
12999 # not just through cpp. "Syntax error" is here to catch this case.
13000 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013001/* confdefs.h. */
13002_ACEOF
13003cat confdefs.h >>conftest.$ac_ext
13004cat >>conftest.$ac_ext <<_ACEOF
13005/* end confdefs.h. */
13006#ifdef __STDC__
13007# include <limits.h>
13008#else
13009# include <assert.h>
13010#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013011 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013012_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013013if { (ac_try="$ac_cpp conftest.$ac_ext"
13014case "(($ac_try" in
13015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13016 *) ac_try_echo=$ac_try;;
13017esac
13018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013020 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013021 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013025 (exit $ac_status); } >/dev/null; then
13026 if test -s conftest.err; then
13027 ac_cpp_err=$ac_cxx_preproc_warn_flag
13028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13029 else
13030 ac_cpp_err=
13031 fi
13032else
13033 ac_cpp_err=yes
13034fi
13035if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013036 :
13037else
13038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013039sed 's/^/| /' conftest.$ac_ext >&5
13040
John Criswell47fdd832003-07-14 16:52:07 +000013041 # Broken: fails on valid input.
13042continue
13043fi
Reid Spencera773bd52006-08-04 18:18:08 +000013044
John Criswell47fdd832003-07-14 16:52:07 +000013045rm -f conftest.err conftest.$ac_ext
13046
Reid Spencera773bd52006-08-04 18:18:08 +000013047 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013048 # can be detected and how.
13049 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013055#include <ac_nonexistent.h>
13056_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013057if { (ac_try="$ac_cpp conftest.$ac_ext"
13058case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061esac
13062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013064 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013065 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013069 (exit $ac_status); } >/dev/null; then
13070 if test -s conftest.err; then
13071 ac_cpp_err=$ac_cxx_preproc_warn_flag
13072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13073 else
13074 ac_cpp_err=
13075 fi
13076else
13077 ac_cpp_err=yes
13078fi
13079if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013080 # Broken: success on invalid input.
13081continue
13082else
13083 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013084sed 's/^/| /' conftest.$ac_ext >&5
13085
John Criswell47fdd832003-07-14 16:52:07 +000013086 # Passes both tests.
13087ac_preproc_ok=:
13088break
13089fi
Reid Spencera773bd52006-08-04 18:18:08 +000013090
John Criswell47fdd832003-07-14 16:52:07 +000013091rm -f conftest.err conftest.$ac_ext
13092
13093done
13094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13095rm -f conftest.err conftest.$ac_ext
13096if $ac_preproc_ok; then
13097 break
John Criswell7a73b802003-06-30 21:59:07 +000013098fi
13099
John Criswell47fdd832003-07-14 16:52:07 +000013100 done
13101 ac_cv_prog_CXXCPP=$CXXCPP
13102
13103fi
13104 CXXCPP=$ac_cv_prog_CXXCPP
13105else
13106 ac_cv_prog_CXXCPP=$CXXCPP
13107fi
Reid Spencera773bd52006-08-04 18:18:08 +000013108{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13109echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013110ac_preproc_ok=false
13111for ac_cxx_preproc_warn_flag in '' yes
13112do
13113 # Use a header file that comes with gcc, so configuring glibc
13114 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13116 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013117 # On the NeXT, cc -E runs the code through the compiler's parser,
13118 # not just through cpp. "Syntax error" is here to catch this case.
13119 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013120/* confdefs.h. */
13121_ACEOF
13122cat confdefs.h >>conftest.$ac_ext
13123cat >>conftest.$ac_ext <<_ACEOF
13124/* end confdefs.h. */
13125#ifdef __STDC__
13126# include <limits.h>
13127#else
13128# include <assert.h>
13129#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013130 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013131_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013132if { (ac_try="$ac_cpp conftest.$ac_ext"
13133case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136esac
13137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013139 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013140 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013141 rm -f conftest.er1
13142 cat conftest.err >&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013144 (exit $ac_status); } >/dev/null; then
13145 if test -s conftest.err; then
13146 ac_cpp_err=$ac_cxx_preproc_warn_flag
13147 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13148 else
13149 ac_cpp_err=
13150 fi
13151else
13152 ac_cpp_err=yes
13153fi
13154if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013155 :
13156else
13157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013158sed 's/^/| /' conftest.$ac_ext >&5
13159
John Criswell47fdd832003-07-14 16:52:07 +000013160 # Broken: fails on valid input.
13161continue
13162fi
Reid Spencera773bd52006-08-04 18:18:08 +000013163
John Criswell47fdd832003-07-14 16:52:07 +000013164rm -f conftest.err conftest.$ac_ext
13165
Reid Spencera773bd52006-08-04 18:18:08 +000013166 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013167 # can be detected and how.
13168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013169/* confdefs.h. */
13170_ACEOF
13171cat confdefs.h >>conftest.$ac_ext
13172cat >>conftest.$ac_ext <<_ACEOF
13173/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013174#include <ac_nonexistent.h>
13175_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013176if { (ac_try="$ac_cpp conftest.$ac_ext"
13177case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013183 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013184 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013188 (exit $ac_status); } >/dev/null; then
13189 if test -s conftest.err; then
13190 ac_cpp_err=$ac_cxx_preproc_warn_flag
13191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13192 else
13193 ac_cpp_err=
13194 fi
13195else
13196 ac_cpp_err=yes
13197fi
13198if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013199 # Broken: success on invalid input.
13200continue
13201else
13202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013203sed 's/^/| /' conftest.$ac_ext >&5
13204
John Criswell47fdd832003-07-14 16:52:07 +000013205 # Passes both tests.
13206ac_preproc_ok=:
13207break
13208fi
Reid Spencera773bd52006-08-04 18:18:08 +000013209
John Criswell47fdd832003-07-14 16:52:07 +000013210rm -f conftest.err conftest.$ac_ext
13211
13212done
13213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13214rm -f conftest.err conftest.$ac_ext
13215if $ac_preproc_ok; then
13216 :
13217else
John Criswell0c38eaf2003-09-10 15:17:25 +000013218 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219See \`config.log' for more details." >&5
13220echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13221See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013222 { (exit 1); exit 1; }; }
13223fi
13224
Reid Spencera773bd52006-08-04 18:18:08 +000013225ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013226ac_cpp='$CXXCPP $CPPFLAGS'
13227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13230
Reid Spencer2706f8c2004-09-19 23:53:36 +000013231fi
13232
John Criswell47fdd832003-07-14 16:52:07 +000013233
13234ac_ext=f
13235ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13236ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13237ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13238if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013239 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 +000013240 do
13241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013243{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013245if test "${ac_cv_prog_F77+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13247else
13248 if test -n "$F77"; then
13249 ac_cv_prog_F77="$F77" # Let the user override the test.
13250else
13251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252for as_dir in $PATH
13253do
13254 IFS=$as_save_IFS
13255 test -z "$as_dir" && as_dir=.
13256 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013257 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 +000013258 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13260 break 2
13261 fi
13262done
13263done
Reid Spencera773bd52006-08-04 18:18:08 +000013264IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013265
13266fi
13267fi
13268F77=$ac_cv_prog_F77
13269if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013270 { echo "$as_me:$LINENO: result: $F77" >&5
13271echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013272else
Reid Spencera773bd52006-08-04 18:18:08 +000013273 { echo "$as_me:$LINENO: result: no" >&5
13274echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013275fi
13276
Reid Spencera773bd52006-08-04 18:18:08 +000013277
John Criswell47fdd832003-07-14 16:52:07 +000013278 test -n "$F77" && break
13279 done
13280fi
13281if test -z "$F77"; then
13282 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013283 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 +000013284do
13285 # Extract the first word of "$ac_prog", so it can be a program name with args.
13286set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013289if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13291else
13292 if test -n "$ac_ct_F77"; then
13293 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13294else
13295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296for as_dir in $PATH
13297do
13298 IFS=$as_save_IFS
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013301 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 +000013302 ac_cv_prog_ac_ct_F77="$ac_prog"
13303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13304 break 2
13305 fi
13306done
13307done
Reid Spencera773bd52006-08-04 18:18:08 +000013308IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013309
13310fi
13311fi
13312ac_ct_F77=$ac_cv_prog_ac_ct_F77
13313if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013314 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13315echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013316else
Reid Spencera773bd52006-08-04 18:18:08 +000013317 { echo "$as_me:$LINENO: result: no" >&5
13318echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013319fi
13320
Reid Spencera773bd52006-08-04 18:18:08 +000013321
John Criswell47fdd832003-07-14 16:52:07 +000013322 test -n "$ac_ct_F77" && break
13323done
13324
Reid Spencera773bd52006-08-04 18:18:08 +000013325 if test "x$ac_ct_F77" = x; then
13326 F77=""
13327 else
13328 case $cross_compiling:$ac_tool_warned in
13329yes:)
13330{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13331whose name does not start with the host triplet. If you think this
13332configuration is useful to you, please write to autoconf@gnu.org." >&5
13333echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13334whose name does not start with the host triplet. If you think this
13335configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13336ac_tool_warned=yes ;;
13337esac
13338 F77=$ac_ct_F77
13339 fi
John Criswell47fdd832003-07-14 16:52:07 +000013340fi
13341
13342
13343# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013344echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013345ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013346{ (ac_try="$ac_compiler --version >&5"
13347case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13350esac
13351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13352 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013353 ac_status=$?
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013356{ (ac_try="$ac_compiler -v >&5"
13357case "(($ac_try" in
13358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13359 *) ac_try_echo=$ac_try;;
13360esac
13361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13362 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013366{ (ac_try="$ac_compiler -V >&5"
13367case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370esac
13371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013376rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013377
13378# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013379# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013380ac_save_ext=$ac_ext
13381ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013382{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13383echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013384if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13386else
13387 cat >conftest.$ac_ext <<_ACEOF
13388 program main
13389#ifndef __GNUC__
13390 choke me
13391#endif
13392
13393 end
13394_ACEOF
13395rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013396if { (ac_try="$ac_compile"
13397case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013403 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013408 (exit $ac_status); } &&
13409 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13410 { (case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_try") 2>&5
13416 ac_status=$?
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; } &&
13419 { ac_try='test -s conftest.$ac_objext'
13420 { (case "(($ac_try" in
13421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422 *) ac_try_echo=$ac_try;;
13423esac
13424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425 (eval "$ac_try") 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013429 ac_compiler_gnu=yes
13430else
13431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013432sed 's/^/| /' conftest.$ac_ext >&5
13433
Reid Spencera773bd52006-08-04 18:18:08 +000013434 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013435fi
Reid Spencera773bd52006-08-04 18:18:08 +000013436
13437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013438ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13439
13440fi
Reid Spencera773bd52006-08-04 18:18:08 +000013441{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13442echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013443ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013444ac_test_FFLAGS=${FFLAGS+set}
13445ac_save_FFLAGS=$FFLAGS
13446FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013447{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13448echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013449if test "${ac_cv_prog_f77_g+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452 FFLAGS=-g
13453cat >conftest.$ac_ext <<_ACEOF
13454 program main
13455
13456 end
13457_ACEOF
13458rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013459if { (ac_try="$ac_compile"
13460case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
13477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13479 ac_status=$?
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest.$ac_objext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13486esac
13487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013492 ac_cv_prog_f77_g=yes
13493else
13494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013495sed 's/^/| /' conftest.$ac_ext >&5
13496
Reid Spencera773bd52006-08-04 18:18:08 +000013497 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013498fi
Reid Spencera773bd52006-08-04 18:18:08 +000013499
13500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013501
13502fi
Reid Spencera773bd52006-08-04 18:18:08 +000013503{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13504echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013505if test "$ac_test_FFLAGS" = set; then
13506 FFLAGS=$ac_save_FFLAGS
13507elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013508 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013509 FFLAGS="-g -O2"
13510 else
13511 FFLAGS="-g"
13512 fi
13513else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013514 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013515 FFLAGS="-O2"
13516 else
13517 FFLAGS=
13518 fi
13519fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013520
13521G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013522ac_ext=c
13523ac_cpp='$CPP $CPPFLAGS'
13524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13526ac_compiler_gnu=$ac_cv_c_compiler_gnu
13527
13528
13529
13530# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13531
13532# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013533{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13534echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013535if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013539 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013540
13541 case $build_os in
13542 msdosdjgpp*)
13543 # On DJGPP, this test can blow up pretty badly due to problems in libc
13544 # (any single argument exceeding 2000 bytes causes a buffer overrun
13545 # during glob expansion). Even if it were fixed, the result of this
13546 # check would be larger than it should be.
13547 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13548 ;;
13549
13550 gnu*)
13551 # Under GNU Hurd, this test is not required because there is
13552 # no limit to the length of command line arguments.
13553 # Libtool will interpret -1 as no limit whatsoever
13554 lt_cv_sys_max_cmd_len=-1;
13555 ;;
13556
13557 cygwin* | mingw*)
13558 # On Win9x/ME, this test blows up -- it succeeds, but takes
13559 # about 5 minutes as the teststring grows exponentially.
13560 # Worse, since 9x/ME are not pre-emptively multitasking,
13561 # you end up with a "frozen" computer, even though with patience
13562 # the test eventually succeeds (with a max line length of 256k).
13563 # Instead, let's just punt: use the minimum linelength reported by
13564 # all of the supported platforms: 8192 (on NT/2K/XP).
13565 lt_cv_sys_max_cmd_len=8192;
13566 ;;
13567
Reid Spencer2706f8c2004-09-19 23:53:36 +000013568 amigaos*)
13569 # On AmigaOS with pdksh, this test takes hours, literally.
13570 # So we just punt and use a minimum line length of 8192.
13571 lt_cv_sys_max_cmd_len=8192;
13572 ;;
13573
Reid Spencera773bd52006-08-04 18:18:08 +000013574 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013575 # This has been around since 386BSD, at least. Likely further.
13576 if test -x /sbin/sysctl; then
13577 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13578 elif test -x /usr/sbin/sysctl; then
13579 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13580 else
Reid Spencera773bd52006-08-04 18:18:08 +000013581 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013582 fi
13583 # And add a safety zone
13584 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013586 ;;
13587
Reid Spencera773bd52006-08-04 18:18:08 +000013588 interix*)
13589 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13590 lt_cv_sys_max_cmd_len=196608
13591 ;;
13592
13593 osf*)
13594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13596 # nice to cause kernel panics so lets avoid the loop below.
13597 # First set a reasonable default.
13598 lt_cv_sys_max_cmd_len=16384
13599 #
13600 if test -x /sbin/sysconfig; then
13601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13603 esac
13604 fi
13605 ;;
13606 sco3.2v5*)
13607 lt_cv_sys_max_cmd_len=102400
13608 ;;
13609 sysv5* | sco5v6* | sysv4.2uw2*)
13610 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13611 if test -n "$kargmax"; then
13612 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13613 else
13614 lt_cv_sys_max_cmd_len=32768
13615 fi
13616 ;;
13617 *)
John Criswell47fdd832003-07-14 16:52:07 +000013618 # If test is not a shell built-in, we'll probably end up computing a
13619 # maximum length that is only half of the actual maximum length, but
13620 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013621 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13622 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13623 = "XX$teststring") >/dev/null 2>&1 &&
13624 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013625 lt_cv_sys_max_cmd_len=$new_result &&
13626 test $i != 17 # 1/2 MB should be enough
13627 do
13628 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013629 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013630 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013631 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013632 # Add a significant safety factor because C++ compilers can tack on massive
13633 # amounts of additional arguments before passing them to the linker.
13634 # It appears as though 1/2 is a usable value.
13635 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13636 ;;
13637 esac
13638
13639fi
13640
13641if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013642 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13643echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013644else
Reid Spencera773bd52006-08-04 18:18:08 +000013645 { echo "$as_me:$LINENO: result: none" >&5
13646echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013647fi
13648
13649
13650
13651
13652# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013653{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13654echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013655if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13657else
13658
13659# These are sane defaults that work on at least a few old systems.
13660# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13661
13662# Character class describing NM global symbol codes.
13663symcode='[BCDEGRST]'
13664
13665# Regexp to match symbols that can be accessed directly from C.
13666sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13667
John Criswell47fdd832003-07-14 16:52:07 +000013668# Transform an extracted symbol line into a proper C declaration
13669lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13670
13671# Transform an extracted symbol line into symbol name and symbol address
13672lt_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'"
13673
13674# Define system-specific variables.
13675case $host_os in
13676aix*)
13677 symcode='[BCDT]'
13678 ;;
13679cygwin* | mingw* | pw32*)
13680 symcode='[ABCDGISTW]'
13681 ;;
13682hpux*) # Its linker distinguishes data from code symbols
13683 if test "$host_cpu" = ia64; then
13684 symcode='[ABCDEGRST]'
13685 fi
13686 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13687 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'"
13688 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013689linux*)
13690 if test "$host_cpu" = ia64; then
13691 symcode='[ABCDGIRSTW]'
13692 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13693 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'"
13694 fi
13695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013696irix* | nonstopux*)
13697 symcode='[BCDEGRST]'
13698 ;;
13699osf*)
13700 symcode='[BCDEGQRST]'
13701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013702solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013703 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013705sco3.2v5*)
13706 symcode='[DT]'
13707 ;;
13708sysv4.2uw2*)
13709 symcode='[DT]'
13710 ;;
13711sysv5* | sco5v6* | unixware* | OpenUNIX*)
13712 symcode='[ABDT]'
13713 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013714sysv4)
13715 symcode='[DFNSTU]'
13716 ;;
13717esac
13718
13719# Handle CRLF in mingw tool chain
13720opt_cr=
13721case $build_os in
13722mingw*)
13723 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13724 ;;
13725esac
13726
13727# If we're using GNU nm, then use its standard symbol codes.
13728case `$NM -V 2>&1` in
13729*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013730 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013731esac
13732
13733# Try without a prefix undercore, then with it.
13734for ac_symprfx in "" "_"; do
13735
Reid Spencera773bd52006-08-04 18:18:08 +000013736 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13737 symxfrm="\\1 $ac_symprfx\\2 \\2"
13738
John Criswell47fdd832003-07-14 16:52:07 +000013739 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013740 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 +000013741
13742 # Check to see that the pipe works correctly.
13743 pipe_works=no
13744
13745 rm -f conftest*
13746 cat > conftest.$ac_ext <<EOF
13747#ifdef __cplusplus
13748extern "C" {
13749#endif
13750char nm_test_var;
13751void nm_test_func(){}
13752#ifdef __cplusplus
13753}
13754#endif
13755int main(){nm_test_var='a';nm_test_func();return(0);}
13756EOF
13757
13758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; then
13763 # Now try to grab the symbols.
13764 nlist=conftest.nm
13765 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13766 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && test -s "$nlist"; then
13770 # Try sorting and uniquifying the output.
13771 if sort "$nlist" | uniq > "$nlist"T; then
13772 mv -f "$nlist"T "$nlist"
13773 else
13774 rm -f "$nlist"T
13775 fi
13776
13777 # Make sure that we snagged all the symbols we need.
13778 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13779 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13780 cat <<EOF > conftest.$ac_ext
13781#ifdef __cplusplus
13782extern "C" {
13783#endif
13784
13785EOF
13786 # Now generate the symbol file.
13787 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13788
13789 cat <<EOF >> conftest.$ac_ext
13790#if defined (__STDC__) && __STDC__
13791# define lt_ptr_t void *
13792#else
13793# define lt_ptr_t char *
13794# define const
13795#endif
13796
13797/* The mapping between symbol names and symbols. */
13798const struct {
13799 const char *name;
13800 lt_ptr_t address;
13801}
13802lt_preloaded_symbols[] =
13803{
13804EOF
13805 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13806 cat <<\EOF >> conftest.$ac_ext
13807 {0, (lt_ptr_t) 0}
13808};
13809
13810#ifdef __cplusplus
13811}
13812#endif
13813EOF
13814 # Now try linking the two files.
13815 mv conftest.$ac_objext conftstm.$ac_objext
13816 lt_save_LIBS="$LIBS"
13817 lt_save_CFLAGS="$CFLAGS"
13818 LIBS="conftstm.$ac_objext"
13819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13821 (eval $ac_link) 2>&5
13822 ac_status=$?
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13825 pipe_works=yes
13826 fi
13827 LIBS="$lt_save_LIBS"
13828 CFLAGS="$lt_save_CFLAGS"
13829 else
13830 echo "cannot find nm_test_func in $nlist" >&5
13831 fi
13832 else
13833 echo "cannot find nm_test_var in $nlist" >&5
13834 fi
13835 else
13836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13837 fi
13838 else
13839 echo "$progname: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13841 fi
13842 rm -f conftest* conftst*
13843
13844 # Do not use the global_symbol_pipe unless it works.
13845 if test "$pipe_works" = yes; then
13846 break
13847 else
13848 lt_cv_sys_global_symbol_pipe=
13849 fi
13850done
13851
13852fi
13853
13854if test -z "$lt_cv_sys_global_symbol_pipe"; then
13855 lt_cv_sys_global_symbol_to_cdecl=
13856fi
13857if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013858 { echo "$as_me:$LINENO: result: failed" >&5
13859echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013860else
Reid Spencera773bd52006-08-04 18:18:08 +000013861 { echo "$as_me:$LINENO: result: ok" >&5
13862echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013863fi
13864
Reid Spencera773bd52006-08-04 18:18:08 +000013865{ echo "$as_me:$LINENO: checking for objdir" >&5
13866echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013867if test "${lt_cv_objdir+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869else
13870 rm -f .libs 2>/dev/null
13871mkdir .libs 2>/dev/null
13872if test -d .libs; then
13873 lt_cv_objdir=.libs
13874else
13875 # MS-DOS does not allow filenames that begin with a dot.
13876 lt_cv_objdir=_libs
13877fi
13878rmdir .libs 2>/dev/null
13879fi
Reid Spencera773bd52006-08-04 18:18:08 +000013880{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13881echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013882objdir=$lt_cv_objdir
13883
13884
13885
13886
13887
13888case $host_os in
13889aix3*)
13890 # AIX sometimes has problems with the GCC collect2 program. For some
13891 # reason, if we set the COLLECT_NAMES environment variable, the problems
13892 # vanish in a puff of smoke.
13893 if test "X${COLLECT_NAMES+set}" != Xset; then
13894 COLLECT_NAMES=
13895 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013896 fi
13897 ;;
13898esac
13899
John Criswell47fdd832003-07-14 16:52:07 +000013900# Sed substitution that helps us do robust quoting. It backslashifies
13901# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013902Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013903sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13904
13905# Same as above, but do not quote variable references.
13906double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13907
13908# Sed substitution to delay expansion of an escaped shell variable in a
13909# double_quote_subst'ed string.
13910delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13911
13912# Sed substitution to avoid accidental globbing in evaled expressions
13913no_glob_subst='s/\*/\\\*/g'
13914
13915# Constants:
13916rm="rm -f"
13917
13918# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013919default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013920can_build_shared=yes
13921
Reid Spencera773bd52006-08-04 18:18:08 +000013922# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013923# which needs '.lib').
13924libext=a
13925ltmain="$ac_aux_dir/ltmain.sh"
13926ofile="$default_ofile"
13927with_gnu_ld="$lt_cv_prog_gnu_ld"
13928
13929if test -n "$ac_tool_prefix"; then
13930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13931set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013934if test "${ac_cv_prog_AR+set}" = set; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13936else
13937 if test -n "$AR"; then
13938 ac_cv_prog_AR="$AR" # Let the user override the test.
13939else
13940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13941for as_dir in $PATH
13942do
13943 IFS=$as_save_IFS
13944 test -z "$as_dir" && as_dir=.
13945 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013946 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 +000013947 ac_cv_prog_AR="${ac_tool_prefix}ar"
13948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13949 break 2
13950 fi
13951done
13952done
Reid Spencera773bd52006-08-04 18:18:08 +000013953IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013954
13955fi
13956fi
13957AR=$ac_cv_prog_AR
13958if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013959 { echo "$as_me:$LINENO: result: $AR" >&5
13960echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013961else
Reid Spencera773bd52006-08-04 18:18:08 +000013962 { echo "$as_me:$LINENO: result: no" >&5
13963echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013964fi
13965
Reid Spencera773bd52006-08-04 18:18:08 +000013966
John Criswell47fdd832003-07-14 16:52:07 +000013967fi
13968if test -z "$ac_cv_prog_AR"; then
13969 ac_ct_AR=$AR
13970 # Extract the first word of "ar", so it can be a program name with args.
13971set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013974if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13976else
13977 if test -n "$ac_ct_AR"; then
13978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13979else
13980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13981for as_dir in $PATH
13982do
13983 IFS=$as_save_IFS
13984 test -z "$as_dir" && as_dir=.
13985 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013986 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 +000013987 ac_cv_prog_ac_ct_AR="ar"
13988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13989 break 2
13990 fi
13991done
13992done
Reid Spencera773bd52006-08-04 18:18:08 +000013993IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013994
John Criswell47fdd832003-07-14 16:52:07 +000013995fi
13996fi
13997ac_ct_AR=$ac_cv_prog_ac_ct_AR
13998if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013999 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14000echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014001else
Reid Spencera773bd52006-08-04 18:18:08 +000014002 { echo "$as_me:$LINENO: result: no" >&5
14003echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014004fi
14005
Reid Spencera773bd52006-08-04 18:18:08 +000014006 if test "x$ac_ct_AR" = x; then
14007 AR="false"
14008 else
14009 case $cross_compiling:$ac_tool_warned in
14010yes:)
14011{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14012whose name does not start with the host triplet. If you think this
14013configuration is useful to you, please write to autoconf@gnu.org." >&5
14014echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14015whose name does not start with the host triplet. If you think this
14016configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14017ac_tool_warned=yes ;;
14018esac
14019 AR=$ac_ct_AR
14020 fi
John Criswell47fdd832003-07-14 16:52:07 +000014021else
14022 AR="$ac_cv_prog_AR"
14023fi
14024
John Criswell7a73b802003-06-30 21:59:07 +000014025if test -n "$ac_tool_prefix"; then
14026 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14027set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014028{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014030if test "${ac_cv_prog_RANLIB+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14032else
14033 if test -n "$RANLIB"; then
14034 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14035else
14036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14037for as_dir in $PATH
14038do
14039 IFS=$as_save_IFS
14040 test -z "$as_dir" && as_dir=.
14041 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014042 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 +000014043 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14045 break 2
14046 fi
14047done
14048done
Reid Spencera773bd52006-08-04 18:18:08 +000014049IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014050
14051fi
14052fi
14053RANLIB=$ac_cv_prog_RANLIB
14054if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014055 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14056echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014057else
Reid Spencera773bd52006-08-04 18:18:08 +000014058 { echo "$as_me:$LINENO: result: no" >&5
14059echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014060fi
14061
Reid Spencera773bd52006-08-04 18:18:08 +000014062
John Criswell7a73b802003-06-30 21:59:07 +000014063fi
14064if test -z "$ac_cv_prog_RANLIB"; then
14065 ac_ct_RANLIB=$RANLIB
14066 # Extract the first word of "ranlib", so it can be a program name with args.
14067set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014068{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014070if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14071 echo $ECHO_N "(cached) $ECHO_C" >&6
14072else
14073 if test -n "$ac_ct_RANLIB"; then
14074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14075else
14076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14077for as_dir in $PATH
14078do
14079 IFS=$as_save_IFS
14080 test -z "$as_dir" && as_dir=.
14081 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014082 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 +000014083 ac_cv_prog_ac_ct_RANLIB="ranlib"
14084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14085 break 2
14086 fi
14087done
14088done
Reid Spencera773bd52006-08-04 18:18:08 +000014089IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014090
John Criswell7a73b802003-06-30 21:59:07 +000014091fi
14092fi
14093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14094if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014095 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14096echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014097else
Reid Spencera773bd52006-08-04 18:18:08 +000014098 { echo "$as_me:$LINENO: result: no" >&5
14099echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014100fi
14101
Reid Spencera773bd52006-08-04 18:18:08 +000014102 if test "x$ac_ct_RANLIB" = x; then
14103 RANLIB=":"
14104 else
14105 case $cross_compiling:$ac_tool_warned in
14106yes:)
14107{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14108whose name does not start with the host triplet. If you think this
14109configuration is useful to you, please write to autoconf@gnu.org." >&5
14110echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14111whose name does not start with the host triplet. If you think this
14112configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14113ac_tool_warned=yes ;;
14114esac
14115 RANLIB=$ac_ct_RANLIB
14116 fi
John Criswell7a73b802003-06-30 21:59:07 +000014117else
14118 RANLIB="$ac_cv_prog_RANLIB"
14119fi
14120
14121if test -n "$ac_tool_prefix"; then
14122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14123set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014124{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014126if test "${ac_cv_prog_STRIP+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128else
14129 if test -n "$STRIP"; then
14130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14131else
14132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133for as_dir in $PATH
14134do
14135 IFS=$as_save_IFS
14136 test -z "$as_dir" && as_dir=.
14137 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014138 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 +000014139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14141 break 2
14142 fi
14143done
14144done
Reid Spencera773bd52006-08-04 18:18:08 +000014145IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014146
14147fi
14148fi
14149STRIP=$ac_cv_prog_STRIP
14150if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014151 { echo "$as_me:$LINENO: result: $STRIP" >&5
14152echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014153else
Reid Spencera773bd52006-08-04 18:18:08 +000014154 { echo "$as_me:$LINENO: result: no" >&5
14155echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014156fi
14157
Reid Spencera773bd52006-08-04 18:18:08 +000014158
John Criswell7a73b802003-06-30 21:59:07 +000014159fi
14160if test -z "$ac_cv_prog_STRIP"; then
14161 ac_ct_STRIP=$STRIP
14162 # Extract the first word of "strip", so it can be a program name with args.
14163set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014166if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
14169 if test -n "$ac_ct_STRIP"; then
14170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14171else
14172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014178 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 +000014179 ac_cv_prog_ac_ct_STRIP="strip"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14182 fi
14183done
14184done
Reid Spencera773bd52006-08-04 18:18:08 +000014185IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014186
John Criswell7a73b802003-06-30 21:59:07 +000014187fi
14188fi
14189ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14190if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014191 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14192echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014193else
Reid Spencera773bd52006-08-04 18:18:08 +000014194 { echo "$as_me:$LINENO: result: no" >&5
14195echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014196fi
14197
Reid Spencera773bd52006-08-04 18:18:08 +000014198 if test "x$ac_ct_STRIP" = x; then
14199 STRIP=":"
14200 else
14201 case $cross_compiling:$ac_tool_warned in
14202yes:)
14203{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14204whose name does not start with the host triplet. If you think this
14205configuration is useful to you, please write to autoconf@gnu.org." >&5
14206echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14207whose name does not start with the host triplet. If you think this
14208configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14209ac_tool_warned=yes ;;
14210esac
14211 STRIP=$ac_ct_STRIP
14212 fi
John Criswell7a73b802003-06-30 21:59:07 +000014213else
14214 STRIP="$ac_cv_prog_STRIP"
14215fi
14216
14217
John Criswell7a73b802003-06-30 21:59:07 +000014218old_CC="$CC"
14219old_CFLAGS="$CFLAGS"
14220
14221# Set sane defaults for various variables
14222test -z "$AR" && AR=ar
14223test -z "$AR_FLAGS" && AR_FLAGS=cru
14224test -z "$AS" && AS=as
14225test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014226test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014227test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014228test -z "$DLLTOOL" && DLLTOOL=dlltool
14229test -z "$LD" && LD=ld
14230test -z "$LN_S" && LN_S="ln -s"
14231test -z "$MAGIC_CMD" && MAGIC_CMD=file
14232test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014233test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014234test -z "$OBJDUMP" && OBJDUMP=objdump
14235test -z "$RANLIB" && RANLIB=:
14236test -z "$STRIP" && STRIP=:
14237test -z "$ac_objext" && ac_objext=o
14238
John Criswell7a73b802003-06-30 21:59:07 +000014239# Determine commands to create old-style static archives.
14240old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14241old_postinstall_cmds='chmod 644 $oldlib'
14242old_postuninstall_cmds=
14243
14244if test -n "$RANLIB"; then
14245 case $host_os in
14246 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014247 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014248 ;;
14249 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014251 ;;
14252 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014253 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014254fi
14255
Reid Spencera773bd52006-08-04 18:18:08 +000014256for cc_temp in $compiler""; do
14257 case $cc_temp in
14258 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14259 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14260 \-*) ;;
14261 *) break;;
14262 esac
14263done
14264cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14265
Reid Spencer2706f8c2004-09-19 23:53:36 +000014266
John Criswell47fdd832003-07-14 16:52:07 +000014267# Only perform the check for file, if the check method requires it
14268case $deplibs_check_method in
14269file_magic*)
14270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014271 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14272echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014273if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014275else
John Criswell47fdd832003-07-14 16:52:07 +000014276 case $MAGIC_CMD in
14277[\\/*] | ?:[\\/]*)
14278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14279 ;;
14280*)
14281 lt_save_MAGIC_CMD="$MAGIC_CMD"
14282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14284 for ac_dir in $ac_dummy; do
14285 IFS="$lt_save_ifs"
14286 test -z "$ac_dir" && ac_dir=.
14287 if test -f $ac_dir/${ac_tool_prefix}file; then
14288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14289 if test -n "$file_magic_test_file"; then
14290 case $deplibs_check_method in
14291 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14295 $EGREP "$file_magic_regex" > /dev/null; then
14296 :
14297 else
14298 cat <<EOF 1>&2
14299
14300*** Warning: the command libtool uses to detect shared libraries,
14301*** $file_magic_cmd, produces output that libtool cannot recognize.
14302*** The result is that libtool may fail to recognize shared libraries
14303*** as such. This will affect the creation of libtool libraries that
14304*** depend on shared libraries, but programs linked with such libtool
14305*** libraries will work regardless of this problem. Nevertheless, you
14306*** may want to report the problem to your system manager and/or to
14307*** bug-libtool@gnu.org
14308
14309EOF
14310 fi ;;
14311 esac
14312 fi
14313 break
14314 fi
14315 done
14316 IFS="$lt_save_ifs"
14317 MAGIC_CMD="$lt_save_MAGIC_CMD"
14318 ;;
14319esac
John Criswell7a73b802003-06-30 21:59:07 +000014320fi
John Criswell7a73b802003-06-30 21:59:07 +000014321
John Criswell47fdd832003-07-14 16:52:07 +000014322MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14323if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014324 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14325echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014326else
Reid Spencera773bd52006-08-04 18:18:08 +000014327 { echo "$as_me:$LINENO: result: no" >&5
14328echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014329fi
John Criswell7a73b802003-06-30 21:59:07 +000014330
John Criswell47fdd832003-07-14 16:52:07 +000014331if test -z "$lt_cv_path_MAGIC_CMD"; then
14332 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014333 { echo "$as_me:$LINENO: checking for file" >&5
14334echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14337else
14338 case $MAGIC_CMD in
14339[\\/*] | ?:[\\/]*)
14340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14341 ;;
14342*)
14343 lt_save_MAGIC_CMD="$MAGIC_CMD"
14344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14346 for ac_dir in $ac_dummy; do
14347 IFS="$lt_save_ifs"
14348 test -z "$ac_dir" && ac_dir=.
14349 if test -f $ac_dir/file; then
14350 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14351 if test -n "$file_magic_test_file"; then
14352 case $deplibs_check_method in
14353 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14357 $EGREP "$file_magic_regex" > /dev/null; then
14358 :
14359 else
14360 cat <<EOF 1>&2
14361
14362*** Warning: the command libtool uses to detect shared libraries,
14363*** $file_magic_cmd, produces output that libtool cannot recognize.
14364*** The result is that libtool may fail to recognize shared libraries
14365*** as such. This will affect the creation of libtool libraries that
14366*** depend on shared libraries, but programs linked with such libtool
14367*** libraries will work regardless of this problem. Nevertheless, you
14368*** may want to report the problem to your system manager and/or to
14369*** bug-libtool@gnu.org
14370
14371EOF
14372 fi ;;
14373 esac
14374 fi
14375 break
14376 fi
14377 done
14378 IFS="$lt_save_ifs"
14379 MAGIC_CMD="$lt_save_MAGIC_CMD"
14380 ;;
14381esac
14382fi
14383
14384MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14385if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014386 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14387echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014388else
Reid Spencera773bd52006-08-04 18:18:08 +000014389 { echo "$as_me:$LINENO: result: no" >&5
14390echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014391fi
14392
14393 else
14394 MAGIC_CMD=:
14395 fi
14396fi
14397
14398 fi
14399 ;;
14400esac
14401
Reid Spencer17795972004-11-18 09:47:37 +000014402enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014403enable_win32_dll=no
14404
Reid Spencera773bd52006-08-04 18:18:08 +000014405# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014406if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014407 enableval=$enable_libtool_lock;
14408fi
John Criswell47fdd832003-07-14 16:52:07 +000014409
John Criswell47fdd832003-07-14 16:52:07 +000014410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14411
John Criswell7a73b802003-06-30 21:59:07 +000014412
Reid Spencera773bd52006-08-04 18:18:08 +000014413# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014414if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014415 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014416else
14417 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014418fi
14419
John Criswell7a73b802003-06-30 21:59:07 +000014420test -z "$pic_mode" && pic_mode=default
14421
John Criswell47fdd832003-07-14 16:52:07 +000014422# Use C for the default configuration in the libtool script
14423tagname=
14424lt_save_CC="$CC"
14425ac_ext=c
14426ac_cpp='$CPP $CPPFLAGS'
14427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14429ac_compiler_gnu=$ac_cv_c_compiler_gnu
14430
14431
14432# Source file extension for C test sources.
14433ac_ext=c
14434
14435# Object file extension for compiled C test sources.
14436objext=o
14437objext=$objext
14438
14439# Code to be used in simple compile tests
14440lt_simple_compile_test_code="int some_variable = 0;\n"
14441
14442# Code to be used in simple link tests
14443lt_simple_link_test_code='int main(){return(0);}\n'
14444
14445
14446# If no C compiler was specified, use CC.
14447LTCC=${LTCC-"$CC"}
14448
Reid Spencera773bd52006-08-04 18:18:08 +000014449# If no C compiler flags were specified, use CFLAGS.
14450LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14451
John Criswell47fdd832003-07-14 16:52:07 +000014452# Allow CC to be a program name with arguments.
14453compiler=$CC
14454
14455
Reid Spencera773bd52006-08-04 18:18:08 +000014456# save warnings/boilerplate of simple test code
14457ac_outfile=conftest.$ac_objext
14458printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14459eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14460_lt_compiler_boilerplate=`cat conftest.err`
14461$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014462
Reid Spencera773bd52006-08-04 18:18:08 +000014463ac_outfile=conftest.$ac_objext
14464printf "$lt_simple_link_test_code" >conftest.$ac_ext
14465eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14466_lt_linker_boilerplate=`cat conftest.err`
14467$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014468
14469
John Criswell47fdd832003-07-14 16:52:07 +000014470
14471lt_prog_compiler_no_builtin_flag=
14472
14473if test "$GCC" = yes; then
14474 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14475
Reid Spencer2706f8c2004-09-19 23:53:36 +000014476
Reid Spencera773bd52006-08-04 18:18:08 +000014477{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14478echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014479if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 lt_cv_prog_compiler_rtti_exceptions=no
14483 ac_outfile=conftest.$ac_objext
14484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14485 lt_compiler_flag="-fno-rtti -fno-exceptions"
14486 # Insert the option either (1) after the last *FLAGS variable, or
14487 # (2) before a word containing "conftest.", or (3) at the end.
14488 # Note that $ac_compile itself does not contain backslashes and begins
14489 # with a dollar sign (not a hyphen), so the echo should work correctly.
14490 # The option is referenced via a variable to avoid confusing sed.
14491 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014492 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014495 (eval echo "\"\$as_me:14495: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014496 (eval "$lt_compile" 2>conftest.err)
14497 ac_status=$?
14498 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014499 echo "$as_me:14499: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014500 if (exit $ac_status) && test -s "$ac_outfile"; then
14501 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014502 # So say no if there are warnings other than the usual output.
14503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14504 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14505 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014506 lt_cv_prog_compiler_rtti_exceptions=yes
14507 fi
14508 fi
14509 $rm conftest*
14510
14511fi
Reid Spencera773bd52006-08-04 18:18:08 +000014512{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14513echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014514
14515if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14516 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14517else
14518 :
14519fi
14520
14521fi
14522
14523lt_prog_compiler_wl=
14524lt_prog_compiler_pic=
14525lt_prog_compiler_static=
14526
Reid Spencera773bd52006-08-04 18:18:08 +000014527{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14528echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014529
14530 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014531 lt_prog_compiler_wl='-Wl,'
14532 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014533
14534 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014535 aix*)
14536 # All AIX code is PIC.
14537 if test "$host_cpu" = ia64; then
14538 # AIX 5 now supports IA64 processor
14539 lt_prog_compiler_static='-Bstatic'
14540 fi
John Criswell7a73b802003-06-30 21:59:07 +000014541 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014542
John Criswell7a73b802003-06-30 21:59:07 +000014543 amigaos*)
14544 # FIXME: we need at least 68020 code to build shared libraries, but
14545 # adding the `-m68020' flag to GCC prevents building anything better,
14546 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014548 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014549
14550 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014551 # PIC is the default for these OSes.
14552 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014553
14554 mingw* | pw32* | os2*)
14555 # This hack is so that the source file can tell whether it is being
14556 # built for inclusion in a dll (and should export symbols for example).
14557 lt_prog_compiler_pic='-DDLL_EXPORT'
14558 ;;
14559
John Criswell7a73b802003-06-30 21:59:07 +000014560 darwin* | rhapsody*)
14561 # PIC is the default on this platform
14562 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014563 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014564 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014565
Reid Spencera773bd52006-08-04 18:18:08 +000014566 interix3*)
14567 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14568 # Instead, we relocate shared libraries at runtime.
14569 ;;
14570
John Criswell47fdd832003-07-14 16:52:07 +000014571 msdosdjgpp*)
14572 # Just because we use GCC doesn't mean we suddenly get shared libraries
14573 # on systems that don't support them.
14574 lt_prog_compiler_can_build_shared=no
14575 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014576 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014577
John Criswell7a73b802003-06-30 21:59:07 +000014578 sysv4*MP*)
14579 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014580 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014581 fi
14582 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014583
14584 hpux*)
14585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14586 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014587 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014588 hppa*64*|ia64*)
14589 # +Z the default
14590 ;;
14591 *)
14592 lt_prog_compiler_pic='-fPIC'
14593 ;;
14594 esac
14595 ;;
14596
John Criswell7a73b802003-06-30 21:59:07 +000014597 *)
John Criswell47fdd832003-07-14 16:52:07 +000014598 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014599 ;;
14600 esac
14601 else
John Criswell47fdd832003-07-14 16:52:07 +000014602 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014603 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014604 aix*)
14605 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014606 if test "$host_cpu" = ia64; then
14607 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014608 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014609 else
John Criswell47fdd832003-07-14 16:52:07 +000014610 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014611 fi
14612 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014613 darwin*)
14614 # PIC is the default on this platform
14615 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014616 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014617 xlc*)
14618 lt_prog_compiler_pic='-qnocommon'
14619 lt_prog_compiler_wl='-Wl,'
14620 ;;
14621 esac
14622 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014623
John Criswell47fdd832003-07-14 16:52:07 +000014624 mingw* | pw32* | os2*)
14625 # This hack is so that the source file can tell whether it is being
14626 # built for inclusion in a dll (and should export symbols for example).
14627 lt_prog_compiler_pic='-DDLL_EXPORT'
14628 ;;
14629
John Criswell7a73b802003-06-30 21:59:07 +000014630 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014631 lt_prog_compiler_wl='-Wl,'
14632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14633 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014634 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014635 hppa*64*|ia64*)
14636 # +Z the default
14637 ;;
14638 *)
14639 lt_prog_compiler_pic='+Z'
14640 ;;
14641 esac
14642 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14643 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014644 ;;
14645
John Criswell47fdd832003-07-14 16:52:07 +000014646 irix5* | irix6* | nonstopux*)
14647 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014648 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014649 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014650 ;;
14651
14652 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014653 lt_prog_compiler_pic='-KPIC'
14654 lt_prog_compiler_static='-Bstatic'
14655 ;;
14656
14657 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014658 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014659 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014660 lt_prog_compiler_wl='-Wl,'
14661 lt_prog_compiler_pic='-KPIC'
14662 lt_prog_compiler_static='-static'
14663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014664 pgcc* | pgf77* | pgf90* | pgf95*)
14665 # Portland Group compilers (*not* the Pentium gcc compiler,
14666 # which looks to be a dead project)
14667 lt_prog_compiler_wl='-Wl,'
14668 lt_prog_compiler_pic='-fpic'
14669 lt_prog_compiler_static='-Bstatic'
14670 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014671 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014672 lt_prog_compiler_wl='-Wl,'
14673 # All Alpha code is PIC.
14674 lt_prog_compiler_static='-non_shared'
14675 ;;
14676 esac
John Criswell7a73b802003-06-30 21:59:07 +000014677 ;;
14678
14679 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014680 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014681 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014682 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014683 ;;
14684
John Criswell7a73b802003-06-30 21:59:07 +000014685 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014686 lt_prog_compiler_pic='-KPIC'
14687 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014688 case $cc_basename in
14689 f77* | f90* | f95*)
14690 lt_prog_compiler_wl='-Qoption ld ';;
14691 *)
14692 lt_prog_compiler_wl='-Wl,';;
14693 esac
John Criswell7a73b802003-06-30 21:59:07 +000014694 ;;
14695
14696 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014697 lt_prog_compiler_wl='-Qoption ld '
14698 lt_prog_compiler_pic='-PIC'
14699 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014700 ;;
14701
Reid Spencera773bd52006-08-04 18:18:08 +000014702 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014703 lt_prog_compiler_wl='-Wl,'
14704 lt_prog_compiler_pic='-KPIC'
14705 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014706 ;;
14707
14708 sysv4*MP*)
14709 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014710 lt_prog_compiler_pic='-Kconform_pic'
14711 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014712 fi
14713 ;;
14714
Reid Spencera773bd52006-08-04 18:18:08 +000014715 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14716 lt_prog_compiler_wl='-Wl,'
14717 lt_prog_compiler_pic='-KPIC'
14718 lt_prog_compiler_static='-Bstatic'
14719 ;;
14720
14721 unicos*)
14722 lt_prog_compiler_wl='-Wl,'
14723 lt_prog_compiler_can_build_shared=no
14724 ;;
14725
John Criswell47fdd832003-07-14 16:52:07 +000014726 uts4*)
14727 lt_prog_compiler_pic='-pic'
14728 lt_prog_compiler_static='-Bstatic'
14729 ;;
14730
John Criswell7a73b802003-06-30 21:59:07 +000014731 *)
John Criswell47fdd832003-07-14 16:52:07 +000014732 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014733 ;;
14734 esac
14735 fi
14736
Reid Spencera773bd52006-08-04 18:18:08 +000014737{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14738echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014739
John Criswell47fdd832003-07-14 16:52:07 +000014740#
14741# Check to make sure the PIC flag actually works.
14742#
14743if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014744
Reid Spencera773bd52006-08-04 18:18:08 +000014745{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14746echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014747if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014748 echo $ECHO_N "(cached) $ECHO_C" >&6
14749else
John Criswell47fdd832003-07-14 16:52:07 +000014750 lt_prog_compiler_pic_works=no
14751 ac_outfile=conftest.$ac_objext
14752 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14753 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14754 # Insert the option either (1) after the last *FLAGS variable, or
14755 # (2) before a word containing "conftest.", or (3) at the end.
14756 # Note that $ac_compile itself does not contain backslashes and begins
14757 # with a dollar sign (not a hyphen), so the echo should work correctly.
14758 # The option is referenced via a variable to avoid confusing sed.
14759 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14762 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014763 (eval echo "\"\$as_me:14763: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014764 (eval "$lt_compile" 2>conftest.err)
14765 ac_status=$?
14766 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014767 echo "$as_me:14767: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014768 if (exit $ac_status) && test -s "$ac_outfile"; then
14769 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014770 # So say no if there are warnings other than the usual output.
14771 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14772 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14773 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014774 lt_prog_compiler_pic_works=yes
14775 fi
14776 fi
14777 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014778
John Criswell47fdd832003-07-14 16:52:07 +000014779fi
Reid Spencera773bd52006-08-04 18:18:08 +000014780{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14781echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014782
John Criswell47fdd832003-07-14 16:52:07 +000014783if test x"$lt_prog_compiler_pic_works" = xyes; then
14784 case $lt_prog_compiler_pic in
14785 "" | " "*) ;;
14786 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14787 esac
John Criswell7a73b802003-06-30 21:59:07 +000014788else
John Criswell47fdd832003-07-14 16:52:07 +000014789 lt_prog_compiler_pic=
14790 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014791fi
14792
John Criswell7a73b802003-06-30 21:59:07 +000014793fi
Reid Spencera773bd52006-08-04 18:18:08 +000014794case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014795 # For platforms which do not support PIC, -DPIC is meaningless:
14796 *djgpp*)
14797 lt_prog_compiler_pic=
14798 ;;
14799 *)
14800 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14801 ;;
14802esac
John Criswell7a73b802003-06-30 21:59:07 +000014803
Reid Spencera773bd52006-08-04 18:18:08 +000014804#
14805# Check to make sure the static flag actually works.
14806#
14807wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14808{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14809echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14810if test "${lt_prog_compiler_static_works+set}" = set; then
14811 echo $ECHO_N "(cached) $ECHO_C" >&6
14812else
14813 lt_prog_compiler_static_works=no
14814 save_LDFLAGS="$LDFLAGS"
14815 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14816 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14817 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14818 # The linker can only warn and ignore the option if not recognized
14819 # So say no if there are warnings
14820 if test -s conftest.err; then
14821 # Append any errors to the config.log.
14822 cat conftest.err 1>&5
14823 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14825 if diff conftest.exp conftest.er2 >/dev/null; then
14826 lt_prog_compiler_static_works=yes
14827 fi
14828 else
14829 lt_prog_compiler_static_works=yes
14830 fi
14831 fi
14832 $rm conftest*
14833 LDFLAGS="$save_LDFLAGS"
14834
14835fi
14836{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14837echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14838
14839if test x"$lt_prog_compiler_static_works" = xyes; then
14840 :
14841else
14842 lt_prog_compiler_static=
14843fi
14844
14845
14846{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014848if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014849 echo $ECHO_N "(cached) $ECHO_C" >&6
14850else
John Criswell47fdd832003-07-14 16:52:07 +000014851 lt_cv_prog_compiler_c_o=no
14852 $rm -r conftest 2>/dev/null
14853 mkdir conftest
14854 cd conftest
14855 mkdir out
14856 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014857
John Criswell47fdd832003-07-14 16:52:07 +000014858 lt_compiler_flag="-o out/conftest2.$ac_objext"
14859 # Insert the option either (1) after the last *FLAGS variable, or
14860 # (2) before a word containing "conftest.", or (3) at the end.
14861 # Note that $ac_compile itself does not contain backslashes and begins
14862 # with a dollar sign (not a hyphen), so the echo should work correctly.
14863 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14866 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014867 (eval echo "\"\$as_me:14867: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014868 (eval "$lt_compile" 2>out/conftest.err)
14869 ac_status=$?
14870 cat out/conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000014871 echo "$as_me:14871: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014872 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14873 then
14874 # The compiler can only warn and ignore the option if not recognized
14875 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014876 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_cv_prog_compiler_c_o=yes
14880 fi
14881 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014882 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014883 $rm conftest*
14884 # SGI C++ compiler will create directory out/ii_files/ for
14885 # template instantiation
14886 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14887 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014888 cd ..
14889 rmdir conftest
14890 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014891
14892fi
Reid Spencera773bd52006-08-04 18:18:08 +000014893{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14894echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014895
John Criswell7a73b802003-06-30 21:59:07 +000014896
John Criswell7a73b802003-06-30 21:59:07 +000014897hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014898if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014899 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014900 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14901echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014902 hard_links=yes
14903 $rm conftest*
14904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14905 touch conftest.a
14906 ln conftest.a conftest.b 2>&5 || hard_links=no
14907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014908 { echo "$as_me:$LINENO: result: $hard_links" >&5
14909echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014910 if test "$hard_links" = no; then
14911 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14912echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14913 need_locks=warn
14914 fi
14915else
14916 need_locks=no
14917fi
John Criswell7a73b802003-06-30 21:59:07 +000014918
Reid Spencera773bd52006-08-04 18:18:08 +000014919{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14920echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014921
14922 runpath_var=
14923 allow_undefined_flag=
14924 enable_shared_with_static_runtimes=no
14925 archive_cmds=
14926 archive_expsym_cmds=
14927 old_archive_From_new_cmds=
14928 old_archive_from_expsyms_cmds=
14929 export_dynamic_flag_spec=
14930 whole_archive_flag_spec=
14931 thread_safe_flag_spec=
14932 hardcode_libdir_flag_spec=
14933 hardcode_libdir_flag_spec_ld=
14934 hardcode_libdir_separator=
14935 hardcode_direct=no
14936 hardcode_minus_L=no
14937 hardcode_shlibpath_var=unsupported
14938 link_all_deplibs=unknown
14939 hardcode_automatic=no
14940 module_cmds=
14941 module_expsym_cmds=
14942 always_export_symbols=no
14943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14944 # include_expsyms should be a list of space-separated symbols to be *always*
14945 # included in the symbol list
14946 include_expsyms=
14947 # exclude_expsyms can be an extended regexp of symbols to exclude
14948 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14949 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14950 # as well as any symbol that contains `d'.
14951 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14952 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14953 # platforms (ab)use it in PIC code, but their linkers get confused if
14954 # the symbol is explicitly referenced. Since portable code cannot
14955 # rely on this symbol name, it's probably fine to never include it in
14956 # preloaded symbol tables.
14957 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014958 # Just being paranoid about ensuring that cc_basename is set.
14959 for cc_temp in $compiler""; do
14960 case $cc_temp in
14961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14963 \-*) ;;
14964 *) break;;
14965 esac
14966done
14967cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014968
14969 case $host_os in
14970 cygwin* | mingw* | pw32*)
14971 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14972 # When not using gcc, we currently assume that we are using
14973 # Microsoft Visual C++.
14974 if test "$GCC" != yes; then
14975 with_gnu_ld=no
14976 fi
14977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014978 interix*)
14979 # we just hope/assume this is gcc and not c89 (= MSVC++)
14980 with_gnu_ld=yes
14981 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014982 openbsd*)
14983 with_gnu_ld=no
14984 ;;
14985 esac
14986
14987 ld_shlibs=yes
14988 if test "$with_gnu_ld" = yes; then
14989 # If archive_cmds runs LD, not CC, wlarc should be empty
14990 wlarc='${wl}'
14991
Reid Spencera773bd52006-08-04 18:18:08 +000014992 # Set some defaults for GNU ld with shared library support. These
14993 # are reset later if shared libraries are not supported. Putting them
14994 # here allows them to be overridden if necessary.
14995 runpath_var=LD_RUN_PATH
14996 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14997 export_dynamic_flag_spec='${wl}--export-dynamic'
14998 # ancient GNU ld didn't support --whole-archive et. al.
14999 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15001 else
15002 whole_archive_flag_spec=
15003 fi
15004 supports_anon_versioning=no
15005 case `$LD -v 2>/dev/null` in
15006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15009 *\ 2.11.*) ;; # other 2.11 versions
15010 *) supports_anon_versioning=yes ;;
15011 esac
15012
John Criswell47fdd832003-07-14 16:52:07 +000015013 # See if GNU ld supports shared libraries.
15014 case $host_os in
15015 aix3* | aix4* | aix5*)
15016 # On AIX/PPC, the GNU linker is very broken
15017 if test "$host_cpu" != ia64; then
15018 ld_shlibs=no
15019 cat <<EOF 1>&2
15020
15021*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15022*** to be unable to reliably create shared libraries on AIX.
15023*** Therefore, libtool is disabling shared libraries support. If you
15024*** really care for shared libraries, you may want to modify your PATH
15025*** so that a non-GNU linker is found, and then restart.
15026
15027EOF
15028 fi
15029 ;;
15030
15031 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015032 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 +000015033 hardcode_libdir_flag_spec='-L$libdir'
15034 hardcode_minus_L=yes
15035
15036 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15037 # that the semantics of dynamic libraries on AmigaOS, at least up
15038 # to version 4, is to share data among multiple programs linked
15039 # with the same dynamic library. Since this doesn't match the
15040 # behavior of shared libraries on other platforms, we can't use
15041 # them.
15042 ld_shlibs=no
15043 ;;
15044
15045 beos*)
15046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15047 allow_undefined_flag=unsupported
15048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15049 # support --undefined. This deserves some investigation. FIXME
15050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15051 else
15052 ld_shlibs=no
15053 fi
15054 ;;
15055
15056 cygwin* | mingw* | pw32*)
15057 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15058 # as there is no search path for DLLs.
15059 hardcode_libdir_flag_spec='-L$libdir'
15060 allow_undefined_flag=unsupported
15061 always_export_symbols=no
15062 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015063 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 +000015064
15065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015066 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 +000015067 # If the export-symbols file already is a .def file (1st line
15068 # is EXPORTS), use it as is; otherwise, prepend...
15069 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15070 cp $export_symbols $output_objdir/$soname.def;
15071 else
15072 echo EXPORTS > $output_objdir/$soname.def;
15073 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015074 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15076 else
15077 ld_shlibs=no
15078 fi
15079 ;;
15080
15081 interix3*)
15082 hardcode_direct=no
15083 hardcode_shlibpath_var=no
15084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15085 export_dynamic_flag_spec='${wl}-E'
15086 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15087 # Instead, shared libraries are loaded at an image base (0x10000000 by
15088 # default) and relocated if they conflict, which is a slow very memory
15089 # consuming and fragmenting process. To avoid this, we pick a random,
15090 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15091 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15092 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15093 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'
15094 ;;
15095
15096 linux*)
15097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15098 tmp_addflag=
15099 case $cc_basename,$host_cpu in
15100 pgcc*) # Portland Group C compiler
15101 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'
15102 tmp_addflag=' $pic_flag'
15103 ;;
15104 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15105 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'
15106 tmp_addflag=' $pic_flag -Mnomain' ;;
15107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15108 tmp_addflag=' -i_dynamic' ;;
15109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15110 tmp_addflag=' -i_dynamic -nofor_main' ;;
15111 ifc* | ifort*) # Intel Fortran compiler
15112 tmp_addflag=' -nofor_main' ;;
15113 esac
15114 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115
15116 if test $supports_anon_versioning = yes; then
15117 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15118 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15119 $echo "local: *; };" >> $output_objdir/$libname.ver~
15120 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15121 fi
John Criswell47fdd832003-07-14 16:52:07 +000015122 else
15123 ld_shlibs=no
15124 fi
15125 ;;
15126
15127 netbsd*)
15128 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15129 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15130 wlarc=
15131 else
15132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134 fi
15135 ;;
15136
Reid Spencera773bd52006-08-04 18:18:08 +000015137 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015138 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15139 ld_shlibs=no
15140 cat <<EOF 1>&2
15141
15142*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15143*** create shared libraries on Solaris systems. Therefore, libtool
15144*** is disabling shared libraries support. We urge you to upgrade GNU
15145*** binutils to release 2.9.1 or newer. Another option is to modify
15146*** your PATH or compiler configuration so that the native linker is
15147*** used, and then restart.
15148
15149EOF
15150 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15152 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15153 else
15154 ld_shlibs=no
15155 fi
15156 ;;
15157
Reid Spencera773bd52006-08-04 18:18:08 +000015158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15159 case `$LD -v 2>&1` in
15160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15161 ld_shlibs=no
15162 cat <<_LT_EOF 1>&2
15163
15164*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15165*** reliably create shared libraries on SCO systems. Therefore, libtool
15166*** is disabling shared libraries support. We urge you to upgrade GNU
15167*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15168*** your PATH or compiler configuration so that the native linker is
15169*** used, and then restart.
15170
15171_LT_EOF
15172 ;;
15173 *)
15174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15175 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15178 else
15179 ld_shlibs=no
15180 fi
15181 ;;
15182 esac
15183 ;;
15184
John Criswell47fdd832003-07-14 16:52:07 +000015185 sunos4*)
15186 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15187 wlarc=
15188 hardcode_direct=yes
15189 hardcode_shlibpath_var=no
15190 ;;
15191
15192 *)
15193 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15194 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15195 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15196 else
15197 ld_shlibs=no
15198 fi
15199 ;;
15200 esac
15201
Reid Spencera773bd52006-08-04 18:18:08 +000015202 if test "$ld_shlibs" = no; then
15203 runpath_var=
15204 hardcode_libdir_flag_spec=
15205 export_dynamic_flag_spec=
15206 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015207 fi
15208 else
15209 # PORTME fill in a description of your system's linker (not GNU ld)
15210 case $host_os in
15211 aix3*)
15212 allow_undefined_flag=unsupported
15213 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015214 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 +000015215 # Note: this linker hardcodes the directories in LIBPATH if there
15216 # are no directories specified by -L.
15217 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015218 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015219 # Neither direct hardcoding nor static linking is supported with a
15220 # broken collect2.
15221 hardcode_direct=unsupported
15222 fi
15223 ;;
15224
15225 aix4* | aix5*)
15226 if test "$host_cpu" = ia64; then
15227 # On IA64, the linker does run time linking by default, so we don't
15228 # have to do anything special.
15229 aix_use_runtimelinking=no
15230 exp_sym_flag='-Bexport'
15231 no_entry_flag=""
15232 else
15233 # If we're using GNU nm, then we don't want the "-C" option.
15234 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15236 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'
15237 else
15238 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'
15239 fi
15240 aix_use_runtimelinking=no
15241
15242 # Test if we are trying to use run time linking or normal
15243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15244 # need to do runtime linking.
15245 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15246 for ld_flag in $LDFLAGS; do
15247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15248 aix_use_runtimelinking=yes
15249 break
15250 fi
15251 done
Reid Spencera773bd52006-08-04 18:18:08 +000015252 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015253 esac
15254
15255 exp_sym_flag='-bexport'
15256 no_entry_flag='-bnoentry'
15257 fi
15258
15259 # When large executables or shared objects are built, AIX ld can
15260 # have problems creating the table of contents. If linking a library
15261 # or program results in "error TOC overflow" add -mminimal-toc to
15262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15264
15265 archive_cmds=''
15266 hardcode_direct=yes
15267 hardcode_libdir_separator=':'
15268 link_all_deplibs=yes
15269
15270 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015271 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015272 # We only want to do this on AIX 4.2 and lower, the check
15273 # below for broken collect2 doesn't work under 4.3+
15274 collect2name=`${CC} -print-prog-name=collect2`
15275 if test -f "$collect2name" && \
15276 strings "$collect2name" | grep resolve_lib_name >/dev/null
15277 then
15278 # We have reworked collect2
15279 hardcode_direct=yes
15280 else
15281 # We have old collect2
15282 hardcode_direct=unsupported
15283 # It fails to find uninstalled libraries when the uninstalled
15284 # path is not listed in the libpath. Setting hardcode_minus_L
15285 # to unsupported forces relinking
15286 hardcode_minus_L=yes
15287 hardcode_libdir_flag_spec='-L$libdir'
15288 hardcode_libdir_separator=
15289 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015290 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015291 esac
15292 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015293 if test "$aix_use_runtimelinking" = yes; then
15294 shared_flag="$shared_flag "'${wl}-G'
15295 fi
John Criswell47fdd832003-07-14 16:52:07 +000015296 else
15297 # not using gcc
15298 if test "$host_cpu" = ia64; then
15299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300 # chokes on -Wl,-G. The following line is correct:
15301 shared_flag='-G'
15302 else
Reid Spencera773bd52006-08-04 18:18:08 +000015303 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015304 shared_flag='${wl}-G'
15305 else
15306 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015307 fi
John Criswell47fdd832003-07-14 16:52:07 +000015308 fi
15309 fi
15310
15311 # It seems that -bexpall does not export symbols beginning with
15312 # underscore (_), so it is better to generate a list of symbols to export.
15313 always_export_symbols=yes
15314 if test "$aix_use_runtimelinking" = yes; then
15315 # Warning - without using the other runtime loading flags (-brtl),
15316 # -berok will link without error, but may produce a broken library.
15317 allow_undefined_flag='-berok'
15318 # Determine the default libpath from the value encoded in an empty executable.
15319 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015320/* confdefs.h. */
15321_ACEOF
15322cat confdefs.h >>conftest.$ac_ext
15323cat >>conftest.$ac_ext <<_ACEOF
15324/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015325
John Criswell7a73b802003-06-30 21:59:07 +000015326int
15327main ()
15328{
John Criswell47fdd832003-07-14 16:52:07 +000015329
John Criswell7a73b802003-06-30 21:59:07 +000015330 ;
15331 return 0;
15332}
15333_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015334rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015335if { (ac_try="$ac_link"
15336case "(($ac_try" in
15337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338 *) ac_try_echo=$ac_try;;
15339esac
15340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015343 grep -v '^ *+' conftest.er1 >conftest.err
15344 rm -f conftest.er1
15345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015347 (exit $ac_status); } &&
15348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15349 { (case "(($ac_try" in
15350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351 *) ac_try_echo=$ac_try;;
15352esac
15353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15354 (eval "$ac_try") 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; } &&
15358 { ac_try='test -s conftest$ac_exeext'
15359 { (case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15362esac
15363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_try") 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015368
John Criswell47fdd832003-07-14 16:52:07 +000015369aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15370}'`
15371# Check for a 64-bit object if we didn't find anything.
15372if 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; }
15373}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015374else
15375 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015376sed 's/^/| /' conftest.$ac_ext >&5
15377
Reid Spencera773bd52006-08-04 18:18:08 +000015378
John Criswell7a73b802003-06-30 21:59:07 +000015379fi
Reid Spencera773bd52006-08-04 18:18:08 +000015380
Tanya Lattnercf067672008-01-17 05:57:22 +000015381rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015382 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015383if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015384
John Criswell47fdd832003-07-14 16:52:07 +000015385 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015386 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 +000015387 else
15388 if test "$host_cpu" = ia64; then
15389 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15390 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015391 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 +000015392 else
15393 # Determine the default libpath from the value encoded in an empty executable.
15394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015395/* confdefs.h. */
15396_ACEOF
15397cat confdefs.h >>conftest.$ac_ext
15398cat >>conftest.$ac_ext <<_ACEOF
15399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015400
John Criswell47fdd832003-07-14 16:52:07 +000015401int
15402main ()
15403{
John Criswell7a73b802003-06-30 21:59:07 +000015404
John Criswell47fdd832003-07-14 16:52:07 +000015405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015410if { (ac_try="$ac_link"
15411case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015418 grep -v '^ *+' conftest.er1 >conftest.err
15419 rm -f conftest.er1
15420 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015422 (exit $ac_status); } &&
15423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424 { (case "(($ac_try" in
15425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426 *) ac_try_echo=$ac_try;;
15427esac
15428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429 (eval "$ac_try") 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest$ac_exeext'
15434 { (case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437esac
15438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_try") 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015443
John Criswell47fdd832003-07-14 16:52:07 +000015444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15445}'`
15446# Check for a 64-bit object if we didn't find anything.
15447if 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; }
15448}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015449else
John Criswell47fdd832003-07-14 16:52:07 +000015450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015451sed 's/^/| /' conftest.$ac_ext >&5
15452
Reid Spencera773bd52006-08-04 18:18:08 +000015453
John Criswell47fdd832003-07-14 16:52:07 +000015454fi
Reid Spencera773bd52006-08-04 18:18:08 +000015455
Tanya Lattnercf067672008-01-17 05:57:22 +000015456rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015457 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015458if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015459
John Criswell47fdd832003-07-14 16:52:07 +000015460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15461 # Warning - without using the other run time loading flags,
15462 # -berok will link without error, but may produce a broken library.
15463 no_undefined_flag=' ${wl}-bernotok'
15464 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015465 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015466 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015467 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015468 # This is similar to how AIX traditionally builds its shared libraries.
15469 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 +000015470 fi
15471 fi
John Criswell7a73b802003-06-30 21:59:07 +000015472 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015473
15474 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015475 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 +000015476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_minus_L=yes
15478 # see comment about different semantics on the GNU ld section
15479 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015480 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015481
Reid Spencer2706f8c2004-09-19 23:53:36 +000015482 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015483 export_dynamic_flag_spec=-rdynamic
15484 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015485
John Criswell47fdd832003-07-14 16:52:07 +000015486 cygwin* | mingw* | pw32*)
15487 # When not using gcc, we currently assume that we are using
15488 # Microsoft Visual C++.
15489 # hardcode_libdir_flag_spec is actually meaningless, as there is
15490 # no search path for DLLs.
15491 hardcode_libdir_flag_spec=' '
15492 allow_undefined_flag=unsupported
15493 # Tell ltmain to make .lib files, not .a files.
15494 libext=lib
15495 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015496 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015497 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015498 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015499 # The linker will automatically build a .lib file if we build a DLL.
15500 old_archive_From_new_cmds='true'
15501 # FIXME: Should let the user specify the lib program.
15502 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15503 fix_srcfile_path='`cygpath -w "$srcfile"`'
15504 enable_shared_with_static_runtimes=yes
15505 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015506
John Criswell47fdd832003-07-14 16:52:07 +000015507 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015508 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015509 rhapsody* | darwin1.[012])
15510 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15511 ;;
15512 *) # Darwin 1.3 on
15513 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15514 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15515 else
15516 case ${MACOSX_DEPLOYMENT_TARGET} in
15517 10.[012])
15518 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15519 ;;
15520 10.*)
15521 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15522 ;;
15523 esac
15524 fi
15525 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015526 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015527 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015528 hardcode_direct=no
15529 hardcode_automatic=yes
15530 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015531 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015532 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533 if test "$GCC" = yes ; then
15534 output_verbose_link_cmd='echo'
15535 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15536 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015537 # 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 +000015538 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}'
15539 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 +000015540 else
Reid Spencera773bd52006-08-04 18:18:08 +000015541 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015542 xlc*)
15543 output_verbose_link_cmd='echo'
15544 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015546 # 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 +000015547 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}'
15548 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 +000015549 ;;
15550 *)
15551 ld_shlibs=no
15552 ;;
15553 esac
John Criswell7a73b802003-06-30 21:59:07 +000015554 fi
John Criswell47fdd832003-07-14 16:52:07 +000015555 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015556
John Criswell47fdd832003-07-14 16:52:07 +000015557 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015559 hardcode_libdir_flag_spec='-L$libdir'
15560 hardcode_shlibpath_var=no
15561 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015562
John Criswell47fdd832003-07-14 16:52:07 +000015563 freebsd1*)
15564 ld_shlibs=no
15565 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015566
John Criswell47fdd832003-07-14 16:52:07 +000015567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15568 # support. Future versions do this automatically, but an explicit c++rt0.o
15569 # does not break anything, and helps significantly (at the cost of a little
15570 # extra space).
15571 freebsd2.2*)
15572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15573 hardcode_libdir_flag_spec='-R$libdir'
15574 hardcode_direct=yes
15575 hardcode_shlibpath_var=no
15576 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015577
John Criswell47fdd832003-07-14 16:52:07 +000015578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15579 freebsd2*)
15580 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15581 hardcode_direct=yes
15582 hardcode_minus_L=yes
15583 hardcode_shlibpath_var=no
15584 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015585
John Criswell47fdd832003-07-14 16:52:07 +000015586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015587 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015588 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15589 hardcode_libdir_flag_spec='-R$libdir'
15590 hardcode_direct=yes
15591 hardcode_shlibpath_var=no
15592 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015593
John Criswell47fdd832003-07-14 16:52:07 +000015594 hpux9*)
15595 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015596 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 +000015597 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015598 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 +000015599 fi
15600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15601 hardcode_libdir_separator=:
15602 hardcode_direct=yes
15603
15604 # hardcode_minus_L: Not really in the search PATH,
15605 # but as the default location of the library.
15606 hardcode_minus_L=yes
15607 export_dynamic_flag_spec='${wl}-E'
15608 ;;
15609
Reid Spencera773bd52006-08-04 18:18:08 +000015610 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015611 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015612 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15613 else
15614 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15615 fi
15616 if test "$with_gnu_ld" = no; then
15617 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15618 hardcode_libdir_separator=:
15619
15620 hardcode_direct=yes
15621 export_dynamic_flag_spec='${wl}-E'
15622
15623 # hardcode_minus_L: Not really in the search PATH,
15624 # but as the default location of the library.
15625 hardcode_minus_L=yes
15626 fi
15627 ;;
15628
15629 hpux11*)
15630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15631 case $host_cpu in
15632 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015633 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15634 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015635 ia64*)
15636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15637 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015638 *)
15639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15640 ;;
15641 esac
15642 else
Reid Spencera773bd52006-08-04 18:18:08 +000015643 case $host_cpu in
15644 hppa*64*)
15645 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15646 ;;
15647 ia64*)
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015649 ;;
15650 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015651 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 +000015652 ;;
15653 esac
15654 fi
15655 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015656 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015658
Reid Spencera773bd52006-08-04 18:18:08 +000015659 case $host_cpu in
15660 hppa*64*|ia64*)
15661 hardcode_libdir_flag_spec_ld='+b $libdir'
15662 hardcode_direct=no
15663 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015664 ;;
15665 *)
John Criswell47fdd832003-07-14 16:52:07 +000015666 hardcode_direct=yes
15667 export_dynamic_flag_spec='${wl}-E'
15668
15669 # hardcode_minus_L: Not really in the search PATH,
15670 # but as the default location of the library.
15671 hardcode_minus_L=yes
15672 ;;
15673 esac
15674 fi
15675 ;;
15676
15677 irix5* | irix6* | nonstopux*)
15678 if test "$GCC" = yes; then
15679 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'
15680 else
15681 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'
15682 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15683 fi
15684 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15685 hardcode_libdir_separator=:
15686 link_all_deplibs=yes
15687 ;;
15688
15689 netbsd*)
15690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15691 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15692 else
15693 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15694 fi
15695 hardcode_libdir_flag_spec='-R$libdir'
15696 hardcode_direct=yes
15697 hardcode_shlibpath_var=no
15698 ;;
15699
15700 newsos6)
15701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15702 hardcode_direct=yes
15703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15704 hardcode_libdir_separator=:
15705 hardcode_shlibpath_var=no
15706 ;;
15707
15708 openbsd*)
15709 hardcode_direct=yes
15710 hardcode_shlibpath_var=no
15711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015713 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 +000015714 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15715 export_dynamic_flag_spec='${wl}-E'
15716 else
15717 case $host_os in
15718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15719 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15720 hardcode_libdir_flag_spec='-R$libdir'
15721 ;;
15722 *)
15723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15724 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15725 ;;
15726 esac
15727 fi
15728 ;;
15729
15730 os2*)
15731 hardcode_libdir_flag_spec='-L$libdir'
15732 hardcode_minus_L=yes
15733 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015734 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 +000015735 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15736 ;;
15737
15738 osf3*)
15739 if test "$GCC" = yes; then
15740 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15741 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'
15742 else
15743 allow_undefined_flag=' -expect_unresolved \*'
15744 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'
15745 fi
15746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15747 hardcode_libdir_separator=:
15748 ;;
15749
15750 osf4* | osf5*) # as osf3* with the addition of -msym flag
15751 if test "$GCC" = yes; then
15752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15753 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'
15754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15755 else
15756 allow_undefined_flag=' -expect_unresolved \*'
15757 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 +000015758 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 +000015759 $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 +000015760
John Criswell47fdd832003-07-14 16:52:07 +000015761 # Both c and cxx compiler support -rpath directly
15762 hardcode_libdir_flag_spec='-rpath $libdir'
15763 fi
15764 hardcode_libdir_separator=:
15765 ;;
15766
John Criswell47fdd832003-07-14 16:52:07 +000015767 solaris*)
15768 no_undefined_flag=' -z text'
15769 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015770 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015771 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015772 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15773 $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 +000015774 else
Reid Spencera773bd52006-08-04 18:18:08 +000015775 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015776 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15778 $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 +000015779 fi
15780 hardcode_libdir_flag_spec='-R$libdir'
15781 hardcode_shlibpath_var=no
15782 case $host_os in
15783 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015784 *)
15785 # The compiler driver will combine linker options so we
15786 # cannot just pass the convience library names through
15787 # without $wl, iff we do not link with $LD.
15788 # Luckily, gcc supports the same syntax we need for Sun Studio.
15789 # Supported since Solaris 2.6 (maybe 2.5.1?)
15790 case $wlarc in
15791 '')
15792 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15793 *)
15794 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' ;;
15795 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015796 esac
15797 link_all_deplibs=yes
15798 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015799
John Criswell47fdd832003-07-14 16:52:07 +000015800 sunos4*)
15801 if test "x$host_vendor" = xsequent; then
15802 # Use $CC to link under sequent, because it throws in some extra .o
15803 # files that make .init and .fini sections work.
15804 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15805 else
15806 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15807 fi
15808 hardcode_libdir_flag_spec='-L$libdir'
15809 hardcode_direct=yes
15810 hardcode_minus_L=yes
15811 hardcode_shlibpath_var=no
15812 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015813
John Criswell47fdd832003-07-14 16:52:07 +000015814 sysv4)
15815 case $host_vendor in
15816 sni)
15817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_direct=yes # is this really true???
15819 ;;
15820 siemens)
15821 ## LD is ld it makes a PLAMLIB
15822 ## CC just makes a GrossModule.
15823 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15824 reload_cmds='$CC -r -o $output$reload_objs'
15825 hardcode_direct=no
15826 ;;
15827 motorola)
15828 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15830 ;;
15831 esac
15832 runpath_var='LD_RUN_PATH'
15833 hardcode_shlibpath_var=no
15834 ;;
15835
15836 sysv4.3*)
15837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_shlibpath_var=no
15839 export_dynamic_flag_spec='-Bexport'
15840 ;;
15841
15842 sysv4*MP*)
15843 if test -d /usr/nec; then
15844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15845 hardcode_shlibpath_var=no
15846 runpath_var=LD_RUN_PATH
15847 hardcode_runpath_var=yes
15848 ld_shlibs=yes
15849 fi
15850 ;;
15851
Reid Spencera773bd52006-08-04 18:18:08 +000015852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15853 no_undefined_flag='${wl}-z,text'
15854 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015855 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015856 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015857
John Criswell47fdd832003-07-14 16:52:07 +000015858 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015859 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15860 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 +000015861 else
Reid Spencera773bd52006-08-04 18:18:08 +000015862 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 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 +000015864 fi
John Criswell47fdd832003-07-14 16:52:07 +000015865 ;;
15866
Reid Spencera773bd52006-08-04 18:18:08 +000015867 sysv5* | sco3.2v5* | sco5v6*)
15868 # Note: We can NOT use -z defs as we might desire, because we do not
15869 # link with -lc, and that would cause any symbols used from libc to
15870 # always be unresolved, which means just about no library would
15871 # ever link correctly. If we're not using GNU ld we use -z text
15872 # though, which does catch some bad symbols but isn't as heavy-handed
15873 # as -z defs.
15874 no_undefined_flag='${wl}-z,text'
15875 allow_undefined_flag='${wl}-z,nodefs'
15876 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015877 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015878 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15879 hardcode_libdir_separator=':'
15880 link_all_deplibs=yes
15881 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015882 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015883
15884 if test "$GCC" = yes; then
15885 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 else
15888 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 fi
John Criswell47fdd832003-07-14 16:52:07 +000015891 ;;
15892
15893 uts4*)
15894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_libdir_flag_spec='-L$libdir'
15896 hardcode_shlibpath_var=no
15897 ;;
15898
15899 *)
15900 ld_shlibs=no
15901 ;;
15902 esac
15903 fi
15904
Reid Spencera773bd52006-08-04 18:18:08 +000015905{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15906echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015907test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015908
John Criswell47fdd832003-07-14 16:52:07 +000015909#
15910# Do we need to explicitly link libc?
15911#
15912case "x$archive_cmds_need_lc" in
15913x|xyes)
15914 # Assume -lc should be added
15915 archive_cmds_need_lc=yes
15916
15917 if test "$enable_shared" = yes && test "$GCC" = yes; then
15918 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015919 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015920 # FIXME: we may have to deal with multi-command sequences.
15921 ;;
15922 '$CC '*)
15923 # Test whether the compiler implicitly links with -lc since on some
15924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15925 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015926 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15927echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015928 $rm conftest*
15929 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15930
15931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15932 (eval $ac_compile) 2>&5
15933 ac_status=$?
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } 2>conftest.err; then
15936 soname=conftest
15937 lib=conftest
15938 libobjs=conftest.$ac_objext
15939 deplibs=
15940 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015941 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015942 compiler_flags=-v
15943 linker_flags=-v
15944 verstring=
15945 output_objdir=.
15946 libname=conftest
15947 lt_save_allow_undefined_flag=$allow_undefined_flag
15948 allow_undefined_flag=
15949 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15950 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }
15954 then
15955 archive_cmds_need_lc=no
15956 else
15957 archive_cmds_need_lc=yes
15958 fi
15959 allow_undefined_flag=$lt_save_allow_undefined_flag
15960 else
15961 cat conftest.err 1>&5
15962 fi
15963 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015964 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15965echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015966 ;;
15967 esac
15968 fi
15969 ;;
15970esac
15971
Reid Spencera773bd52006-08-04 18:18:08 +000015972{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15973echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015974library_names_spec=
15975libname_spec='lib$name'
15976soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015977shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015978postinstall_cmds=
15979postuninstall_cmds=
15980finish_cmds=
15981finish_eval=
15982shlibpath_var=
15983shlibpath_overrides_runpath=unknown
15984version_type=none
15985dynamic_linker="$host_os ld.so"
15986sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015987if test "$GCC" = yes; then
15988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15990 # if the path contains ";" then we assume it to be the separator
15991 # otherwise default to the standard path separator (i.e. ":") - it is
15992 # assumed that no part of a normal pathname contains ";" but that should
15993 # okay in the real world where ";" in dirpaths is itself problematic.
15994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15995 else
15996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15997 fi
15998else
15999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16000fi
16001need_lib_prefix=unknown
16002hardcode_into_libs=no
16003
16004# when you set need_version to no, make sure it does not cause -set_version
16005# flags to be left without arguments
16006need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016007
16008case $host_os in
16009aix3*)
16010 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016012 shlibpath_var=LIBPATH
16013
John Criswell47fdd832003-07-14 16:52:07 +000016014 # AIX 3 has no versioning support, so we append a major version to the name.
16015 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016016 ;;
16017
16018aix4* | aix5*)
16019 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016020 need_lib_prefix=no
16021 need_version=no
16022 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016023 if test "$host_cpu" = ia64; then
16024 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016026 shlibpath_var=LD_LIBRARY_PATH
16027 else
16028 # With GCC up to 2.95.x, collect2 would create an import file
16029 # for dependence libraries. The import file would start with
16030 # the line `#! .'. This would cause the generated library to
16031 # depend on `.', always an invalid library. This was fixed in
16032 # development snapshots of GCC prior to 3.0.
16033 case $host_os in
16034 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036 echo ' yes '
16037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16038 :
16039 else
16040 can_build_shared=no
16041 fi
16042 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016043 esac
John Criswell47fdd832003-07-14 16:52:07 +000016044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16045 # soname into executable. Probably we can add versioning support to
16046 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016047 if test "$aix_use_runtimelinking" = yes; then
16048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16049 # instead of lib<name>.a to let people know that these are not
16050 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016052 else
16053 # We preserve .a as extension for shared libraries through AIX4.2
16054 # and later when we are not doing run time linking.
16055 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016056 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016057 fi
16058 shlibpath_var=LIBPATH
16059 fi
16060 ;;
16061
16062amigaos*)
16063 library_names_spec='$libname.ixlibrary $libname.a'
16064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016065 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 +000016066 ;;
16067
16068beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016069 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016070 dynamic_linker="$host_os ld.so"
16071 shlibpath_var=LIBRARY_PATH
16072 ;;
16073
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016075 version_type=linux
16076 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016083 # the default ld.so.conf also contains /usr/contrib/lib and
16084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16085 # libtool to hard-code these into programs
16086 ;;
16087
16088cygwin* | mingw* | pw32*)
16089 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016090 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016091 need_version=no
16092 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016093
John Criswell7a73b802003-06-30 21:59:07 +000016094 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016095 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016096 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016098 postinstall_cmds='base_file=`basename \${file}`~
16099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16100 dldir=$destdir/`dirname \$dlpath`~
16101 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016102 $install_prog $dir/$dlname \$dldir/$dlname~
16103 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016106 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016107 shlibpath_overrides_runpath=yes
16108
16109 case $host_os in
16110 cygwin*)
16111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112 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 +000016113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016114 ;;
16115 mingw*)
16116 # MinGW DLLs use traditional 'lib' prefix
16117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16120 # It is most probably a Windows format PATH printed by
16121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16122 # path with ; separators, and with drive letters. We can handle the
16123 # drive letters (cygwin fileutils understands them), so leave them,
16124 # especially as we might pass files found there to a mingw objdump,
16125 # which wouldn't understand a cygwinified path. Ahh.
16126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16127 else
16128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16129 fi
16130 ;;
16131 pw32*)
16132 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016133 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 +000016134 ;;
16135 esac
John Criswell7a73b802003-06-30 21:59:07 +000016136 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016137
John Criswell7a73b802003-06-30 21:59:07 +000016138 *)
John Criswell47fdd832003-07-14 16:52:07 +000016139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016140 ;;
16141 esac
16142 dynamic_linker='Win32 ld.exe'
16143 # FIXME: first we should search . and the directory the executable is in
16144 shlibpath_var=PATH
16145 ;;
16146
16147darwin* | rhapsody*)
16148 dynamic_linker="$host_os dyld"
16149 version_type=darwin
16150 need_lib_prefix=no
16151 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016153 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016154 shlibpath_overrides_runpath=yes
16155 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016156 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016158 if test "$GCC" = yes; then
16159 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"`
16160 else
16161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016162 fi
16163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16164 ;;
16165
16166dgux*)
16167 version_type=linux
16168 need_lib_prefix=no
16169 need_version=no
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016173 ;;
16174
16175freebsd1*)
16176 dynamic_linker=no
16177 ;;
16178
Reid Spencer2706f8c2004-09-19 23:53:36 +000016179kfreebsd*-gnu)
16180 version_type=linux
16181 need_lib_prefix=no
16182 need_version=no
16183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16184 soname_spec='${libname}${release}${shared_ext}$major'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 shlibpath_overrides_runpath=no
16187 hardcode_into_libs=yes
16188 dynamic_linker='GNU ld.so'
16189 ;;
16190
Reid Spencera773bd52006-08-04 18:18:08 +000016191freebsd* | dragonfly*)
16192 # DragonFly does not have aout. When/if they implement a new
16193 # versioning mechanism, adjust this.
16194 if test -x /usr/bin/objformat; then
16195 objformat=`/usr/bin/objformat`
16196 else
16197 case $host_os in
16198 freebsd[123]*) objformat=aout ;;
16199 *) objformat=elf ;;
16200 esac
16201 fi
John Criswell7a73b802003-06-30 21:59:07 +000016202 version_type=freebsd-$objformat
16203 case $version_type in
16204 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016206 need_version=no
16207 need_lib_prefix=no
16208 ;;
16209 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016211 need_version=yes
16212 ;;
16213 esac
16214 shlibpath_var=LD_LIBRARY_PATH
16215 case $host_os in
16216 freebsd2*)
16217 shlibpath_overrides_runpath=yes
16218 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016219 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016220 shlibpath_overrides_runpath=yes
16221 hardcode_into_libs=yes
16222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016225 shlibpath_overrides_runpath=no
16226 hardcode_into_libs=yes
16227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016228 freebsd*) # from 4.6 on
16229 shlibpath_overrides_runpath=yes
16230 hardcode_into_libs=yes
16231 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016232 esac
16233 ;;
16234
16235gnu*)
16236 version_type=linux
16237 need_lib_prefix=no
16238 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16240 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016241 shlibpath_var=LD_LIBRARY_PATH
16242 hardcode_into_libs=yes
16243 ;;
16244
16245hpux9* | hpux10* | hpux11*)
16246 # Give a soname corresponding to the major version so that dld.sl refuses to
16247 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016248 version_type=sunos
16249 need_lib_prefix=no
16250 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016251 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016252 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016253 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016254 hardcode_into_libs=yes
16255 dynamic_linker="$host_os dld.so"
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 if test "X$HPUX_IA64_MODE" = X32; then
16261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16262 else
16263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16264 fi
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16266 ;;
16267 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016268 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016269 hardcode_into_libs=yes
16270 dynamic_linker="$host_os dld.sl"
16271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274 soname_spec='${libname}${release}${shared_ext}$major'
16275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16277 ;;
16278 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016279 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016280 dynamic_linker="$host_os dld.sl"
16281 shlibpath_var=SHLIB_PATH
16282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 ;;
16286 esac
John Criswell7a73b802003-06-30 21:59:07 +000016287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16288 postinstall_cmds='chmod 555 $lib'
16289 ;;
16290
Reid Spencera773bd52006-08-04 18:18:08 +000016291interix3*)
16292 version_type=linux
16293 need_lib_prefix=no
16294 need_version=no
16295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
16297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=no
16300 hardcode_into_libs=yes
16301 ;;
16302
John Criswell47fdd832003-07-14 16:52:07 +000016303irix5* | irix6* | nonstopux*)
16304 case $host_os in
16305 nonstopux*) version_type=nonstopux ;;
16306 *)
16307 if test "$lt_cv_prog_gnu_ld" = yes; then
16308 version_type=linux
16309 else
16310 version_type=irix
16311 fi ;;
16312 esac
John Criswell7a73b802003-06-30 21:59:07 +000016313 need_lib_prefix=no
16314 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016315 soname_spec='${libname}${release}${shared_ext}$major'
16316 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 +000016317 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016318 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016319 libsuff= shlibsuff=
16320 ;;
16321 *)
16322 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16324 libsuff= shlibsuff= libmagic=32-bit;;
16325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16326 libsuff=32 shlibsuff=N32 libmagic=N32;;
16327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016329 *) libsuff= shlibsuff= libmagic=never-match;;
16330 esac
16331 ;;
16332 esac
16333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16334 shlibpath_overrides_runpath=no
16335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016337 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016338 ;;
16339
16340# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016341linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016342 dynamic_linker=no
16343 ;;
16344
16345# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016346linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016347 version_type=linux
16348 need_lib_prefix=no
16349 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 shlibpath_overrides_runpath=no
16355 # This implies no fast_install, which is unacceptable.
16356 # Some rework will be needed to allow for fast_install
16357 # before this can be enabled.
16358 hardcode_into_libs=yes
16359
Reid Spencer2706f8c2004-09-19 23:53:36 +000016360 # Append ld.so.conf contents to the search path
16361 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016362 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 +000016363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16364 fi
16365
John Criswell7a73b802003-06-30 21:59:07 +000016366 # We used to test for /lib/ld.so.1 and disable shared libraries on
16367 # powerpc, because MkLinux only supported shared libraries with the
16368 # GNU dynamic linker. Since this was broken with cross compilers,
16369 # most powerpc-linux boxes support dynamic linking these days and
16370 # people can always --disable-shared, the test was removed, and we
16371 # assume the GNU/Linux dynamic linker is in use.
16372 dynamic_linker='GNU/Linux ld.so'
16373 ;;
16374
Reid Spencer2706f8c2004-09-19 23:53:36 +000016375knetbsd*-gnu)
16376 version_type=linux
16377 need_lib_prefix=no
16378 need_version=no
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=no
16383 hardcode_into_libs=yes
16384 dynamic_linker='GNU ld.so'
16385 ;;
16386
John Criswell7a73b802003-06-30 21:59:07 +000016387netbsd*)
16388 version_type=sunos
16389 need_lib_prefix=no
16390 need_version=no
16391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16394 dynamic_linker='NetBSD (a.out) ld.so'
16395 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016397 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016398 dynamic_linker='NetBSD ld.elf_so'
16399 fi
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16403 ;;
16404
16405newsos6)
16406 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16410 ;;
16411
Reid Spencer2706f8c2004-09-19 23:53:36 +000016412nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016413 version_type=linux
16414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=yes
16420 ;;
16421
16422openbsd*)
16423 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016424 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016425 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16427 case $host_os in
16428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16429 *) need_version=no ;;
16430 esac
John Criswell47fdd832003-07-14 16:52:07 +000016431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16433 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016434 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 +000016435 case $host_os in
16436 openbsd2.[89] | openbsd2.[89].*)
16437 shlibpath_overrides_runpath=no
16438 ;;
16439 *)
16440 shlibpath_overrides_runpath=yes
16441 ;;
16442 esac
John Criswell7a73b802003-06-30 21:59:07 +000016443 else
16444 shlibpath_overrides_runpath=yes
16445 fi
John Criswell7a73b802003-06-30 21:59:07 +000016446 ;;
16447
16448os2*)
16449 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016450 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016451 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016452 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016453 dynamic_linker='OS/2 ld.exe'
16454 shlibpath_var=LIBPATH
16455 ;;
16456
16457osf3* | osf4* | osf5*)
16458 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016459 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016460 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016461 soname_spec='${libname}${release}${shared_ext}$major'
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016463 shlibpath_var=LD_LIBRARY_PATH
16464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16466 ;;
16467
John Criswell7a73b802003-06-30 21:59:07 +000016468solaris*)
16469 version_type=linux
16470 need_lib_prefix=no
16471 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=yes
16476 hardcode_into_libs=yes
16477 # ldd complains unless libraries are executable
16478 postinstall_cmds='chmod +x $lib'
16479 ;;
16480
16481sunos4*)
16482 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 shlibpath_overrides_runpath=yes
16487 if test "$with_gnu_ld" = yes; then
16488 need_lib_prefix=no
16489 fi
16490 need_version=yes
16491 ;;
16492
Reid Spencera773bd52006-08-04 18:18:08 +000016493sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016494 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016497 shlibpath_var=LD_LIBRARY_PATH
16498 case $host_vendor in
16499 sni)
16500 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016501 need_lib_prefix=no
16502 export_dynamic_flag_spec='${wl}-Blargedynsym'
16503 runpath_var=LD_RUN_PATH
16504 ;;
16505 siemens)
16506 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016507 ;;
16508 motorola)
16509 need_lib_prefix=no
16510 need_version=no
16511 shlibpath_overrides_runpath=no
16512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16513 ;;
16514 esac
16515 ;;
16516
John Criswell7a73b802003-06-30 21:59:07 +000016517sysv4*MP*)
16518 if test -d /usr/nec ;then
16519 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16521 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016522 shlibpath_var=LD_LIBRARY_PATH
16523 fi
16524 ;;
16525
Reid Spencera773bd52006-08-04 18:18:08 +000016526sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16527 version_type=freebsd-elf
16528 need_lib_prefix=no
16529 need_version=no
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 hardcode_into_libs=yes
16534 if test "$with_gnu_ld" = yes; then
16535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16536 shlibpath_overrides_runpath=no
16537 else
16538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16539 shlibpath_overrides_runpath=yes
16540 case $host_os in
16541 sco3.2v5*)
16542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16543 ;;
16544 esac
16545 fi
16546 sys_lib_dlsearch_path_spec='/usr/lib'
16547 ;;
16548
John Criswell47fdd832003-07-14 16:52:07 +000016549uts4*)
16550 version_type=linux
16551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552 soname_spec='${libname}${release}${shared_ext}$major'
16553 shlibpath_var=LD_LIBRARY_PATH
16554 ;;
16555
John Criswell7a73b802003-06-30 21:59:07 +000016556*)
16557 dynamic_linker=no
16558 ;;
16559esac
Reid Spencera773bd52006-08-04 18:18:08 +000016560{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16561echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016562test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016563
Reid Spencera773bd52006-08-04 18:18:08 +000016564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565if test "$GCC" = yes; then
16566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567fi
16568
16569{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16570echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016571hardcode_action=
16572if test -n "$hardcode_libdir_flag_spec" || \
16573 test -n "$runpath_var" || \
16574 test "X$hardcode_automatic" = "Xyes" ; then
16575
16576 # We can hardcode non-existant directories.
16577 if test "$hardcode_direct" != no &&
16578 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16579 # have to relink, otherwise we might link with an installed library
16580 # when we should be linking with a yet-to-be-installed one
16581 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16582 test "$hardcode_minus_L" != no; then
16583 # Linking always hardcodes the temporary library directory.
16584 hardcode_action=relink
16585 else
16586 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16587 hardcode_action=immediate
16588 fi
16589else
16590 # We cannot hardcode anything, or else we can only hardcode existing
16591 # directories.
16592 hardcode_action=unsupported
16593fi
Reid Spencera773bd52006-08-04 18:18:08 +000016594{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16595echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016596
16597if test "$hardcode_action" = relink; then
16598 # Fast installation is not supported
16599 enable_fast_install=no
16600elif test "$shlibpath_overrides_runpath" = yes ||
16601 test "$enable_shared" = no; then
16602 # Fast installation is not necessary
16603 enable_fast_install=needless
16604fi
16605
16606striplib=
16607old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016608{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16609echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016610if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16612 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016613 { echo "$as_me:$LINENO: result: yes" >&5
16614echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016615else
16616# FIXME - insert some real tests, host_os isn't really good enough
16617 case $host_os in
16618 darwin*)
16619 if test -n "$STRIP" ; then
16620 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016621 { echo "$as_me:$LINENO: result: yes" >&5
16622echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016623 else
Reid Spencera773bd52006-08-04 18:18:08 +000016624 { echo "$as_me:$LINENO: result: no" >&5
16625echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626fi
16627 ;;
16628 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016629 { echo "$as_me:$LINENO: result: no" >&5
16630echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016631 ;;
16632 esac
16633fi
16634
John Criswell7a73b802003-06-30 21:59:07 +000016635if test "x$enable_dlopen" != xyes; then
16636 enable_dlopen=unknown
16637 enable_dlopen_self=unknown
16638 enable_dlopen_self_static=unknown
16639else
16640 lt_cv_dlopen=no
16641 lt_cv_dlopen_libs=
16642
16643 case $host_os in
16644 beos*)
16645 lt_cv_dlopen="load_add_on"
16646 lt_cv_dlopen_libs=
16647 lt_cv_dlopen_self=yes
16648 ;;
16649
John Criswell47fdd832003-07-14 16:52:07 +000016650 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016651 lt_cv_dlopen="LoadLibrary"
16652 lt_cv_dlopen_libs=
16653 ;;
16654
John Criswell47fdd832003-07-14 16:52:07 +000016655 cygwin*)
16656 lt_cv_dlopen="dlopen"
16657 lt_cv_dlopen_libs=
16658 ;;
16659
16660 darwin*)
16661 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016662 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16663echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016664if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16665 echo $ECHO_N "(cached) $ECHO_C" >&6
16666else
16667 ac_check_lib_save_LIBS=$LIBS
16668LIBS="-ldl $LIBS"
16669cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016670/* confdefs.h. */
16671_ACEOF
16672cat confdefs.h >>conftest.$ac_ext
16673cat >>conftest.$ac_ext <<_ACEOF
16674/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016675
Reid Spencera773bd52006-08-04 18:18:08 +000016676/* Override any GCC internal prototype to avoid an error.
16677 Use char because int might match the return type of a GCC
16678 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016679#ifdef __cplusplus
16680extern "C"
16681#endif
John Criswell47fdd832003-07-14 16:52:07 +000016682char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016683int
16684main ()
16685{
Reid Spencera773bd52006-08-04 18:18:08 +000016686return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016692if { (ac_try="$ac_link"
16693case "(($ac_try" in
16694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16695 *) ac_try_echo=$ac_try;;
16696esac
16697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16698 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016704 (exit $ac_status); } &&
16705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; } &&
16715 { ac_try='test -s conftest$ac_exeext'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016725 ac_cv_lib_dl_dlopen=yes
16726else
16727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016728sed 's/^/| /' conftest.$ac_ext >&5
16729
Reid Spencera773bd52006-08-04 18:18:08 +000016730 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016731fi
Reid Spencera773bd52006-08-04 18:18:08 +000016732
Tanya Lattnercf067672008-01-17 05:57:22 +000016733rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016734 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016735LIBS=$ac_check_lib_save_LIBS
16736fi
Reid Spencera773bd52006-08-04 18:18:08 +000016737{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16738echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016739if test $ac_cv_lib_dl_dlopen = yes; then
16740 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16741else
16742
16743 lt_cv_dlopen="dyld"
16744 lt_cv_dlopen_libs=
16745 lt_cv_dlopen_self=yes
16746
16747fi
16748
16749 ;;
16750
John Criswell7a73b802003-06-30 21:59:07 +000016751 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016752 { echo "$as_me:$LINENO: checking for shl_load" >&5
16753echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016754if test "${ac_cv_func_shl_load+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016763/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765#define shl_load innocuous_shl_load
16766
John Criswell7a73b802003-06-30 21:59:07 +000016767/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016768 which can conflict with char shl_load (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016771
John Criswell0c38eaf2003-09-10 15:17:25 +000016772#ifdef __STDC__
16773# include <limits.h>
16774#else
16775# include <assert.h>
16776#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016777
16778#undef shl_load
16779
Reid Spencera773bd52006-08-04 18:18:08 +000016780/* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016783#ifdef __cplusplus
16784extern "C"
16785#endif
John Criswell7a73b802003-06-30 21:59:07 +000016786char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016787/* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016790#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016791choke me
John Criswell7a73b802003-06-30 21:59:07 +000016792#endif
16793
John Criswell0c38eaf2003-09-10 15:17:25 +000016794int
16795main ()
16796{
Reid Spencera773bd52006-08-04 18:18:08 +000016797return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016803if { (ac_try="$ac_link"
16804case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016836 ac_cv_func_shl_load=yes
16837else
16838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016839sed 's/^/| /' conftest.$ac_ext >&5
16840
Reid Spencera773bd52006-08-04 18:18:08 +000016841 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016842fi
Reid Spencera773bd52006-08-04 18:18:08 +000016843
Tanya Lattnercf067672008-01-17 05:57:22 +000016844rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016845 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016846fi
Reid Spencera773bd52006-08-04 18:18:08 +000016847{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16848echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016849if test $ac_cv_func_shl_load = yes; then
16850 lt_cv_dlopen="shl_load"
16851else
Reid Spencera773bd52006-08-04 18:18:08 +000016852 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16853echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016854if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16856else
16857 ac_check_lib_save_LIBS=$LIBS
16858LIBS="-ldld $LIBS"
16859cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016865
Reid Spencera773bd52006-08-04 18:18:08 +000016866/* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016869#ifdef __cplusplus
16870extern "C"
16871#endif
John Criswell7a73b802003-06-30 21:59:07 +000016872char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016873int
16874main ()
16875{
Reid Spencera773bd52006-08-04 18:18:08 +000016876return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016877 ;
16878 return 0;
16879}
16880_ACEOF
16881rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016882if { (ac_try="$ac_link"
16883case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896 { (case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899esac
16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_try") 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest$ac_exeext'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909esac
16910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016915 ac_cv_lib_dld_shl_load=yes
16916else
16917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016918sed 's/^/| /' conftest.$ac_ext >&5
16919
Reid Spencera773bd52006-08-04 18:18:08 +000016920 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016921fi
Reid Spencera773bd52006-08-04 18:18:08 +000016922
Tanya Lattnercf067672008-01-17 05:57:22 +000016923rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016924 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016925LIBS=$ac_check_lib_save_LIBS
16926fi
Reid Spencera773bd52006-08-04 18:18:08 +000016927{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16928echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016929if test $ac_cv_lib_dld_shl_load = yes; then
16930 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16931else
Reid Spencera773bd52006-08-04 18:18:08 +000016932 { echo "$as_me:$LINENO: checking for dlopen" >&5
16933echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016934if test "${ac_cv_func_dlopen+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016938/* confdefs.h. */
16939_ACEOF
16940cat confdefs.h >>conftest.$ac_ext
16941cat >>conftest.$ac_ext <<_ACEOF
16942/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016943/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16945#define dlopen innocuous_dlopen
16946
John Criswell7a73b802003-06-30 21:59:07 +000016947/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016948 which can conflict with char dlopen (); below.
16949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16950 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016951
John Criswell0c38eaf2003-09-10 15:17:25 +000016952#ifdef __STDC__
16953# include <limits.h>
16954#else
16955# include <assert.h>
16956#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016957
16958#undef dlopen
16959
Reid Spencera773bd52006-08-04 18:18:08 +000016960/* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016963#ifdef __cplusplus
16964extern "C"
16965#endif
John Criswell7a73b802003-06-30 21:59:07 +000016966char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016967/* The GNU C library defines this for functions which it implements
16968 to always fail with ENOSYS. Some functions are actually named
16969 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016970#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016971choke me
John Criswell7a73b802003-06-30 21:59:07 +000016972#endif
16973
John Criswell0c38eaf2003-09-10 15:17:25 +000016974int
16975main ()
16976{
Reid Spencera773bd52006-08-04 18:18:08 +000016977return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016978 ;
16979 return 0;
16980}
16981_ACEOF
16982rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016983if { (ac_try="$ac_link"
16984case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16987esac
16988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016990 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016991 grep -v '^ *+' conftest.er1 >conftest.err
16992 rm -f conftest.er1
16993 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016995 (exit $ac_status); } &&
16996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16997 { (case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000esac
17001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17002 (eval "$ac_try") 2>&5
17003 ac_status=$?
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; } &&
17006 { ac_try='test -s conftest$ac_exeext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010esac
17011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17012 (eval "$ac_try") 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017016 ac_cv_func_dlopen=yes
17017else
17018 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017019sed 's/^/| /' conftest.$ac_ext >&5
17020
Reid Spencera773bd52006-08-04 18:18:08 +000017021 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017022fi
Reid Spencera773bd52006-08-04 18:18:08 +000017023
Tanya Lattnercf067672008-01-17 05:57:22 +000017024rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017025 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017026fi
Reid Spencera773bd52006-08-04 18:18:08 +000017027{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17028echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017029if test $ac_cv_func_dlopen = yes; then
17030 lt_cv_dlopen="dlopen"
17031else
Reid Spencera773bd52006-08-04 18:18:08 +000017032 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17033echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017034if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17035 echo $ECHO_N "(cached) $ECHO_C" >&6
17036else
17037 ac_check_lib_save_LIBS=$LIBS
17038LIBS="-ldl $LIBS"
17039cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017040/* confdefs.h. */
17041_ACEOF
17042cat confdefs.h >>conftest.$ac_ext
17043cat >>conftest.$ac_ext <<_ACEOF
17044/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017045
Reid Spencera773bd52006-08-04 18:18:08 +000017046/* Override any GCC internal prototype to avoid an error.
17047 Use char because int might match the return type of a GCC
17048 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017049#ifdef __cplusplus
17050extern "C"
17051#endif
John Criswell7a73b802003-06-30 21:59:07 +000017052char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017053int
17054main ()
17055{
Reid Spencera773bd52006-08-04 18:18:08 +000017056return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017057 ;
17058 return 0;
17059}
17060_ACEOF
17061rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017062if { (ac_try="$ac_link"
17063case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066esac
17067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017074 (exit $ac_status); } &&
17075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17076 { (case "(($ac_try" in
17077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078 *) ac_try_echo=$ac_try;;
17079esac
17080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17081 (eval "$ac_try") 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017095 ac_cv_lib_dl_dlopen=yes
17096else
17097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017098sed 's/^/| /' conftest.$ac_ext >&5
17099
Reid Spencera773bd52006-08-04 18:18:08 +000017100 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017101fi
Reid Spencera773bd52006-08-04 18:18:08 +000017102
Tanya Lattnercf067672008-01-17 05:57:22 +000017103rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017105LIBS=$ac_check_lib_save_LIBS
17106fi
Reid Spencera773bd52006-08-04 18:18:08 +000017107{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17108echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017109if test $ac_cv_lib_dl_dlopen = yes; then
17110 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17111else
Reid Spencera773bd52006-08-04 18:18:08 +000017112 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17113echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017114if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17115 echo $ECHO_N "(cached) $ECHO_C" >&6
17116else
17117 ac_check_lib_save_LIBS=$LIBS
17118LIBS="-lsvld $LIBS"
17119cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017125
Reid Spencera773bd52006-08-04 18:18:08 +000017126/* Override any GCC internal prototype to avoid an error.
17127 Use char because int might match the return type of a GCC
17128 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017129#ifdef __cplusplus
17130extern "C"
17131#endif
John Criswell7a73b802003-06-30 21:59:07 +000017132char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017133int
17134main ()
17135{
Reid Spencera773bd52006-08-04 18:18:08 +000017136return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017137 ;
17138 return 0;
17139}
17140_ACEOF
17141rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017142if { (ac_try="$ac_link"
17143case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146esac
17147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17148 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17156 { (case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_try") 2>&5
17162 ac_status=$?
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); }; } &&
17165 { ac_try='test -s conftest$ac_exeext'
17166 { (case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_try") 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017175 ac_cv_lib_svld_dlopen=yes
17176else
17177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017178sed 's/^/| /' conftest.$ac_ext >&5
17179
Reid Spencera773bd52006-08-04 18:18:08 +000017180 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017181fi
Reid Spencera773bd52006-08-04 18:18:08 +000017182
Tanya Lattnercf067672008-01-17 05:57:22 +000017183rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017184 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017185LIBS=$ac_check_lib_save_LIBS
17186fi
Reid Spencera773bd52006-08-04 18:18:08 +000017187{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17188echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017189if test $ac_cv_lib_svld_dlopen = yes; then
17190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17191else
Reid Spencera773bd52006-08-04 18:18:08 +000017192 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17193echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017194if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17195 echo $ECHO_N "(cached) $ECHO_C" >&6
17196else
17197 ac_check_lib_save_LIBS=$LIBS
17198LIBS="-ldld $LIBS"
17199cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017205
Reid Spencera773bd52006-08-04 18:18:08 +000017206/* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017209#ifdef __cplusplus
17210extern "C"
17211#endif
John Criswell7a73b802003-06-30 21:59:07 +000017212char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017213int
17214main ()
17215{
Reid Spencera773bd52006-08-04 18:18:08 +000017216return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017217 ;
17218 return 0;
17219}
17220_ACEOF
17221rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017222if { (ac_try="$ac_link"
17223case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17226esac
17227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017230 grep -v '^ *+' conftest.er1 >conftest.err
17231 rm -f conftest.er1
17232 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017234 (exit $ac_status); } &&
17235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17239esac
17240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17242 ac_status=$?
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; } &&
17245 { ac_try='test -s conftest$ac_exeext'
17246 { (case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17249esac
17250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_try") 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017255 ac_cv_lib_dld_dld_link=yes
17256else
17257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017258sed 's/^/| /' conftest.$ac_ext >&5
17259
Reid Spencera773bd52006-08-04 18:18:08 +000017260 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017261fi
Reid Spencera773bd52006-08-04 18:18:08 +000017262
Tanya Lattnercf067672008-01-17 05:57:22 +000017263rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017264 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017265LIBS=$ac_check_lib_save_LIBS
17266fi
Reid Spencera773bd52006-08-04 18:18:08 +000017267{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17268echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017269if test $ac_cv_lib_dld_dld_link = yes; then
17270 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17271fi
17272
17273
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288 ;;
17289 esac
17290
17291 if test "x$lt_cv_dlopen" != xno; then
17292 enable_dlopen=yes
17293 else
17294 enable_dlopen=no
17295 fi
17296
17297 case $lt_cv_dlopen in
17298 dlopen)
17299 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017300 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017301
17302 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017303 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017304
17305 save_LIBS="$LIBS"
17306 LIBS="$lt_cv_dlopen_libs $LIBS"
17307
Reid Spencera773bd52006-08-04 18:18:08 +000017308 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17309echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017310if test "${lt_cv_dlopen_self+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 if test "$cross_compiling" = yes; then :
17314 lt_cv_dlopen_self=cross
17315else
John Criswell47fdd832003-07-14 16:52:07 +000017316 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017317 lt_status=$lt_dlunknown
17318 cat > conftest.$ac_ext <<EOF
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000017319#line 17319 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017320#include "confdefs.h"
17321
17322#if HAVE_DLFCN_H
17323#include <dlfcn.h>
17324#endif
17325
17326#include <stdio.h>
17327
17328#ifdef RTLD_GLOBAL
17329# define LT_DLGLOBAL RTLD_GLOBAL
17330#else
17331# ifdef DL_GLOBAL
17332# define LT_DLGLOBAL DL_GLOBAL
17333# else
17334# define LT_DLGLOBAL 0
17335# endif
17336#endif
17337
17338/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17339 find out it does not work in some platform. */
17340#ifndef LT_DLLAZY_OR_NOW
17341# ifdef RTLD_LAZY
17342# define LT_DLLAZY_OR_NOW RTLD_LAZY
17343# else
17344# ifdef DL_LAZY
17345# define LT_DLLAZY_OR_NOW DL_LAZY
17346# else
17347# ifdef RTLD_NOW
17348# define LT_DLLAZY_OR_NOW RTLD_NOW
17349# else
17350# ifdef DL_NOW
17351# define LT_DLLAZY_OR_NOW DL_NOW
17352# else
17353# define LT_DLLAZY_OR_NOW 0
17354# endif
17355# endif
17356# endif
17357# endif
17358#endif
17359
17360#ifdef __cplusplus
17361extern "C" void exit (int);
17362#endif
17363
17364void fnord() { int i=42;}
17365int main ()
17366{
17367 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17368 int status = $lt_dlunknown;
17369
17370 if (self)
17371 {
17372 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17373 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17374 /* dlclose (self); */
17375 }
Reid Spencera773bd52006-08-04 18:18:08 +000017376 else
17377 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017378
17379 exit (status);
17380}
17381EOF
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383 (eval $ac_link) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017387 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017388 lt_status=$?
17389 case x$lt_status in
17390 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17391 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017392 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017393 esac
17394 else :
17395 # compilation failed
17396 lt_cv_dlopen_self=no
17397 fi
17398fi
17399rm -fr conftest*
17400
17401
17402fi
Reid Spencera773bd52006-08-04 18:18:08 +000017403{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17404echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017405
17406 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017407 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17408 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17409echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017410if test "${lt_cv_dlopen_self_static+set}" = set; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17412else
17413 if test "$cross_compiling" = yes; then :
17414 lt_cv_dlopen_self_static=cross
17415else
John Criswell47fdd832003-07-14 16:52:07 +000017416 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017417 lt_status=$lt_dlunknown
17418 cat > conftest.$ac_ext <<EOF
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000017419#line 17419 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017420#include "confdefs.h"
17421
17422#if HAVE_DLFCN_H
17423#include <dlfcn.h>
17424#endif
17425
17426#include <stdio.h>
17427
17428#ifdef RTLD_GLOBAL
17429# define LT_DLGLOBAL RTLD_GLOBAL
17430#else
17431# ifdef DL_GLOBAL
17432# define LT_DLGLOBAL DL_GLOBAL
17433# else
17434# define LT_DLGLOBAL 0
17435# endif
17436#endif
17437
17438/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17439 find out it does not work in some platform. */
17440#ifndef LT_DLLAZY_OR_NOW
17441# ifdef RTLD_LAZY
17442# define LT_DLLAZY_OR_NOW RTLD_LAZY
17443# else
17444# ifdef DL_LAZY
17445# define LT_DLLAZY_OR_NOW DL_LAZY
17446# else
17447# ifdef RTLD_NOW
17448# define LT_DLLAZY_OR_NOW RTLD_NOW
17449# else
17450# ifdef DL_NOW
17451# define LT_DLLAZY_OR_NOW DL_NOW
17452# else
17453# define LT_DLLAZY_OR_NOW 0
17454# endif
17455# endif
17456# endif
17457# endif
17458#endif
17459
17460#ifdef __cplusplus
17461extern "C" void exit (int);
17462#endif
17463
17464void fnord() { int i=42;}
17465int main ()
17466{
17467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17468 int status = $lt_dlunknown;
17469
17470 if (self)
17471 {
17472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17474 /* dlclose (self); */
17475 }
Reid Spencera773bd52006-08-04 18:18:08 +000017476 else
17477 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017478
17479 exit (status);
17480}
17481EOF
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017487 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017488 lt_status=$?
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017493 esac
17494 else :
17495 # compilation failed
17496 lt_cv_dlopen_self_static=no
17497 fi
17498fi
17499rm -fr conftest*
17500
17501
17502fi
Reid Spencera773bd52006-08-04 18:18:08 +000017503{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17504echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017505 fi
17506
17507 CPPFLAGS="$save_CPPFLAGS"
17508 LDFLAGS="$save_LDFLAGS"
17509 LIBS="$save_LIBS"
17510 ;;
17511 esac
17512
17513 case $lt_cv_dlopen_self in
17514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self=unknown ;;
17516 esac
17517
17518 case $lt_cv_dlopen_self_static in
17519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static=unknown ;;
17521 esac
17522fi
17523
17524
Reid Spencera773bd52006-08-04 18:18:08 +000017525# Report which library types will actually be built
17526{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17527echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17528{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17529echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017530
Reid Spencera773bd52006-08-04 18:18:08 +000017531{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17532echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017533test "$can_build_shared" = "no" && enable_shared=no
17534
17535# On AIX, shared libraries and static libraries use the same namespace, and
17536# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017537case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017538aix3*)
17539 test "$enable_shared" = yes && enable_static=no
17540 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017542 postinstall_cmds='$RANLIB $lib'
17543 fi
17544 ;;
17545
Reid Spencer2706f8c2004-09-19 23:53:36 +000017546aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17548 test "$enable_shared" = yes && enable_static=no
17549 fi
John Criswell7a73b802003-06-30 21:59:07 +000017550 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017551esac
Reid Spencera773bd52006-08-04 18:18:08 +000017552{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17553echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017554
Reid Spencera773bd52006-08-04 18:18:08 +000017555{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17556echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017557# Make sure either enable_shared or enable_static is yes.
17558test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017559{ echo "$as_me:$LINENO: result: $enable_static" >&5
17560echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017561
17562# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017563# libtool distribution, otherwise you forgot to ship ltmain.sh
17564# with your package, and you will get complaints that there are
17565# no rules to generate ltmain.sh.
17566if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017567 # See if we are running on zsh, and set the options which allow our commands through
17568 # without removal of \ escapes.
17569 if test -n "${ZSH_VERSION+set}" ; then
17570 setopt NO_GLOB_SUBST
17571 fi
John Criswell7a73b802003-06-30 21:59:07 +000017572 # Now quote all the things that may contain metacharacters while being
17573 # careful not to overquote the AC_SUBSTed values. We take copies of the
17574 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017575 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 +000017576 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017577 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17578 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17579 deplibs_check_method reload_flag reload_cmds need_locks \
17580 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17581 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017582 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017583 old_postinstall_cmds old_postuninstall_cmds \
17584 compiler \
17585 CC \
17586 LD \
17587 lt_prog_compiler_wl \
17588 lt_prog_compiler_pic \
17589 lt_prog_compiler_static \
17590 lt_prog_compiler_no_builtin_flag \
17591 export_dynamic_flag_spec \
17592 thread_safe_flag_spec \
17593 whole_archive_flag_spec \
17594 enable_shared_with_static_runtimes \
17595 old_archive_cmds \
17596 old_archive_from_new_cmds \
17597 predep_objects \
17598 postdep_objects \
17599 predeps \
17600 postdeps \
17601 compiler_lib_search_path \
17602 archive_cmds \
17603 archive_expsym_cmds \
17604 postinstall_cmds \
17605 postuninstall_cmds \
17606 old_archive_from_expsyms_cmds \
17607 allow_undefined_flag \
17608 no_undefined_flag \
17609 export_symbols_cmds \
17610 hardcode_libdir_flag_spec \
17611 hardcode_libdir_flag_spec_ld \
17612 hardcode_libdir_separator \
17613 hardcode_automatic \
17614 module_cmds \
17615 module_expsym_cmds \
17616 lt_cv_prog_compiler_c_o \
17617 exclude_expsyms \
17618 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017619
17620 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017621 old_archive_cmds | \
17622 old_archive_from_new_cmds | \
17623 archive_cmds | \
17624 archive_expsym_cmds | \
17625 module_cmds | \
17626 module_expsym_cmds | \
17627 old_archive_from_expsyms_cmds | \
17628 export_symbols_cmds | \
17629 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017630 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017631 old_postinstall_cmds | old_postuninstall_cmds | \
17632 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017633 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634 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 +000017635 ;;
17636 *)
17637 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17638 ;;
17639 esac
17640 done
17641
John Criswell47fdd832003-07-14 16:52:07 +000017642 case $lt_echo in
17643 *'\$0 --fallback-echo"')
17644 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17645 ;;
17646 esac
17647
17648cfgfile="${ofile}T"
17649 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17650 $rm -f "$cfgfile"
17651 { echo "$as_me:$LINENO: creating $ofile" >&5
17652echo "$as_me: creating $ofile" >&6;}
17653
17654 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017655#! $SHELL
17656
John Criswell47fdd832003-07-14 16:52:07 +000017657# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017658# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17659# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17660#
John Criswell47fdd832003-07-14 16:52:07 +000017661# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17662# Free Software Foundation, Inc.
17663#
17664# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017665# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17666#
17667# This program is free software; you can redistribute it and/or modify
17668# it under the terms of the GNU General Public License as published by
17669# the Free Software Foundation; either version 2 of the License, or
17670# (at your option) any later version.
17671#
17672# This program is distributed in the hope that it will be useful, but
17673# WITHOUT ANY WARRANTY; without even the implied warranty of
17674# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17675# General Public License for more details.
17676#
17677# You should have received a copy of the GNU General Public License
17678# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017679# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017680#
17681# As a special exception to the GNU General Public License, if you
17682# distribute this file as part of a program that contains a
17683# configuration script generated by Autoconf, you may include it under
17684# the same distribution terms that you use for the rest of that program.
17685
John Criswell47fdd832003-07-14 16:52:07 +000017686# A sed program that does not truncate output.
17687SED=$lt_SED
17688
John Criswell7a73b802003-06-30 21:59:07 +000017689# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017690Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017691
17692# The HP-UX ksh and POSIX shell print the target directory to stdout
17693# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017694(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017695
John Criswell47fdd832003-07-14 16:52:07 +000017696# The names of the tagged configurations supported by this script.
17697available_tags=
17698
John Criswell7a73b802003-06-30 21:59:07 +000017699# ### BEGIN LIBTOOL CONFIG
17700
17701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17702
17703# Shell to use when invoking shell scripts.
17704SHELL=$lt_SHELL
17705
17706# Whether or not to build shared libraries.
17707build_libtool_libs=$enable_shared
17708
17709# Whether or not to build static libraries.
17710build_old_libs=$enable_static
17711
17712# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017713build_libtool_need_lc=$archive_cmds_need_lc
17714
17715# Whether or not to disallow shared libs when runtime libs are static
17716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017717
17718# Whether or not to optimize for fast installation.
17719fast_install=$enable_fast_install
17720
17721# The host system.
17722host_alias=$host_alias
17723host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017724host_os=$host_os
17725
17726# The build system.
17727build_alias=$build_alias
17728build=$build
17729build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017730
17731# An echo program that does not interpret backslashes.
17732echo=$lt_echo
17733
17734# The archiver.
17735AR=$lt_AR
17736AR_FLAGS=$lt_AR_FLAGS
17737
John Criswell47fdd832003-07-14 16:52:07 +000017738# A C compiler.
17739LTCC=$lt_LTCC
17740
Reid Spencera773bd52006-08-04 18:18:08 +000017741# LTCC compiler flags.
17742LTCFLAGS=$lt_LTCFLAGS
17743
John Criswell47fdd832003-07-14 16:52:07 +000017744# A language-specific compiler.
17745CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017746
17747# Is the compiler the GNU C compiler?
17748with_gcc=$GCC
17749
John Criswell47fdd832003-07-14 16:52:07 +000017750# An ERE matcher.
17751EGREP=$lt_EGREP
17752
John Criswell7a73b802003-06-30 21:59:07 +000017753# The linker used to build libraries.
17754LD=$lt_LD
17755
17756# Whether we need hard or soft links.
17757LN_S=$lt_LN_S
17758
17759# A BSD-compatible nm program.
17760NM=$lt_NM
17761
17762# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017764
17765# Used to examine libraries when file_magic_cmd begins "file"
17766MAGIC_CMD=$MAGIC_CMD
17767
17768# Used on cygwin: DLL creation program.
17769DLLTOOL="$DLLTOOL"
17770
17771# Used on cygwin: object dumper.
17772OBJDUMP="$OBJDUMP"
17773
17774# Used on cygwin: assembler.
17775AS="$AS"
17776
17777# The name of the directory that contains temporary libtool files.
17778objdir=$objdir
17779
17780# How to create reloadable object files.
17781reload_flag=$lt_reload_flag
17782reload_cmds=$lt_reload_cmds
17783
17784# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017785wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017786
17787# Object file suffix (normally "o").
17788objext="$ac_objext"
17789
17790# Old archive suffix (normally "a").
17791libext="$libext"
17792
John Criswell47fdd832003-07-14 16:52:07 +000017793# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017794shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017795
John Criswell7a73b802003-06-30 21:59:07 +000017796# Executable file suffix (normally "").
17797exeext="$exeext"
17798
17799# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017800pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017801pic_mode=$pic_mode
17802
John Criswell47fdd832003-07-14 16:52:07 +000017803# What is the maximum length of a command?
17804max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017805
John Criswell47fdd832003-07-14 16:52:07 +000017806# Does compiler simultaneously support -c and -o options?
17807compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017808
Reid Spencera773bd52006-08-04 18:18:08 +000017809# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017810need_locks=$lt_need_locks
17811
17812# Do we need the lib prefix for modules?
17813need_lib_prefix=$need_lib_prefix
17814
17815# Do we need a version for libraries?
17816need_version=$need_version
17817
17818# Whether dlopen is supported.
17819dlopen_support=$enable_dlopen
17820
17821# Whether dlopen of programs is supported.
17822dlopen_self=$enable_dlopen_self
17823
17824# Whether dlopen of statically linked programs is supported.
17825dlopen_self_static=$enable_dlopen_self_static
17826
17827# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017828link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017829
17830# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017831no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017832
17833# Compiler flag to allow reflexive dlopens.
17834export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17835
17836# Compiler flag to generate shared objects directly from archives.
17837whole_archive_flag_spec=$lt_whole_archive_flag_spec
17838
17839# Compiler flag to generate thread-safe objects.
17840thread_safe_flag_spec=$lt_thread_safe_flag_spec
17841
17842# Library versioning type.
17843version_type=$version_type
17844
17845# Format of library name prefix.
17846libname_spec=$lt_libname_spec
17847
17848# List of archive names. First name is the real one, the rest are links.
17849# The last name is the one that the linker finds with -lNAME.
17850library_names_spec=$lt_library_names_spec
17851
17852# The coded name of the library, if different from the real name.
17853soname_spec=$lt_soname_spec
17854
17855# Commands used to build and install an old-style archive.
17856RANLIB=$lt_RANLIB
17857old_archive_cmds=$lt_old_archive_cmds
17858old_postinstall_cmds=$lt_old_postinstall_cmds
17859old_postuninstall_cmds=$lt_old_postuninstall_cmds
17860
17861# Create an old-style archive from a shared archive.
17862old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17863
17864# Create a temporary old-style archive to link instead of a shared archive.
17865old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17866
17867# Commands used to build and install a shared archive.
17868archive_cmds=$lt_archive_cmds
17869archive_expsym_cmds=$lt_archive_expsym_cmds
17870postinstall_cmds=$lt_postinstall_cmds
17871postuninstall_cmds=$lt_postuninstall_cmds
17872
John Criswell47fdd832003-07-14 16:52:07 +000017873# Commands used to build a loadable module (assumed same as above if empty)
17874module_cmds=$lt_module_cmds
17875module_expsym_cmds=$lt_module_expsym_cmds
17876
John Criswell7a73b802003-06-30 21:59:07 +000017877# Commands to strip libraries.
17878old_striplib=$lt_old_striplib
17879striplib=$lt_striplib
17880
John Criswell47fdd832003-07-14 16:52:07 +000017881# Dependencies to place before the objects being linked to create a
17882# shared library.
17883predep_objects=$lt_predep_objects
17884
17885# Dependencies to place after the objects being linked to create a
17886# shared library.
17887postdep_objects=$lt_postdep_objects
17888
17889# Dependencies to place before the objects being linked to create a
17890# shared library.
17891predeps=$lt_predeps
17892
17893# Dependencies to place after the objects being linked to create a
17894# shared library.
17895postdeps=$lt_postdeps
17896
17897# The library search path used internally by the compiler when linking
17898# a shared library.
17899compiler_lib_search_path=$lt_compiler_lib_search_path
17900
John Criswell7a73b802003-06-30 21:59:07 +000017901# Method to check whether dependent libraries are shared objects.
17902deplibs_check_method=$lt_deplibs_check_method
17903
17904# Command to use when deplibs_check_method == file_magic.
17905file_magic_cmd=$lt_file_magic_cmd
17906
17907# Flag that allows shared libraries with undefined symbols to be built.
17908allow_undefined_flag=$lt_allow_undefined_flag
17909
17910# Flag that forces no undefined symbols.
17911no_undefined_flag=$lt_no_undefined_flag
17912
17913# Commands used to finish a libtool library installation in a directory.
17914finish_cmds=$lt_finish_cmds
17915
17916# Same as above, but a single script fragment to be evaled but not shown.
17917finish_eval=$lt_finish_eval
17918
17919# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017920global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017921
17922# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017923global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017924
17925# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017926global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017927
17928# This is the shared library runtime path variable.
17929runpath_var=$runpath_var
17930
17931# This is the shared library path variable.
17932shlibpath_var=$shlibpath_var
17933
17934# Is shlibpath searched before the hard-coded library search path?
17935shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17936
17937# How to hardcode a shared library path into an executable.
17938hardcode_action=$hardcode_action
17939
17940# Whether we should hardcode library paths into libraries.
17941hardcode_into_libs=$hardcode_into_libs
17942
17943# Flag to hardcode \$libdir into a binary during linking.
17944# This must work even if \$libdir does not exist.
17945hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17946
John Criswell47fdd832003-07-14 16:52:07 +000017947# If ld is used when linking, flag to hardcode \$libdir into
17948# a binary during linking. This must work even if \$libdir does
17949# not exist.
17950hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17951
John Criswell7a73b802003-06-30 21:59:07 +000017952# Whether we need a single -rpath flag with a separated argument.
17953hardcode_libdir_separator=$lt_hardcode_libdir_separator
17954
John Criswell47fdd832003-07-14 16:52:07 +000017955# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017956# resulting binary.
17957hardcode_direct=$hardcode_direct
17958
17959# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17960# resulting binary.
17961hardcode_minus_L=$hardcode_minus_L
17962
17963# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17964# the resulting binary.
17965hardcode_shlibpath_var=$hardcode_shlibpath_var
17966
John Criswell47fdd832003-07-14 16:52:07 +000017967# Set to yes if building a shared library automatically hardcodes DIR into the library
17968# and all subsequent libraries and executables linked against it.
17969hardcode_automatic=$hardcode_automatic
17970
John Criswell7a73b802003-06-30 21:59:07 +000017971# Variables whose values should be saved in libtool wrapper scripts and
17972# restored at relink time.
17973variables_saved_for_relink="$variables_saved_for_relink"
17974
17975# Whether libtool must link a program against all its dependency libraries.
17976link_all_deplibs=$link_all_deplibs
17977
17978# Compile-time system search path for libraries
17979sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17980
17981# Run-time system search path for libraries
17982sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17983
17984# Fix the shell variable \$srcfile for the compiler.
17985fix_srcfile_path="$fix_srcfile_path"
17986
17987# Set to yes if exported symbols are required.
17988always_export_symbols=$always_export_symbols
17989
17990# The commands to list exported symbols.
17991export_symbols_cmds=$lt_export_symbols_cmds
17992
17993# The commands to extract the exported symbol list from a shared archive.
17994extract_expsyms_cmds=$lt_extract_expsyms_cmds
17995
17996# Symbols that should not be listed in the preloaded symbols.
17997exclude_expsyms=$lt_exclude_expsyms
17998
17999# Symbols that must always be exported.
18000include_expsyms=$lt_include_expsyms
18001
18002# ### END LIBTOOL CONFIG
18003
18004__EOF__
18005
John Criswell47fdd832003-07-14 16:52:07 +000018006
John Criswell7a73b802003-06-30 21:59:07 +000018007 case $host_os in
18008 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018009 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018010
18011# AIX sometimes has problems with the GCC collect2 program. For some
18012# reason, if we set the COLLECT_NAMES environment variable, the problems
18013# vanish in a puff of smoke.
18014if test "X${COLLECT_NAMES+set}" != Xset; then
18015 COLLECT_NAMES=
18016 export COLLECT_NAMES
18017fi
18018EOF
18019 ;;
18020 esac
18021
John Criswell7a73b802003-06-30 21:59:07 +000018022 # We use sed instead of cat because bash on DJGPP gets confused if
18023 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18024 # text mode, it properly converts lines to CR/LF. This bash problem
18025 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018026 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018027
John Criswell47fdd832003-07-14 16:52:07 +000018028 mv -f "$cfgfile" "$ofile" || \
18029 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018030 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018031
18032else
18033 # If there is no Makefile yet, we rely on a make rule to execute
18034 # `config.status --recheck' to rerun these tests and create the
18035 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018036 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18037 if test -f "$ltmain_in"; then
18038 test -f Makefile && make "$ltmain"
18039 fi
John Criswell7a73b802003-06-30 21:59:07 +000018040fi
John Criswell7a73b802003-06-30 21:59:07 +000018041
18042
John Criswell47fdd832003-07-14 16:52:07 +000018043ac_ext=c
18044ac_cpp='$CPP $CPPFLAGS'
18045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18047ac_compiler_gnu=$ac_cv_c_compiler_gnu
18048
18049CC="$lt_save_CC"
18050
18051
Reid Spencera773bd52006-08-04 18:18:08 +000018052# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018053if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018054 withval=$with_tags; tagnames="$withval"
18055fi
18056
John Criswell47fdd832003-07-14 16:52:07 +000018057
18058if test -f "$ltmain" && test -n "$tagnames"; then
18059 if test ! -f "${ofile}"; then
18060 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18061echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18062 fi
18063
18064 if test -z "$LTCC"; then
18065 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18066 if test -z "$LTCC"; then
18067 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18068echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18069 else
18070 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18071echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18072 fi
18073 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018074 if test -z "$LTCFLAGS"; then
18075 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18076 fi
John Criswell47fdd832003-07-14 16:52:07 +000018077
18078 # Extract list of available tagged configurations in $ofile.
18079 # Note that this assumes the entire list is on one line.
18080 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18081
18082 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18083 for tagname in $tagnames; do
18084 IFS="$lt_save_ifs"
18085 # Check whether tagname contains only valid characters
18086 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18087 "") ;;
18088 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18089echo "$as_me: error: invalid tag name: $tagname" >&2;}
18090 { (exit 1); exit 1; }; }
18091 ;;
18092 esac
18093
18094 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18095 then
18096 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18097echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18098 { (exit 1); exit 1; }; }
18099 fi
18100
18101 # Update the list of available tags.
18102 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018103 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018104
18105 case $tagname in
18106 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018107 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18108 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18109 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018110 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018111ac_cpp='$CXXCPP $CPPFLAGS'
18112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18115
18116
18117
18118
18119archive_cmds_need_lc_CXX=no
18120allow_undefined_flag_CXX=
18121always_export_symbols_CXX=no
18122archive_expsym_cmds_CXX=
18123export_dynamic_flag_spec_CXX=
18124hardcode_direct_CXX=no
18125hardcode_libdir_flag_spec_CXX=
18126hardcode_libdir_flag_spec_ld_CXX=
18127hardcode_libdir_separator_CXX=
18128hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018129hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018130hardcode_automatic_CXX=no
18131module_cmds_CXX=
18132module_expsym_cmds_CXX=
18133link_all_deplibs_CXX=unknown
18134old_archive_cmds_CXX=$old_archive_cmds
18135no_undefined_flag_CXX=
18136whole_archive_flag_spec_CXX=
18137enable_shared_with_static_runtimes_CXX=no
18138
18139# Dependencies to place before and after the object being linked:
18140predep_objects_CXX=
18141postdep_objects_CXX=
18142predeps_CXX=
18143postdeps_CXX=
18144compiler_lib_search_path_CXX=
18145
18146# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018147ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018148
18149# Object file extension for compiled C++ test sources.
18150objext=o
18151objext_CXX=$objext
18152
18153# Code to be used in simple compile tests
18154lt_simple_compile_test_code="int some_variable = 0;\n"
18155
18156# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018157lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018158
18159# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18160
18161# If no C compiler was specified, use CC.
18162LTCC=${LTCC-"$CC"}
18163
Reid Spencera773bd52006-08-04 18:18:08 +000018164# If no C compiler flags were specified, use CFLAGS.
18165LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18166
John Criswell47fdd832003-07-14 16:52:07 +000018167# Allow CC to be a program name with arguments.
18168compiler=$CC
18169
18170
Reid Spencera773bd52006-08-04 18:18:08 +000018171# save warnings/boilerplate of simple test code
18172ac_outfile=conftest.$ac_objext
18173printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18174eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18175_lt_compiler_boilerplate=`cat conftest.err`
18176$rm conftest*
18177
18178ac_outfile=conftest.$ac_objext
18179printf "$lt_simple_link_test_code" >conftest.$ac_ext
18180eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18181_lt_linker_boilerplate=`cat conftest.err`
18182$rm conftest*
18183
18184
John Criswell47fdd832003-07-14 16:52:07 +000018185# Allow CC to be a program name with arguments.
18186lt_save_CC=$CC
18187lt_save_LD=$LD
18188lt_save_GCC=$GCC
18189GCC=$GXX
18190lt_save_with_gnu_ld=$with_gnu_ld
18191lt_save_path_LD=$lt_cv_path_LD
18192if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18193 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18194else
Reid Spencera773bd52006-08-04 18:18:08 +000018195 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018196fi
18197if test -n "${lt_cv_path_LDCXX+set}"; then
18198 lt_cv_path_LD=$lt_cv_path_LDCXX
18199else
Reid Spencera773bd52006-08-04 18:18:08 +000018200 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018201fi
18202test -z "${LDCXX+set}" || LD=$LDCXX
18203CC=${CXX-"c++"}
18204compiler=$CC
18205compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018206for cc_temp in $compiler""; do
18207 case $cc_temp in
18208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18210 \-*) ;;
18211 *) break;;
18212 esac
18213done
18214cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18215
John Criswell47fdd832003-07-14 16:52:07 +000018216
18217# We don't want -fno-exception wen compiling C++ code, so set the
18218# no_builtin_flag separately
18219if test "$GXX" = yes; then
18220 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18221else
18222 lt_prog_compiler_no_builtin_flag_CXX=
18223fi
18224
18225if test "$GXX" = yes; then
18226 # Set up default GNU C++ configuration
18227
18228
Reid Spencera773bd52006-08-04 18:18:08 +000018229# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018230if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018232else
18233 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018234fi
18235
John Criswell47fdd832003-07-14 16:52:07 +000018236ac_prog=ld
18237if test "$GCC" = yes; then
18238 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018239 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18240echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018241 case $host in
18242 *-*-mingw*)
18243 # gcc leaves a trailing carriage return which upsets mingw
18244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18245 *)
18246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18247 esac
18248 case $ac_prog in
18249 # Accept absolute paths.
18250 [\\/]* | ?:[\\/]*)
18251 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018252 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018253 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18255 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18256 done
18257 test -z "$LD" && LD="$ac_prog"
18258 ;;
18259 "")
18260 # If it fails, then pretend we aren't using GCC.
18261 ac_prog=ld
18262 ;;
18263 *)
18264 # If it is relative, then search for the first ld in PATH.
18265 with_gnu_ld=unknown
18266 ;;
18267 esac
18268elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018269 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18270echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018271else
Reid Spencera773bd52006-08-04 18:18:08 +000018272 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18273echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018274fi
18275if test "${lt_cv_path_LD+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18277else
18278 if test -z "$LD"; then
18279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18280 for ac_dir in $PATH; do
18281 IFS="$lt_save_ifs"
18282 test -z "$ac_dir" && ac_dir=.
18283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18284 lt_cv_path_LD="$ac_dir/$ac_prog"
18285 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018286 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018287 # Break only if it was the GNU/non-GNU ld that we prefer.
18288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18289 *GNU* | *'with BFD'*)
18290 test "$with_gnu_ld" != no && break
18291 ;;
18292 *)
18293 test "$with_gnu_ld" != yes && break
18294 ;;
18295 esac
18296 fi
18297 done
18298 IFS="$lt_save_ifs"
18299else
18300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18301fi
18302fi
18303
18304LD="$lt_cv_path_LD"
18305if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018306 { echo "$as_me:$LINENO: result: $LD" >&5
18307echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018308else
Reid Spencera773bd52006-08-04 18:18:08 +000018309 { echo "$as_me:$LINENO: result: no" >&5
18310echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018311fi
18312test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18313echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18314 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018315{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18316echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018317if test "${lt_cv_prog_gnu_ld+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319else
Reid Spencera773bd52006-08-04 18:18:08 +000018320 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018321case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018322*GNU* | *'with BFD'*)
18323 lt_cv_prog_gnu_ld=yes
18324 ;;
18325*)
18326 lt_cv_prog_gnu_ld=no
18327 ;;
18328esac
18329fi
Reid Spencera773bd52006-08-04 18:18:08 +000018330{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18331echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018332with_gnu_ld=$lt_cv_prog_gnu_ld
18333
18334
18335
18336 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18337 # archiving commands below assume that GNU ld is being used.
18338 if test "$with_gnu_ld" = yes; then
18339 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18340 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'
18341
18342 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18344
18345 # If archive_cmds runs LD, not CC, wlarc should be empty
18346 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18347 # investigate it a little bit more. (MM)
18348 wlarc='${wl}'
18349
18350 # ancient GNU ld didn't support --whole-archive et. al.
18351 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18352 grep 'no-whole-archive' > /dev/null; then
18353 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18354 else
18355 whole_archive_flag_spec_CXX=
18356 fi
18357 else
18358 with_gnu_ld=no
18359 wlarc=
18360
18361 # A generic and very simple default shared library creation
18362 # command for GNU C++ for the case where it uses the native
18363 # linker, instead of GNU ld. If possible, this setting should
18364 # overridden to take advantage of the native linker features on
18365 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018367 fi
18368
18369 # Commands to make compiler produce verbose output that lists
18370 # what "hidden" libraries, object files and flags are used when
18371 # linking a shared library.
18372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18373
18374else
18375 GXX=no
18376 with_gnu_ld=no
18377 wlarc=
18378fi
18379
18380# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018381{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18382echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018383ld_shlibs_CXX=yes
18384case $host_os in
18385 aix3*)
18386 # FIXME: insert proper C++ library support
18387 ld_shlibs_CXX=no
18388 ;;
18389 aix4* | aix5*)
18390 if test "$host_cpu" = ia64; then
18391 # On IA64, the linker does run time linking by default, so we don't
18392 # have to do anything special.
18393 aix_use_runtimelinking=no
18394 exp_sym_flag='-Bexport'
18395 no_entry_flag=""
18396 else
18397 aix_use_runtimelinking=no
18398
18399 # Test if we are trying to use run time linking or normal
18400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18401 # need to do runtime linking.
18402 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18403 for ld_flag in $LDFLAGS; do
18404 case $ld_flag in
18405 *-brtl*)
18406 aix_use_runtimelinking=yes
18407 break
18408 ;;
18409 esac
18410 done
Reid Spencera773bd52006-08-04 18:18:08 +000018411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018412 esac
18413
18414 exp_sym_flag='-bexport'
18415 no_entry_flag='-bnoentry'
18416 fi
18417
18418 # When large executables or shared objects are built, AIX ld can
18419 # have problems creating the table of contents. If linking a library
18420 # or program results in "error TOC overflow" add -mminimal-toc to
18421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18423
18424 archive_cmds_CXX=''
18425 hardcode_direct_CXX=yes
18426 hardcode_libdir_separator_CXX=':'
18427 link_all_deplibs_CXX=yes
18428
18429 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018430 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018431 # We only want to do this on AIX 4.2 and lower, the check
18432 # below for broken collect2 doesn't work under 4.3+
18433 collect2name=`${CC} -print-prog-name=collect2`
18434 if test -f "$collect2name" && \
18435 strings "$collect2name" | grep resolve_lib_name >/dev/null
18436 then
18437 # We have reworked collect2
18438 hardcode_direct_CXX=yes
18439 else
18440 # We have old collect2
18441 hardcode_direct_CXX=unsupported
18442 # It fails to find uninstalled libraries when the uninstalled
18443 # path is not listed in the libpath. Setting hardcode_minus_L
18444 # to unsupported forces relinking
18445 hardcode_minus_L_CXX=yes
18446 hardcode_libdir_flag_spec_CXX='-L$libdir'
18447 hardcode_libdir_separator_CXX=
18448 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018449 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018450 esac
18451 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018452 if test "$aix_use_runtimelinking" = yes; then
18453 shared_flag="$shared_flag "'${wl}-G'
18454 fi
John Criswell47fdd832003-07-14 16:52:07 +000018455 else
18456 # not using gcc
18457 if test "$host_cpu" = ia64; then
18458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18459 # chokes on -Wl,-G. The following line is correct:
18460 shared_flag='-G'
18461 else
18462 if test "$aix_use_runtimelinking" = yes; then
18463 shared_flag='${wl}-G'
18464 else
18465 shared_flag='${wl}-bM:SRE'
18466 fi
18467 fi
18468 fi
18469
18470 # It seems that -bexpall does not export symbols beginning with
18471 # underscore (_), so it is better to generate a list of symbols to export.
18472 always_export_symbols_CXX=yes
18473 if test "$aix_use_runtimelinking" = yes; then
18474 # Warning - without using the other runtime loading flags (-brtl),
18475 # -berok will link without error, but may produce a broken library.
18476 allow_undefined_flag_CXX='-berok'
18477 # Determine the default libpath from the value encoded in an empty executable.
18478 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018479/* confdefs.h. */
18480_ACEOF
18481cat confdefs.h >>conftest.$ac_ext
18482cat >>conftest.$ac_ext <<_ACEOF
18483/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018484
John Criswell47fdd832003-07-14 16:52:07 +000018485int
18486main ()
18487{
18488
18489 ;
18490 return 0;
18491}
18492_ACEOF
18493rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018494if { (ac_try="$ac_link"
18495case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498esac
18499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018501 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018502 grep -v '^ *+' conftest.er1 >conftest.err
18503 rm -f conftest.er1
18504 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest$ac_exeext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521esac
18522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18524 ac_status=$?
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018527
18528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18529}'`
18530# Check for a 64-bit object if we didn't find anything.
18531if 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; }
18532}'`; fi
18533else
18534 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018535sed 's/^/| /' conftest.$ac_ext >&5
18536
Reid Spencera773bd52006-08-04 18:18:08 +000018537
John Criswell47fdd832003-07-14 16:52:07 +000018538fi
Reid Spencera773bd52006-08-04 18:18:08 +000018539
Tanya Lattnercf067672008-01-17 05:57:22 +000018540rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018541 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018542if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18543
18544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18545
Reid Spencera773bd52006-08-04 18:18:08 +000018546 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 +000018547 else
18548 if test "$host_cpu" = ia64; then
18549 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18550 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018551 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 +000018552 else
18553 # Determine the default libpath from the value encoded in an empty executable.
18554 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018555/* confdefs.h. */
18556_ACEOF
18557cat confdefs.h >>conftest.$ac_ext
18558cat >>conftest.$ac_ext <<_ACEOF
18559/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018560
John Criswell47fdd832003-07-14 16:52:07 +000018561int
18562main ()
18563{
18564
18565 ;
18566 return 0;
18567}
18568_ACEOF
18569rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018570if { (ac_try="$ac_link"
18571case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574esac
18575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018582 (exit $ac_status); } &&
18583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18584 { (case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18587esac
18588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18590 ac_status=$?
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18597esac
18598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018603
18604aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18605}'`
18606# Check for a 64-bit object if we didn't find anything.
18607if 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; }
18608}'`; fi
18609else
18610 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018611sed 's/^/| /' conftest.$ac_ext >&5
18612
Reid Spencera773bd52006-08-04 18:18:08 +000018613
John Criswell47fdd832003-07-14 16:52:07 +000018614fi
Reid Spencera773bd52006-08-04 18:18:08 +000018615
Tanya Lattnercf067672008-01-17 05:57:22 +000018616rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018617 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018618if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18619
18620 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18621 # Warning - without using the other run time loading flags,
18622 # -berok will link without error, but may produce a broken library.
18623 no_undefined_flag_CXX=' ${wl}-bernotok'
18624 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018625 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018626 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018627 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018628 # This is similar to how AIX traditionally builds its shared libraries.
18629 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 +000018630 fi
18631 fi
18632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018633
18634 beos*)
18635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18636 allow_undefined_flag_CXX=unsupported
18637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18638 # support --undefined. This deserves some investigation. FIXME
18639 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18640 else
18641 ld_shlibs_CXX=no
18642 fi
18643 ;;
18644
John Criswell47fdd832003-07-14 16:52:07 +000018645 chorus*)
18646 case $cc_basename in
18647 *)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18650 ;;
18651 esac
18652 ;;
18653
18654 cygwin* | mingw* | pw32*)
18655 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18656 # as there is no search path for DLLs.
18657 hardcode_libdir_flag_spec_CXX='-L$libdir'
18658 allow_undefined_flag_CXX=unsupported
18659 always_export_symbols_CXX=no
18660 enable_shared_with_static_runtimes_CXX=yes
18661
18662 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018663 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 +000018664 # If the export-symbols file already is a .def file (1st line
18665 # is EXPORTS), use it as is; otherwise, prepend...
18666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18667 cp $export_symbols $output_objdir/$soname.def;
18668 else
18669 echo EXPORTS > $output_objdir/$soname.def;
18670 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018671 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018672 $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 +000018673 else
18674 ld_shlibs_CXX=no
18675 fi
18676 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018677 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018678 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018679 rhapsody* | darwin1.[012])
18680 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18681 ;;
18682 *) # Darwin 1.3 on
18683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18684 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18685 else
18686 case ${MACOSX_DEPLOYMENT_TARGET} in
18687 10.[012])
18688 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18689 ;;
18690 10.*)
18691 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18692 ;;
18693 esac
18694 fi
18695 ;;
18696 esac
18697 archive_cmds_need_lc_CXX=no
18698 hardcode_direct_CXX=no
18699 hardcode_automatic_CXX=yes
18700 hardcode_shlibpath_var_CXX=unsupported
18701 whole_archive_flag_spec_CXX=''
18702 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018703
Reid Spencer2706f8c2004-09-19 23:53:36 +000018704 if test "$GXX" = yes ; then
18705 lt_int_apple_cc_single_mod=no
18706 output_verbose_link_cmd='echo'
18707 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18708 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018709 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018710 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018711 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 +000018712 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018713 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 +000018714 fi
18715 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018716 # 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 +000018717 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018718 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 +000018719 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018720 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 +000018721 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018722 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 +000018723 else
Reid Spencera773bd52006-08-04 18:18:08 +000018724 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018725 xlc*)
18726 output_verbose_link_cmd='echo'
18727 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'
18728 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018729 # 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 +000018730 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}'
18731 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 +000018732 ;;
18733 *)
18734 ld_shlibs_CXX=no
18735 ;;
18736 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018737 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018739
18740 dgux*)
18741 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018742 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018743 # FIXME: insert proper C++ library support
18744 ld_shlibs_CXX=no
18745 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018746 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018747 # Green Hills C++ Compiler
18748 # FIXME: insert proper C++ library support
18749 ld_shlibs_CXX=no
18750 ;;
18751 *)
18752 # FIXME: insert proper C++ library support
18753 ld_shlibs_CXX=no
18754 ;;
18755 esac
18756 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018757 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018758 # C++ shared libraries reported to be fairly broken before switch to ELF
18759 ld_shlibs_CXX=no
18760 ;;
18761 freebsd-elf*)
18762 archive_cmds_need_lc_CXX=no
18763 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018764 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018765 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18766 # conventions
18767 ld_shlibs_CXX=yes
18768 ;;
18769 gnu*)
18770 ;;
18771 hpux9*)
18772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18773 hardcode_libdir_separator_CXX=:
18774 export_dynamic_flag_spec_CXX='${wl}-E'
18775 hardcode_direct_CXX=yes
18776 hardcode_minus_L_CXX=yes # Not in the search PATH,
18777 # but as the default
18778 # location of the library.
18779
18780 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018781 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18784 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018785 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018786 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 +000018787 # Commands to make compiler produce verbose output that lists
18788 # what "hidden" libraries, object files and flags are used when
18789 # linking a shared library.
18790 #
18791 # There doesn't appear to be a way to prevent this compiler from
18792 # explicitly linking system object files so we need to strip them
18793 # from the output so that they don't get included in the library
18794 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018795 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 +000018796 ;;
18797 *)
18798 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018799 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 +000018800 else
18801 # FIXME: insert proper C++ library support
18802 ld_shlibs_CXX=no
18803 fi
18804 ;;
18805 esac
18806 ;;
18807 hpux10*|hpux11*)
18808 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018809 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18810 hardcode_libdir_separator_CXX=:
18811
18812 case $host_cpu in
18813 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018814 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018815 ;;
18816 *)
John Criswell47fdd832003-07-14 16:52:07 +000018817 export_dynamic_flag_spec_CXX='${wl}-E'
18818 ;;
18819 esac
18820 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018821 case $host_cpu in
18822 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018823 hardcode_direct_CXX=no
18824 hardcode_shlibpath_var_CXX=no
18825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018826 *)
18827 hardcode_direct_CXX=yes
18828 hardcode_minus_L_CXX=yes # Not in the search PATH,
18829 # but as the default
18830 # location of the library.
18831 ;;
18832 esac
18833
18834 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018835 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018839 aCC*)
18840 case $host_cpu in
18841 hppa*64*)
18842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18843 ;;
18844 ia64*)
18845 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 +000018846 ;;
18847 *)
18848 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18849 ;;
18850 esac
18851 # Commands to make compiler produce verbose output that lists
18852 # what "hidden" libraries, object files and flags are used when
18853 # linking a shared library.
18854 #
18855 # There doesn't appear to be a way to prevent this compiler from
18856 # explicitly linking system object files so we need to strip them
18857 # from the output so that they don't get included in the library
18858 # dependencies.
18859 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'
18860 ;;
18861 *)
18862 if test "$GXX" = yes; then
18863 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018864 case $host_cpu in
18865 hppa*64*)
18866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18867 ;;
18868 ia64*)
18869 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 +000018870 ;;
18871 *)
18872 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'
18873 ;;
18874 esac
18875 fi
18876 else
18877 # FIXME: insert proper C++ library support
18878 ld_shlibs_CXX=no
18879 fi
18880 ;;
18881 esac
18882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018883 interix3*)
18884 hardcode_direct_CXX=no
18885 hardcode_shlibpath_var_CXX=no
18886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18887 export_dynamic_flag_spec_CXX='${wl}-E'
18888 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18889 # Instead, shared libraries are loaded at an image base (0x10000000 by
18890 # default) and relocated if they conflict, which is a slow very memory
18891 # consuming and fragmenting process. To avoid this, we pick a random,
18892 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18893 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18894 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'
18895 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'
18896 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018897 irix5* | irix6*)
18898 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018899 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018900 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018901 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 +000018902
18903 # Archives containing C++ object files must be created using
18904 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18905 # necessary to make sure instantiated templates are included
18906 # in the archive.
18907 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18908 ;;
18909 *)
18910 if test "$GXX" = yes; then
18911 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018912 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 +000018913 else
18914 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'
18915 fi
18916 fi
18917 link_all_deplibs_CXX=yes
18918 ;;
18919 esac
18920 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18921 hardcode_libdir_separator_CXX=:
18922 ;;
18923 linux*)
18924 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018925 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018926 # Kuck and Associates, Inc. (KAI) C++ Compiler
18927
18928 # KCC will only create a shared library if the output file
18929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18930 # to its proper name (with version) after linking.
18931 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'
18932 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'
18933 # Commands to make compiler produce verbose output that lists
18934 # what "hidden" libraries, object files and flags are used when
18935 # linking a shared library.
18936 #
18937 # There doesn't appear to be a way to prevent this compiler from
18938 # explicitly linking system object files so we need to strip them
18939 # from the output so that they don't get included in the library
18940 # dependencies.
18941 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'
18942
18943 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18945
18946 # Archives containing C++ object files must be created using
18947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018950 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018951 # Intel C++
18952 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018953 # version 8.0 and above of icpc choke on multiply defined symbols
18954 # if we add $predep_objects and $postdep_objects, however 7.1 and
18955 # earlier do not add the objects themselves.
18956 case `$CC -V 2>&1` in
18957 *"Version 7."*)
18958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18959 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'
18960 ;;
18961 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018962 tmp_idyn=
18963 case $host_cpu in
18964 ia64*) tmp_idyn=' -i_dynamic';;
18965 esac
18966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18967 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 +000018968 ;;
18969 esac
John Criswell47fdd832003-07-14 16:52:07 +000018970 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018975 pgCC*)
18976 # Portland Group C++ compiler
18977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18978 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'
18979
18980 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18981 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982 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'
18983 ;;
18984 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018985 # Compaq C++
18986 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18987 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'
18988
18989 runpath_var=LD_RUN_PATH
18990 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18991 hardcode_libdir_separator_CXX=:
18992
18993 # Commands to make compiler produce verbose output that lists
18994 # what "hidden" libraries, object files and flags are used when
18995 # linking a shared library.
18996 #
18997 # There doesn't appear to be a way to prevent this compiler from
18998 # explicitly linking system object files so we need to strip them
18999 # from the output so that they don't get included in the library
19000 # dependencies.
19001 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'
19002 ;;
19003 esac
19004 ;;
19005 lynxos*)
19006 # FIXME: insert proper C++ library support
19007 ld_shlibs_CXX=no
19008 ;;
19009 m88k*)
19010 # FIXME: insert proper C++ library support
19011 ld_shlibs_CXX=no
19012 ;;
19013 mvs*)
19014 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019015 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019016 # FIXME: insert proper C++ library support
19017 ld_shlibs_CXX=no
19018 ;;
19019 *)
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 ;;
19023 esac
19024 ;;
19025 netbsd*)
19026 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19027 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19028 wlarc=
19029 hardcode_libdir_flag_spec_CXX='-R$libdir'
19030 hardcode_direct_CXX=yes
19031 hardcode_shlibpath_var_CXX=no
19032 fi
19033 # Workaround some broken pre-1.5 toolchains
19034 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19035 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019036 openbsd2*)
19037 # C++ shared libraries are fairly broken
19038 ld_shlibs_CXX=no
19039 ;;
19040 openbsd*)
19041 hardcode_direct_CXX=yes
19042 hardcode_shlibpath_var_CXX=no
19043 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19044 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19045 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19046 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19047 export_dynamic_flag_spec_CXX='${wl}-E'
19048 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19049 fi
19050 output_verbose_link_cmd='echo'
19051 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019052 osf3*)
19053 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019054 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019055 # Kuck and Associates, Inc. (KAI) C++ Compiler
19056
19057 # KCC will only create a shared library if the output file
19058 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19059 # to its proper name (with version) after linking.
19060 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'
19061
19062 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19063 hardcode_libdir_separator_CXX=:
19064
19065 # Archives containing C++ object files must be created using
19066 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19067 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19068
19069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019070 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019071 # Rational C++ 2.4.1
19072 # FIXME: insert proper C++ library support
19073 ld_shlibs_CXX=no
19074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019075 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019076 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019077 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 +000019078
19079 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19080 hardcode_libdir_separator_CXX=:
19081
19082 # Commands to make compiler produce verbose output that lists
19083 # what "hidden" libraries, object files and flags are used when
19084 # linking a shared library.
19085 #
19086 # There doesn't appear to be a way to prevent this compiler from
19087 # explicitly linking system object files so we need to strip them
19088 # from the output so that they don't get included in the library
19089 # dependencies.
19090 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'
19091 ;;
19092 *)
19093 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19094 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019095 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 +000019096
19097 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19098 hardcode_libdir_separator_CXX=:
19099
19100 # Commands to make compiler produce verbose output that lists
19101 # what "hidden" libraries, object files and flags are used when
19102 # linking a shared library.
19103 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19104
19105 else
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19108 fi
19109 ;;
19110 esac
19111 ;;
19112 osf4* | osf5*)
19113 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019114 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019115 # Kuck and Associates, Inc. (KAI) C++ Compiler
19116
19117 # KCC will only create a shared library if the output file
19118 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19119 # to its proper name (with version) after linking.
19120 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'
19121
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19123 hardcode_libdir_separator_CXX=:
19124
19125 # Archives containing C++ object files must be created using
19126 # the KAI C++ compiler.
19127 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019129 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019130 # Rational C++ 2.4.1
19131 # FIXME: insert proper C++ library support
19132 ld_shlibs_CXX=no
19133 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019134 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019135 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019136 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 +000019137 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19138 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019139 $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 +000019140 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019141
19142 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19143 hardcode_libdir_separator_CXX=:
19144
19145 # Commands to make compiler produce verbose output that lists
19146 # what "hidden" libraries, object files and flags are used when
19147 # linking a shared library.
19148 #
19149 # There doesn't appear to be a way to prevent this compiler from
19150 # explicitly linking system object files so we need to strip them
19151 # from the output so that they don't get included in the library
19152 # dependencies.
19153 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'
19154 ;;
19155 *)
19156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019158 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 +000019159
19160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19161 hardcode_libdir_separator_CXX=:
19162
19163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
19166 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19167
19168 else
19169 # FIXME: insert proper C++ library support
19170 ld_shlibs_CXX=no
19171 fi
19172 ;;
19173 esac
19174 ;;
19175 psos*)
19176 # FIXME: insert proper C++ library support
19177 ld_shlibs_CXX=no
19178 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019179 sunos4*)
19180 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019181 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019182 # Sun C++ 4.x
19183 # FIXME: insert proper C++ library support
19184 ld_shlibs_CXX=no
19185 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019186 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 # Lucid
19188 # FIXME: insert proper C++ library support
19189 ld_shlibs_CXX=no
19190 ;;
19191 *)
19192 # FIXME: insert proper C++ library support
19193 ld_shlibs_CXX=no
19194 ;;
19195 esac
19196 ;;
19197 solaris*)
19198 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019199 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019200 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019201 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019202 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019203 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 +000019204 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 +000019205 $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 +000019206
19207 hardcode_libdir_flag_spec_CXX='-R$libdir'
19208 hardcode_shlibpath_var_CXX=no
19209 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019210 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019211 *)
19212 # The C++ compiler is used as linker so we must use $wl
19213 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019214 # linker. We must also pass each convience library through
19215 # to the system linker between allextract/defaultextract.
19216 # The C++ compiler will combine linker options so we
19217 # cannot just pass the convience library names through
19218 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019219 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019220 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 +000019221 ;;
19222 esac
19223 link_all_deplibs_CXX=yes
19224
Reid Spencera773bd52006-08-04 18:18:08 +000019225 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019226
19227 # Archives containing C++ object files must be created using
19228 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19229 # necessary to make sure instantiated templates are included
19230 # in the archive.
19231 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19232 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019233 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019234 # Green Hills C++ Compiler
19235 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19236
19237 # The C++ compiler must be used to create the archive.
19238 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19239 ;;
19240 *)
19241 # GNU C++ compiler with Solaris linker
19242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19243 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19244 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019245 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 +000019246 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19248
John Criswell47fdd832003-07-14 16:52:07 +000019249 # Commands to make compiler produce verbose output that lists
19250 # what "hidden" libraries, object files and flags are used when
19251 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019252 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019253 else
19254 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19255 # platform.
19256 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 +000019257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19258 $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 +000019259
19260 # Commands to make compiler produce verbose output that lists
19261 # what "hidden" libraries, object files and flags are used when
19262 # linking a shared library.
19263 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19264 fi
19265
19266 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19267 fi
19268 ;;
19269 esac
19270 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019271 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19272 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019273 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019274 hardcode_shlibpath_var_CXX=no
19275 runpath_var='LD_RUN_PATH'
19276
19277 case $cc_basename in
19278 CC*)
19279 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19280 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19281 ;;
19282 *)
19283 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19285 ;;
19286 esac
19287 ;;
19288 sysv5* | sco3.2v5* | sco5v6*)
19289 # Note: We can NOT use -z defs as we might desire, because we do not
19290 # link with -lc, and that would cause any symbols used from libc to
19291 # always be unresolved, which means just about no library would
19292 # ever link correctly. If we're not using GNU ld we use -z text
19293 # though, which does catch some bad symbols but isn't as heavy-handed
19294 # as -z defs.
19295 # For security reasons, it is highly recommended that you always
19296 # use absolute paths for naming shared libraries, and exclude the
19297 # DT_RUNPATH tag from executables and libraries. But doing so
19298 # requires that you compile everything twice, which is a pain.
19299 # So that behaviour is only enabled if SCOABSPATH is set to a
19300 # non-empty value in the environment. Most likely only useful for
19301 # creating official distributions of packages.
19302 # This is a hack until libtool officially supports absolute path
19303 # names for shared libraries.
19304 no_undefined_flag_CXX='${wl}-z,text'
19305 allow_undefined_flag_CXX='${wl}-z,nodefs'
19306 archive_cmds_need_lc_CXX=no
19307 hardcode_shlibpath_var_CXX=no
19308 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19309 hardcode_libdir_separator_CXX=':'
19310 link_all_deplibs_CXX=yes
19311 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19312 runpath_var='LD_RUN_PATH'
19313
19314 case $cc_basename in
19315 CC*)
19316 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19317 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19318 ;;
19319 *)
19320 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19322 ;;
19323 esac
John Criswell47fdd832003-07-14 16:52:07 +000019324 ;;
19325 tandem*)
19326 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019327 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019328 # NonStop-UX NCC 3.20
19329 # FIXME: insert proper C++ library support
19330 ld_shlibs_CXX=no
19331 ;;
19332 *)
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19335 ;;
19336 esac
19337 ;;
19338 vxworks*)
19339 # FIXME: insert proper C++ library support
19340 ld_shlibs_CXX=no
19341 ;;
19342 *)
19343 # FIXME: insert proper C++ library support
19344 ld_shlibs_CXX=no
19345 ;;
19346esac
Reid Spencera773bd52006-08-04 18:18:08 +000019347{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19348echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019349test "$ld_shlibs_CXX" = no && can_build_shared=no
19350
19351GCC_CXX="$GXX"
19352LD_CXX="$LD"
19353
John Criswell47fdd832003-07-14 16:52:07 +000019354
19355cat > conftest.$ac_ext <<EOF
19356class Foo
19357{
19358public:
19359 Foo (void) { a = 0; }
19360private:
19361 int a;
19362};
19363EOF
19364
19365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; then
19370 # Parse the compiler output and extract the necessary
19371 # objects, libraries and library flags.
19372
19373 # Sentinel used to keep track of whether or not we are before
19374 # the conftest object file.
19375 pre_test_object_deps_done=no
19376
19377 # The `*' in the case matches for architectures that use `case' in
19378 # $output_verbose_cmd can trigger glob expansion during the loop
19379 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019380 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019381
19382 for p in `eval $output_verbose_link_cmd`; do
19383 case $p in
19384
19385 -L* | -R* | -l*)
19386 # Some compilers place space between "-{L,R}" and the path.
19387 # Remove the space.
19388 if test $p = "-L" \
19389 || test $p = "-R"; then
19390 prev=$p
19391 continue
19392 else
19393 prev=
19394 fi
19395
19396 if test "$pre_test_object_deps_done" = no; then
19397 case $p in
19398 -L* | -R*)
19399 # Internal compiler library paths should come after those
19400 # provided the user. The postdeps already come after the
19401 # user supplied libs so there is no need to process them.
19402 if test -z "$compiler_lib_search_path_CXX"; then
19403 compiler_lib_search_path_CXX="${prev}${p}"
19404 else
19405 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19406 fi
19407 ;;
19408 # The "-l" case would never come before the object being
19409 # linked, so don't bother handling this case.
19410 esac
19411 else
19412 if test -z "$postdeps_CXX"; then
19413 postdeps_CXX="${prev}${p}"
19414 else
19415 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19416 fi
19417 fi
19418 ;;
19419
19420 *.$objext)
19421 # This assumes that the test object file only shows up
19422 # once in the compiler output.
19423 if test "$p" = "conftest.$objext"; then
19424 pre_test_object_deps_done=yes
19425 continue
19426 fi
19427
19428 if test "$pre_test_object_deps_done" = no; then
19429 if test -z "$predep_objects_CXX"; then
19430 predep_objects_CXX="$p"
19431 else
19432 predep_objects_CXX="$predep_objects_CXX $p"
19433 fi
19434 else
19435 if test -z "$postdep_objects_CXX"; then
19436 postdep_objects_CXX="$p"
19437 else
19438 postdep_objects_CXX="$postdep_objects_CXX $p"
19439 fi
19440 fi
19441 ;;
19442
19443 *) ;; # Ignore the rest.
19444
19445 esac
19446 done
19447
19448 # Clean up.
19449 rm -f a.out a.exe
19450else
19451 echo "libtool.m4: error: problem compiling CXX test program"
19452fi
19453
19454$rm -f confest.$objext
19455
Reid Spencera773bd52006-08-04 18:18:08 +000019456# PORTME: override above test on systems where it is broken
19457case $host_os in
19458interix3*)
19459 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19460 # hack all around it, let's just trust "g++" to DTRT.
19461 predep_objects_CXX=
19462 postdep_objects_CXX=
19463 postdeps_CXX=
19464 ;;
19465
19466solaris*)
19467 case $cc_basename in
19468 CC*)
19469 # Adding this requires a known-good setup of shared libraries for
19470 # Sun compiler versions before 5.6, else PIC objects from an old
19471 # archive will be linked into the output, leading to subtle bugs.
19472 postdeps_CXX='-lCstd -lCrun'
19473 ;;
19474 esac
19475 ;;
19476esac
19477
19478
John Criswell47fdd832003-07-14 16:52:07 +000019479case " $postdeps_CXX " in
19480*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19481esac
19482
19483lt_prog_compiler_wl_CXX=
19484lt_prog_compiler_pic_CXX=
19485lt_prog_compiler_static_CXX=
19486
Reid Spencera773bd52006-08-04 18:18:08 +000019487{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19488echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019489
19490 # C++ specific cases for pic, static, wl, etc.
19491 if test "$GXX" = yes; then
19492 lt_prog_compiler_wl_CXX='-Wl,'
19493 lt_prog_compiler_static_CXX='-static'
19494
19495 case $host_os in
19496 aix*)
19497 # All AIX code is PIC.
19498 if test "$host_cpu" = ia64; then
19499 # AIX 5 now supports IA64 processor
19500 lt_prog_compiler_static_CXX='-Bstatic'
19501 fi
19502 ;;
19503 amigaos*)
19504 # FIXME: we need at least 68020 code to build shared libraries, but
19505 # adding the `-m68020' flag to GCC prevents building anything better,
19506 # like `-m68040'.
19507 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19508 ;;
19509 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19510 # PIC is the default for these OSes.
19511 ;;
19512 mingw* | os2* | pw32*)
19513 # This hack is so that the source file can tell whether it is being
19514 # built for inclusion in a dll (and should export symbols for example).
19515 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19516 ;;
19517 darwin* | rhapsody*)
19518 # PIC is the default on this platform
19519 # Common symbols not allowed in MH_DYLIB files
19520 lt_prog_compiler_pic_CXX='-fno-common'
19521 ;;
19522 *djgpp*)
19523 # DJGPP does not support shared libraries at all
19524 lt_prog_compiler_pic_CXX=
19525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019526 interix3*)
19527 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19528 # Instead, we relocate shared libraries at runtime.
19529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019530 sysv4*MP*)
19531 if test -d /usr/nec; then
19532 lt_prog_compiler_pic_CXX=-Kconform_pic
19533 fi
19534 ;;
19535 hpux*)
19536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19537 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019538 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019539 hppa*64*|ia64*)
19540 ;;
19541 *)
19542 lt_prog_compiler_pic_CXX='-fPIC'
19543 ;;
19544 esac
19545 ;;
19546 *)
19547 lt_prog_compiler_pic_CXX='-fPIC'
19548 ;;
19549 esac
19550 else
19551 case $host_os in
19552 aix4* | aix5*)
19553 # All AIX code is PIC.
19554 if test "$host_cpu" = ia64; then
19555 # AIX 5 now supports IA64 processor
19556 lt_prog_compiler_static_CXX='-Bstatic'
19557 else
19558 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19559 fi
19560 ;;
19561 chorus*)
19562 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019563 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019564 # Green Hills C++ Compiler
19565 # _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"
19566 ;;
19567 esac
19568 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019569 darwin*)
19570 # PIC is the default on this platform
19571 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019572 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019573 xlc*)
19574 lt_prog_compiler_pic_CXX='-qnocommon'
19575 lt_prog_compiler_wl_CXX='-Wl,'
19576 ;;
19577 esac
19578 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019579 dgux*)
19580 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019581 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019582 lt_prog_compiler_pic_CXX='-KPIC'
19583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019584 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019585 # Green Hills C++ Compiler
19586 lt_prog_compiler_pic_CXX='-pic'
19587 ;;
19588 *)
19589 ;;
19590 esac
19591 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019592 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019593 # FreeBSD uses GNU C++
19594 ;;
19595 hpux9* | hpux10* | hpux11*)
19596 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019597 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019598 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019599 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019600 if test "$host_cpu" != ia64; then
19601 lt_prog_compiler_pic_CXX='+Z'
19602 fi
19603 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019604 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019605 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019606 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19607 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019608 hppa*64*|ia64*)
19609 # +Z the default
19610 ;;
19611 *)
19612 lt_prog_compiler_pic_CXX='+Z'
19613 ;;
19614 esac
19615 ;;
19616 *)
19617 ;;
19618 esac
19619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019620 interix*)
19621 # This is c89, which is MS Visual C++ (no shared libs)
19622 # Anyone wants to do a port?
19623 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019624 irix5* | irix6* | nonstopux*)
19625 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019626 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019627 lt_prog_compiler_wl_CXX='-Wl,'
19628 lt_prog_compiler_static_CXX='-non_shared'
19629 # CC pic flag -KPIC is the default.
19630 ;;
19631 *)
19632 ;;
19633 esac
19634 ;;
19635 linux*)
19636 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019637 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019638 # KAI C++ Compiler
19639 lt_prog_compiler_wl_CXX='--backend -Wl,'
19640 lt_prog_compiler_pic_CXX='-fPIC'
19641 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019642 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019643 # Intel C++
19644 lt_prog_compiler_wl_CXX='-Wl,'
19645 lt_prog_compiler_pic_CXX='-KPIC'
19646 lt_prog_compiler_static_CXX='-static'
19647 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019648 pgCC*)
19649 # Portland Group C++ compiler.
19650 lt_prog_compiler_wl_CXX='-Wl,'
19651 lt_prog_compiler_pic_CXX='-fpic'
19652 lt_prog_compiler_static_CXX='-Bstatic'
19653 ;;
19654 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019655 # Compaq C++
19656 # Make sure the PIC flag is empty. It appears that all Alpha
19657 # Linux and Compaq Tru64 Unix objects are PIC.
19658 lt_prog_compiler_pic_CXX=
19659 lt_prog_compiler_static_CXX='-non_shared'
19660 ;;
19661 *)
19662 ;;
19663 esac
19664 ;;
19665 lynxos*)
19666 ;;
19667 m88k*)
19668 ;;
19669 mvs*)
19670 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019671 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019672 lt_prog_compiler_pic_CXX='-W c,exportall'
19673 ;;
19674 *)
19675 ;;
19676 esac
19677 ;;
19678 netbsd*)
19679 ;;
19680 osf3* | osf4* | osf5*)
19681 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019682 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019683 lt_prog_compiler_wl_CXX='--backend -Wl,'
19684 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019685 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019686 # Rational C++ 2.4.1
19687 lt_prog_compiler_pic_CXX='-pic'
19688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019689 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019690 # Digital/Compaq C++
19691 lt_prog_compiler_wl_CXX='-Wl,'
19692 # Make sure the PIC flag is empty. It appears that all Alpha
19693 # Linux and Compaq Tru64 Unix objects are PIC.
19694 lt_prog_compiler_pic_CXX=
19695 lt_prog_compiler_static_CXX='-non_shared'
19696 ;;
19697 *)
19698 ;;
19699 esac
19700 ;;
19701 psos*)
19702 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019703 solaris*)
19704 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019705 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019706 # Sun C++ 4.2, 5.x and Centerline C++
19707 lt_prog_compiler_pic_CXX='-KPIC'
19708 lt_prog_compiler_static_CXX='-Bstatic'
19709 lt_prog_compiler_wl_CXX='-Qoption ld '
19710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019711 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019712 # Green Hills C++ Compiler
19713 lt_prog_compiler_pic_CXX='-PIC'
19714 ;;
19715 *)
19716 ;;
19717 esac
19718 ;;
19719 sunos4*)
19720 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019721 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019722 # Sun C++ 4.x
19723 lt_prog_compiler_pic_CXX='-pic'
19724 lt_prog_compiler_static_CXX='-Bstatic'
19725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019726 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019727 # Lucid
19728 lt_prog_compiler_pic_CXX='-pic'
19729 ;;
19730 *)
19731 ;;
19732 esac
19733 ;;
19734 tandem*)
19735 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019736 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019737 # NonStop-UX NCC 3.20
19738 lt_prog_compiler_pic_CXX='-KPIC'
19739 ;;
19740 *)
19741 ;;
19742 esac
19743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019744 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19745 case $cc_basename in
19746 CC*)
19747 lt_prog_compiler_wl_CXX='-Wl,'
19748 lt_prog_compiler_pic_CXX='-KPIC'
19749 lt_prog_compiler_static_CXX='-Bstatic'
19750 ;;
19751 esac
John Criswell47fdd832003-07-14 16:52:07 +000019752 ;;
19753 vxworks*)
19754 ;;
19755 *)
19756 lt_prog_compiler_can_build_shared_CXX=no
19757 ;;
19758 esac
19759 fi
19760
Reid Spencera773bd52006-08-04 18:18:08 +000019761{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19762echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019763
19764#
19765# Check to make sure the PIC flag actually works.
19766#
19767if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019768
Reid Spencera773bd52006-08-04 18:18:08 +000019769{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19770echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019771if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19773else
19774 lt_prog_compiler_pic_works_CXX=no
19775 ac_outfile=conftest.$ac_objext
19776 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19777 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19778 # Insert the option either (1) after the last *FLAGS variable, or
19779 # (2) before a word containing "conftest.", or (3) at the end.
19780 # Note that $ac_compile itself does not contain backslashes and begins
19781 # with a dollar sign (not a hyphen), so the echo should work correctly.
19782 # The option is referenced via a variable to avoid confusing sed.
19783 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19786 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000019787 (eval echo "\"\$as_me:19787: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019788 (eval "$lt_compile" 2>conftest.err)
19789 ac_status=$?
19790 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000019791 echo "$as_me:19791: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019792 if (exit $ac_status) && test -s "$ac_outfile"; then
19793 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019794 # So say no if there are warnings other than the usual output.
19795 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019798 lt_prog_compiler_pic_works_CXX=yes
19799 fi
19800 fi
19801 $rm conftest*
19802
19803fi
Reid Spencera773bd52006-08-04 18:18:08 +000019804{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19805echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019806
19807if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19808 case $lt_prog_compiler_pic_CXX in
19809 "" | " "*) ;;
19810 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19811 esac
19812else
19813 lt_prog_compiler_pic_CXX=
19814 lt_prog_compiler_can_build_shared_CXX=no
19815fi
19816
19817fi
Reid Spencera773bd52006-08-04 18:18:08 +000019818case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019819 # For platforms which do not support PIC, -DPIC is meaningless:
19820 *djgpp*)
19821 lt_prog_compiler_pic_CXX=
19822 ;;
19823 *)
19824 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19825 ;;
19826esac
19827
Reid Spencera773bd52006-08-04 18:18:08 +000019828#
19829# Check to make sure the static flag actually works.
19830#
19831wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19832{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19833echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19834if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19836else
19837 lt_prog_compiler_static_works_CXX=no
19838 save_LDFLAGS="$LDFLAGS"
19839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19840 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19842 # The linker can only warn and ignore the option if not recognized
19843 # So say no if there are warnings
19844 if test -s conftest.err; then
19845 # Append any errors to the config.log.
19846 cat conftest.err 1>&5
19847 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19849 if diff conftest.exp conftest.er2 >/dev/null; then
19850 lt_prog_compiler_static_works_CXX=yes
19851 fi
19852 else
19853 lt_prog_compiler_static_works_CXX=yes
19854 fi
19855 fi
19856 $rm conftest*
19857 LDFLAGS="$save_LDFLAGS"
19858
19859fi
19860{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19861echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19862
19863if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19864 :
19865else
19866 lt_prog_compiler_static_CXX=
19867fi
19868
19869
19870{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19871echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019872if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874else
19875 lt_cv_prog_compiler_c_o_CXX=no
19876 $rm -r conftest 2>/dev/null
19877 mkdir conftest
19878 cd conftest
19879 mkdir out
19880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19881
John Criswell47fdd832003-07-14 16:52:07 +000019882 lt_compiler_flag="-o out/conftest2.$ac_objext"
19883 # Insert the option either (1) after the last *FLAGS variable, or
19884 # (2) before a word containing "conftest.", or (3) at the end.
19885 # Note that $ac_compile itself does not contain backslashes and begins
19886 # with a dollar sign (not a hyphen), so the echo should work correctly.
19887 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019888 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19890 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000019891 (eval echo "\"\$as_me:19891: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019892 (eval "$lt_compile" 2>out/conftest.err)
19893 ac_status=$?
19894 cat out/conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000019895 echo "$as_me:19895: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019896 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19897 then
19898 # The compiler can only warn and ignore the option if not recognized
19899 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019900 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19901 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19902 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019903 lt_cv_prog_compiler_c_o_CXX=yes
19904 fi
19905 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019906 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019907 $rm conftest*
19908 # SGI C++ compiler will create directory out/ii_files/ for
19909 # template instantiation
19910 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19911 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019912 cd ..
19913 rmdir conftest
19914 $rm conftest*
19915
19916fi
Reid Spencera773bd52006-08-04 18:18:08 +000019917{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19918echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019919
19920
19921hard_links="nottested"
19922if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19923 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019924 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19925echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019926 hard_links=yes
19927 $rm conftest*
19928 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19929 touch conftest.a
19930 ln conftest.a conftest.b 2>&5 || hard_links=no
19931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019932 { echo "$as_me:$LINENO: result: $hard_links" >&5
19933echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019934 if test "$hard_links" = no; then
19935 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19936echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19937 need_locks=warn
19938 fi
19939else
19940 need_locks=no
19941fi
19942
Reid Spencera773bd52006-08-04 18:18:08 +000019943{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19944echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019945
19946 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19947 case $host_os in
19948 aix4* | aix5*)
19949 # If we're using GNU nm, then we don't want the "-C" option.
19950 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19951 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19952 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'
19953 else
19954 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'
19955 fi
19956 ;;
19957 pw32*)
19958 export_symbols_cmds_CXX="$ltdll_cmds"
19959 ;;
19960 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019961 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 +000019962 ;;
19963 *)
19964 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19965 ;;
19966 esac
19967
Reid Spencera773bd52006-08-04 18:18:08 +000019968{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19969echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019970test "$ld_shlibs_CXX" = no && can_build_shared=no
19971
John Criswell47fdd832003-07-14 16:52:07 +000019972#
19973# Do we need to explicitly link libc?
19974#
19975case "x$archive_cmds_need_lc_CXX" in
19976x|xyes)
19977 # Assume -lc should be added
19978 archive_cmds_need_lc_CXX=yes
19979
19980 if test "$enable_shared" = yes && test "$GCC" = yes; then
19981 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019982 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019983 # FIXME: we may have to deal with multi-command sequences.
19984 ;;
19985 '$CC '*)
19986 # Test whether the compiler implicitly links with -lc since on some
19987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19988 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19990echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019991 $rm conftest*
19992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19993
19994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } 2>conftest.err; then
19999 soname=conftest
20000 lib=conftest
20001 libobjs=conftest.$ac_objext
20002 deplibs=
20003 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020004 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020005 compiler_flags=-v
20006 linker_flags=-v
20007 verstring=
20008 output_objdir=.
20009 libname=conftest
20010 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20011 allow_undefined_flag_CXX=
20012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20013 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20014 ac_status=$?
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); }
20017 then
20018 archive_cmds_need_lc_CXX=no
20019 else
20020 archive_cmds_need_lc_CXX=yes
20021 fi
20022 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20023 else
20024 cat conftest.err 1>&5
20025 fi
20026 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20028echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020029 ;;
20030 esac
20031 fi
20032 ;;
20033esac
20034
Reid Spencera773bd52006-08-04 18:18:08 +000020035{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20036echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020037library_names_spec=
20038libname_spec='lib$name'
20039soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020040shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020041postinstall_cmds=
20042postuninstall_cmds=
20043finish_cmds=
20044finish_eval=
20045shlibpath_var=
20046shlibpath_overrides_runpath=unknown
20047version_type=none
20048dynamic_linker="$host_os ld.so"
20049sys_lib_dlsearch_path_spec="/lib /usr/lib"
20050if test "$GCC" = yes; then
20051 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20052 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20053 # if the path contains ";" then we assume it to be the separator
20054 # otherwise default to the standard path separator (i.e. ":") - it is
20055 # assumed that no part of a normal pathname contains ";" but that should
20056 # okay in the real world where ";" in dirpaths is itself problematic.
20057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20058 else
20059 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20060 fi
20061else
20062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20063fi
20064need_lib_prefix=unknown
20065hardcode_into_libs=no
20066
20067# when you set need_version to no, make sure it does not cause -set_version
20068# flags to be left without arguments
20069need_version=unknown
20070
20071case $host_os in
20072aix3*)
20073 version_type=linux
20074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20075 shlibpath_var=LIBPATH
20076
20077 # AIX 3 has no versioning support, so we append a major version to the name.
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 ;;
20080
20081aix4* | aix5*)
20082 version_type=linux
20083 need_lib_prefix=no
20084 need_version=no
20085 hardcode_into_libs=yes
20086 if test "$host_cpu" = ia64; then
20087 # AIX 5 supports IA64
20088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20089 shlibpath_var=LD_LIBRARY_PATH
20090 else
20091 # With GCC up to 2.95.x, collect2 would create an import file
20092 # for dependence libraries. The import file would start with
20093 # the line `#! .'. This would cause the generated library to
20094 # depend on `.', always an invalid library. This was fixed in
20095 # development snapshots of GCC prior to 3.0.
20096 case $host_os in
20097 aix4 | aix4.[01] | aix4.[01].*)
20098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20099 echo ' yes '
20100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20101 :
20102 else
20103 can_build_shared=no
20104 fi
20105 ;;
20106 esac
20107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20108 # soname into executable. Probably we can add versioning support to
20109 # collect2, so additional links can be useful in future.
20110 if test "$aix_use_runtimelinking" = yes; then
20111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20112 # instead of lib<name>.a to let people know that these are not
20113 # typical AIX shared libraries.
20114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20115 else
20116 # We preserve .a as extension for shared libraries through AIX4.2
20117 # and later when we are not doing run time linking.
20118 library_names_spec='${libname}${release}.a $libname.a'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 fi
20121 shlibpath_var=LIBPATH
20122 fi
20123 ;;
20124
20125amigaos*)
20126 library_names_spec='$libname.ixlibrary $libname.a'
20127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020128 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 +000020129 ;;
20130
20131beos*)
20132 library_names_spec='${libname}${shared_ext}'
20133 dynamic_linker="$host_os ld.so"
20134 shlibpath_var=LIBRARY_PATH
20135 ;;
20136
Reid Spencer2706f8c2004-09-19 23:53:36 +000020137bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020138 version_type=linux
20139 need_version=no
20140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20141 soname_spec='${libname}${release}${shared_ext}$major'
20142 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20145 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20146 # the default ld.so.conf also contains /usr/contrib/lib and
20147 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20148 # libtool to hard-code these into programs
20149 ;;
20150
20151cygwin* | mingw* | pw32*)
20152 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020153 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020154 need_version=no
20155 need_lib_prefix=no
20156
20157 case $GCC,$host_os in
20158 yes,cygwin* | yes,mingw* | yes,pw32*)
20159 library_names_spec='$libname.dll.a'
20160 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020161 postinstall_cmds='base_file=`basename \${file}`~
20162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20163 dldir=$destdir/`dirname \$dlpath`~
20164 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020165 $install_prog $dir/$dlname \$dldir/$dlname~
20166 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20168 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020169 $rm \$dlpath'
20170 shlibpath_overrides_runpath=yes
20171
20172 case $host_os in
20173 cygwin*)
20174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20175 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 +000020176 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020177 ;;
20178 mingw*)
20179 # MinGW DLLs use traditional 'lib' prefix
20180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20181 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20182 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20183 # It is most probably a Windows format PATH printed by
20184 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20185 # path with ; separators, and with drive letters. We can handle the
20186 # drive letters (cygwin fileutils understands them), so leave them,
20187 # especially as we might pass files found there to a mingw objdump,
20188 # which wouldn't understand a cygwinified path. Ahh.
20189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20190 else
20191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20192 fi
20193 ;;
20194 pw32*)
20195 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020196 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 +000020197 ;;
20198 esac
20199 ;;
20200
20201 *)
20202 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20203 ;;
20204 esac
20205 dynamic_linker='Win32 ld.exe'
20206 # FIXME: first we should search . and the directory the executable is in
20207 shlibpath_var=PATH
20208 ;;
20209
20210darwin* | rhapsody*)
20211 dynamic_linker="$host_os dyld"
20212 version_type=darwin
20213 need_lib_prefix=no
20214 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020215 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020216 soname_spec='${libname}${release}${major}$shared_ext'
20217 shlibpath_overrides_runpath=yes
20218 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020219 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020220 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020221 if test "$GCC" = yes; then
20222 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"`
20223 else
20224 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020225 fi
20226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20227 ;;
20228
20229dgux*)
20230 version_type=linux
20231 need_lib_prefix=no
20232 need_version=no
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 shlibpath_var=LD_LIBRARY_PATH
20236 ;;
20237
20238freebsd1*)
20239 dynamic_linker=no
20240 ;;
20241
Reid Spencer2706f8c2004-09-19 23:53:36 +000020242kfreebsd*-gnu)
20243 version_type=linux
20244 need_lib_prefix=no
20245 need_version=no
20246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 shlibpath_var=LD_LIBRARY_PATH
20249 shlibpath_overrides_runpath=no
20250 hardcode_into_libs=yes
20251 dynamic_linker='GNU ld.so'
20252 ;;
20253
Reid Spencera773bd52006-08-04 18:18:08 +000020254freebsd* | dragonfly*)
20255 # DragonFly does not have aout. When/if they implement a new
20256 # versioning mechanism, adjust this.
20257 if test -x /usr/bin/objformat; then
20258 objformat=`/usr/bin/objformat`
20259 else
20260 case $host_os in
20261 freebsd[123]*) objformat=aout ;;
20262 *) objformat=elf ;;
20263 esac
20264 fi
John Criswell47fdd832003-07-14 16:52:07 +000020265 version_type=freebsd-$objformat
20266 case $version_type in
20267 freebsd-elf*)
20268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20269 need_version=no
20270 need_lib_prefix=no
20271 ;;
20272 freebsd-*)
20273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20274 need_version=yes
20275 ;;
20276 esac
20277 shlibpath_var=LD_LIBRARY_PATH
20278 case $host_os in
20279 freebsd2*)
20280 shlibpath_overrides_runpath=yes
20281 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020282 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020283 shlibpath_overrides_runpath=yes
20284 hardcode_into_libs=yes
20285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020288 shlibpath_overrides_runpath=no
20289 hardcode_into_libs=yes
20290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020291 freebsd*) # from 4.6 on
20292 shlibpath_overrides_runpath=yes
20293 hardcode_into_libs=yes
20294 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020295 esac
20296 ;;
20297
20298gnu*)
20299 version_type=linux
20300 need_lib_prefix=no
20301 need_version=no
20302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20303 soname_spec='${libname}${release}${shared_ext}$major'
20304 shlibpath_var=LD_LIBRARY_PATH
20305 hardcode_into_libs=yes
20306 ;;
20307
20308hpux9* | hpux10* | hpux11*)
20309 # Give a soname corresponding to the major version so that dld.sl refuses to
20310 # link against other versions.
20311 version_type=sunos
20312 need_lib_prefix=no
20313 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020314 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020315 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020316 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020317 hardcode_into_libs=yes
20318 dynamic_linker="$host_os dld.so"
20319 shlibpath_var=LD_LIBRARY_PATH
20320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20322 soname_spec='${libname}${release}${shared_ext}$major'
20323 if test "X$HPUX_IA64_MODE" = X32; then
20324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20325 else
20326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20327 fi
20328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20329 ;;
20330 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020332 hardcode_into_libs=yes
20333 dynamic_linker="$host_os dld.sl"
20334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20337 soname_spec='${libname}${release}${shared_ext}$major'
20338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20340 ;;
20341 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020342 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020343 dynamic_linker="$host_os dld.sl"
20344 shlibpath_var=SHLIB_PATH
20345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 soname_spec='${libname}${release}${shared_ext}$major'
20348 ;;
20349 esac
20350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20351 postinstall_cmds='chmod 555 $lib'
20352 ;;
20353
Reid Spencera773bd52006-08-04 18:18:08 +000020354interix3*)
20355 version_type=linux
20356 need_lib_prefix=no
20357 need_version=no
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 shlibpath_overrides_runpath=no
20363 hardcode_into_libs=yes
20364 ;;
20365
John Criswell47fdd832003-07-14 16:52:07 +000020366irix5* | irix6* | nonstopux*)
20367 case $host_os in
20368 nonstopux*) version_type=nonstopux ;;
20369 *)
20370 if test "$lt_cv_prog_gnu_ld" = yes; then
20371 version_type=linux
20372 else
20373 version_type=irix
20374 fi ;;
20375 esac
20376 need_lib_prefix=no
20377 need_version=no
20378 soname_spec='${libname}${release}${shared_ext}$major'
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20380 case $host_os in
20381 irix5* | nonstopux*)
20382 libsuff= shlibsuff=
20383 ;;
20384 *)
20385 case $LD in # libtool.m4 will add one of these switches to LD
20386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20387 libsuff= shlibsuff= libmagic=32-bit;;
20388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20389 libsuff=32 shlibsuff=N32 libmagic=N32;;
20390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20392 *) libsuff= shlibsuff= libmagic=never-match;;
20393 esac
20394 ;;
20395 esac
20396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20397 shlibpath_overrides_runpath=no
20398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20400 hardcode_into_libs=yes
20401 ;;
20402
20403# No shared lib support for Linux oldld, aout, or coff.
20404linux*oldld* | linux*aout* | linux*coff*)
20405 dynamic_linker=no
20406 ;;
20407
20408# This must be Linux ELF.
20409linux*)
20410 version_type=linux
20411 need_lib_prefix=no
20412 need_version=no
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 shlibpath_overrides_runpath=no
20418 # This implies no fast_install, which is unacceptable.
20419 # Some rework will be needed to allow for fast_install
20420 # before this can be enabled.
20421 hardcode_into_libs=yes
20422
Reid Spencer2706f8c2004-09-19 23:53:36 +000020423 # Append ld.so.conf contents to the search path
20424 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020425 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 +000020426 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20427 fi
20428
John Criswell47fdd832003-07-14 16:52:07 +000020429 # We used to test for /lib/ld.so.1 and disable shared libraries on
20430 # powerpc, because MkLinux only supported shared libraries with the
20431 # GNU dynamic linker. Since this was broken with cross compilers,
20432 # most powerpc-linux boxes support dynamic linking these days and
20433 # people can always --disable-shared, the test was removed, and we
20434 # assume the GNU/Linux dynamic linker is in use.
20435 dynamic_linker='GNU/Linux ld.so'
20436 ;;
20437
Reid Spencer2706f8c2004-09-19 23:53:36 +000020438knetbsd*-gnu)
20439 version_type=linux
20440 need_lib_prefix=no
20441 need_version=no
20442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20443 soname_spec='${libname}${release}${shared_ext}$major'
20444 shlibpath_var=LD_LIBRARY_PATH
20445 shlibpath_overrides_runpath=no
20446 hardcode_into_libs=yes
20447 dynamic_linker='GNU ld.so'
20448 ;;
20449
John Criswell47fdd832003-07-14 16:52:07 +000020450netbsd*)
20451 version_type=sunos
20452 need_lib_prefix=no
20453 need_version=no
20454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20457 dynamic_linker='NetBSD (a.out) ld.so'
20458 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020460 soname_spec='${libname}${release}${shared_ext}$major'
20461 dynamic_linker='NetBSD ld.elf_so'
20462 fi
20463 shlibpath_var=LD_LIBRARY_PATH
20464 shlibpath_overrides_runpath=yes
20465 hardcode_into_libs=yes
20466 ;;
20467
20468newsos6)
20469 version_type=linux
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 shlibpath_var=LD_LIBRARY_PATH
20472 shlibpath_overrides_runpath=yes
20473 ;;
20474
Reid Spencer2706f8c2004-09-19 23:53:36 +000020475nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020476 version_type=linux
20477 need_lib_prefix=no
20478 need_version=no
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20482 shlibpath_overrides_runpath=yes
20483 ;;
20484
20485openbsd*)
20486 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020487 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020488 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20490 case $host_os in
20491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20492 *) need_version=no ;;
20493 esac
John Criswell47fdd832003-07-14 16:52:07 +000020494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20498 case $host_os in
20499 openbsd2.[89] | openbsd2.[89].*)
20500 shlibpath_overrides_runpath=no
20501 ;;
20502 *)
20503 shlibpath_overrides_runpath=yes
20504 ;;
20505 esac
20506 else
20507 shlibpath_overrides_runpath=yes
20508 fi
20509 ;;
20510
20511os2*)
20512 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020513 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020514 need_lib_prefix=no
20515 library_names_spec='$libname${shared_ext} $libname.a'
20516 dynamic_linker='OS/2 ld.exe'
20517 shlibpath_var=LIBPATH
20518 ;;
20519
20520osf3* | osf4* | osf5*)
20521 version_type=osf
20522 need_lib_prefix=no
20523 need_version=no
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20526 shlibpath_var=LD_LIBRARY_PATH
20527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20529 ;;
20530
John Criswell47fdd832003-07-14 16:52:07 +000020531solaris*)
20532 version_type=linux
20533 need_lib_prefix=no
20534 need_version=no
20535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20536 soname_spec='${libname}${release}${shared_ext}$major'
20537 shlibpath_var=LD_LIBRARY_PATH
20538 shlibpath_overrides_runpath=yes
20539 hardcode_into_libs=yes
20540 # ldd complains unless libraries are executable
20541 postinstall_cmds='chmod +x $lib'
20542 ;;
20543
20544sunos4*)
20545 version_type=sunos
20546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20547 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20548 shlibpath_var=LD_LIBRARY_PATH
20549 shlibpath_overrides_runpath=yes
20550 if test "$with_gnu_ld" = yes; then
20551 need_lib_prefix=no
20552 fi
20553 need_version=yes
20554 ;;
20555
Reid Spencera773bd52006-08-04 18:18:08 +000020556sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020557 version_type=linux
20558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20559 soname_spec='${libname}${release}${shared_ext}$major'
20560 shlibpath_var=LD_LIBRARY_PATH
20561 case $host_vendor in
20562 sni)
20563 shlibpath_overrides_runpath=no
20564 need_lib_prefix=no
20565 export_dynamic_flag_spec='${wl}-Blargedynsym'
20566 runpath_var=LD_RUN_PATH
20567 ;;
20568 siemens)
20569 need_lib_prefix=no
20570 ;;
20571 motorola)
20572 need_lib_prefix=no
20573 need_version=no
20574 shlibpath_overrides_runpath=no
20575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20576 ;;
20577 esac
20578 ;;
20579
20580sysv4*MP*)
20581 if test -d /usr/nec ;then
20582 version_type=linux
20583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20584 soname_spec='$libname${shared_ext}.$major'
20585 shlibpath_var=LD_LIBRARY_PATH
20586 fi
20587 ;;
20588
Reid Spencera773bd52006-08-04 18:18:08 +000020589sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20590 version_type=freebsd-elf
20591 need_lib_prefix=no
20592 need_version=no
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 hardcode_into_libs=yes
20597 if test "$with_gnu_ld" = yes; then
20598 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20599 shlibpath_overrides_runpath=no
20600 else
20601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20602 shlibpath_overrides_runpath=yes
20603 case $host_os in
20604 sco3.2v5*)
20605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20606 ;;
20607 esac
20608 fi
20609 sys_lib_dlsearch_path_spec='/usr/lib'
20610 ;;
20611
John Criswell47fdd832003-07-14 16:52:07 +000020612uts4*)
20613 version_type=linux
20614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20615 soname_spec='${libname}${release}${shared_ext}$major'
20616 shlibpath_var=LD_LIBRARY_PATH
20617 ;;
20618
20619*)
20620 dynamic_linker=no
20621 ;;
20622esac
Reid Spencera773bd52006-08-04 18:18:08 +000020623{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20624echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020625test "$dynamic_linker" = no && can_build_shared=no
20626
Reid Spencera773bd52006-08-04 18:18:08 +000020627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20628if test "$GCC" = yes; then
20629 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20630fi
20631
20632{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20633echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020634hardcode_action_CXX=
20635if test -n "$hardcode_libdir_flag_spec_CXX" || \
20636 test -n "$runpath_var_CXX" || \
20637 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20638
20639 # We can hardcode non-existant directories.
20640 if test "$hardcode_direct_CXX" != no &&
20641 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20642 # have to relink, otherwise we might link with an installed library
20643 # when we should be linking with a yet-to-be-installed one
20644 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20645 test "$hardcode_minus_L_CXX" != no; then
20646 # Linking always hardcodes the temporary library directory.
20647 hardcode_action_CXX=relink
20648 else
20649 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20650 hardcode_action_CXX=immediate
20651 fi
20652else
20653 # We cannot hardcode anything, or else we can only hardcode existing
20654 # directories.
20655 hardcode_action_CXX=unsupported
20656fi
Reid Spencera773bd52006-08-04 18:18:08 +000020657{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20658echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020659
20660if test "$hardcode_action_CXX" = relink; then
20661 # Fast installation is not supported
20662 enable_fast_install=no
20663elif test "$shlibpath_overrides_runpath" = yes ||
20664 test "$enable_shared" = no; then
20665 # Fast installation is not necessary
20666 enable_fast_install=needless
20667fi
20668
John Criswell47fdd832003-07-14 16:52:07 +000020669
20670# The else clause should only fire when bootstrapping the
20671# libtool distribution, otherwise you forgot to ship ltmain.sh
20672# with your package, and you will get complaints that there are
20673# no rules to generate ltmain.sh.
20674if test -f "$ltmain"; then
20675 # See if we are running on zsh, and set the options which allow our commands through
20676 # without removal of \ escapes.
20677 if test -n "${ZSH_VERSION+set}" ; then
20678 setopt NO_GLOB_SUBST
20679 fi
20680 # Now quote all the things that may contain metacharacters while being
20681 # careful not to overquote the AC_SUBSTed values. We take copies of the
20682 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020683 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 +000020684 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020685 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20686 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20687 deplibs_check_method reload_flag reload_cmds need_locks \
20688 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20689 lt_cv_sys_global_symbol_to_c_name_address \
20690 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20691 old_postinstall_cmds old_postuninstall_cmds \
20692 compiler_CXX \
20693 CC_CXX \
20694 LD_CXX \
20695 lt_prog_compiler_wl_CXX \
20696 lt_prog_compiler_pic_CXX \
20697 lt_prog_compiler_static_CXX \
20698 lt_prog_compiler_no_builtin_flag_CXX \
20699 export_dynamic_flag_spec_CXX \
20700 thread_safe_flag_spec_CXX \
20701 whole_archive_flag_spec_CXX \
20702 enable_shared_with_static_runtimes_CXX \
20703 old_archive_cmds_CXX \
20704 old_archive_from_new_cmds_CXX \
20705 predep_objects_CXX \
20706 postdep_objects_CXX \
20707 predeps_CXX \
20708 postdeps_CXX \
20709 compiler_lib_search_path_CXX \
20710 archive_cmds_CXX \
20711 archive_expsym_cmds_CXX \
20712 postinstall_cmds_CXX \
20713 postuninstall_cmds_CXX \
20714 old_archive_from_expsyms_cmds_CXX \
20715 allow_undefined_flag_CXX \
20716 no_undefined_flag_CXX \
20717 export_symbols_cmds_CXX \
20718 hardcode_libdir_flag_spec_CXX \
20719 hardcode_libdir_flag_spec_ld_CXX \
20720 hardcode_libdir_separator_CXX \
20721 hardcode_automatic_CXX \
20722 module_cmds_CXX \
20723 module_expsym_cmds_CXX \
20724 lt_cv_prog_compiler_c_o_CXX \
20725 exclude_expsyms_CXX \
20726 include_expsyms_CXX; do
20727
20728 case $var in
20729 old_archive_cmds_CXX | \
20730 old_archive_from_new_cmds_CXX | \
20731 archive_cmds_CXX | \
20732 archive_expsym_cmds_CXX | \
20733 module_cmds_CXX | \
20734 module_expsym_cmds_CXX | \
20735 old_archive_from_expsyms_cmds_CXX | \
20736 export_symbols_cmds_CXX | \
20737 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20738 postinstall_cmds | postuninstall_cmds | \
20739 old_postinstall_cmds | old_postuninstall_cmds | \
20740 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20741 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020742 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 +000020743 ;;
20744 *)
20745 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20746 ;;
20747 esac
20748 done
20749
20750 case $lt_echo in
20751 *'\$0 --fallback-echo"')
20752 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20753 ;;
20754 esac
20755
20756cfgfile="$ofile"
20757
20758 cat <<__EOF__ >> "$cfgfile"
20759# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20760
20761# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20762
20763# Shell to use when invoking shell scripts.
20764SHELL=$lt_SHELL
20765
20766# Whether or not to build shared libraries.
20767build_libtool_libs=$enable_shared
20768
20769# Whether or not to build static libraries.
20770build_old_libs=$enable_static
20771
20772# Whether or not to add -lc for building shared libraries.
20773build_libtool_need_lc=$archive_cmds_need_lc_CXX
20774
20775# Whether or not to disallow shared libs when runtime libs are static
20776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20777
20778# Whether or not to optimize for fast installation.
20779fast_install=$enable_fast_install
20780
20781# The host system.
20782host_alias=$host_alias
20783host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020784host_os=$host_os
20785
20786# The build system.
20787build_alias=$build_alias
20788build=$build
20789build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020790
20791# An echo program that does not interpret backslashes.
20792echo=$lt_echo
20793
20794# The archiver.
20795AR=$lt_AR
20796AR_FLAGS=$lt_AR_FLAGS
20797
20798# A C compiler.
20799LTCC=$lt_LTCC
20800
Reid Spencera773bd52006-08-04 18:18:08 +000020801# LTCC compiler flags.
20802LTCFLAGS=$lt_LTCFLAGS
20803
John Criswell47fdd832003-07-14 16:52:07 +000020804# A language-specific compiler.
20805CC=$lt_compiler_CXX
20806
20807# Is the compiler the GNU C compiler?
20808with_gcc=$GCC_CXX
20809
20810# An ERE matcher.
20811EGREP=$lt_EGREP
20812
20813# The linker used to build libraries.
20814LD=$lt_LD_CXX
20815
20816# Whether we need hard or soft links.
20817LN_S=$lt_LN_S
20818
20819# A BSD-compatible nm program.
20820NM=$lt_NM
20821
20822# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020823STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020824
20825# Used to examine libraries when file_magic_cmd begins "file"
20826MAGIC_CMD=$MAGIC_CMD
20827
20828# Used on cygwin: DLL creation program.
20829DLLTOOL="$DLLTOOL"
20830
20831# Used on cygwin: object dumper.
20832OBJDUMP="$OBJDUMP"
20833
20834# Used on cygwin: assembler.
20835AS="$AS"
20836
20837# The name of the directory that contains temporary libtool files.
20838objdir=$objdir
20839
20840# How to create reloadable object files.
20841reload_flag=$lt_reload_flag
20842reload_cmds=$lt_reload_cmds
20843
20844# How to pass a linker flag through the compiler.
20845wl=$lt_lt_prog_compiler_wl_CXX
20846
20847# Object file suffix (normally "o").
20848objext="$ac_objext"
20849
20850# Old archive suffix (normally "a").
20851libext="$libext"
20852
20853# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020854shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020855
20856# Executable file suffix (normally "").
20857exeext="$exeext"
20858
20859# Additional compiler flags for building library objects.
20860pic_flag=$lt_lt_prog_compiler_pic_CXX
20861pic_mode=$pic_mode
20862
20863# What is the maximum length of a command?
20864max_cmd_len=$lt_cv_sys_max_cmd_len
20865
20866# Does compiler simultaneously support -c and -o options?
20867compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20868
Reid Spencera773bd52006-08-04 18:18:08 +000020869# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020870need_locks=$lt_need_locks
20871
20872# Do we need the lib prefix for modules?
20873need_lib_prefix=$need_lib_prefix
20874
20875# Do we need a version for libraries?
20876need_version=$need_version
20877
20878# Whether dlopen is supported.
20879dlopen_support=$enable_dlopen
20880
20881# Whether dlopen of programs is supported.
20882dlopen_self=$enable_dlopen_self
20883
20884# Whether dlopen of statically linked programs is supported.
20885dlopen_self_static=$enable_dlopen_self_static
20886
20887# Compiler flag to prevent dynamic linking.
20888link_static_flag=$lt_lt_prog_compiler_static_CXX
20889
20890# Compiler flag to turn off builtin functions.
20891no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20892
20893# Compiler flag to allow reflexive dlopens.
20894export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20895
20896# Compiler flag to generate shared objects directly from archives.
20897whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20898
20899# Compiler flag to generate thread-safe objects.
20900thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20901
20902# Library versioning type.
20903version_type=$version_type
20904
20905# Format of library name prefix.
20906libname_spec=$lt_libname_spec
20907
20908# List of archive names. First name is the real one, the rest are links.
20909# The last name is the one that the linker finds with -lNAME.
20910library_names_spec=$lt_library_names_spec
20911
20912# The coded name of the library, if different from the real name.
20913soname_spec=$lt_soname_spec
20914
20915# Commands used to build and install an old-style archive.
20916RANLIB=$lt_RANLIB
20917old_archive_cmds=$lt_old_archive_cmds_CXX
20918old_postinstall_cmds=$lt_old_postinstall_cmds
20919old_postuninstall_cmds=$lt_old_postuninstall_cmds
20920
20921# Create an old-style archive from a shared archive.
20922old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20923
20924# Create a temporary old-style archive to link instead of a shared archive.
20925old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20926
20927# Commands used to build and install a shared archive.
20928archive_cmds=$lt_archive_cmds_CXX
20929archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20930postinstall_cmds=$lt_postinstall_cmds
20931postuninstall_cmds=$lt_postuninstall_cmds
20932
20933# Commands used to build a loadable module (assumed same as above if empty)
20934module_cmds=$lt_module_cmds_CXX
20935module_expsym_cmds=$lt_module_expsym_cmds_CXX
20936
20937# Commands to strip libraries.
20938old_striplib=$lt_old_striplib
20939striplib=$lt_striplib
20940
20941# Dependencies to place before the objects being linked to create a
20942# shared library.
20943predep_objects=$lt_predep_objects_CXX
20944
20945# Dependencies to place after the objects being linked to create a
20946# shared library.
20947postdep_objects=$lt_postdep_objects_CXX
20948
20949# Dependencies to place before the objects being linked to create a
20950# shared library.
20951predeps=$lt_predeps_CXX
20952
20953# Dependencies to place after the objects being linked to create a
20954# shared library.
20955postdeps=$lt_postdeps_CXX
20956
20957# The library search path used internally by the compiler when linking
20958# a shared library.
20959compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20960
20961# Method to check whether dependent libraries are shared objects.
20962deplibs_check_method=$lt_deplibs_check_method
20963
20964# Command to use when deplibs_check_method == file_magic.
20965file_magic_cmd=$lt_file_magic_cmd
20966
20967# Flag that allows shared libraries with undefined symbols to be built.
20968allow_undefined_flag=$lt_allow_undefined_flag_CXX
20969
20970# Flag that forces no undefined symbols.
20971no_undefined_flag=$lt_no_undefined_flag_CXX
20972
20973# Commands used to finish a libtool library installation in a directory.
20974finish_cmds=$lt_finish_cmds
20975
20976# Same as above, but a single script fragment to be evaled but not shown.
20977finish_eval=$lt_finish_eval
20978
20979# Take the output of nm and produce a listing of raw symbols and C names.
20980global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20981
20982# Transform the output of nm in a proper C declaration
20983global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20984
20985# Transform the output of nm in a C name address pair
20986global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20987
20988# This is the shared library runtime path variable.
20989runpath_var=$runpath_var
20990
20991# This is the shared library path variable.
20992shlibpath_var=$shlibpath_var
20993
20994# Is shlibpath searched before the hard-coded library search path?
20995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20996
20997# How to hardcode a shared library path into an executable.
20998hardcode_action=$hardcode_action_CXX
20999
21000# Whether we should hardcode library paths into libraries.
21001hardcode_into_libs=$hardcode_into_libs
21002
21003# Flag to hardcode \$libdir into a binary during linking.
21004# This must work even if \$libdir does not exist.
21005hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21006
21007# If ld is used when linking, flag to hardcode \$libdir into
21008# a binary during linking. This must work even if \$libdir does
21009# not exist.
21010hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21011
21012# Whether we need a single -rpath flag with a separated argument.
21013hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21014
21015# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21016# resulting binary.
21017hardcode_direct=$hardcode_direct_CXX
21018
21019# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21020# resulting binary.
21021hardcode_minus_L=$hardcode_minus_L_CXX
21022
21023# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21024# the resulting binary.
21025hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21026
21027# Set to yes if building a shared library automatically hardcodes DIR into the library
21028# and all subsequent libraries and executables linked against it.
21029hardcode_automatic=$hardcode_automatic_CXX
21030
21031# Variables whose values should be saved in libtool wrapper scripts and
21032# restored at relink time.
21033variables_saved_for_relink="$variables_saved_for_relink"
21034
21035# Whether libtool must link a program against all its dependency libraries.
21036link_all_deplibs=$link_all_deplibs_CXX
21037
21038# Compile-time system search path for libraries
21039sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21040
21041# Run-time system search path for libraries
21042sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21043
21044# Fix the shell variable \$srcfile for the compiler.
21045fix_srcfile_path="$fix_srcfile_path_CXX"
21046
21047# Set to yes if exported symbols are required.
21048always_export_symbols=$always_export_symbols_CXX
21049
21050# The commands to list exported symbols.
21051export_symbols_cmds=$lt_export_symbols_cmds_CXX
21052
21053# The commands to extract the exported symbol list from a shared archive.
21054extract_expsyms_cmds=$lt_extract_expsyms_cmds
21055
21056# Symbols that should not be listed in the preloaded symbols.
21057exclude_expsyms=$lt_exclude_expsyms_CXX
21058
21059# Symbols that must always be exported.
21060include_expsyms=$lt_include_expsyms_CXX
21061
21062# ### END LIBTOOL TAG CONFIG: $tagname
21063
21064__EOF__
21065
21066
21067else
21068 # If there is no Makefile yet, we rely on a make rule to execute
21069 # `config.status --recheck' to rerun these tests and create the
21070 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021071 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21072 if test -f "$ltmain_in"; then
21073 test -f Makefile && make "$ltmain"
21074 fi
John Criswell47fdd832003-07-14 16:52:07 +000021075fi
21076
21077
21078ac_ext=c
21079ac_cpp='$CPP $CPPFLAGS'
21080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21082ac_compiler_gnu=$ac_cv_c_compiler_gnu
21083
21084CC=$lt_save_CC
21085LDCXX=$LD
21086LD=$lt_save_LD
21087GCC=$lt_save_GCC
21088with_gnu_ldcxx=$with_gnu_ld
21089with_gnu_ld=$lt_save_with_gnu_ld
21090lt_cv_path_LDCXX=$lt_cv_path_LD
21091lt_cv_path_LD=$lt_save_path_LD
21092lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21093lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21094
21095 else
21096 tagname=""
21097 fi
21098 ;;
21099
21100 F77)
21101 if test -n "$F77" && test "X$F77" != "Xno"; then
21102
21103ac_ext=f
21104ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21105ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21107
21108
21109archive_cmds_need_lc_F77=no
21110allow_undefined_flag_F77=
21111always_export_symbols_F77=no
21112archive_expsym_cmds_F77=
21113export_dynamic_flag_spec_F77=
21114hardcode_direct_F77=no
21115hardcode_libdir_flag_spec_F77=
21116hardcode_libdir_flag_spec_ld_F77=
21117hardcode_libdir_separator_F77=
21118hardcode_minus_L_F77=no
21119hardcode_automatic_F77=no
21120module_cmds_F77=
21121module_expsym_cmds_F77=
21122link_all_deplibs_F77=unknown
21123old_archive_cmds_F77=$old_archive_cmds
21124no_undefined_flag_F77=
21125whole_archive_flag_spec_F77=
21126enable_shared_with_static_runtimes_F77=no
21127
21128# Source file extension for f77 test sources.
21129ac_ext=f
21130
21131# Object file extension for compiled f77 test sources.
21132objext=o
21133objext_F77=$objext
21134
21135# Code to be used in simple compile tests
21136lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21137
21138# Code to be used in simple link tests
21139lt_simple_link_test_code=" program t\n end\n"
21140
21141# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21142
21143# If no C compiler was specified, use CC.
21144LTCC=${LTCC-"$CC"}
21145
Reid Spencera773bd52006-08-04 18:18:08 +000021146# If no C compiler flags were specified, use CFLAGS.
21147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21148
John Criswell47fdd832003-07-14 16:52:07 +000021149# Allow CC to be a program name with arguments.
21150compiler=$CC
21151
21152
Reid Spencera773bd52006-08-04 18:18:08 +000021153# save warnings/boilerplate of simple test code
21154ac_outfile=conftest.$ac_objext
21155printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21156eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21157_lt_compiler_boilerplate=`cat conftest.err`
21158$rm conftest*
21159
21160ac_outfile=conftest.$ac_objext
21161printf "$lt_simple_link_test_code" >conftest.$ac_ext
21162eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21163_lt_linker_boilerplate=`cat conftest.err`
21164$rm conftest*
21165
21166
John Criswell47fdd832003-07-14 16:52:07 +000021167# Allow CC to be a program name with arguments.
21168lt_save_CC="$CC"
21169CC=${F77-"f77"}
21170compiler=$CC
21171compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021172for cc_temp in $compiler""; do
21173 case $cc_temp in
21174 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21175 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21176 \-*) ;;
21177 *) break;;
21178 esac
21179done
21180cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021181
John Criswell47fdd832003-07-14 16:52:07 +000021182
Reid Spencera773bd52006-08-04 18:18:08 +000021183{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21184echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21185{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21186echo "${ECHO_T}$can_build_shared" >&6; }
21187
21188{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21189echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021190test "$can_build_shared" = "no" && enable_shared=no
21191
21192# On AIX, shared libraries and static libraries use the same namespace, and
21193# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021194case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021195aix3*)
21196 test "$enable_shared" = yes && enable_static=no
21197 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021198 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021199 postinstall_cmds='$RANLIB $lib'
21200 fi
21201 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021202aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021203 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21204 test "$enable_shared" = yes && enable_static=no
21205 fi
John Criswell47fdd832003-07-14 16:52:07 +000021206 ;;
21207esac
Reid Spencera773bd52006-08-04 18:18:08 +000021208{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21209echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021210
Reid Spencera773bd52006-08-04 18:18:08 +000021211{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21212echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021213# Make sure either enable_shared or enable_static is yes.
21214test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021215{ echo "$as_me:$LINENO: result: $enable_static" >&5
21216echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021217
21218GCC_F77="$G77"
21219LD_F77="$LD"
21220
21221lt_prog_compiler_wl_F77=
21222lt_prog_compiler_pic_F77=
21223lt_prog_compiler_static_F77=
21224
Reid Spencera773bd52006-08-04 18:18:08 +000021225{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21226echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021227
21228 if test "$GCC" = yes; then
21229 lt_prog_compiler_wl_F77='-Wl,'
21230 lt_prog_compiler_static_F77='-static'
21231
21232 case $host_os in
21233 aix*)
21234 # All AIX code is PIC.
21235 if test "$host_cpu" = ia64; then
21236 # AIX 5 now supports IA64 processor
21237 lt_prog_compiler_static_F77='-Bstatic'
21238 fi
21239 ;;
21240
21241 amigaos*)
21242 # FIXME: we need at least 68020 code to build shared libraries, but
21243 # adding the `-m68020' flag to GCC prevents building anything better,
21244 # like `-m68040'.
21245 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21246 ;;
21247
21248 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21249 # PIC is the default for these OSes.
21250 ;;
21251
21252 mingw* | pw32* | os2*)
21253 # This hack is so that the source file can tell whether it is being
21254 # built for inclusion in a dll (and should export symbols for example).
21255 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21256 ;;
21257
21258 darwin* | rhapsody*)
21259 # PIC is the default on this platform
21260 # Common symbols not allowed in MH_DYLIB files
21261 lt_prog_compiler_pic_F77='-fno-common'
21262 ;;
21263
Reid Spencera773bd52006-08-04 18:18:08 +000021264 interix3*)
21265 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21266 # Instead, we relocate shared libraries at runtime.
21267 ;;
21268
John Criswell47fdd832003-07-14 16:52:07 +000021269 msdosdjgpp*)
21270 # Just because we use GCC doesn't mean we suddenly get shared libraries
21271 # on systems that don't support them.
21272 lt_prog_compiler_can_build_shared_F77=no
21273 enable_shared=no
21274 ;;
21275
21276 sysv4*MP*)
21277 if test -d /usr/nec; then
21278 lt_prog_compiler_pic_F77=-Kconform_pic
21279 fi
21280 ;;
21281
21282 hpux*)
21283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21284 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021285 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021286 hppa*64*|ia64*)
21287 # +Z the default
21288 ;;
21289 *)
21290 lt_prog_compiler_pic_F77='-fPIC'
21291 ;;
21292 esac
21293 ;;
21294
21295 *)
21296 lt_prog_compiler_pic_F77='-fPIC'
21297 ;;
21298 esac
21299 else
21300 # PORTME Check for flag to pass linker flags through the system compiler.
21301 case $host_os in
21302 aix*)
21303 lt_prog_compiler_wl_F77='-Wl,'
21304 if test "$host_cpu" = ia64; then
21305 # AIX 5 now supports IA64 processor
21306 lt_prog_compiler_static_F77='-Bstatic'
21307 else
21308 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21309 fi
21310 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021311 darwin*)
21312 # PIC is the default on this platform
21313 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021314 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021315 xlc*)
21316 lt_prog_compiler_pic_F77='-qnocommon'
21317 lt_prog_compiler_wl_F77='-Wl,'
21318 ;;
21319 esac
21320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021321
21322 mingw* | pw32* | os2*)
21323 # This hack is so that the source file can tell whether it is being
21324 # built for inclusion in a dll (and should export symbols for example).
21325 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21326 ;;
21327
21328 hpux9* | hpux10* | hpux11*)
21329 lt_prog_compiler_wl_F77='-Wl,'
21330 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21331 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021332 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021333 hppa*64*|ia64*)
21334 # +Z the default
21335 ;;
21336 *)
21337 lt_prog_compiler_pic_F77='+Z'
21338 ;;
21339 esac
21340 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21341 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21342 ;;
21343
21344 irix5* | irix6* | nonstopux*)
21345 lt_prog_compiler_wl_F77='-Wl,'
21346 # PIC (with -KPIC) is the default.
21347 lt_prog_compiler_static_F77='-non_shared'
21348 ;;
21349
21350 newsos6)
21351 lt_prog_compiler_pic_F77='-KPIC'
21352 lt_prog_compiler_static_F77='-Bstatic'
21353 ;;
21354
21355 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021356 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021357 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021358 lt_prog_compiler_wl_F77='-Wl,'
21359 lt_prog_compiler_pic_F77='-KPIC'
21360 lt_prog_compiler_static_F77='-static'
21361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021362 pgcc* | pgf77* | pgf90* | pgf95*)
21363 # Portland Group compilers (*not* the Pentium gcc compiler,
21364 # which looks to be a dead project)
21365 lt_prog_compiler_wl_F77='-Wl,'
21366 lt_prog_compiler_pic_F77='-fpic'
21367 lt_prog_compiler_static_F77='-Bstatic'
21368 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021369 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021370 lt_prog_compiler_wl_F77='-Wl,'
21371 # All Alpha code is PIC.
21372 lt_prog_compiler_static_F77='-non_shared'
21373 ;;
21374 esac
21375 ;;
21376
21377 osf3* | osf4* | osf5*)
21378 lt_prog_compiler_wl_F77='-Wl,'
21379 # All OSF/1 code is PIC.
21380 lt_prog_compiler_static_F77='-non_shared'
21381 ;;
21382
John Criswell47fdd832003-07-14 16:52:07 +000021383 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021384 lt_prog_compiler_pic_F77='-KPIC'
21385 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021386 case $cc_basename in
21387 f77* | f90* | f95*)
21388 lt_prog_compiler_wl_F77='-Qoption ld ';;
21389 *)
21390 lt_prog_compiler_wl_F77='-Wl,';;
21391 esac
John Criswell47fdd832003-07-14 16:52:07 +000021392 ;;
21393
21394 sunos4*)
21395 lt_prog_compiler_wl_F77='-Qoption ld '
21396 lt_prog_compiler_pic_F77='-PIC'
21397 lt_prog_compiler_static_F77='-Bstatic'
21398 ;;
21399
Reid Spencera773bd52006-08-04 18:18:08 +000021400 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021401 lt_prog_compiler_wl_F77='-Wl,'
21402 lt_prog_compiler_pic_F77='-KPIC'
21403 lt_prog_compiler_static_F77='-Bstatic'
21404 ;;
21405
21406 sysv4*MP*)
21407 if test -d /usr/nec ;then
21408 lt_prog_compiler_pic_F77='-Kconform_pic'
21409 lt_prog_compiler_static_F77='-Bstatic'
21410 fi
21411 ;;
21412
Reid Spencera773bd52006-08-04 18:18:08 +000021413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21414 lt_prog_compiler_wl_F77='-Wl,'
21415 lt_prog_compiler_pic_F77='-KPIC'
21416 lt_prog_compiler_static_F77='-Bstatic'
21417 ;;
21418
21419 unicos*)
21420 lt_prog_compiler_wl_F77='-Wl,'
21421 lt_prog_compiler_can_build_shared_F77=no
21422 ;;
21423
John Criswell47fdd832003-07-14 16:52:07 +000021424 uts4*)
21425 lt_prog_compiler_pic_F77='-pic'
21426 lt_prog_compiler_static_F77='-Bstatic'
21427 ;;
21428
21429 *)
21430 lt_prog_compiler_can_build_shared_F77=no
21431 ;;
21432 esac
21433 fi
21434
Reid Spencera773bd52006-08-04 18:18:08 +000021435{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21436echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021437
21438#
21439# Check to make sure the PIC flag actually works.
21440#
21441if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021442
Reid Spencera773bd52006-08-04 18:18:08 +000021443{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21444echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021445if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21447else
21448 lt_prog_compiler_pic_works_F77=no
21449 ac_outfile=conftest.$ac_objext
21450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21451 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21452 # Insert the option either (1) after the last *FLAGS variable, or
21453 # (2) before a word containing "conftest.", or (3) at the end.
21454 # Note that $ac_compile itself does not contain backslashes and begins
21455 # with a dollar sign (not a hyphen), so the echo should work correctly.
21456 # The option is referenced via a variable to avoid confusing sed.
21457 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21460 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000021461 (eval echo "\"\$as_me:21461: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021462 (eval "$lt_compile" 2>conftest.err)
21463 ac_status=$?
21464 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000021465 echo "$as_me:21465: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021466 if (exit $ac_status) && test -s "$ac_outfile"; then
21467 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021468 # So say no if there are warnings other than the usual output.
21469 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021472 lt_prog_compiler_pic_works_F77=yes
21473 fi
21474 fi
21475 $rm conftest*
21476
21477fi
Reid Spencera773bd52006-08-04 18:18:08 +000021478{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21479echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021480
21481if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21482 case $lt_prog_compiler_pic_F77 in
21483 "" | " "*) ;;
21484 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21485 esac
21486else
21487 lt_prog_compiler_pic_F77=
21488 lt_prog_compiler_can_build_shared_F77=no
21489fi
21490
21491fi
Reid Spencera773bd52006-08-04 18:18:08 +000021492case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021493 # For platforms which do not support PIC, -DPIC is meaningless:
21494 *djgpp*)
21495 lt_prog_compiler_pic_F77=
21496 ;;
21497 *)
21498 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21499 ;;
21500esac
21501
Reid Spencera773bd52006-08-04 18:18:08 +000021502#
21503# Check to make sure the static flag actually works.
21504#
21505wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21506{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21507echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21508if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21509 echo $ECHO_N "(cached) $ECHO_C" >&6
21510else
21511 lt_prog_compiler_static_works_F77=no
21512 save_LDFLAGS="$LDFLAGS"
21513 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21514 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21515 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21516 # The linker can only warn and ignore the option if not recognized
21517 # So say no if there are warnings
21518 if test -s conftest.err; then
21519 # Append any errors to the config.log.
21520 cat conftest.err 1>&5
21521 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21523 if diff conftest.exp conftest.er2 >/dev/null; then
21524 lt_prog_compiler_static_works_F77=yes
21525 fi
21526 else
21527 lt_prog_compiler_static_works_F77=yes
21528 fi
21529 fi
21530 $rm conftest*
21531 LDFLAGS="$save_LDFLAGS"
21532
21533fi
21534{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21535echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21536
21537if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21538 :
21539else
21540 lt_prog_compiler_static_F77=
21541fi
21542
21543
21544{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021546if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548else
21549 lt_cv_prog_compiler_c_o_F77=no
21550 $rm -r conftest 2>/dev/null
21551 mkdir conftest
21552 cd conftest
21553 mkdir out
21554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21555
John Criswell47fdd832003-07-14 16:52:07 +000021556 lt_compiler_flag="-o out/conftest2.$ac_objext"
21557 # Insert the option either (1) after the last *FLAGS variable, or
21558 # (2) before a word containing "conftest.", or (3) at the end.
21559 # Note that $ac_compile itself does not contain backslashes and begins
21560 # with a dollar sign (not a hyphen), so the echo should work correctly.
21561 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21564 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000021565 (eval echo "\"\$as_me:21565: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021566 (eval "$lt_compile" 2>out/conftest.err)
21567 ac_status=$?
21568 cat out/conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000021569 echo "$as_me:21569: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021570 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21571 then
21572 # The compiler can only warn and ignore the option if not recognized
21573 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021574 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21575 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21576 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021577 lt_cv_prog_compiler_c_o_F77=yes
21578 fi
21579 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021580 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021581 $rm conftest*
21582 # SGI C++ compiler will create directory out/ii_files/ for
21583 # template instantiation
21584 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21585 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021586 cd ..
21587 rmdir conftest
21588 $rm conftest*
21589
21590fi
Reid Spencera773bd52006-08-04 18:18:08 +000021591{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21592echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021593
21594
21595hard_links="nottested"
21596if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21597 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021598 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21599echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021600 hard_links=yes
21601 $rm conftest*
21602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21603 touch conftest.a
21604 ln conftest.a conftest.b 2>&5 || hard_links=no
21605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021606 { echo "$as_me:$LINENO: result: $hard_links" >&5
21607echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021608 if test "$hard_links" = no; then
21609 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21610echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21611 need_locks=warn
21612 fi
21613else
21614 need_locks=no
21615fi
21616
Reid Spencera773bd52006-08-04 18:18:08 +000021617{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21618echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021619
21620 runpath_var=
21621 allow_undefined_flag_F77=
21622 enable_shared_with_static_runtimes_F77=no
21623 archive_cmds_F77=
21624 archive_expsym_cmds_F77=
21625 old_archive_From_new_cmds_F77=
21626 old_archive_from_expsyms_cmds_F77=
21627 export_dynamic_flag_spec_F77=
21628 whole_archive_flag_spec_F77=
21629 thread_safe_flag_spec_F77=
21630 hardcode_libdir_flag_spec_F77=
21631 hardcode_libdir_flag_spec_ld_F77=
21632 hardcode_libdir_separator_F77=
21633 hardcode_direct_F77=no
21634 hardcode_minus_L_F77=no
21635 hardcode_shlibpath_var_F77=unsupported
21636 link_all_deplibs_F77=unknown
21637 hardcode_automatic_F77=no
21638 module_cmds_F77=
21639 module_expsym_cmds_F77=
21640 always_export_symbols_F77=no
21641 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21642 # include_expsyms should be a list of space-separated symbols to be *always*
21643 # included in the symbol list
21644 include_expsyms_F77=
21645 # exclude_expsyms can be an extended regexp of symbols to exclude
21646 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21647 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21648 # as well as any symbol that contains `d'.
21649 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21650 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21651 # platforms (ab)use it in PIC code, but their linkers get confused if
21652 # the symbol is explicitly referenced. Since portable code cannot
21653 # rely on this symbol name, it's probably fine to never include it in
21654 # preloaded symbol tables.
21655 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021656 # Just being paranoid about ensuring that cc_basename is set.
21657 for cc_temp in $compiler""; do
21658 case $cc_temp in
21659 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21660 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21661 \-*) ;;
21662 *) break;;
21663 esac
21664done
21665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021666
21667 case $host_os in
21668 cygwin* | mingw* | pw32*)
21669 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21670 # When not using gcc, we currently assume that we are using
21671 # Microsoft Visual C++.
21672 if test "$GCC" != yes; then
21673 with_gnu_ld=no
21674 fi
21675 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021676 interix*)
21677 # we just hope/assume this is gcc and not c89 (= MSVC++)
21678 with_gnu_ld=yes
21679 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021680 openbsd*)
21681 with_gnu_ld=no
21682 ;;
21683 esac
21684
21685 ld_shlibs_F77=yes
21686 if test "$with_gnu_ld" = yes; then
21687 # If archive_cmds runs LD, not CC, wlarc should be empty
21688 wlarc='${wl}'
21689
Reid Spencera773bd52006-08-04 18:18:08 +000021690 # Set some defaults for GNU ld with shared library support. These
21691 # are reset later if shared libraries are not supported. Putting them
21692 # here allows them to be overridden if necessary.
21693 runpath_var=LD_RUN_PATH
21694 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21695 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21696 # ancient GNU ld didn't support --whole-archive et. al.
21697 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21698 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21699 else
21700 whole_archive_flag_spec_F77=
21701 fi
21702 supports_anon_versioning=no
21703 case `$LD -v 2>/dev/null` in
21704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21707 *\ 2.11.*) ;; # other 2.11 versions
21708 *) supports_anon_versioning=yes ;;
21709 esac
21710
John Criswell47fdd832003-07-14 16:52:07 +000021711 # See if GNU ld supports shared libraries.
21712 case $host_os in
21713 aix3* | aix4* | aix5*)
21714 # On AIX/PPC, the GNU linker is very broken
21715 if test "$host_cpu" != ia64; then
21716 ld_shlibs_F77=no
21717 cat <<EOF 1>&2
21718
21719*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21720*** to be unable to reliably create shared libraries on AIX.
21721*** Therefore, libtool is disabling shared libraries support. If you
21722*** really care for shared libraries, you may want to modify your PATH
21723*** so that a non-GNU linker is found, and then restart.
21724
21725EOF
21726 fi
21727 ;;
21728
21729 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021730 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 +000021731 hardcode_libdir_flag_spec_F77='-L$libdir'
21732 hardcode_minus_L_F77=yes
21733
21734 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21735 # that the semantics of dynamic libraries on AmigaOS, at least up
21736 # to version 4, is to share data among multiple programs linked
21737 # with the same dynamic library. Since this doesn't match the
21738 # behavior of shared libraries on other platforms, we can't use
21739 # them.
21740 ld_shlibs_F77=no
21741 ;;
21742
21743 beos*)
21744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21745 allow_undefined_flag_F77=unsupported
21746 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21747 # support --undefined. This deserves some investigation. FIXME
21748 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21749 else
21750 ld_shlibs_F77=no
21751 fi
21752 ;;
21753
21754 cygwin* | mingw* | pw32*)
21755 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21756 # as there is no search path for DLLs.
21757 hardcode_libdir_flag_spec_F77='-L$libdir'
21758 allow_undefined_flag_F77=unsupported
21759 always_export_symbols_F77=no
21760 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021761 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 +000021762
21763 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021764 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 +000021765 # If the export-symbols file already is a .def file (1st line
21766 # is EXPORTS), use it as is; otherwise, prepend...
21767 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21768 cp $export_symbols $output_objdir/$soname.def;
21769 else
21770 echo EXPORTS > $output_objdir/$soname.def;
21771 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021772 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021773 $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 +000021774 else
Reid Spencera773bd52006-08-04 18:18:08 +000021775 ld_shlibs_F77=no
21776 fi
21777 ;;
21778
21779 interix3*)
21780 hardcode_direct_F77=no
21781 hardcode_shlibpath_var_F77=no
21782 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21783 export_dynamic_flag_spec_F77='${wl}-E'
21784 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21785 # Instead, shared libraries are loaded at an image base (0x10000000 by
21786 # default) and relocated if they conflict, which is a slow very memory
21787 # consuming and fragmenting process. To avoid this, we pick a random,
21788 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21789 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21790 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'
21791 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'
21792 ;;
21793
21794 linux*)
21795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21796 tmp_addflag=
21797 case $cc_basename,$host_cpu in
21798 pgcc*) # Portland Group C compiler
21799 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'
21800 tmp_addflag=' $pic_flag'
21801 ;;
21802 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21803 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'
21804 tmp_addflag=' $pic_flag -Mnomain' ;;
21805 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21806 tmp_addflag=' -i_dynamic' ;;
21807 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21808 tmp_addflag=' -i_dynamic -nofor_main' ;;
21809 ifc* | ifort*) # Intel Fortran compiler
21810 tmp_addflag=' -nofor_main' ;;
21811 esac
21812 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21813
21814 if test $supports_anon_versioning = yes; then
21815 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21816 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21817 $echo "local: *; };" >> $output_objdir/$libname.ver~
21818 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21819 fi
21820 else
21821 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021822 fi
21823 ;;
21824
21825 netbsd*)
21826 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21827 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21828 wlarc=
21829 else
21830 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21831 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21832 fi
21833 ;;
21834
Reid Spencera773bd52006-08-04 18:18:08 +000021835 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021836 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21837 ld_shlibs_F77=no
21838 cat <<EOF 1>&2
21839
21840*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21841*** create shared libraries on Solaris systems. Therefore, libtool
21842*** is disabling shared libraries support. We urge you to upgrade GNU
21843*** binutils to release 2.9.1 or newer. Another option is to modify
21844*** your PATH or compiler configuration so that the native linker is
21845*** used, and then restart.
21846
21847EOF
21848 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21849 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21850 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21851 else
21852 ld_shlibs_F77=no
21853 fi
21854 ;;
21855
Reid Spencera773bd52006-08-04 18:18:08 +000021856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21857 case `$LD -v 2>&1` in
21858 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21859 ld_shlibs_F77=no
21860 cat <<_LT_EOF 1>&2
21861
21862*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21863*** reliably create shared libraries on SCO systems. Therefore, libtool
21864*** is disabling shared libraries support. We urge you to upgrade GNU
21865*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21866*** your PATH or compiler configuration so that the native linker is
21867*** used, and then restart.
21868
21869_LT_EOF
21870 ;;
21871 *)
21872 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21873 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21874 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21875 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21876 else
21877 ld_shlibs_F77=no
21878 fi
21879 ;;
21880 esac
21881 ;;
21882
John Criswell47fdd832003-07-14 16:52:07 +000021883 sunos4*)
21884 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21885 wlarc=
21886 hardcode_direct_F77=yes
21887 hardcode_shlibpath_var_F77=no
21888 ;;
21889
21890 *)
21891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21892 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21893 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21894 else
21895 ld_shlibs_F77=no
21896 fi
21897 ;;
21898 esac
21899
Reid Spencera773bd52006-08-04 18:18:08 +000021900 if test "$ld_shlibs_F77" = no; then
21901 runpath_var=
21902 hardcode_libdir_flag_spec_F77=
21903 export_dynamic_flag_spec_F77=
21904 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021905 fi
21906 else
21907 # PORTME fill in a description of your system's linker (not GNU ld)
21908 case $host_os in
21909 aix3*)
21910 allow_undefined_flag_F77=unsupported
21911 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021912 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 +000021913 # Note: this linker hardcodes the directories in LIBPATH if there
21914 # are no directories specified by -L.
21915 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021916 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021917 # Neither direct hardcoding nor static linking is supported with a
21918 # broken collect2.
21919 hardcode_direct_F77=unsupported
21920 fi
21921 ;;
21922
21923 aix4* | aix5*)
21924 if test "$host_cpu" = ia64; then
21925 # On IA64, the linker does run time linking by default, so we don't
21926 # have to do anything special.
21927 aix_use_runtimelinking=no
21928 exp_sym_flag='-Bexport'
21929 no_entry_flag=""
21930 else
21931 # If we're using GNU nm, then we don't want the "-C" option.
21932 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21933 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21934 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'
21935 else
21936 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'
21937 fi
21938 aix_use_runtimelinking=no
21939
21940 # Test if we are trying to use run time linking or normal
21941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21942 # need to do runtime linking.
21943 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21944 for ld_flag in $LDFLAGS; do
21945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21946 aix_use_runtimelinking=yes
21947 break
21948 fi
21949 done
Reid Spencera773bd52006-08-04 18:18:08 +000021950 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021951 esac
21952
21953 exp_sym_flag='-bexport'
21954 no_entry_flag='-bnoentry'
21955 fi
21956
21957 # When large executables or shared objects are built, AIX ld can
21958 # have problems creating the table of contents. If linking a library
21959 # or program results in "error TOC overflow" add -mminimal-toc to
21960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21962
21963 archive_cmds_F77=''
21964 hardcode_direct_F77=yes
21965 hardcode_libdir_separator_F77=':'
21966 link_all_deplibs_F77=yes
21967
21968 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021969 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021970 # We only want to do this on AIX 4.2 and lower, the check
21971 # below for broken collect2 doesn't work under 4.3+
21972 collect2name=`${CC} -print-prog-name=collect2`
21973 if test -f "$collect2name" && \
21974 strings "$collect2name" | grep resolve_lib_name >/dev/null
21975 then
21976 # We have reworked collect2
21977 hardcode_direct_F77=yes
21978 else
21979 # We have old collect2
21980 hardcode_direct_F77=unsupported
21981 # It fails to find uninstalled libraries when the uninstalled
21982 # path is not listed in the libpath. Setting hardcode_minus_L
21983 # to unsupported forces relinking
21984 hardcode_minus_L_F77=yes
21985 hardcode_libdir_flag_spec_F77='-L$libdir'
21986 hardcode_libdir_separator_F77=
21987 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021988 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021989 esac
21990 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021991 if test "$aix_use_runtimelinking" = yes; then
21992 shared_flag="$shared_flag "'${wl}-G'
21993 fi
John Criswell47fdd832003-07-14 16:52:07 +000021994 else
21995 # not using gcc
21996 if test "$host_cpu" = ia64; then
21997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21998 # chokes on -Wl,-G. The following line is correct:
21999 shared_flag='-G'
22000 else
Reid Spencera773bd52006-08-04 18:18:08 +000022001 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022002 shared_flag='${wl}-G'
22003 else
22004 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022005 fi
John Criswell47fdd832003-07-14 16:52:07 +000022006 fi
22007 fi
22008
22009 # It seems that -bexpall does not export symbols beginning with
22010 # underscore (_), so it is better to generate a list of symbols to export.
22011 always_export_symbols_F77=yes
22012 if test "$aix_use_runtimelinking" = yes; then
22013 # Warning - without using the other runtime loading flags (-brtl),
22014 # -berok will link without error, but may produce a broken library.
22015 allow_undefined_flag_F77='-berok'
22016 # Determine the default libpath from the value encoded in an empty executable.
22017 cat >conftest.$ac_ext <<_ACEOF
22018 program main
22019
22020 end
22021_ACEOF
22022rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022023if { (ac_try="$ac_link"
22024case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027esac
22028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022030 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022035 (exit $ac_status); } &&
22036 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22040esac
22041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest$ac_exeext'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022056
22057aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22058}'`
22059# Check for a 64-bit object if we didn't find anything.
22060if 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; }
22061}'`; fi
22062else
22063 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022064sed 's/^/| /' conftest.$ac_ext >&5
22065
Reid Spencera773bd52006-08-04 18:18:08 +000022066
John Criswell47fdd832003-07-14 16:52:07 +000022067fi
Reid Spencera773bd52006-08-04 18:18:08 +000022068
Tanya Lattnercf067672008-01-17 05:57:22 +000022069rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022070 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22072
22073 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022074 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 +000022075 else
22076 if test "$host_cpu" = ia64; then
22077 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22078 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022079 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 +000022080 else
22081 # Determine the default libpath from the value encoded in an empty executable.
22082 cat >conftest.$ac_ext <<_ACEOF
22083 program main
22084
22085 end
22086_ACEOF
22087rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022088if { (ac_try="$ac_link"
22089case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092esac
22093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022096 grep -v '^ *+' conftest.er1 >conftest.err
22097 rm -f conftest.er1
22098 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022100 (exit $ac_status); } &&
22101 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22102 { (case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22105esac
22106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_try") 2>&5
22108 ac_status=$?
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; } &&
22111 { ac_try='test -s conftest$ac_exeext'
22112 { (case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22115esac
22116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_try") 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022121
22122aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22123}'`
22124# Check for a 64-bit object if we didn't find anything.
22125if 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; }
22126}'`; fi
22127else
22128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022129sed 's/^/| /' conftest.$ac_ext >&5
22130
Reid Spencera773bd52006-08-04 18:18:08 +000022131
John Criswell47fdd832003-07-14 16:52:07 +000022132fi
Reid Spencera773bd52006-08-04 18:18:08 +000022133
Tanya Lattnercf067672008-01-17 05:57:22 +000022134rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022135 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22137
22138 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22139 # Warning - without using the other run time loading flags,
22140 # -berok will link without error, but may produce a broken library.
22141 no_undefined_flag_F77=' ${wl}-bernotok'
22142 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022143 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022144 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022145 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022146 # This is similar to how AIX traditionally builds its shared libraries.
22147 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 +000022148 fi
22149 fi
22150 ;;
22151
22152 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022153 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 +000022154 hardcode_libdir_flag_spec_F77='-L$libdir'
22155 hardcode_minus_L_F77=yes
22156 # see comment about different semantics on the GNU ld section
22157 ld_shlibs_F77=no
22158 ;;
22159
Reid Spencer2706f8c2004-09-19 23:53:36 +000022160 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022161 export_dynamic_flag_spec_F77=-rdynamic
22162 ;;
22163
22164 cygwin* | mingw* | pw32*)
22165 # When not using gcc, we currently assume that we are using
22166 # Microsoft Visual C++.
22167 # hardcode_libdir_flag_spec is actually meaningless, as there is
22168 # no search path for DLLs.
22169 hardcode_libdir_flag_spec_F77=' '
22170 allow_undefined_flag_F77=unsupported
22171 # Tell ltmain to make .lib files, not .a files.
22172 libext=lib
22173 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022174 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022175 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022176 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 +000022177 # The linker will automatically build a .lib file if we build a DLL.
22178 old_archive_From_new_cmds_F77='true'
22179 # FIXME: Should let the user specify the lib program.
22180 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022181 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022182 enable_shared_with_static_runtimes_F77=yes
22183 ;;
22184
22185 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022186 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022187 rhapsody* | darwin1.[012])
22188 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22189 ;;
22190 *) # Darwin 1.3 on
22191 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22192 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22193 else
22194 case ${MACOSX_DEPLOYMENT_TARGET} in
22195 10.[012])
22196 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22197 ;;
22198 10.*)
22199 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22200 ;;
22201 esac
22202 fi
22203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022204 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022205 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022206 hardcode_direct_F77=no
22207 hardcode_automatic_F77=yes
22208 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022209 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022210 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211 if test "$GCC" = yes ; then
22212 output_verbose_link_cmd='echo'
22213 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22214 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022215 # 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 +000022216 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}'
22217 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 +000022218 else
Reid Spencera773bd52006-08-04 18:18:08 +000022219 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022220 xlc*)
22221 output_verbose_link_cmd='echo'
22222 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22223 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022224 # 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 +000022225 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}'
22226 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 +000022227 ;;
22228 *)
22229 ld_shlibs_F77=no
22230 ;;
22231 esac
John Criswell47fdd832003-07-14 16:52:07 +000022232 fi
22233 ;;
22234
22235 dgux*)
22236 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22237 hardcode_libdir_flag_spec_F77='-L$libdir'
22238 hardcode_shlibpath_var_F77=no
22239 ;;
22240
22241 freebsd1*)
22242 ld_shlibs_F77=no
22243 ;;
22244
22245 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22246 # support. Future versions do this automatically, but an explicit c++rt0.o
22247 # does not break anything, and helps significantly (at the cost of a little
22248 # extra space).
22249 freebsd2.2*)
22250 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22251 hardcode_libdir_flag_spec_F77='-R$libdir'
22252 hardcode_direct_F77=yes
22253 hardcode_shlibpath_var_F77=no
22254 ;;
22255
22256 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22257 freebsd2*)
22258 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22259 hardcode_direct_F77=yes
22260 hardcode_minus_L_F77=yes
22261 hardcode_shlibpath_var_F77=no
22262 ;;
22263
22264 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022265 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022266 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22267 hardcode_libdir_flag_spec_F77='-R$libdir'
22268 hardcode_direct_F77=yes
22269 hardcode_shlibpath_var_F77=no
22270 ;;
22271
22272 hpux9*)
22273 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022274 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 +000022275 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022276 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 +000022277 fi
22278 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22279 hardcode_libdir_separator_F77=:
22280 hardcode_direct_F77=yes
22281
22282 # hardcode_minus_L: Not really in the search PATH,
22283 # but as the default location of the library.
22284 hardcode_minus_L_F77=yes
22285 export_dynamic_flag_spec_F77='${wl}-E'
22286 ;;
22287
Reid Spencera773bd52006-08-04 18:18:08 +000022288 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022289 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022290 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22291 else
22292 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22293 fi
22294 if test "$with_gnu_ld" = no; then
22295 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22297
22298 hardcode_direct_F77=yes
22299 export_dynamic_flag_spec_F77='${wl}-E'
22300
22301 # hardcode_minus_L: Not really in the search PATH,
22302 # but as the default location of the library.
22303 hardcode_minus_L_F77=yes
22304 fi
22305 ;;
22306
22307 hpux11*)
22308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22309 case $host_cpu in
22310 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022311 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22312 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022313 ia64*)
22314 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22315 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022316 *)
22317 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22318 ;;
22319 esac
22320 else
Reid Spencera773bd52006-08-04 18:18:08 +000022321 case $host_cpu in
22322 hppa*64*)
22323 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22324 ;;
22325 ia64*)
22326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022327 ;;
22328 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022329 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 +000022330 ;;
22331 esac
22332 fi
22333 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022334 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22335 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022336
Reid Spencera773bd52006-08-04 18:18:08 +000022337 case $host_cpu in
22338 hppa*64*|ia64*)
22339 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22340 hardcode_direct_F77=no
22341 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022342 ;;
22343 *)
John Criswell47fdd832003-07-14 16:52:07 +000022344 hardcode_direct_F77=yes
22345 export_dynamic_flag_spec_F77='${wl}-E'
22346
22347 # hardcode_minus_L: Not really in the search PATH,
22348 # but as the default location of the library.
22349 hardcode_minus_L_F77=yes
22350 ;;
22351 esac
22352 fi
22353 ;;
22354
22355 irix5* | irix6* | nonstopux*)
22356 if test "$GCC" = yes; then
22357 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'
22358 else
22359 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'
22360 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22361 fi
22362 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22363 hardcode_libdir_separator_F77=:
22364 link_all_deplibs_F77=yes
22365 ;;
22366
22367 netbsd*)
22368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22369 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22370 else
22371 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22372 fi
22373 hardcode_libdir_flag_spec_F77='-R$libdir'
22374 hardcode_direct_F77=yes
22375 hardcode_shlibpath_var_F77=no
22376 ;;
22377
22378 newsos6)
22379 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22380 hardcode_direct_F77=yes
22381 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22382 hardcode_libdir_separator_F77=:
22383 hardcode_shlibpath_var_F77=no
22384 ;;
22385
22386 openbsd*)
22387 hardcode_direct_F77=yes
22388 hardcode_shlibpath_var_F77=no
22389 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22390 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022391 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 +000022392 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22393 export_dynamic_flag_spec_F77='${wl}-E'
22394 else
22395 case $host_os in
22396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22397 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22398 hardcode_libdir_flag_spec_F77='-R$libdir'
22399 ;;
22400 *)
22401 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22402 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22403 ;;
22404 esac
22405 fi
22406 ;;
22407
22408 os2*)
22409 hardcode_libdir_flag_spec_F77='-L$libdir'
22410 hardcode_minus_L_F77=yes
22411 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022412 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 +000022413 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22414 ;;
22415
22416 osf3*)
22417 if test "$GCC" = yes; then
22418 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22419 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'
22420 else
22421 allow_undefined_flag_F77=' -expect_unresolved \*'
22422 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'
22423 fi
22424 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22425 hardcode_libdir_separator_F77=:
22426 ;;
22427
22428 osf4* | osf5*) # as osf3* with the addition of -msym flag
22429 if test "$GCC" = yes; then
22430 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22431 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'
22432 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22433 else
22434 allow_undefined_flag_F77=' -expect_unresolved \*'
22435 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 +000022436 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 +000022437 $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 +000022438
John Criswell47fdd832003-07-14 16:52:07 +000022439 # Both c and cxx compiler support -rpath directly
22440 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22441 fi
22442 hardcode_libdir_separator_F77=:
22443 ;;
22444
John Criswell47fdd832003-07-14 16:52:07 +000022445 solaris*)
22446 no_undefined_flag_F77=' -z text'
22447 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022448 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022449 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022450 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22451 $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 +000022452 else
Reid Spencera773bd52006-08-04 18:18:08 +000022453 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022454 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022455 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22456 $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 +000022457 fi
22458 hardcode_libdir_flag_spec_F77='-R$libdir'
22459 hardcode_shlibpath_var_F77=no
22460 case $host_os in
22461 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022462 *)
22463 # The compiler driver will combine linker options so we
22464 # cannot just pass the convience library names through
22465 # without $wl, iff we do not link with $LD.
22466 # Luckily, gcc supports the same syntax we need for Sun Studio.
22467 # Supported since Solaris 2.6 (maybe 2.5.1?)
22468 case $wlarc in
22469 '')
22470 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22471 *)
22472 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' ;;
22473 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022474 esac
22475 link_all_deplibs_F77=yes
22476 ;;
22477
22478 sunos4*)
22479 if test "x$host_vendor" = xsequent; then
22480 # Use $CC to link under sequent, because it throws in some extra .o
22481 # files that make .init and .fini sections work.
22482 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22483 else
22484 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22485 fi
22486 hardcode_libdir_flag_spec_F77='-L$libdir'
22487 hardcode_direct_F77=yes
22488 hardcode_minus_L_F77=yes
22489 hardcode_shlibpath_var_F77=no
22490 ;;
22491
22492 sysv4)
22493 case $host_vendor in
22494 sni)
22495 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22496 hardcode_direct_F77=yes # is this really true???
22497 ;;
22498 siemens)
22499 ## LD is ld it makes a PLAMLIB
22500 ## CC just makes a GrossModule.
22501 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22502 reload_cmds_F77='$CC -r -o $output$reload_objs'
22503 hardcode_direct_F77=no
22504 ;;
22505 motorola)
22506 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22507 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22508 ;;
22509 esac
22510 runpath_var='LD_RUN_PATH'
22511 hardcode_shlibpath_var_F77=no
22512 ;;
22513
22514 sysv4.3*)
22515 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22516 hardcode_shlibpath_var_F77=no
22517 export_dynamic_flag_spec_F77='-Bexport'
22518 ;;
22519
22520 sysv4*MP*)
22521 if test -d /usr/nec; then
22522 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22523 hardcode_shlibpath_var_F77=no
22524 runpath_var=LD_RUN_PATH
22525 hardcode_runpath_var=yes
22526 ld_shlibs_F77=yes
22527 fi
22528 ;;
22529
Reid Spencera773bd52006-08-04 18:18:08 +000022530 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22531 no_undefined_flag_F77='${wl}-z,text'
22532 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022533 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022534 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022535
John Criswell47fdd832003-07-14 16:52:07 +000022536 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022537 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22538 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 +000022539 else
Reid Spencera773bd52006-08-04 18:18:08 +000022540 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 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 +000022542 fi
John Criswell47fdd832003-07-14 16:52:07 +000022543 ;;
22544
Reid Spencera773bd52006-08-04 18:18:08 +000022545 sysv5* | sco3.2v5* | sco5v6*)
22546 # Note: We can NOT use -z defs as we might desire, because we do not
22547 # link with -lc, and that would cause any symbols used from libc to
22548 # always be unresolved, which means just about no library would
22549 # ever link correctly. If we're not using GNU ld we use -z text
22550 # though, which does catch some bad symbols but isn't as heavy-handed
22551 # as -z defs.
22552 no_undefined_flag_F77='${wl}-z,text'
22553 allow_undefined_flag_F77='${wl}-z,nodefs'
22554 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022555 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022556 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22557 hardcode_libdir_separator_F77=':'
22558 link_all_deplibs_F77=yes
22559 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022560 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022561
22562 if test "$GCC" = yes; then
22563 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22564 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 else
22566 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568 fi
John Criswell47fdd832003-07-14 16:52:07 +000022569 ;;
22570
22571 uts4*)
22572 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22573 hardcode_libdir_flag_spec_F77='-L$libdir'
22574 hardcode_shlibpath_var_F77=no
22575 ;;
22576
22577 *)
22578 ld_shlibs_F77=no
22579 ;;
22580 esac
22581 fi
22582
Reid Spencera773bd52006-08-04 18:18:08 +000022583{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22584echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022585test "$ld_shlibs_F77" = no && can_build_shared=no
22586
John Criswell47fdd832003-07-14 16:52:07 +000022587#
22588# Do we need to explicitly link libc?
22589#
22590case "x$archive_cmds_need_lc_F77" in
22591x|xyes)
22592 # Assume -lc should be added
22593 archive_cmds_need_lc_F77=yes
22594
22595 if test "$enable_shared" = yes && test "$GCC" = yes; then
22596 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022597 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022598 # FIXME: we may have to deal with multi-command sequences.
22599 ;;
22600 '$CC '*)
22601 # Test whether the compiler implicitly links with -lc since on some
22602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22603 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022604 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22605echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022606 $rm conftest*
22607 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22608
22609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } 2>conftest.err; then
22614 soname=conftest
22615 lib=conftest
22616 libobjs=conftest.$ac_objext
22617 deplibs=
22618 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022619 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022620 compiler_flags=-v
22621 linker_flags=-v
22622 verstring=
22623 output_objdir=.
22624 libname=conftest
22625 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22626 allow_undefined_flag_F77=
22627 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22628 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }
22632 then
22633 archive_cmds_need_lc_F77=no
22634 else
22635 archive_cmds_need_lc_F77=yes
22636 fi
22637 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22638 else
22639 cat conftest.err 1>&5
22640 fi
22641 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022642 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22643echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022644 ;;
22645 esac
22646 fi
22647 ;;
22648esac
22649
Reid Spencera773bd52006-08-04 18:18:08 +000022650{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22651echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022652library_names_spec=
22653libname_spec='lib$name'
22654soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022655shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022656postinstall_cmds=
22657postuninstall_cmds=
22658finish_cmds=
22659finish_eval=
22660shlibpath_var=
22661shlibpath_overrides_runpath=unknown
22662version_type=none
22663dynamic_linker="$host_os ld.so"
22664sys_lib_dlsearch_path_spec="/lib /usr/lib"
22665if test "$GCC" = yes; then
22666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22667 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22668 # if the path contains ";" then we assume it to be the separator
22669 # otherwise default to the standard path separator (i.e. ":") - it is
22670 # assumed that no part of a normal pathname contains ";" but that should
22671 # okay in the real world where ";" in dirpaths is itself problematic.
22672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22673 else
22674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22675 fi
22676else
22677 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22678fi
22679need_lib_prefix=unknown
22680hardcode_into_libs=no
22681
22682# when you set need_version to no, make sure it does not cause -set_version
22683# flags to be left without arguments
22684need_version=unknown
22685
22686case $host_os in
22687aix3*)
22688 version_type=linux
22689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22690 shlibpath_var=LIBPATH
22691
22692 # AIX 3 has no versioning support, so we append a major version to the name.
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 ;;
22695
22696aix4* | aix5*)
22697 version_type=linux
22698 need_lib_prefix=no
22699 need_version=no
22700 hardcode_into_libs=yes
22701 if test "$host_cpu" = ia64; then
22702 # AIX 5 supports IA64
22703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22704 shlibpath_var=LD_LIBRARY_PATH
22705 else
22706 # With GCC up to 2.95.x, collect2 would create an import file
22707 # for dependence libraries. The import file would start with
22708 # the line `#! .'. This would cause the generated library to
22709 # depend on `.', always an invalid library. This was fixed in
22710 # development snapshots of GCC prior to 3.0.
22711 case $host_os in
22712 aix4 | aix4.[01] | aix4.[01].*)
22713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22714 echo ' yes '
22715 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22716 :
22717 else
22718 can_build_shared=no
22719 fi
22720 ;;
22721 esac
22722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22723 # soname into executable. Probably we can add versioning support to
22724 # collect2, so additional links can be useful in future.
22725 if test "$aix_use_runtimelinking" = yes; then
22726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22727 # instead of lib<name>.a to let people know that these are not
22728 # typical AIX shared libraries.
22729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22730 else
22731 # We preserve .a as extension for shared libraries through AIX4.2
22732 # and later when we are not doing run time linking.
22733 library_names_spec='${libname}${release}.a $libname.a'
22734 soname_spec='${libname}${release}${shared_ext}$major'
22735 fi
22736 shlibpath_var=LIBPATH
22737 fi
22738 ;;
22739
22740amigaos*)
22741 library_names_spec='$libname.ixlibrary $libname.a'
22742 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 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 +000022744 ;;
22745
22746beos*)
22747 library_names_spec='${libname}${shared_ext}'
22748 dynamic_linker="$host_os ld.so"
22749 shlibpath_var=LIBRARY_PATH
22750 ;;
22751
Reid Spencer2706f8c2004-09-19 23:53:36 +000022752bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022753 version_type=linux
22754 need_version=no
22755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22756 soname_spec='${libname}${release}${shared_ext}$major'
22757 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22760 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22761 # the default ld.so.conf also contains /usr/contrib/lib and
22762 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22763 # libtool to hard-code these into programs
22764 ;;
22765
22766cygwin* | mingw* | pw32*)
22767 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022768 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022769 need_version=no
22770 need_lib_prefix=no
22771
22772 case $GCC,$host_os in
22773 yes,cygwin* | yes,mingw* | yes,pw32*)
22774 library_names_spec='$libname.dll.a'
22775 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022776 postinstall_cmds='base_file=`basename \${file}`~
22777 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22778 dldir=$destdir/`dirname \$dlpath`~
22779 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022780 $install_prog $dir/$dlname \$dldir/$dlname~
22781 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022782 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22783 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022784 $rm \$dlpath'
22785 shlibpath_overrides_runpath=yes
22786
22787 case $host_os in
22788 cygwin*)
22789 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22790 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 +000022791 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022792 ;;
22793 mingw*)
22794 # MinGW DLLs use traditional 'lib' prefix
22795 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22796 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22797 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22798 # It is most probably a Windows format PATH printed by
22799 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22800 # path with ; separators, and with drive letters. We can handle the
22801 # drive letters (cygwin fileutils understands them), so leave them,
22802 # especially as we might pass files found there to a mingw objdump,
22803 # which wouldn't understand a cygwinified path. Ahh.
22804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22805 else
22806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22807 fi
22808 ;;
22809 pw32*)
22810 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022811 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 +000022812 ;;
22813 esac
22814 ;;
22815
22816 *)
22817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22818 ;;
22819 esac
22820 dynamic_linker='Win32 ld.exe'
22821 # FIXME: first we should search . and the directory the executable is in
22822 shlibpath_var=PATH
22823 ;;
22824
22825darwin* | rhapsody*)
22826 dynamic_linker="$host_os dyld"
22827 version_type=darwin
22828 need_lib_prefix=no
22829 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022831 soname_spec='${libname}${release}${major}$shared_ext'
22832 shlibpath_overrides_runpath=yes
22833 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022834 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022836 if test "$GCC" = yes; then
22837 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"`
22838 else
22839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022840 fi
22841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22842 ;;
22843
22844dgux*)
22845 version_type=linux
22846 need_lib_prefix=no
22847 need_version=no
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 ;;
22852
22853freebsd1*)
22854 dynamic_linker=no
22855 ;;
22856
Reid Spencer2706f8c2004-09-19 23:53:36 +000022857kfreebsd*-gnu)
22858 version_type=linux
22859 need_lib_prefix=no
22860 need_version=no
22861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22862 soname_spec='${libname}${release}${shared_ext}$major'
22863 shlibpath_var=LD_LIBRARY_PATH
22864 shlibpath_overrides_runpath=no
22865 hardcode_into_libs=yes
22866 dynamic_linker='GNU ld.so'
22867 ;;
22868
Reid Spencera773bd52006-08-04 18:18:08 +000022869freebsd* | dragonfly*)
22870 # DragonFly does not have aout. When/if they implement a new
22871 # versioning mechanism, adjust this.
22872 if test -x /usr/bin/objformat; then
22873 objformat=`/usr/bin/objformat`
22874 else
22875 case $host_os in
22876 freebsd[123]*) objformat=aout ;;
22877 *) objformat=elf ;;
22878 esac
22879 fi
John Criswell47fdd832003-07-14 16:52:07 +000022880 version_type=freebsd-$objformat
22881 case $version_type in
22882 freebsd-elf*)
22883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22884 need_version=no
22885 need_lib_prefix=no
22886 ;;
22887 freebsd-*)
22888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22889 need_version=yes
22890 ;;
22891 esac
22892 shlibpath_var=LD_LIBRARY_PATH
22893 case $host_os in
22894 freebsd2*)
22895 shlibpath_overrides_runpath=yes
22896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022897 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022898 shlibpath_overrides_runpath=yes
22899 hardcode_into_libs=yes
22900 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022901 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22902 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022903 shlibpath_overrides_runpath=no
22904 hardcode_into_libs=yes
22905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022906 freebsd*) # from 4.6 on
22907 shlibpath_overrides_runpath=yes
22908 hardcode_into_libs=yes
22909 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022910 esac
22911 ;;
22912
22913gnu*)
22914 version_type=linux
22915 need_lib_prefix=no
22916 need_version=no
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 hardcode_into_libs=yes
22921 ;;
22922
22923hpux9* | hpux10* | hpux11*)
22924 # Give a soname corresponding to the major version so that dld.sl refuses to
22925 # link against other versions.
22926 version_type=sunos
22927 need_lib_prefix=no
22928 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022929 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022930 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022931 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022932 hardcode_into_libs=yes
22933 dynamic_linker="$host_os dld.so"
22934 shlibpath_var=LD_LIBRARY_PATH
22935 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22937 soname_spec='${libname}${release}${shared_ext}$major'
22938 if test "X$HPUX_IA64_MODE" = X32; then
22939 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22940 else
22941 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22942 fi
22943 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22944 ;;
22945 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022946 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022947 hardcode_into_libs=yes
22948 dynamic_linker="$host_os dld.sl"
22949 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22952 soname_spec='${libname}${release}${shared_ext}$major'
22953 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22955 ;;
22956 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022957 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022958 dynamic_linker="$host_os dld.sl"
22959 shlibpath_var=SHLIB_PATH
22960 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 soname_spec='${libname}${release}${shared_ext}$major'
22963 ;;
22964 esac
22965 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22966 postinstall_cmds='chmod 555 $lib'
22967 ;;
22968
Reid Spencera773bd52006-08-04 18:18:08 +000022969interix3*)
22970 version_type=linux
22971 need_lib_prefix=no
22972 need_version=no
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 shlibpath_overrides_runpath=no
22978 hardcode_into_libs=yes
22979 ;;
22980
John Criswell47fdd832003-07-14 16:52:07 +000022981irix5* | irix6* | nonstopux*)
22982 case $host_os in
22983 nonstopux*) version_type=nonstopux ;;
22984 *)
22985 if test "$lt_cv_prog_gnu_ld" = yes; then
22986 version_type=linux
22987 else
22988 version_type=irix
22989 fi ;;
22990 esac
22991 need_lib_prefix=no
22992 need_version=no
22993 soname_spec='${libname}${release}${shared_ext}$major'
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22995 case $host_os in
22996 irix5* | nonstopux*)
22997 libsuff= shlibsuff=
22998 ;;
22999 *)
23000 case $LD in # libtool.m4 will add one of these switches to LD
23001 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23002 libsuff= shlibsuff= libmagic=32-bit;;
23003 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23004 libsuff=32 shlibsuff=N32 libmagic=N32;;
23005 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23006 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23007 *) libsuff= shlibsuff= libmagic=never-match;;
23008 esac
23009 ;;
23010 esac
23011 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23012 shlibpath_overrides_runpath=no
23013 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23014 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23015 hardcode_into_libs=yes
23016 ;;
23017
23018# No shared lib support for Linux oldld, aout, or coff.
23019linux*oldld* | linux*aout* | linux*coff*)
23020 dynamic_linker=no
23021 ;;
23022
23023# This must be Linux ELF.
23024linux*)
23025 version_type=linux
23026 need_lib_prefix=no
23027 need_version=no
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23029 soname_spec='${libname}${release}${shared_ext}$major'
23030 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 shlibpath_overrides_runpath=no
23033 # This implies no fast_install, which is unacceptable.
23034 # Some rework will be needed to allow for fast_install
23035 # before this can be enabled.
23036 hardcode_into_libs=yes
23037
Reid Spencer2706f8c2004-09-19 23:53:36 +000023038 # Append ld.so.conf contents to the search path
23039 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023040 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 +000023041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23042 fi
23043
John Criswell47fdd832003-07-14 16:52:07 +000023044 # We used to test for /lib/ld.so.1 and disable shared libraries on
23045 # powerpc, because MkLinux only supported shared libraries with the
23046 # GNU dynamic linker. Since this was broken with cross compilers,
23047 # most powerpc-linux boxes support dynamic linking these days and
23048 # people can always --disable-shared, the test was removed, and we
23049 # assume the GNU/Linux dynamic linker is in use.
23050 dynamic_linker='GNU/Linux ld.so'
23051 ;;
23052
Reid Spencer2706f8c2004-09-19 23:53:36 +000023053knetbsd*-gnu)
23054 version_type=linux
23055 need_lib_prefix=no
23056 need_version=no
23057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23058 soname_spec='${libname}${release}${shared_ext}$major'
23059 shlibpath_var=LD_LIBRARY_PATH
23060 shlibpath_overrides_runpath=no
23061 hardcode_into_libs=yes
23062 dynamic_linker='GNU ld.so'
23063 ;;
23064
John Criswell47fdd832003-07-14 16:52:07 +000023065netbsd*)
23066 version_type=sunos
23067 need_lib_prefix=no
23068 need_version=no
23069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23072 dynamic_linker='NetBSD (a.out) ld.so'
23073 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023075 soname_spec='${libname}${release}${shared_ext}$major'
23076 dynamic_linker='NetBSD ld.elf_so'
23077 fi
23078 shlibpath_var=LD_LIBRARY_PATH
23079 shlibpath_overrides_runpath=yes
23080 hardcode_into_libs=yes
23081 ;;
23082
23083newsos6)
23084 version_type=linux
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 shlibpath_overrides_runpath=yes
23088 ;;
23089
Reid Spencer2706f8c2004-09-19 23:53:36 +000023090nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023091 version_type=linux
23092 need_lib_prefix=no
23093 need_version=no
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 soname_spec='${libname}${release}${shared_ext}$major'
23096 shlibpath_var=LD_LIBRARY_PATH
23097 shlibpath_overrides_runpath=yes
23098 ;;
23099
23100openbsd*)
23101 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023102 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023103 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023104 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23105 case $host_os in
23106 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23107 *) need_version=no ;;
23108 esac
John Criswell47fdd832003-07-14 16:52:07 +000023109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23111 shlibpath_var=LD_LIBRARY_PATH
23112 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23113 case $host_os in
23114 openbsd2.[89] | openbsd2.[89].*)
23115 shlibpath_overrides_runpath=no
23116 ;;
23117 *)
23118 shlibpath_overrides_runpath=yes
23119 ;;
23120 esac
23121 else
23122 shlibpath_overrides_runpath=yes
23123 fi
23124 ;;
23125
23126os2*)
23127 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023128 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023129 need_lib_prefix=no
23130 library_names_spec='$libname${shared_ext} $libname.a'
23131 dynamic_linker='OS/2 ld.exe'
23132 shlibpath_var=LIBPATH
23133 ;;
23134
23135osf3* | osf4* | osf5*)
23136 version_type=osf
23137 need_lib_prefix=no
23138 need_version=no
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23141 shlibpath_var=LD_LIBRARY_PATH
23142 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23143 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23144 ;;
23145
John Criswell47fdd832003-07-14 16:52:07 +000023146solaris*)
23147 version_type=linux
23148 need_lib_prefix=no
23149 need_version=no
23150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23151 soname_spec='${libname}${release}${shared_ext}$major'
23152 shlibpath_var=LD_LIBRARY_PATH
23153 shlibpath_overrides_runpath=yes
23154 hardcode_into_libs=yes
23155 # ldd complains unless libraries are executable
23156 postinstall_cmds='chmod +x $lib'
23157 ;;
23158
23159sunos4*)
23160 version_type=sunos
23161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23163 shlibpath_var=LD_LIBRARY_PATH
23164 shlibpath_overrides_runpath=yes
23165 if test "$with_gnu_ld" = yes; then
23166 need_lib_prefix=no
23167 fi
23168 need_version=yes
23169 ;;
23170
Reid Spencera773bd52006-08-04 18:18:08 +000023171sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023172 version_type=linux
23173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23174 soname_spec='${libname}${release}${shared_ext}$major'
23175 shlibpath_var=LD_LIBRARY_PATH
23176 case $host_vendor in
23177 sni)
23178 shlibpath_overrides_runpath=no
23179 need_lib_prefix=no
23180 export_dynamic_flag_spec='${wl}-Blargedynsym'
23181 runpath_var=LD_RUN_PATH
23182 ;;
23183 siemens)
23184 need_lib_prefix=no
23185 ;;
23186 motorola)
23187 need_lib_prefix=no
23188 need_version=no
23189 shlibpath_overrides_runpath=no
23190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23191 ;;
23192 esac
23193 ;;
23194
23195sysv4*MP*)
23196 if test -d /usr/nec ;then
23197 version_type=linux
23198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23199 soname_spec='$libname${shared_ext}.$major'
23200 shlibpath_var=LD_LIBRARY_PATH
23201 fi
23202 ;;
23203
Reid Spencera773bd52006-08-04 18:18:08 +000023204sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23205 version_type=freebsd-elf
23206 need_lib_prefix=no
23207 need_version=no
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23211 hardcode_into_libs=yes
23212 if test "$with_gnu_ld" = yes; then
23213 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23214 shlibpath_overrides_runpath=no
23215 else
23216 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23217 shlibpath_overrides_runpath=yes
23218 case $host_os in
23219 sco3.2v5*)
23220 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23221 ;;
23222 esac
23223 fi
23224 sys_lib_dlsearch_path_spec='/usr/lib'
23225 ;;
23226
John Criswell47fdd832003-07-14 16:52:07 +000023227uts4*)
23228 version_type=linux
23229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23230 soname_spec='${libname}${release}${shared_ext}$major'
23231 shlibpath_var=LD_LIBRARY_PATH
23232 ;;
23233
23234*)
23235 dynamic_linker=no
23236 ;;
23237esac
Reid Spencera773bd52006-08-04 18:18:08 +000023238{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23239echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023240test "$dynamic_linker" = no && can_build_shared=no
23241
Reid Spencera773bd52006-08-04 18:18:08 +000023242variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23243if test "$GCC" = yes; then
23244 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23245fi
23246
23247{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23248echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023249hardcode_action_F77=
23250if test -n "$hardcode_libdir_flag_spec_F77" || \
23251 test -n "$runpath_var_F77" || \
23252 test "X$hardcode_automatic_F77" = "Xyes" ; then
23253
23254 # We can hardcode non-existant directories.
23255 if test "$hardcode_direct_F77" != no &&
23256 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23257 # have to relink, otherwise we might link with an installed library
23258 # when we should be linking with a yet-to-be-installed one
23259 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23260 test "$hardcode_minus_L_F77" != no; then
23261 # Linking always hardcodes the temporary library directory.
23262 hardcode_action_F77=relink
23263 else
23264 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23265 hardcode_action_F77=immediate
23266 fi
23267else
23268 # We cannot hardcode anything, or else we can only hardcode existing
23269 # directories.
23270 hardcode_action_F77=unsupported
23271fi
Reid Spencera773bd52006-08-04 18:18:08 +000023272{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23273echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023274
23275if test "$hardcode_action_F77" = relink; then
23276 # Fast installation is not supported
23277 enable_fast_install=no
23278elif test "$shlibpath_overrides_runpath" = yes ||
23279 test "$enable_shared" = no; then
23280 # Fast installation is not necessary
23281 enable_fast_install=needless
23282fi
23283
John Criswell47fdd832003-07-14 16:52:07 +000023284
23285# The else clause should only fire when bootstrapping the
23286# libtool distribution, otherwise you forgot to ship ltmain.sh
23287# with your package, and you will get complaints that there are
23288# no rules to generate ltmain.sh.
23289if test -f "$ltmain"; then
23290 # See if we are running on zsh, and set the options which allow our commands through
23291 # without removal of \ escapes.
23292 if test -n "${ZSH_VERSION+set}" ; then
23293 setopt NO_GLOB_SUBST
23294 fi
23295 # Now quote all the things that may contain metacharacters while being
23296 # careful not to overquote the AC_SUBSTed values. We take copies of the
23297 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023298 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 +000023299 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23302 deplibs_check_method reload_flag reload_cmds need_locks \
23303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23304 lt_cv_sys_global_symbol_to_c_name_address \
23305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23306 old_postinstall_cmds old_postuninstall_cmds \
23307 compiler_F77 \
23308 CC_F77 \
23309 LD_F77 \
23310 lt_prog_compiler_wl_F77 \
23311 lt_prog_compiler_pic_F77 \
23312 lt_prog_compiler_static_F77 \
23313 lt_prog_compiler_no_builtin_flag_F77 \
23314 export_dynamic_flag_spec_F77 \
23315 thread_safe_flag_spec_F77 \
23316 whole_archive_flag_spec_F77 \
23317 enable_shared_with_static_runtimes_F77 \
23318 old_archive_cmds_F77 \
23319 old_archive_from_new_cmds_F77 \
23320 predep_objects_F77 \
23321 postdep_objects_F77 \
23322 predeps_F77 \
23323 postdeps_F77 \
23324 compiler_lib_search_path_F77 \
23325 archive_cmds_F77 \
23326 archive_expsym_cmds_F77 \
23327 postinstall_cmds_F77 \
23328 postuninstall_cmds_F77 \
23329 old_archive_from_expsyms_cmds_F77 \
23330 allow_undefined_flag_F77 \
23331 no_undefined_flag_F77 \
23332 export_symbols_cmds_F77 \
23333 hardcode_libdir_flag_spec_F77 \
23334 hardcode_libdir_flag_spec_ld_F77 \
23335 hardcode_libdir_separator_F77 \
23336 hardcode_automatic_F77 \
23337 module_cmds_F77 \
23338 module_expsym_cmds_F77 \
23339 lt_cv_prog_compiler_c_o_F77 \
23340 exclude_expsyms_F77 \
23341 include_expsyms_F77; do
23342
23343 case $var in
23344 old_archive_cmds_F77 | \
23345 old_archive_from_new_cmds_F77 | \
23346 archive_cmds_F77 | \
23347 archive_expsym_cmds_F77 | \
23348 module_cmds_F77 | \
23349 module_expsym_cmds_F77 | \
23350 old_archive_from_expsyms_cmds_F77 | \
23351 export_symbols_cmds_F77 | \
23352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23353 postinstall_cmds | postuninstall_cmds | \
23354 old_postinstall_cmds | old_postuninstall_cmds | \
23355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23356 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023357 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 +000023358 ;;
23359 *)
23360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23361 ;;
23362 esac
23363 done
23364
23365 case $lt_echo in
23366 *'\$0 --fallback-echo"')
23367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23368 ;;
23369 esac
23370
23371cfgfile="$ofile"
23372
23373 cat <<__EOF__ >> "$cfgfile"
23374# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23375
23376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23377
23378# Shell to use when invoking shell scripts.
23379SHELL=$lt_SHELL
23380
23381# Whether or not to build shared libraries.
23382build_libtool_libs=$enable_shared
23383
23384# Whether or not to build static libraries.
23385build_old_libs=$enable_static
23386
23387# Whether or not to add -lc for building shared libraries.
23388build_libtool_need_lc=$archive_cmds_need_lc_F77
23389
23390# Whether or not to disallow shared libs when runtime libs are static
23391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23392
23393# Whether or not to optimize for fast installation.
23394fast_install=$enable_fast_install
23395
23396# The host system.
23397host_alias=$host_alias
23398host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023399host_os=$host_os
23400
23401# The build system.
23402build_alias=$build_alias
23403build=$build
23404build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023405
23406# An echo program that does not interpret backslashes.
23407echo=$lt_echo
23408
23409# The archiver.
23410AR=$lt_AR
23411AR_FLAGS=$lt_AR_FLAGS
23412
23413# A C compiler.
23414LTCC=$lt_LTCC
23415
Reid Spencera773bd52006-08-04 18:18:08 +000023416# LTCC compiler flags.
23417LTCFLAGS=$lt_LTCFLAGS
23418
John Criswell47fdd832003-07-14 16:52:07 +000023419# A language-specific compiler.
23420CC=$lt_compiler_F77
23421
23422# Is the compiler the GNU C compiler?
23423with_gcc=$GCC_F77
23424
23425# An ERE matcher.
23426EGREP=$lt_EGREP
23427
23428# The linker used to build libraries.
23429LD=$lt_LD_F77
23430
23431# Whether we need hard or soft links.
23432LN_S=$lt_LN_S
23433
23434# A BSD-compatible nm program.
23435NM=$lt_NM
23436
23437# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023438STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023439
23440# Used to examine libraries when file_magic_cmd begins "file"
23441MAGIC_CMD=$MAGIC_CMD
23442
23443# Used on cygwin: DLL creation program.
23444DLLTOOL="$DLLTOOL"
23445
23446# Used on cygwin: object dumper.
23447OBJDUMP="$OBJDUMP"
23448
23449# Used on cygwin: assembler.
23450AS="$AS"
23451
23452# The name of the directory that contains temporary libtool files.
23453objdir=$objdir
23454
23455# How to create reloadable object files.
23456reload_flag=$lt_reload_flag
23457reload_cmds=$lt_reload_cmds
23458
23459# How to pass a linker flag through the compiler.
23460wl=$lt_lt_prog_compiler_wl_F77
23461
23462# Object file suffix (normally "o").
23463objext="$ac_objext"
23464
23465# Old archive suffix (normally "a").
23466libext="$libext"
23467
23468# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023469shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023470
23471# Executable file suffix (normally "").
23472exeext="$exeext"
23473
23474# Additional compiler flags for building library objects.
23475pic_flag=$lt_lt_prog_compiler_pic_F77
23476pic_mode=$pic_mode
23477
23478# What is the maximum length of a command?
23479max_cmd_len=$lt_cv_sys_max_cmd_len
23480
23481# Does compiler simultaneously support -c and -o options?
23482compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23483
Reid Spencera773bd52006-08-04 18:18:08 +000023484# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023485need_locks=$lt_need_locks
23486
23487# Do we need the lib prefix for modules?
23488need_lib_prefix=$need_lib_prefix
23489
23490# Do we need a version for libraries?
23491need_version=$need_version
23492
23493# Whether dlopen is supported.
23494dlopen_support=$enable_dlopen
23495
23496# Whether dlopen of programs is supported.
23497dlopen_self=$enable_dlopen_self
23498
23499# Whether dlopen of statically linked programs is supported.
23500dlopen_self_static=$enable_dlopen_self_static
23501
23502# Compiler flag to prevent dynamic linking.
23503link_static_flag=$lt_lt_prog_compiler_static_F77
23504
23505# Compiler flag to turn off builtin functions.
23506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23507
23508# Compiler flag to allow reflexive dlopens.
23509export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23510
23511# Compiler flag to generate shared objects directly from archives.
23512whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23513
23514# Compiler flag to generate thread-safe objects.
23515thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23516
23517# Library versioning type.
23518version_type=$version_type
23519
23520# Format of library name prefix.
23521libname_spec=$lt_libname_spec
23522
23523# List of archive names. First name is the real one, the rest are links.
23524# The last name is the one that the linker finds with -lNAME.
23525library_names_spec=$lt_library_names_spec
23526
23527# The coded name of the library, if different from the real name.
23528soname_spec=$lt_soname_spec
23529
23530# Commands used to build and install an old-style archive.
23531RANLIB=$lt_RANLIB
23532old_archive_cmds=$lt_old_archive_cmds_F77
23533old_postinstall_cmds=$lt_old_postinstall_cmds
23534old_postuninstall_cmds=$lt_old_postuninstall_cmds
23535
23536# Create an old-style archive from a shared archive.
23537old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23538
23539# Create a temporary old-style archive to link instead of a shared archive.
23540old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23541
23542# Commands used to build and install a shared archive.
23543archive_cmds=$lt_archive_cmds_F77
23544archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23545postinstall_cmds=$lt_postinstall_cmds
23546postuninstall_cmds=$lt_postuninstall_cmds
23547
23548# Commands used to build a loadable module (assumed same as above if empty)
23549module_cmds=$lt_module_cmds_F77
23550module_expsym_cmds=$lt_module_expsym_cmds_F77
23551
23552# Commands to strip libraries.
23553old_striplib=$lt_old_striplib
23554striplib=$lt_striplib
23555
23556# Dependencies to place before the objects being linked to create a
23557# shared library.
23558predep_objects=$lt_predep_objects_F77
23559
23560# Dependencies to place after the objects being linked to create a
23561# shared library.
23562postdep_objects=$lt_postdep_objects_F77
23563
23564# Dependencies to place before the objects being linked to create a
23565# shared library.
23566predeps=$lt_predeps_F77
23567
23568# Dependencies to place after the objects being linked to create a
23569# shared library.
23570postdeps=$lt_postdeps_F77
23571
23572# The library search path used internally by the compiler when linking
23573# a shared library.
23574compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23575
23576# Method to check whether dependent libraries are shared objects.
23577deplibs_check_method=$lt_deplibs_check_method
23578
23579# Command to use when deplibs_check_method == file_magic.
23580file_magic_cmd=$lt_file_magic_cmd
23581
23582# Flag that allows shared libraries with undefined symbols to be built.
23583allow_undefined_flag=$lt_allow_undefined_flag_F77
23584
23585# Flag that forces no undefined symbols.
23586no_undefined_flag=$lt_no_undefined_flag_F77
23587
23588# Commands used to finish a libtool library installation in a directory.
23589finish_cmds=$lt_finish_cmds
23590
23591# Same as above, but a single script fragment to be evaled but not shown.
23592finish_eval=$lt_finish_eval
23593
23594# Take the output of nm and produce a listing of raw symbols and C names.
23595global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23596
23597# Transform the output of nm in a proper C declaration
23598global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23599
23600# Transform the output of nm in a C name address pair
23601global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23602
23603# This is the shared library runtime path variable.
23604runpath_var=$runpath_var
23605
23606# This is the shared library path variable.
23607shlibpath_var=$shlibpath_var
23608
23609# Is shlibpath searched before the hard-coded library search path?
23610shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23611
23612# How to hardcode a shared library path into an executable.
23613hardcode_action=$hardcode_action_F77
23614
23615# Whether we should hardcode library paths into libraries.
23616hardcode_into_libs=$hardcode_into_libs
23617
23618# Flag to hardcode \$libdir into a binary during linking.
23619# This must work even if \$libdir does not exist.
23620hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23621
23622# If ld is used when linking, flag to hardcode \$libdir into
23623# a binary during linking. This must work even if \$libdir does
23624# not exist.
23625hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23626
23627# Whether we need a single -rpath flag with a separated argument.
23628hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23629
23630# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23631# resulting binary.
23632hardcode_direct=$hardcode_direct_F77
23633
23634# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23635# resulting binary.
23636hardcode_minus_L=$hardcode_minus_L_F77
23637
23638# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23639# the resulting binary.
23640hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23641
23642# Set to yes if building a shared library automatically hardcodes DIR into the library
23643# and all subsequent libraries and executables linked against it.
23644hardcode_automatic=$hardcode_automatic_F77
23645
23646# Variables whose values should be saved in libtool wrapper scripts and
23647# restored at relink time.
23648variables_saved_for_relink="$variables_saved_for_relink"
23649
23650# Whether libtool must link a program against all its dependency libraries.
23651link_all_deplibs=$link_all_deplibs_F77
23652
23653# Compile-time system search path for libraries
23654sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23655
23656# Run-time system search path for libraries
23657sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23658
23659# Fix the shell variable \$srcfile for the compiler.
23660fix_srcfile_path="$fix_srcfile_path_F77"
23661
23662# Set to yes if exported symbols are required.
23663always_export_symbols=$always_export_symbols_F77
23664
23665# The commands to list exported symbols.
23666export_symbols_cmds=$lt_export_symbols_cmds_F77
23667
23668# The commands to extract the exported symbol list from a shared archive.
23669extract_expsyms_cmds=$lt_extract_expsyms_cmds
23670
23671# Symbols that should not be listed in the preloaded symbols.
23672exclude_expsyms=$lt_exclude_expsyms_F77
23673
23674# Symbols that must always be exported.
23675include_expsyms=$lt_include_expsyms_F77
23676
23677# ### END LIBTOOL TAG CONFIG: $tagname
23678
23679__EOF__
23680
23681
23682else
23683 # If there is no Makefile yet, we rely on a make rule to execute
23684 # `config.status --recheck' to rerun these tests and create the
23685 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023686 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23687 if test -f "$ltmain_in"; then
23688 test -f Makefile && make "$ltmain"
23689 fi
John Criswell47fdd832003-07-14 16:52:07 +000023690fi
23691
23692
23693ac_ext=c
23694ac_cpp='$CPP $CPPFLAGS'
23695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697ac_compiler_gnu=$ac_cv_c_compiler_gnu
23698
23699CC="$lt_save_CC"
23700
23701 else
23702 tagname=""
23703 fi
23704 ;;
23705
23706 GCJ)
23707 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023708 ac_ext=c
23709ac_cpp='$CPP $CPPFLAGS'
23710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23712ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023713
23714
23715# Source file extension for Java test sources.
23716ac_ext=java
23717
23718# Object file extension for compiled Java test sources.
23719objext=o
23720objext_GCJ=$objext
23721
23722# Code to be used in simple compile tests
23723lt_simple_compile_test_code="class foo {}\n"
23724
23725# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023726lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023727
23728# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23729
23730# If no C compiler was specified, use CC.
23731LTCC=${LTCC-"$CC"}
23732
Reid Spencera773bd52006-08-04 18:18:08 +000023733# If no C compiler flags were specified, use CFLAGS.
23734LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23735
John Criswell47fdd832003-07-14 16:52:07 +000023736# Allow CC to be a program name with arguments.
23737compiler=$CC
23738
23739
Reid Spencera773bd52006-08-04 18:18:08 +000023740# save warnings/boilerplate of simple test code
23741ac_outfile=conftest.$ac_objext
23742printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23744_lt_compiler_boilerplate=`cat conftest.err`
23745$rm conftest*
23746
23747ac_outfile=conftest.$ac_objext
23748printf "$lt_simple_link_test_code" >conftest.$ac_ext
23749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23750_lt_linker_boilerplate=`cat conftest.err`
23751$rm conftest*
23752
23753
John Criswell47fdd832003-07-14 16:52:07 +000023754# Allow CC to be a program name with arguments.
23755lt_save_CC="$CC"
23756CC=${GCJ-"gcj"}
23757compiler=$CC
23758compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023759for cc_temp in $compiler""; do
23760 case $cc_temp in
23761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23763 \-*) ;;
23764 *) break;;
23765 esac
23766done
23767cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23768
John Criswell47fdd832003-07-14 16:52:07 +000023769
23770# GCJ did not exist at the time GCC didn't implicitly link libc in.
23771archive_cmds_need_lc_GCJ=no
23772
Reid Spencera773bd52006-08-04 18:18:08 +000023773old_archive_cmds_GCJ=$old_archive_cmds
23774
John Criswell47fdd832003-07-14 16:52:07 +000023775
23776lt_prog_compiler_no_builtin_flag_GCJ=
23777
23778if test "$GCC" = yes; then
23779 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23780
Reid Spencer2706f8c2004-09-19 23:53:36 +000023781
Reid Spencera773bd52006-08-04 18:18:08 +000023782{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23783echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023784if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786else
23787 lt_cv_prog_compiler_rtti_exceptions=no
23788 ac_outfile=conftest.$ac_objext
23789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23790 lt_compiler_flag="-fno-rtti -fno-exceptions"
23791 # Insert the option either (1) after the last *FLAGS variable, or
23792 # (2) before a word containing "conftest.", or (3) at the end.
23793 # Note that $ac_compile itself does not contain backslashes and begins
23794 # with a dollar sign (not a hyphen), so the echo should work correctly.
23795 # The option is referenced via a variable to avoid confusing sed.
23796 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23799 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000023800 (eval echo "\"\$as_me:23800: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023801 (eval "$lt_compile" 2>conftest.err)
23802 ac_status=$?
23803 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000023804 echo "$as_me:23804: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023805 if (exit $ac_status) && test -s "$ac_outfile"; then
23806 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023807 # So say no if there are warnings other than the usual output.
23808 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23809 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23810 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023811 lt_cv_prog_compiler_rtti_exceptions=yes
23812 fi
23813 fi
23814 $rm conftest*
23815
23816fi
Reid Spencera773bd52006-08-04 18:18:08 +000023817{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23818echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023819
23820if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23821 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23822else
23823 :
23824fi
23825
23826fi
23827
23828lt_prog_compiler_wl_GCJ=
23829lt_prog_compiler_pic_GCJ=
23830lt_prog_compiler_static_GCJ=
23831
Reid Spencera773bd52006-08-04 18:18:08 +000023832{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23833echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023834
23835 if test "$GCC" = yes; then
23836 lt_prog_compiler_wl_GCJ='-Wl,'
23837 lt_prog_compiler_static_GCJ='-static'
23838
23839 case $host_os in
23840 aix*)
23841 # All AIX code is PIC.
23842 if test "$host_cpu" = ia64; then
23843 # AIX 5 now supports IA64 processor
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23845 fi
23846 ;;
23847
23848 amigaos*)
23849 # FIXME: we need at least 68020 code to build shared libraries, but
23850 # adding the `-m68020' flag to GCC prevents building anything better,
23851 # like `-m68040'.
23852 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23853 ;;
23854
23855 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23856 # PIC is the default for these OSes.
23857 ;;
23858
23859 mingw* | pw32* | os2*)
23860 # This hack is so that the source file can tell whether it is being
23861 # built for inclusion in a dll (and should export symbols for example).
23862 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23863 ;;
23864
23865 darwin* | rhapsody*)
23866 # PIC is the default on this platform
23867 # Common symbols not allowed in MH_DYLIB files
23868 lt_prog_compiler_pic_GCJ='-fno-common'
23869 ;;
23870
Reid Spencera773bd52006-08-04 18:18:08 +000023871 interix3*)
23872 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23873 # Instead, we relocate shared libraries at runtime.
23874 ;;
23875
John Criswell47fdd832003-07-14 16:52:07 +000023876 msdosdjgpp*)
23877 # Just because we use GCC doesn't mean we suddenly get shared libraries
23878 # on systems that don't support them.
23879 lt_prog_compiler_can_build_shared_GCJ=no
23880 enable_shared=no
23881 ;;
23882
23883 sysv4*MP*)
23884 if test -d /usr/nec; then
23885 lt_prog_compiler_pic_GCJ=-Kconform_pic
23886 fi
23887 ;;
23888
23889 hpux*)
23890 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23891 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023892 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023893 hppa*64*|ia64*)
23894 # +Z the default
23895 ;;
23896 *)
23897 lt_prog_compiler_pic_GCJ='-fPIC'
23898 ;;
23899 esac
23900 ;;
23901
23902 *)
23903 lt_prog_compiler_pic_GCJ='-fPIC'
23904 ;;
23905 esac
23906 else
23907 # PORTME Check for flag to pass linker flags through the system compiler.
23908 case $host_os in
23909 aix*)
23910 lt_prog_compiler_wl_GCJ='-Wl,'
23911 if test "$host_cpu" = ia64; then
23912 # AIX 5 now supports IA64 processor
23913 lt_prog_compiler_static_GCJ='-Bstatic'
23914 else
23915 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23916 fi
23917 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023918 darwin*)
23919 # PIC is the default on this platform
23920 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023921 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023922 xlc*)
23923 lt_prog_compiler_pic_GCJ='-qnocommon'
23924 lt_prog_compiler_wl_GCJ='-Wl,'
23925 ;;
23926 esac
23927 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023928
23929 mingw* | pw32* | os2*)
23930 # This hack is so that the source file can tell whether it is being
23931 # built for inclusion in a dll (and should export symbols for example).
23932 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23933 ;;
23934
23935 hpux9* | hpux10* | hpux11*)
23936 lt_prog_compiler_wl_GCJ='-Wl,'
23937 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23938 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023939 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023940 hppa*64*|ia64*)
23941 # +Z the default
23942 ;;
23943 *)
23944 lt_prog_compiler_pic_GCJ='+Z'
23945 ;;
23946 esac
23947 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23948 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23949 ;;
23950
23951 irix5* | irix6* | nonstopux*)
23952 lt_prog_compiler_wl_GCJ='-Wl,'
23953 # PIC (with -KPIC) is the default.
23954 lt_prog_compiler_static_GCJ='-non_shared'
23955 ;;
23956
23957 newsos6)
23958 lt_prog_compiler_pic_GCJ='-KPIC'
23959 lt_prog_compiler_static_GCJ='-Bstatic'
23960 ;;
23961
23962 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023963 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023964 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023965 lt_prog_compiler_wl_GCJ='-Wl,'
23966 lt_prog_compiler_pic_GCJ='-KPIC'
23967 lt_prog_compiler_static_GCJ='-static'
23968 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023969 pgcc* | pgf77* | pgf90* | pgf95*)
23970 # Portland Group compilers (*not* the Pentium gcc compiler,
23971 # which looks to be a dead project)
23972 lt_prog_compiler_wl_GCJ='-Wl,'
23973 lt_prog_compiler_pic_GCJ='-fpic'
23974 lt_prog_compiler_static_GCJ='-Bstatic'
23975 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023976 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023977 lt_prog_compiler_wl_GCJ='-Wl,'
23978 # All Alpha code is PIC.
23979 lt_prog_compiler_static_GCJ='-non_shared'
23980 ;;
23981 esac
23982 ;;
23983
23984 osf3* | osf4* | osf5*)
23985 lt_prog_compiler_wl_GCJ='-Wl,'
23986 # All OSF/1 code is PIC.
23987 lt_prog_compiler_static_GCJ='-non_shared'
23988 ;;
23989
John Criswell47fdd832003-07-14 16:52:07 +000023990 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023991 lt_prog_compiler_pic_GCJ='-KPIC'
23992 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023993 case $cc_basename in
23994 f77* | f90* | f95*)
23995 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23996 *)
23997 lt_prog_compiler_wl_GCJ='-Wl,';;
23998 esac
John Criswell47fdd832003-07-14 16:52:07 +000023999 ;;
24000
24001 sunos4*)
24002 lt_prog_compiler_wl_GCJ='-Qoption ld '
24003 lt_prog_compiler_pic_GCJ='-PIC'
24004 lt_prog_compiler_static_GCJ='-Bstatic'
24005 ;;
24006
Reid Spencera773bd52006-08-04 18:18:08 +000024007 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024008 lt_prog_compiler_wl_GCJ='-Wl,'
24009 lt_prog_compiler_pic_GCJ='-KPIC'
24010 lt_prog_compiler_static_GCJ='-Bstatic'
24011 ;;
24012
24013 sysv4*MP*)
24014 if test -d /usr/nec ;then
24015 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24016 lt_prog_compiler_static_GCJ='-Bstatic'
24017 fi
24018 ;;
24019
Reid Spencera773bd52006-08-04 18:18:08 +000024020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24021 lt_prog_compiler_wl_GCJ='-Wl,'
24022 lt_prog_compiler_pic_GCJ='-KPIC'
24023 lt_prog_compiler_static_GCJ='-Bstatic'
24024 ;;
24025
24026 unicos*)
24027 lt_prog_compiler_wl_GCJ='-Wl,'
24028 lt_prog_compiler_can_build_shared_GCJ=no
24029 ;;
24030
John Criswell47fdd832003-07-14 16:52:07 +000024031 uts4*)
24032 lt_prog_compiler_pic_GCJ='-pic'
24033 lt_prog_compiler_static_GCJ='-Bstatic'
24034 ;;
24035
24036 *)
24037 lt_prog_compiler_can_build_shared_GCJ=no
24038 ;;
24039 esac
24040 fi
24041
Reid Spencera773bd52006-08-04 18:18:08 +000024042{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24043echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024044
24045#
24046# Check to make sure the PIC flag actually works.
24047#
24048if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024049
Reid Spencera773bd52006-08-04 18:18:08 +000024050{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24051echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024052if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054else
24055 lt_prog_compiler_pic_works_GCJ=no
24056 ac_outfile=conftest.$ac_objext
24057 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24058 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24059 # Insert the option either (1) after the last *FLAGS variable, or
24060 # (2) before a word containing "conftest.", or (3) at the end.
24061 # Note that $ac_compile itself does not contain backslashes and begins
24062 # with a dollar sign (not a hyphen), so the echo should work correctly.
24063 # The option is referenced via a variable to avoid confusing sed.
24064 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24067 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000024068 (eval echo "\"\$as_me:24068: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024069 (eval "$lt_compile" 2>conftest.err)
24070 ac_status=$?
24071 cat conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000024072 echo "$as_me:24072: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024073 if (exit $ac_status) && test -s "$ac_outfile"; then
24074 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024075 # So say no if there are warnings other than the usual output.
24076 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24077 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24078 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024079 lt_prog_compiler_pic_works_GCJ=yes
24080 fi
24081 fi
24082 $rm conftest*
24083
24084fi
Reid Spencera773bd52006-08-04 18:18:08 +000024085{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24086echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024087
24088if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24089 case $lt_prog_compiler_pic_GCJ in
24090 "" | " "*) ;;
24091 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24092 esac
24093else
24094 lt_prog_compiler_pic_GCJ=
24095 lt_prog_compiler_can_build_shared_GCJ=no
24096fi
24097
24098fi
Reid Spencera773bd52006-08-04 18:18:08 +000024099case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024100 # For platforms which do not support PIC, -DPIC is meaningless:
24101 *djgpp*)
24102 lt_prog_compiler_pic_GCJ=
24103 ;;
24104 *)
24105 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24106 ;;
24107esac
24108
Reid Spencera773bd52006-08-04 18:18:08 +000024109#
24110# Check to make sure the static flag actually works.
24111#
24112wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24113{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24114echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24115if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24116 echo $ECHO_N "(cached) $ECHO_C" >&6
24117else
24118 lt_prog_compiler_static_works_GCJ=no
24119 save_LDFLAGS="$LDFLAGS"
24120 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24121 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24122 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24123 # The linker can only warn and ignore the option if not recognized
24124 # So say no if there are warnings
24125 if test -s conftest.err; then
24126 # Append any errors to the config.log.
24127 cat conftest.err 1>&5
24128 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24129 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24130 if diff conftest.exp conftest.er2 >/dev/null; then
24131 lt_prog_compiler_static_works_GCJ=yes
24132 fi
24133 else
24134 lt_prog_compiler_static_works_GCJ=yes
24135 fi
24136 fi
24137 $rm conftest*
24138 LDFLAGS="$save_LDFLAGS"
24139
24140fi
24141{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24142echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24143
24144if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24145 :
24146else
24147 lt_prog_compiler_static_GCJ=
24148fi
24149
24150
24151{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24152echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024153if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24154 echo $ECHO_N "(cached) $ECHO_C" >&6
24155else
24156 lt_cv_prog_compiler_c_o_GCJ=no
24157 $rm -r conftest 2>/dev/null
24158 mkdir conftest
24159 cd conftest
24160 mkdir out
24161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24162
John Criswell47fdd832003-07-14 16:52:07 +000024163 lt_compiler_flag="-o out/conftest2.$ac_objext"
24164 # Insert the option either (1) after the last *FLAGS variable, or
24165 # (2) before a word containing "conftest.", or (3) at the end.
24166 # Note that $ac_compile itself does not contain backslashes and begins
24167 # with a dollar sign (not a hyphen), so the echo should work correctly.
24168 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24171 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000024172 (eval echo "\"\$as_me:24172: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024173 (eval "$lt_compile" 2>out/conftest.err)
24174 ac_status=$?
24175 cat out/conftest.err >&5
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000024176 echo "$as_me:24176: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024177 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24178 then
24179 # The compiler can only warn and ignore the option if not recognized
24180 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024181 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24182 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24183 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024184 lt_cv_prog_compiler_c_o_GCJ=yes
24185 fi
24186 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024187 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024188 $rm conftest*
24189 # SGI C++ compiler will create directory out/ii_files/ for
24190 # template instantiation
24191 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24192 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024193 cd ..
24194 rmdir conftest
24195 $rm conftest*
24196
24197fi
Reid Spencera773bd52006-08-04 18:18:08 +000024198{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24199echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024200
24201
24202hard_links="nottested"
24203if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24204 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024205 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24206echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024207 hard_links=yes
24208 $rm conftest*
24209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24210 touch conftest.a
24211 ln conftest.a conftest.b 2>&5 || hard_links=no
24212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024213 { echo "$as_me:$LINENO: result: $hard_links" >&5
24214echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024215 if test "$hard_links" = no; then
24216 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24217echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24218 need_locks=warn
24219 fi
24220else
24221 need_locks=no
24222fi
24223
Reid Spencera773bd52006-08-04 18:18:08 +000024224{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24225echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024226
24227 runpath_var=
24228 allow_undefined_flag_GCJ=
24229 enable_shared_with_static_runtimes_GCJ=no
24230 archive_cmds_GCJ=
24231 archive_expsym_cmds_GCJ=
24232 old_archive_From_new_cmds_GCJ=
24233 old_archive_from_expsyms_cmds_GCJ=
24234 export_dynamic_flag_spec_GCJ=
24235 whole_archive_flag_spec_GCJ=
24236 thread_safe_flag_spec_GCJ=
24237 hardcode_libdir_flag_spec_GCJ=
24238 hardcode_libdir_flag_spec_ld_GCJ=
24239 hardcode_libdir_separator_GCJ=
24240 hardcode_direct_GCJ=no
24241 hardcode_minus_L_GCJ=no
24242 hardcode_shlibpath_var_GCJ=unsupported
24243 link_all_deplibs_GCJ=unknown
24244 hardcode_automatic_GCJ=no
24245 module_cmds_GCJ=
24246 module_expsym_cmds_GCJ=
24247 always_export_symbols_GCJ=no
24248 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24249 # include_expsyms should be a list of space-separated symbols to be *always*
24250 # included in the symbol list
24251 include_expsyms_GCJ=
24252 # exclude_expsyms can be an extended regexp of symbols to exclude
24253 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24254 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24255 # as well as any symbol that contains `d'.
24256 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24257 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24258 # platforms (ab)use it in PIC code, but their linkers get confused if
24259 # the symbol is explicitly referenced. Since portable code cannot
24260 # rely on this symbol name, it's probably fine to never include it in
24261 # preloaded symbol tables.
24262 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024263 # Just being paranoid about ensuring that cc_basename is set.
24264 for cc_temp in $compiler""; do
24265 case $cc_temp in
24266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24268 \-*) ;;
24269 *) break;;
24270 esac
24271done
24272cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024273
24274 case $host_os in
24275 cygwin* | mingw* | pw32*)
24276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24277 # When not using gcc, we currently assume that we are using
24278 # Microsoft Visual C++.
24279 if test "$GCC" != yes; then
24280 with_gnu_ld=no
24281 fi
24282 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024283 interix*)
24284 # we just hope/assume this is gcc and not c89 (= MSVC++)
24285 with_gnu_ld=yes
24286 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024287 openbsd*)
24288 with_gnu_ld=no
24289 ;;
24290 esac
24291
24292 ld_shlibs_GCJ=yes
24293 if test "$with_gnu_ld" = yes; then
24294 # If archive_cmds runs LD, not CC, wlarc should be empty
24295 wlarc='${wl}'
24296
Reid Spencera773bd52006-08-04 18:18:08 +000024297 # Set some defaults for GNU ld with shared library support. These
24298 # are reset later if shared libraries are not supported. Putting them
24299 # here allows them to be overridden if necessary.
24300 runpath_var=LD_RUN_PATH
24301 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24302 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24303 # ancient GNU ld didn't support --whole-archive et. al.
24304 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24305 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24306 else
24307 whole_archive_flag_spec_GCJ=
24308 fi
24309 supports_anon_versioning=no
24310 case `$LD -v 2>/dev/null` in
24311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24314 *\ 2.11.*) ;; # other 2.11 versions
24315 *) supports_anon_versioning=yes ;;
24316 esac
24317
John Criswell47fdd832003-07-14 16:52:07 +000024318 # See if GNU ld supports shared libraries.
24319 case $host_os in
24320 aix3* | aix4* | aix5*)
24321 # On AIX/PPC, the GNU linker is very broken
24322 if test "$host_cpu" != ia64; then
24323 ld_shlibs_GCJ=no
24324 cat <<EOF 1>&2
24325
24326*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24327*** to be unable to reliably create shared libraries on AIX.
24328*** Therefore, libtool is disabling shared libraries support. If you
24329*** really care for shared libraries, you may want to modify your PATH
24330*** so that a non-GNU linker is found, and then restart.
24331
24332EOF
24333 fi
24334 ;;
24335
24336 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024337 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 +000024338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24339 hardcode_minus_L_GCJ=yes
24340
24341 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24342 # that the semantics of dynamic libraries on AmigaOS, at least up
24343 # to version 4, is to share data among multiple programs linked
24344 # with the same dynamic library. Since this doesn't match the
24345 # behavior of shared libraries on other platforms, we can't use
24346 # them.
24347 ld_shlibs_GCJ=no
24348 ;;
24349
24350 beos*)
24351 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24352 allow_undefined_flag_GCJ=unsupported
24353 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24354 # support --undefined. This deserves some investigation. FIXME
24355 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24356 else
24357 ld_shlibs_GCJ=no
24358 fi
24359 ;;
24360
24361 cygwin* | mingw* | pw32*)
24362 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24363 # as there is no search path for DLLs.
24364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24365 allow_undefined_flag_GCJ=unsupported
24366 always_export_symbols_GCJ=no
24367 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024368 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 +000024369
24370 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024371 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 +000024372 # If the export-symbols file already is a .def file (1st line
24373 # is EXPORTS), use it as is; otherwise, prepend...
24374 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24375 cp $export_symbols $output_objdir/$soname.def;
24376 else
24377 echo EXPORTS > $output_objdir/$soname.def;
24378 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024379 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024380 $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 +000024381 else
Reid Spencera773bd52006-08-04 18:18:08 +000024382 ld_shlibs_GCJ=no
24383 fi
24384 ;;
24385
24386 interix3*)
24387 hardcode_direct_GCJ=no
24388 hardcode_shlibpath_var_GCJ=no
24389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24390 export_dynamic_flag_spec_GCJ='${wl}-E'
24391 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24392 # Instead, shared libraries are loaded at an image base (0x10000000 by
24393 # default) and relocated if they conflict, which is a slow very memory
24394 # consuming and fragmenting process. To avoid this, we pick a random,
24395 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24396 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24397 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'
24398 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'
24399 ;;
24400
24401 linux*)
24402 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24403 tmp_addflag=
24404 case $cc_basename,$host_cpu in
24405 pgcc*) # Portland Group C compiler
24406 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'
24407 tmp_addflag=' $pic_flag'
24408 ;;
24409 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24410 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'
24411 tmp_addflag=' $pic_flag -Mnomain' ;;
24412 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24413 tmp_addflag=' -i_dynamic' ;;
24414 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24415 tmp_addflag=' -i_dynamic -nofor_main' ;;
24416 ifc* | ifort*) # Intel Fortran compiler
24417 tmp_addflag=' -nofor_main' ;;
24418 esac
24419 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24420
24421 if test $supports_anon_versioning = yes; then
24422 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24423 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24424 $echo "local: *; };" >> $output_objdir/$libname.ver~
24425 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24426 fi
24427 else
24428 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024429 fi
24430 ;;
24431
24432 netbsd*)
24433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24434 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24435 wlarc=
24436 else
24437 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24438 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24439 fi
24440 ;;
24441
Reid Spencera773bd52006-08-04 18:18:08 +000024442 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024443 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24444 ld_shlibs_GCJ=no
24445 cat <<EOF 1>&2
24446
24447*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24448*** create shared libraries on Solaris systems. Therefore, libtool
24449*** is disabling shared libraries support. We urge you to upgrade GNU
24450*** binutils to release 2.9.1 or newer. Another option is to modify
24451*** your PATH or compiler configuration so that the native linker is
24452*** used, and then restart.
24453
24454EOF
24455 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24457 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24458 else
24459 ld_shlibs_GCJ=no
24460 fi
24461 ;;
24462
Reid Spencera773bd52006-08-04 18:18:08 +000024463 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24464 case `$LD -v 2>&1` in
24465 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24466 ld_shlibs_GCJ=no
24467 cat <<_LT_EOF 1>&2
24468
24469*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24470*** reliably create shared libraries on SCO systems. Therefore, libtool
24471*** is disabling shared libraries support. We urge you to upgrade GNU
24472*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24473*** your PATH or compiler configuration so that the native linker is
24474*** used, and then restart.
24475
24476_LT_EOF
24477 ;;
24478 *)
24479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24480 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24481 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24482 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24483 else
24484 ld_shlibs_GCJ=no
24485 fi
24486 ;;
24487 esac
24488 ;;
24489
John Criswell47fdd832003-07-14 16:52:07 +000024490 sunos4*)
24491 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24492 wlarc=
24493 hardcode_direct_GCJ=yes
24494 hardcode_shlibpath_var_GCJ=no
24495 ;;
24496
24497 *)
24498 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24499 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24501 else
24502 ld_shlibs_GCJ=no
24503 fi
24504 ;;
24505 esac
24506
Reid Spencera773bd52006-08-04 18:18:08 +000024507 if test "$ld_shlibs_GCJ" = no; then
24508 runpath_var=
24509 hardcode_libdir_flag_spec_GCJ=
24510 export_dynamic_flag_spec_GCJ=
24511 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024512 fi
24513 else
24514 # PORTME fill in a description of your system's linker (not GNU ld)
24515 case $host_os in
24516 aix3*)
24517 allow_undefined_flag_GCJ=unsupported
24518 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024519 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 +000024520 # Note: this linker hardcodes the directories in LIBPATH if there
24521 # are no directories specified by -L.
24522 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024523 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024524 # Neither direct hardcoding nor static linking is supported with a
24525 # broken collect2.
24526 hardcode_direct_GCJ=unsupported
24527 fi
24528 ;;
24529
24530 aix4* | aix5*)
24531 if test "$host_cpu" = ia64; then
24532 # On IA64, the linker does run time linking by default, so we don't
24533 # have to do anything special.
24534 aix_use_runtimelinking=no
24535 exp_sym_flag='-Bexport'
24536 no_entry_flag=""
24537 else
24538 # If we're using GNU nm, then we don't want the "-C" option.
24539 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24540 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24541 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'
24542 else
24543 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'
24544 fi
24545 aix_use_runtimelinking=no
24546
24547 # Test if we are trying to use run time linking or normal
24548 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24549 # need to do runtime linking.
24550 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24551 for ld_flag in $LDFLAGS; do
24552 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24553 aix_use_runtimelinking=yes
24554 break
24555 fi
24556 done
Reid Spencera773bd52006-08-04 18:18:08 +000024557 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024558 esac
24559
24560 exp_sym_flag='-bexport'
24561 no_entry_flag='-bnoentry'
24562 fi
24563
24564 # When large executables or shared objects are built, AIX ld can
24565 # have problems creating the table of contents. If linking a library
24566 # or program results in "error TOC overflow" add -mminimal-toc to
24567 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24568 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24569
24570 archive_cmds_GCJ=''
24571 hardcode_direct_GCJ=yes
24572 hardcode_libdir_separator_GCJ=':'
24573 link_all_deplibs_GCJ=yes
24574
24575 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024576 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024577 # We only want to do this on AIX 4.2 and lower, the check
24578 # below for broken collect2 doesn't work under 4.3+
24579 collect2name=`${CC} -print-prog-name=collect2`
24580 if test -f "$collect2name" && \
24581 strings "$collect2name" | grep resolve_lib_name >/dev/null
24582 then
24583 # We have reworked collect2
24584 hardcode_direct_GCJ=yes
24585 else
24586 # We have old collect2
24587 hardcode_direct_GCJ=unsupported
24588 # It fails to find uninstalled libraries when the uninstalled
24589 # path is not listed in the libpath. Setting hardcode_minus_L
24590 # to unsupported forces relinking
24591 hardcode_minus_L_GCJ=yes
24592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24593 hardcode_libdir_separator_GCJ=
24594 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024596 esac
24597 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024598 if test "$aix_use_runtimelinking" = yes; then
24599 shared_flag="$shared_flag "'${wl}-G'
24600 fi
John Criswell47fdd832003-07-14 16:52:07 +000024601 else
24602 # not using gcc
24603 if test "$host_cpu" = ia64; then
24604 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24605 # chokes on -Wl,-G. The following line is correct:
24606 shared_flag='-G'
24607 else
Reid Spencera773bd52006-08-04 18:18:08 +000024608 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024609 shared_flag='${wl}-G'
24610 else
24611 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024612 fi
John Criswell47fdd832003-07-14 16:52:07 +000024613 fi
24614 fi
24615
24616 # It seems that -bexpall does not export symbols beginning with
24617 # underscore (_), so it is better to generate a list of symbols to export.
24618 always_export_symbols_GCJ=yes
24619 if test "$aix_use_runtimelinking" = yes; then
24620 # Warning - without using the other runtime loading flags (-brtl),
24621 # -berok will link without error, but may produce a broken library.
24622 allow_undefined_flag_GCJ='-berok'
24623 # Determine the default libpath from the value encoded in an empty executable.
24624 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024625/* confdefs.h. */
24626_ACEOF
24627cat confdefs.h >>conftest.$ac_ext
24628cat >>conftest.$ac_ext <<_ACEOF
24629/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024630
John Criswell47fdd832003-07-14 16:52:07 +000024631int
24632main ()
24633{
24634
24635 ;
24636 return 0;
24637}
24638_ACEOF
24639rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024640if { (ac_try="$ac_link"
24641case "(($ac_try" in
24642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24643 *) ac_try_echo=$ac_try;;
24644esac
24645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24646 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024648 grep -v '^ *+' conftest.er1 >conftest.err
24649 rm -f conftest.er1
24650 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024652 (exit $ac_status); } &&
24653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24654 { (case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657esac
24658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_try") 2>&5
24660 ac_status=$?
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); }; } &&
24663 { ac_try='test -s conftest$ac_exeext'
24664 { (case "(($ac_try" in
24665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666 *) ac_try_echo=$ac_try;;
24667esac
24668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669 (eval "$ac_try") 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024673
24674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24675}'`
24676# Check for a 64-bit object if we didn't find anything.
24677if 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; }
24678}'`; fi
24679else
24680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024681sed 's/^/| /' conftest.$ac_ext >&5
24682
Reid Spencera773bd52006-08-04 18:18:08 +000024683
John Criswell47fdd832003-07-14 16:52:07 +000024684fi
Reid Spencera773bd52006-08-04 18:18:08 +000024685
Tanya Lattnercf067672008-01-17 05:57:22 +000024686rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024687 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024688if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24689
24690 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024691 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 +000024692 else
24693 if test "$host_cpu" = ia64; then
24694 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24695 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024696 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 +000024697 else
24698 # Determine the default libpath from the value encoded in an empty executable.
24699 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024700/* confdefs.h. */
24701_ACEOF
24702cat confdefs.h >>conftest.$ac_ext
24703cat >>conftest.$ac_ext <<_ACEOF
24704/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024705
John Criswell47fdd832003-07-14 16:52:07 +000024706int
24707main ()
24708{
24709
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024715if { (ac_try="$ac_link"
24716case "(($ac_try" in
24717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718 *) ac_try_echo=$ac_try;;
24719esac
24720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024727 (exit $ac_status); } &&
24728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24729 { (case "(($ac_try" in
24730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731 *) ac_try_echo=$ac_try;;
24732esac
24733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734 (eval "$ac_try") 2>&5
24735 ac_status=$?
24736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); }; } &&
24738 { ac_try='test -s conftest$ac_exeext'
24739 { (case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24742esac
24743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744 (eval "$ac_try") 2>&5
24745 ac_status=$?
24746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024748
24749aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24750}'`
24751# Check for a 64-bit object if we didn't find anything.
24752if 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; }
24753}'`; fi
24754else
24755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024756sed 's/^/| /' conftest.$ac_ext >&5
24757
Reid Spencera773bd52006-08-04 18:18:08 +000024758
John Criswell47fdd832003-07-14 16:52:07 +000024759fi
Reid Spencera773bd52006-08-04 18:18:08 +000024760
Tanya Lattnercf067672008-01-17 05:57:22 +000024761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024762 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024763if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24764
24765 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24766 # Warning - without using the other run time loading flags,
24767 # -berok will link without error, but may produce a broken library.
24768 no_undefined_flag_GCJ=' ${wl}-bernotok'
24769 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024770 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024771 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024772 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024773 # This is similar to how AIX traditionally builds its shared libraries.
24774 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 +000024775 fi
24776 fi
24777 ;;
24778
24779 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024780 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 +000024781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782 hardcode_minus_L_GCJ=yes
24783 # see comment about different semantics on the GNU ld section
24784 ld_shlibs_GCJ=no
24785 ;;
24786
Reid Spencer2706f8c2004-09-19 23:53:36 +000024787 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024788 export_dynamic_flag_spec_GCJ=-rdynamic
24789 ;;
24790
24791 cygwin* | mingw* | pw32*)
24792 # When not using gcc, we currently assume that we are using
24793 # Microsoft Visual C++.
24794 # hardcode_libdir_flag_spec is actually meaningless, as there is
24795 # no search path for DLLs.
24796 hardcode_libdir_flag_spec_GCJ=' '
24797 allow_undefined_flag_GCJ=unsupported
24798 # Tell ltmain to make .lib files, not .a files.
24799 libext=lib
24800 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024801 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024802 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024803 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 +000024804 # The linker will automatically build a .lib file if we build a DLL.
24805 old_archive_From_new_cmds_GCJ='true'
24806 # FIXME: Should let the user specify the lib program.
24807 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024808 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024809 enable_shared_with_static_runtimes_GCJ=yes
24810 ;;
24811
24812 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024813 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024814 rhapsody* | darwin1.[012])
24815 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24816 ;;
24817 *) # Darwin 1.3 on
24818 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24819 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24820 else
24821 case ${MACOSX_DEPLOYMENT_TARGET} in
24822 10.[012])
24823 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24824 ;;
24825 10.*)
24826 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24827 ;;
24828 esac
24829 fi
24830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024831 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024832 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024833 hardcode_direct_GCJ=no
24834 hardcode_automatic_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024836 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024837 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024838 if test "$GCC" = yes ; then
24839 output_verbose_link_cmd='echo'
24840 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24841 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024842 # 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 +000024843 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}'
24844 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 +000024845 else
Reid Spencera773bd52006-08-04 18:18:08 +000024846 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024847 xlc*)
24848 output_verbose_link_cmd='echo'
24849 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24850 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024851 # 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 +000024852 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}'
24853 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 +000024854 ;;
24855 *)
24856 ld_shlibs_GCJ=no
24857 ;;
24858 esac
John Criswell47fdd832003-07-14 16:52:07 +000024859 fi
24860 ;;
24861
24862 dgux*)
24863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24864 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24865 hardcode_shlibpath_var_GCJ=no
24866 ;;
24867
24868 freebsd1*)
24869 ld_shlibs_GCJ=no
24870 ;;
24871
24872 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24873 # support. Future versions do this automatically, but an explicit c++rt0.o
24874 # does not break anything, and helps significantly (at the cost of a little
24875 # extra space).
24876 freebsd2.2*)
24877 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24878 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24879 hardcode_direct_GCJ=yes
24880 hardcode_shlibpath_var_GCJ=no
24881 ;;
24882
24883 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24884 freebsd2*)
24885 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24886 hardcode_direct_GCJ=yes
24887 hardcode_minus_L_GCJ=yes
24888 hardcode_shlibpath_var_GCJ=no
24889 ;;
24890
24891 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024892 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024893 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24894 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24895 hardcode_direct_GCJ=yes
24896 hardcode_shlibpath_var_GCJ=no
24897 ;;
24898
24899 hpux9*)
24900 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024901 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 +000024902 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024903 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 +000024904 fi
24905 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24906 hardcode_libdir_separator_GCJ=:
24907 hardcode_direct_GCJ=yes
24908
24909 # hardcode_minus_L: Not really in the search PATH,
24910 # but as the default location of the library.
24911 hardcode_minus_L_GCJ=yes
24912 export_dynamic_flag_spec_GCJ='${wl}-E'
24913 ;;
24914
Reid Spencera773bd52006-08-04 18:18:08 +000024915 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024916 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024917 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24918 else
24919 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24920 fi
24921 if test "$with_gnu_ld" = no; then
24922 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24924
24925 hardcode_direct_GCJ=yes
24926 export_dynamic_flag_spec_GCJ='${wl}-E'
24927
24928 # hardcode_minus_L: Not really in the search PATH,
24929 # but as the default location of the library.
24930 hardcode_minus_L_GCJ=yes
24931 fi
24932 ;;
24933
24934 hpux11*)
24935 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24936 case $host_cpu in
24937 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024938 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24939 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024940 ia64*)
24941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024943 *)
24944 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24945 ;;
24946 esac
24947 else
Reid Spencera773bd52006-08-04 18:18:08 +000024948 case $host_cpu in
24949 hppa*64*)
24950 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24951 ;;
24952 ia64*)
24953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024954 ;;
24955 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024956 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 +000024957 ;;
24958 esac
24959 fi
24960 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024961 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24962 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024963
Reid Spencera773bd52006-08-04 18:18:08 +000024964 case $host_cpu in
24965 hppa*64*|ia64*)
24966 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24967 hardcode_direct_GCJ=no
24968 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024969 ;;
24970 *)
John Criswell47fdd832003-07-14 16:52:07 +000024971 hardcode_direct_GCJ=yes
24972 export_dynamic_flag_spec_GCJ='${wl}-E'
24973
24974 # hardcode_minus_L: Not really in the search PATH,
24975 # but as the default location of the library.
24976 hardcode_minus_L_GCJ=yes
24977 ;;
24978 esac
24979 fi
24980 ;;
24981
24982 irix5* | irix6* | nonstopux*)
24983 if test "$GCC" = yes; then
24984 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'
24985 else
24986 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'
24987 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24988 fi
24989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24990 hardcode_libdir_separator_GCJ=:
24991 link_all_deplibs_GCJ=yes
24992 ;;
24993
24994 netbsd*)
24995 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24996 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24997 else
24998 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24999 fi
25000 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25001 hardcode_direct_GCJ=yes
25002 hardcode_shlibpath_var_GCJ=no
25003 ;;
25004
25005 newsos6)
25006 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25007 hardcode_direct_GCJ=yes
25008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25009 hardcode_libdir_separator_GCJ=:
25010 hardcode_shlibpath_var_GCJ=no
25011 ;;
25012
25013 openbsd*)
25014 hardcode_direct_GCJ=yes
25015 hardcode_shlibpath_var_GCJ=no
25016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25017 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018 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 +000025019 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25020 export_dynamic_flag_spec_GCJ='${wl}-E'
25021 else
25022 case $host_os in
25023 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25024 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25025 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25026 ;;
25027 *)
25028 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25030 ;;
25031 esac
25032 fi
25033 ;;
25034
25035 os2*)
25036 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25037 hardcode_minus_L_GCJ=yes
25038 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025039 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 +000025040 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25041 ;;
25042
25043 osf3*)
25044 if test "$GCC" = yes; then
25045 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25046 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'
25047 else
25048 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25049 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'
25050 fi
25051 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25052 hardcode_libdir_separator_GCJ=:
25053 ;;
25054
25055 osf4* | osf5*) # as osf3* with the addition of -msym flag
25056 if test "$GCC" = yes; then
25057 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25058 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'
25059 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25060 else
25061 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25062 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 +000025063 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 +000025064 $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 +000025065
John Criswell47fdd832003-07-14 16:52:07 +000025066 # Both c and cxx compiler support -rpath directly
25067 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25068 fi
25069 hardcode_libdir_separator_GCJ=:
25070 ;;
25071
John Criswell47fdd832003-07-14 16:52:07 +000025072 solaris*)
25073 no_undefined_flag_GCJ=' -z text'
25074 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025075 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025076 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025077 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25078 $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 +000025079 else
Reid Spencera773bd52006-08-04 18:18:08 +000025080 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025081 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025082 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25083 $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 +000025084 fi
25085 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25086 hardcode_shlibpath_var_GCJ=no
25087 case $host_os in
25088 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025089 *)
25090 # The compiler driver will combine linker options so we
25091 # cannot just pass the convience library names through
25092 # without $wl, iff we do not link with $LD.
25093 # Luckily, gcc supports the same syntax we need for Sun Studio.
25094 # Supported since Solaris 2.6 (maybe 2.5.1?)
25095 case $wlarc in
25096 '')
25097 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25098 *)
25099 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' ;;
25100 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025101 esac
25102 link_all_deplibs_GCJ=yes
25103 ;;
25104
25105 sunos4*)
25106 if test "x$host_vendor" = xsequent; then
25107 # Use $CC to link under sequent, because it throws in some extra .o
25108 # files that make .init and .fini sections work.
25109 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25110 else
25111 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25112 fi
25113 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25114 hardcode_direct_GCJ=yes
25115 hardcode_minus_L_GCJ=yes
25116 hardcode_shlibpath_var_GCJ=no
25117 ;;
25118
25119 sysv4)
25120 case $host_vendor in
25121 sni)
25122 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25123 hardcode_direct_GCJ=yes # is this really true???
25124 ;;
25125 siemens)
25126 ## LD is ld it makes a PLAMLIB
25127 ## CC just makes a GrossModule.
25128 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25129 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25130 hardcode_direct_GCJ=no
25131 ;;
25132 motorola)
25133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25134 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25135 ;;
25136 esac
25137 runpath_var='LD_RUN_PATH'
25138 hardcode_shlibpath_var_GCJ=no
25139 ;;
25140
25141 sysv4.3*)
25142 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25143 hardcode_shlibpath_var_GCJ=no
25144 export_dynamic_flag_spec_GCJ='-Bexport'
25145 ;;
25146
25147 sysv4*MP*)
25148 if test -d /usr/nec; then
25149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25150 hardcode_shlibpath_var_GCJ=no
25151 runpath_var=LD_RUN_PATH
25152 hardcode_runpath_var=yes
25153 ld_shlibs_GCJ=yes
25154 fi
25155 ;;
25156
Reid Spencera773bd52006-08-04 18:18:08 +000025157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25158 no_undefined_flag_GCJ='${wl}-z,text'
25159 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025160 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025161 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025162
John Criswell47fdd832003-07-14 16:52:07 +000025163 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025164 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25165 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 +000025166 else
Reid Spencera773bd52006-08-04 18:18:08 +000025167 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 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 +000025169 fi
John Criswell47fdd832003-07-14 16:52:07 +000025170 ;;
25171
Reid Spencera773bd52006-08-04 18:18:08 +000025172 sysv5* | sco3.2v5* | sco5v6*)
25173 # Note: We can NOT use -z defs as we might desire, because we do not
25174 # link with -lc, and that would cause any symbols used from libc to
25175 # always be unresolved, which means just about no library would
25176 # ever link correctly. If we're not using GNU ld we use -z text
25177 # though, which does catch some bad symbols but isn't as heavy-handed
25178 # as -z defs.
25179 no_undefined_flag_GCJ='${wl}-z,text'
25180 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25181 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025182 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025183 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25184 hardcode_libdir_separator_GCJ=':'
25185 link_all_deplibs_GCJ=yes
25186 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025187 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025188
25189 if test "$GCC" = yes; then
25190 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25191 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 else
25193 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 fi
John Criswell47fdd832003-07-14 16:52:07 +000025196 ;;
25197
25198 uts4*)
25199 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25200 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25201 hardcode_shlibpath_var_GCJ=no
25202 ;;
25203
25204 *)
25205 ld_shlibs_GCJ=no
25206 ;;
25207 esac
25208 fi
25209
Reid Spencera773bd52006-08-04 18:18:08 +000025210{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25211echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025212test "$ld_shlibs_GCJ" = no && can_build_shared=no
25213
John Criswell47fdd832003-07-14 16:52:07 +000025214#
25215# Do we need to explicitly link libc?
25216#
25217case "x$archive_cmds_need_lc_GCJ" in
25218x|xyes)
25219 # Assume -lc should be added
25220 archive_cmds_need_lc_GCJ=yes
25221
25222 if test "$enable_shared" = yes && test "$GCC" = yes; then
25223 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025224 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025225 # FIXME: we may have to deal with multi-command sequences.
25226 ;;
25227 '$CC '*)
25228 # Test whether the compiler implicitly links with -lc since on some
25229 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25230 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025231 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25232echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025233 $rm conftest*
25234 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25235
25236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25237 (eval $ac_compile) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } 2>conftest.err; then
25241 soname=conftest
25242 lib=conftest
25243 libobjs=conftest.$ac_objext
25244 deplibs=
25245 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025246 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025247 compiler_flags=-v
25248 linker_flags=-v
25249 verstring=
25250 output_objdir=.
25251 libname=conftest
25252 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25253 allow_undefined_flag_GCJ=
25254 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25255 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25256 ac_status=$?
25257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258 (exit $ac_status); }
25259 then
25260 archive_cmds_need_lc_GCJ=no
25261 else
25262 archive_cmds_need_lc_GCJ=yes
25263 fi
25264 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25265 else
25266 cat conftest.err 1>&5
25267 fi
25268 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025269 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25270echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025271 ;;
25272 esac
25273 fi
25274 ;;
25275esac
25276
Reid Spencera773bd52006-08-04 18:18:08 +000025277{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25278echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025279library_names_spec=
25280libname_spec='lib$name'
25281soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025282shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025283postinstall_cmds=
25284postuninstall_cmds=
25285finish_cmds=
25286finish_eval=
25287shlibpath_var=
25288shlibpath_overrides_runpath=unknown
25289version_type=none
25290dynamic_linker="$host_os ld.so"
25291sys_lib_dlsearch_path_spec="/lib /usr/lib"
25292if test "$GCC" = yes; then
25293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25294 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25295 # if the path contains ";" then we assume it to be the separator
25296 # otherwise default to the standard path separator (i.e. ":") - it is
25297 # assumed that no part of a normal pathname contains ";" but that should
25298 # okay in the real world where ";" in dirpaths is itself problematic.
25299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25300 else
25301 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25302 fi
25303else
25304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25305fi
25306need_lib_prefix=unknown
25307hardcode_into_libs=no
25308
25309# when you set need_version to no, make sure it does not cause -set_version
25310# flags to be left without arguments
25311need_version=unknown
25312
25313case $host_os in
25314aix3*)
25315 version_type=linux
25316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25317 shlibpath_var=LIBPATH
25318
25319 # AIX 3 has no versioning support, so we append a major version to the name.
25320 soname_spec='${libname}${release}${shared_ext}$major'
25321 ;;
25322
25323aix4* | aix5*)
25324 version_type=linux
25325 need_lib_prefix=no
25326 need_version=no
25327 hardcode_into_libs=yes
25328 if test "$host_cpu" = ia64; then
25329 # AIX 5 supports IA64
25330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25331 shlibpath_var=LD_LIBRARY_PATH
25332 else
25333 # With GCC up to 2.95.x, collect2 would create an import file
25334 # for dependence libraries. The import file would start with
25335 # the line `#! .'. This would cause the generated library to
25336 # depend on `.', always an invalid library. This was fixed in
25337 # development snapshots of GCC prior to 3.0.
25338 case $host_os in
25339 aix4 | aix4.[01] | aix4.[01].*)
25340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25341 echo ' yes '
25342 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25343 :
25344 else
25345 can_build_shared=no
25346 fi
25347 ;;
25348 esac
25349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25350 # soname into executable. Probably we can add versioning support to
25351 # collect2, so additional links can be useful in future.
25352 if test "$aix_use_runtimelinking" = yes; then
25353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25354 # instead of lib<name>.a to let people know that these are not
25355 # typical AIX shared libraries.
25356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25357 else
25358 # We preserve .a as extension for shared libraries through AIX4.2
25359 # and later when we are not doing run time linking.
25360 library_names_spec='${libname}${release}.a $libname.a'
25361 soname_spec='${libname}${release}${shared_ext}$major'
25362 fi
25363 shlibpath_var=LIBPATH
25364 fi
25365 ;;
25366
25367amigaos*)
25368 library_names_spec='$libname.ixlibrary $libname.a'
25369 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025370 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 +000025371 ;;
25372
25373beos*)
25374 library_names_spec='${libname}${shared_ext}'
25375 dynamic_linker="$host_os ld.so"
25376 shlibpath_var=LIBRARY_PATH
25377 ;;
25378
Reid Spencer2706f8c2004-09-19 23:53:36 +000025379bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025380 version_type=linux
25381 need_version=no
25382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25383 soname_spec='${libname}${release}${shared_ext}$major'
25384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25385 shlibpath_var=LD_LIBRARY_PATH
25386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25388 # the default ld.so.conf also contains /usr/contrib/lib and
25389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25390 # libtool to hard-code these into programs
25391 ;;
25392
25393cygwin* | mingw* | pw32*)
25394 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025395 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025396 need_version=no
25397 need_lib_prefix=no
25398
25399 case $GCC,$host_os in
25400 yes,cygwin* | yes,mingw* | yes,pw32*)
25401 library_names_spec='$libname.dll.a'
25402 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025403 postinstall_cmds='base_file=`basename \${file}`~
25404 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25405 dldir=$destdir/`dirname \$dlpath`~
25406 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025407 $install_prog $dir/$dlname \$dldir/$dlname~
25408 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025409 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25410 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025411 $rm \$dlpath'
25412 shlibpath_overrides_runpath=yes
25413
25414 case $host_os in
25415 cygwin*)
25416 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25417 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 +000025418 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025419 ;;
25420 mingw*)
25421 # MinGW DLLs use traditional 'lib' prefix
25422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25424 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25425 # It is most probably a Windows format PATH printed by
25426 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25427 # path with ; separators, and with drive letters. We can handle the
25428 # drive letters (cygwin fileutils understands them), so leave them,
25429 # especially as we might pass files found there to a mingw objdump,
25430 # which wouldn't understand a cygwinified path. Ahh.
25431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25432 else
25433 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25434 fi
25435 ;;
25436 pw32*)
25437 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025438 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 +000025439 ;;
25440 esac
25441 ;;
25442
25443 *)
25444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25445 ;;
25446 esac
25447 dynamic_linker='Win32 ld.exe'
25448 # FIXME: first we should search . and the directory the executable is in
25449 shlibpath_var=PATH
25450 ;;
25451
25452darwin* | rhapsody*)
25453 dynamic_linker="$host_os dyld"
25454 version_type=darwin
25455 need_lib_prefix=no
25456 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025457 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025458 soname_spec='${libname}${release}${major}$shared_ext'
25459 shlibpath_overrides_runpath=yes
25460 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025461 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025462 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025463 if test "$GCC" = yes; then
25464 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"`
25465 else
25466 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025467 fi
25468 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25469 ;;
25470
25471dgux*)
25472 version_type=linux
25473 need_lib_prefix=no
25474 need_version=no
25475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 shlibpath_var=LD_LIBRARY_PATH
25478 ;;
25479
25480freebsd1*)
25481 dynamic_linker=no
25482 ;;
25483
Reid Spencer2706f8c2004-09-19 23:53:36 +000025484kfreebsd*-gnu)
25485 version_type=linux
25486 need_lib_prefix=no
25487 need_version=no
25488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25489 soname_spec='${libname}${release}${shared_ext}$major'
25490 shlibpath_var=LD_LIBRARY_PATH
25491 shlibpath_overrides_runpath=no
25492 hardcode_into_libs=yes
25493 dynamic_linker='GNU ld.so'
25494 ;;
25495
Reid Spencera773bd52006-08-04 18:18:08 +000025496freebsd* | dragonfly*)
25497 # DragonFly does not have aout. When/if they implement a new
25498 # versioning mechanism, adjust this.
25499 if test -x /usr/bin/objformat; then
25500 objformat=`/usr/bin/objformat`
25501 else
25502 case $host_os in
25503 freebsd[123]*) objformat=aout ;;
25504 *) objformat=elf ;;
25505 esac
25506 fi
John Criswell47fdd832003-07-14 16:52:07 +000025507 version_type=freebsd-$objformat
25508 case $version_type in
25509 freebsd-elf*)
25510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25511 need_version=no
25512 need_lib_prefix=no
25513 ;;
25514 freebsd-*)
25515 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25516 need_version=yes
25517 ;;
25518 esac
25519 shlibpath_var=LD_LIBRARY_PATH
25520 case $host_os in
25521 freebsd2*)
25522 shlibpath_overrides_runpath=yes
25523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025524 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025525 shlibpath_overrides_runpath=yes
25526 hardcode_into_libs=yes
25527 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025528 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25529 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025530 shlibpath_overrides_runpath=no
25531 hardcode_into_libs=yes
25532 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025533 freebsd*) # from 4.6 on
25534 shlibpath_overrides_runpath=yes
25535 hardcode_into_libs=yes
25536 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025537 esac
25538 ;;
25539
25540gnu*)
25541 version_type=linux
25542 need_lib_prefix=no
25543 need_version=no
25544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25545 soname_spec='${libname}${release}${shared_ext}$major'
25546 shlibpath_var=LD_LIBRARY_PATH
25547 hardcode_into_libs=yes
25548 ;;
25549
25550hpux9* | hpux10* | hpux11*)
25551 # Give a soname corresponding to the major version so that dld.sl refuses to
25552 # link against other versions.
25553 version_type=sunos
25554 need_lib_prefix=no
25555 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025556 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025557 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025559 hardcode_into_libs=yes
25560 dynamic_linker="$host_os dld.so"
25561 shlibpath_var=LD_LIBRARY_PATH
25562 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25564 soname_spec='${libname}${release}${shared_ext}$major'
25565 if test "X$HPUX_IA64_MODE" = X32; then
25566 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25567 else
25568 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25569 fi
25570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25571 ;;
25572 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025573 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025574 hardcode_into_libs=yes
25575 dynamic_linker="$host_os dld.sl"
25576 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25579 soname_spec='${libname}${release}${shared_ext}$major'
25580 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25581 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25582 ;;
25583 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025584 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025585 dynamic_linker="$host_os dld.sl"
25586 shlibpath_var=SHLIB_PATH
25587 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 soname_spec='${libname}${release}${shared_ext}$major'
25590 ;;
25591 esac
25592 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25593 postinstall_cmds='chmod 555 $lib'
25594 ;;
25595
Reid Spencera773bd52006-08-04 18:18:08 +000025596interix3*)
25597 version_type=linux
25598 need_lib_prefix=no
25599 need_version=no
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25601 soname_spec='${libname}${release}${shared_ext}$major'
25602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25603 shlibpath_var=LD_LIBRARY_PATH
25604 shlibpath_overrides_runpath=no
25605 hardcode_into_libs=yes
25606 ;;
25607
John Criswell47fdd832003-07-14 16:52:07 +000025608irix5* | irix6* | nonstopux*)
25609 case $host_os in
25610 nonstopux*) version_type=nonstopux ;;
25611 *)
25612 if test "$lt_cv_prog_gnu_ld" = yes; then
25613 version_type=linux
25614 else
25615 version_type=irix
25616 fi ;;
25617 esac
25618 need_lib_prefix=no
25619 need_version=no
25620 soname_spec='${libname}${release}${shared_ext}$major'
25621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25622 case $host_os in
25623 irix5* | nonstopux*)
25624 libsuff= shlibsuff=
25625 ;;
25626 *)
25627 case $LD in # libtool.m4 will add one of these switches to LD
25628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25629 libsuff= shlibsuff= libmagic=32-bit;;
25630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25631 libsuff=32 shlibsuff=N32 libmagic=N32;;
25632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25634 *) libsuff= shlibsuff= libmagic=never-match;;
25635 esac
25636 ;;
25637 esac
25638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25639 shlibpath_overrides_runpath=no
25640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25642 hardcode_into_libs=yes
25643 ;;
25644
25645# No shared lib support for Linux oldld, aout, or coff.
25646linux*oldld* | linux*aout* | linux*coff*)
25647 dynamic_linker=no
25648 ;;
25649
25650# This must be Linux ELF.
25651linux*)
25652 version_type=linux
25653 need_lib_prefix=no
25654 need_version=no
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25656 soname_spec='${libname}${release}${shared_ext}$major'
25657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25658 shlibpath_var=LD_LIBRARY_PATH
25659 shlibpath_overrides_runpath=no
25660 # This implies no fast_install, which is unacceptable.
25661 # Some rework will be needed to allow for fast_install
25662 # before this can be enabled.
25663 hardcode_into_libs=yes
25664
Reid Spencer2706f8c2004-09-19 23:53:36 +000025665 # Append ld.so.conf contents to the search path
25666 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025667 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 +000025668 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25669 fi
25670
John Criswell47fdd832003-07-14 16:52:07 +000025671 # We used to test for /lib/ld.so.1 and disable shared libraries on
25672 # powerpc, because MkLinux only supported shared libraries with the
25673 # GNU dynamic linker. Since this was broken with cross compilers,
25674 # most powerpc-linux boxes support dynamic linking these days and
25675 # people can always --disable-shared, the test was removed, and we
25676 # assume the GNU/Linux dynamic linker is in use.
25677 dynamic_linker='GNU/Linux ld.so'
25678 ;;
25679
Reid Spencer2706f8c2004-09-19 23:53:36 +000025680knetbsd*-gnu)
25681 version_type=linux
25682 need_lib_prefix=no
25683 need_version=no
25684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25685 soname_spec='${libname}${release}${shared_ext}$major'
25686 shlibpath_var=LD_LIBRARY_PATH
25687 shlibpath_overrides_runpath=no
25688 hardcode_into_libs=yes
25689 dynamic_linker='GNU ld.so'
25690 ;;
25691
John Criswell47fdd832003-07-14 16:52:07 +000025692netbsd*)
25693 version_type=sunos
25694 need_lib_prefix=no
25695 need_version=no
25696 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25699 dynamic_linker='NetBSD (a.out) ld.so'
25700 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025702 soname_spec='${libname}${release}${shared_ext}$major'
25703 dynamic_linker='NetBSD ld.elf_so'
25704 fi
25705 shlibpath_var=LD_LIBRARY_PATH
25706 shlibpath_overrides_runpath=yes
25707 hardcode_into_libs=yes
25708 ;;
25709
25710newsos6)
25711 version_type=linux
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25713 shlibpath_var=LD_LIBRARY_PATH
25714 shlibpath_overrides_runpath=yes
25715 ;;
25716
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025718 version_type=linux
25719 need_lib_prefix=no
25720 need_version=no
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 soname_spec='${libname}${release}${shared_ext}$major'
25723 shlibpath_var=LD_LIBRARY_PATH
25724 shlibpath_overrides_runpath=yes
25725 ;;
25726
25727openbsd*)
25728 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025729 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025730 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025731 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25732 case $host_os in
25733 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25734 *) need_version=no ;;
25735 esac
John Criswell47fdd832003-07-14 16:52:07 +000025736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25737 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25738 shlibpath_var=LD_LIBRARY_PATH
25739 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25740 case $host_os in
25741 openbsd2.[89] | openbsd2.[89].*)
25742 shlibpath_overrides_runpath=no
25743 ;;
25744 *)
25745 shlibpath_overrides_runpath=yes
25746 ;;
25747 esac
25748 else
25749 shlibpath_overrides_runpath=yes
25750 fi
25751 ;;
25752
25753os2*)
25754 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025755 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025756 need_lib_prefix=no
25757 library_names_spec='$libname${shared_ext} $libname.a'
25758 dynamic_linker='OS/2 ld.exe'
25759 shlibpath_var=LIBPATH
25760 ;;
25761
25762osf3* | osf4* | osf5*)
25763 version_type=osf
25764 need_lib_prefix=no
25765 need_version=no
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25768 shlibpath_var=LD_LIBRARY_PATH
25769 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25770 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25771 ;;
25772
John Criswell47fdd832003-07-14 16:52:07 +000025773solaris*)
25774 version_type=linux
25775 need_lib_prefix=no
25776 need_version=no
25777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25778 soname_spec='${libname}${release}${shared_ext}$major'
25779 shlibpath_var=LD_LIBRARY_PATH
25780 shlibpath_overrides_runpath=yes
25781 hardcode_into_libs=yes
25782 # ldd complains unless libraries are executable
25783 postinstall_cmds='chmod +x $lib'
25784 ;;
25785
25786sunos4*)
25787 version_type=sunos
25788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25789 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25790 shlibpath_var=LD_LIBRARY_PATH
25791 shlibpath_overrides_runpath=yes
25792 if test "$with_gnu_ld" = yes; then
25793 need_lib_prefix=no
25794 fi
25795 need_version=yes
25796 ;;
25797
Reid Spencera773bd52006-08-04 18:18:08 +000025798sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025799 version_type=linux
25800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25801 soname_spec='${libname}${release}${shared_ext}$major'
25802 shlibpath_var=LD_LIBRARY_PATH
25803 case $host_vendor in
25804 sni)
25805 shlibpath_overrides_runpath=no
25806 need_lib_prefix=no
25807 export_dynamic_flag_spec='${wl}-Blargedynsym'
25808 runpath_var=LD_RUN_PATH
25809 ;;
25810 siemens)
25811 need_lib_prefix=no
25812 ;;
25813 motorola)
25814 need_lib_prefix=no
25815 need_version=no
25816 shlibpath_overrides_runpath=no
25817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25818 ;;
25819 esac
25820 ;;
25821
25822sysv4*MP*)
25823 if test -d /usr/nec ;then
25824 version_type=linux
25825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25826 soname_spec='$libname${shared_ext}.$major'
25827 shlibpath_var=LD_LIBRARY_PATH
25828 fi
25829 ;;
25830
Reid Spencera773bd52006-08-04 18:18:08 +000025831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25832 version_type=freebsd-elf
25833 need_lib_prefix=no
25834 need_version=no
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25838 hardcode_into_libs=yes
25839 if test "$with_gnu_ld" = yes; then
25840 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25841 shlibpath_overrides_runpath=no
25842 else
25843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25844 shlibpath_overrides_runpath=yes
25845 case $host_os in
25846 sco3.2v5*)
25847 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25848 ;;
25849 esac
25850 fi
25851 sys_lib_dlsearch_path_spec='/usr/lib'
25852 ;;
25853
John Criswell47fdd832003-07-14 16:52:07 +000025854uts4*)
25855 version_type=linux
25856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25857 soname_spec='${libname}${release}${shared_ext}$major'
25858 shlibpath_var=LD_LIBRARY_PATH
25859 ;;
25860
25861*)
25862 dynamic_linker=no
25863 ;;
25864esac
Reid Spencera773bd52006-08-04 18:18:08 +000025865{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25866echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025867test "$dynamic_linker" = no && can_build_shared=no
25868
Reid Spencera773bd52006-08-04 18:18:08 +000025869variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25870if test "$GCC" = yes; then
25871 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25872fi
25873
25874{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25875echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025876hardcode_action_GCJ=
25877if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25878 test -n "$runpath_var_GCJ" || \
25879 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25880
25881 # We can hardcode non-existant directories.
25882 if test "$hardcode_direct_GCJ" != no &&
25883 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25884 # have to relink, otherwise we might link with an installed library
25885 # when we should be linking with a yet-to-be-installed one
25886 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25887 test "$hardcode_minus_L_GCJ" != no; then
25888 # Linking always hardcodes the temporary library directory.
25889 hardcode_action_GCJ=relink
25890 else
25891 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25892 hardcode_action_GCJ=immediate
25893 fi
25894else
25895 # We cannot hardcode anything, or else we can only hardcode existing
25896 # directories.
25897 hardcode_action_GCJ=unsupported
25898fi
Reid Spencera773bd52006-08-04 18:18:08 +000025899{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25900echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025901
25902if test "$hardcode_action_GCJ" = relink; then
25903 # Fast installation is not supported
25904 enable_fast_install=no
25905elif test "$shlibpath_overrides_runpath" = yes ||
25906 test "$enable_shared" = no; then
25907 # Fast installation is not necessary
25908 enable_fast_install=needless
25909fi
25910
John Criswell47fdd832003-07-14 16:52:07 +000025911
25912# The else clause should only fire when bootstrapping the
25913# libtool distribution, otherwise you forgot to ship ltmain.sh
25914# with your package, and you will get complaints that there are
25915# no rules to generate ltmain.sh.
25916if test -f "$ltmain"; then
25917 # See if we are running on zsh, and set the options which allow our commands through
25918 # without removal of \ escapes.
25919 if test -n "${ZSH_VERSION+set}" ; then
25920 setopt NO_GLOB_SUBST
25921 fi
25922 # Now quote all the things that may contain metacharacters while being
25923 # careful not to overquote the AC_SUBSTed values. We take copies of the
25924 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025925 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 +000025926 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025927 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25928 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25929 deplibs_check_method reload_flag reload_cmds need_locks \
25930 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25931 lt_cv_sys_global_symbol_to_c_name_address \
25932 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25933 old_postinstall_cmds old_postuninstall_cmds \
25934 compiler_GCJ \
25935 CC_GCJ \
25936 LD_GCJ \
25937 lt_prog_compiler_wl_GCJ \
25938 lt_prog_compiler_pic_GCJ \
25939 lt_prog_compiler_static_GCJ \
25940 lt_prog_compiler_no_builtin_flag_GCJ \
25941 export_dynamic_flag_spec_GCJ \
25942 thread_safe_flag_spec_GCJ \
25943 whole_archive_flag_spec_GCJ \
25944 enable_shared_with_static_runtimes_GCJ \
25945 old_archive_cmds_GCJ \
25946 old_archive_from_new_cmds_GCJ \
25947 predep_objects_GCJ \
25948 postdep_objects_GCJ \
25949 predeps_GCJ \
25950 postdeps_GCJ \
25951 compiler_lib_search_path_GCJ \
25952 archive_cmds_GCJ \
25953 archive_expsym_cmds_GCJ \
25954 postinstall_cmds_GCJ \
25955 postuninstall_cmds_GCJ \
25956 old_archive_from_expsyms_cmds_GCJ \
25957 allow_undefined_flag_GCJ \
25958 no_undefined_flag_GCJ \
25959 export_symbols_cmds_GCJ \
25960 hardcode_libdir_flag_spec_GCJ \
25961 hardcode_libdir_flag_spec_ld_GCJ \
25962 hardcode_libdir_separator_GCJ \
25963 hardcode_automatic_GCJ \
25964 module_cmds_GCJ \
25965 module_expsym_cmds_GCJ \
25966 lt_cv_prog_compiler_c_o_GCJ \
25967 exclude_expsyms_GCJ \
25968 include_expsyms_GCJ; do
25969
25970 case $var in
25971 old_archive_cmds_GCJ | \
25972 old_archive_from_new_cmds_GCJ | \
25973 archive_cmds_GCJ | \
25974 archive_expsym_cmds_GCJ | \
25975 module_cmds_GCJ | \
25976 module_expsym_cmds_GCJ | \
25977 old_archive_from_expsyms_cmds_GCJ | \
25978 export_symbols_cmds_GCJ | \
25979 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25980 postinstall_cmds | postuninstall_cmds | \
25981 old_postinstall_cmds | old_postuninstall_cmds | \
25982 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25983 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025984 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 +000025985 ;;
25986 *)
25987 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25988 ;;
25989 esac
25990 done
25991
25992 case $lt_echo in
25993 *'\$0 --fallback-echo"')
25994 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25995 ;;
25996 esac
25997
25998cfgfile="$ofile"
25999
26000 cat <<__EOF__ >> "$cfgfile"
26001# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26002
26003# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26004
26005# Shell to use when invoking shell scripts.
26006SHELL=$lt_SHELL
26007
26008# Whether or not to build shared libraries.
26009build_libtool_libs=$enable_shared
26010
26011# Whether or not to build static libraries.
26012build_old_libs=$enable_static
26013
26014# Whether or not to add -lc for building shared libraries.
26015build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26016
26017# Whether or not to disallow shared libs when runtime libs are static
26018allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26019
26020# Whether or not to optimize for fast installation.
26021fast_install=$enable_fast_install
26022
26023# The host system.
26024host_alias=$host_alias
26025host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026026host_os=$host_os
26027
26028# The build system.
26029build_alias=$build_alias
26030build=$build
26031build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026032
26033# An echo program that does not interpret backslashes.
26034echo=$lt_echo
26035
26036# The archiver.
26037AR=$lt_AR
26038AR_FLAGS=$lt_AR_FLAGS
26039
26040# A C compiler.
26041LTCC=$lt_LTCC
26042
Reid Spencera773bd52006-08-04 18:18:08 +000026043# LTCC compiler flags.
26044LTCFLAGS=$lt_LTCFLAGS
26045
John Criswell47fdd832003-07-14 16:52:07 +000026046# A language-specific compiler.
26047CC=$lt_compiler_GCJ
26048
26049# Is the compiler the GNU C compiler?
26050with_gcc=$GCC_GCJ
26051
26052# An ERE matcher.
26053EGREP=$lt_EGREP
26054
26055# The linker used to build libraries.
26056LD=$lt_LD_GCJ
26057
26058# Whether we need hard or soft links.
26059LN_S=$lt_LN_S
26060
26061# A BSD-compatible nm program.
26062NM=$lt_NM
26063
26064# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026065STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026066
26067# Used to examine libraries when file_magic_cmd begins "file"
26068MAGIC_CMD=$MAGIC_CMD
26069
26070# Used on cygwin: DLL creation program.
26071DLLTOOL="$DLLTOOL"
26072
26073# Used on cygwin: object dumper.
26074OBJDUMP="$OBJDUMP"
26075
26076# Used on cygwin: assembler.
26077AS="$AS"
26078
26079# The name of the directory that contains temporary libtool files.
26080objdir=$objdir
26081
26082# How to create reloadable object files.
26083reload_flag=$lt_reload_flag
26084reload_cmds=$lt_reload_cmds
26085
26086# How to pass a linker flag through the compiler.
26087wl=$lt_lt_prog_compiler_wl_GCJ
26088
26089# Object file suffix (normally "o").
26090objext="$ac_objext"
26091
26092# Old archive suffix (normally "a").
26093libext="$libext"
26094
26095# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026096shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026097
26098# Executable file suffix (normally "").
26099exeext="$exeext"
26100
26101# Additional compiler flags for building library objects.
26102pic_flag=$lt_lt_prog_compiler_pic_GCJ
26103pic_mode=$pic_mode
26104
26105# What is the maximum length of a command?
26106max_cmd_len=$lt_cv_sys_max_cmd_len
26107
26108# Does compiler simultaneously support -c and -o options?
26109compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26110
Reid Spencera773bd52006-08-04 18:18:08 +000026111# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026112need_locks=$lt_need_locks
26113
26114# Do we need the lib prefix for modules?
26115need_lib_prefix=$need_lib_prefix
26116
26117# Do we need a version for libraries?
26118need_version=$need_version
26119
26120# Whether dlopen is supported.
26121dlopen_support=$enable_dlopen
26122
26123# Whether dlopen of programs is supported.
26124dlopen_self=$enable_dlopen_self
26125
26126# Whether dlopen of statically linked programs is supported.
26127dlopen_self_static=$enable_dlopen_self_static
26128
26129# Compiler flag to prevent dynamic linking.
26130link_static_flag=$lt_lt_prog_compiler_static_GCJ
26131
26132# Compiler flag to turn off builtin functions.
26133no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26134
26135# Compiler flag to allow reflexive dlopens.
26136export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26137
26138# Compiler flag to generate shared objects directly from archives.
26139whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26140
26141# Compiler flag to generate thread-safe objects.
26142thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26143
26144# Library versioning type.
26145version_type=$version_type
26146
26147# Format of library name prefix.
26148libname_spec=$lt_libname_spec
26149
26150# List of archive names. First name is the real one, the rest are links.
26151# The last name is the one that the linker finds with -lNAME.
26152library_names_spec=$lt_library_names_spec
26153
26154# The coded name of the library, if different from the real name.
26155soname_spec=$lt_soname_spec
26156
26157# Commands used to build and install an old-style archive.
26158RANLIB=$lt_RANLIB
26159old_archive_cmds=$lt_old_archive_cmds_GCJ
26160old_postinstall_cmds=$lt_old_postinstall_cmds
26161old_postuninstall_cmds=$lt_old_postuninstall_cmds
26162
26163# Create an old-style archive from a shared archive.
26164old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26165
26166# Create a temporary old-style archive to link instead of a shared archive.
26167old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26168
26169# Commands used to build and install a shared archive.
26170archive_cmds=$lt_archive_cmds_GCJ
26171archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26172postinstall_cmds=$lt_postinstall_cmds
26173postuninstall_cmds=$lt_postuninstall_cmds
26174
26175# Commands used to build a loadable module (assumed same as above if empty)
26176module_cmds=$lt_module_cmds_GCJ
26177module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26178
26179# Commands to strip libraries.
26180old_striplib=$lt_old_striplib
26181striplib=$lt_striplib
26182
26183# Dependencies to place before the objects being linked to create a
26184# shared library.
26185predep_objects=$lt_predep_objects_GCJ
26186
26187# Dependencies to place after the objects being linked to create a
26188# shared library.
26189postdep_objects=$lt_postdep_objects_GCJ
26190
26191# Dependencies to place before the objects being linked to create a
26192# shared library.
26193predeps=$lt_predeps_GCJ
26194
26195# Dependencies to place after the objects being linked to create a
26196# shared library.
26197postdeps=$lt_postdeps_GCJ
26198
26199# The library search path used internally by the compiler when linking
26200# a shared library.
26201compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26202
26203# Method to check whether dependent libraries are shared objects.
26204deplibs_check_method=$lt_deplibs_check_method
26205
26206# Command to use when deplibs_check_method == file_magic.
26207file_magic_cmd=$lt_file_magic_cmd
26208
26209# Flag that allows shared libraries with undefined symbols to be built.
26210allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26211
26212# Flag that forces no undefined symbols.
26213no_undefined_flag=$lt_no_undefined_flag_GCJ
26214
26215# Commands used to finish a libtool library installation in a directory.
26216finish_cmds=$lt_finish_cmds
26217
26218# Same as above, but a single script fragment to be evaled but not shown.
26219finish_eval=$lt_finish_eval
26220
26221# Take the output of nm and produce a listing of raw symbols and C names.
26222global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26223
26224# Transform the output of nm in a proper C declaration
26225global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26226
26227# Transform the output of nm in a C name address pair
26228global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26229
26230# This is the shared library runtime path variable.
26231runpath_var=$runpath_var
26232
26233# This is the shared library path variable.
26234shlibpath_var=$shlibpath_var
26235
26236# Is shlibpath searched before the hard-coded library search path?
26237shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26238
26239# How to hardcode a shared library path into an executable.
26240hardcode_action=$hardcode_action_GCJ
26241
26242# Whether we should hardcode library paths into libraries.
26243hardcode_into_libs=$hardcode_into_libs
26244
26245# Flag to hardcode \$libdir into a binary during linking.
26246# This must work even if \$libdir does not exist.
26247hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26248
26249# If ld is used when linking, flag to hardcode \$libdir into
26250# a binary during linking. This must work even if \$libdir does
26251# not exist.
26252hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26253
26254# Whether we need a single -rpath flag with a separated argument.
26255hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26256
26257# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26258# resulting binary.
26259hardcode_direct=$hardcode_direct_GCJ
26260
26261# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26262# resulting binary.
26263hardcode_minus_L=$hardcode_minus_L_GCJ
26264
26265# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26266# the resulting binary.
26267hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26268
26269# Set to yes if building a shared library automatically hardcodes DIR into the library
26270# and all subsequent libraries and executables linked against it.
26271hardcode_automatic=$hardcode_automatic_GCJ
26272
26273# Variables whose values should be saved in libtool wrapper scripts and
26274# restored at relink time.
26275variables_saved_for_relink="$variables_saved_for_relink"
26276
26277# Whether libtool must link a program against all its dependency libraries.
26278link_all_deplibs=$link_all_deplibs_GCJ
26279
26280# Compile-time system search path for libraries
26281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26282
26283# Run-time system search path for libraries
26284sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26285
26286# Fix the shell variable \$srcfile for the compiler.
26287fix_srcfile_path="$fix_srcfile_path_GCJ"
26288
26289# Set to yes if exported symbols are required.
26290always_export_symbols=$always_export_symbols_GCJ
26291
26292# The commands to list exported symbols.
26293export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26294
26295# The commands to extract the exported symbol list from a shared archive.
26296extract_expsyms_cmds=$lt_extract_expsyms_cmds
26297
26298# Symbols that should not be listed in the preloaded symbols.
26299exclude_expsyms=$lt_exclude_expsyms_GCJ
26300
26301# Symbols that must always be exported.
26302include_expsyms=$lt_include_expsyms_GCJ
26303
26304# ### END LIBTOOL TAG CONFIG: $tagname
26305
26306__EOF__
26307
26308
26309else
26310 # If there is no Makefile yet, we rely on a make rule to execute
26311 # `config.status --recheck' to rerun these tests and create the
26312 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026313 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26314 if test -f "$ltmain_in"; then
26315 test -f Makefile && make "$ltmain"
26316 fi
John Criswell47fdd832003-07-14 16:52:07 +000026317fi
26318
26319
26320ac_ext=c
26321ac_cpp='$CPP $CPPFLAGS'
26322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26324ac_compiler_gnu=$ac_cv_c_compiler_gnu
26325
26326CC="$lt_save_CC"
26327
26328 else
26329 tagname=""
26330 fi
26331 ;;
26332
26333 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026334 ac_ext=c
26335ac_cpp='$CPP $CPPFLAGS'
26336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26338ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026339
26340
26341# Source file extension for RC test sources.
26342ac_ext=rc
26343
26344# Object file extension for compiled RC test sources.
26345objext=o
26346objext_RC=$objext
26347
26348# Code to be used in simple compile tests
26349lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26350
26351# Code to be used in simple link tests
26352lt_simple_link_test_code="$lt_simple_compile_test_code"
26353
26354# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26355
26356# If no C compiler was specified, use CC.
26357LTCC=${LTCC-"$CC"}
26358
Reid Spencera773bd52006-08-04 18:18:08 +000026359# If no C compiler flags were specified, use CFLAGS.
26360LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26361
John Criswell47fdd832003-07-14 16:52:07 +000026362# Allow CC to be a program name with arguments.
26363compiler=$CC
26364
26365
Reid Spencera773bd52006-08-04 18:18:08 +000026366# save warnings/boilerplate of simple test code
26367ac_outfile=conftest.$ac_objext
26368printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26369eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26370_lt_compiler_boilerplate=`cat conftest.err`
26371$rm conftest*
26372
26373ac_outfile=conftest.$ac_objext
26374printf "$lt_simple_link_test_code" >conftest.$ac_ext
26375eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26376_lt_linker_boilerplate=`cat conftest.err`
26377$rm conftest*
26378
26379
John Criswell47fdd832003-07-14 16:52:07 +000026380# Allow CC to be a program name with arguments.
26381lt_save_CC="$CC"
26382CC=${RC-"windres"}
26383compiler=$CC
26384compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026385for cc_temp in $compiler""; do
26386 case $cc_temp in
26387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26389 \-*) ;;
26390 *) break;;
26391 esac
26392done
26393cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26394
John Criswell47fdd832003-07-14 16:52:07 +000026395lt_cv_prog_compiler_c_o_RC=yes
26396
26397# The else clause should only fire when bootstrapping the
26398# libtool distribution, otherwise you forgot to ship ltmain.sh
26399# with your package, and you will get complaints that there are
26400# no rules to generate ltmain.sh.
26401if test -f "$ltmain"; then
26402 # See if we are running on zsh, and set the options which allow our commands through
26403 # without removal of \ escapes.
26404 if test -n "${ZSH_VERSION+set}" ; then
26405 setopt NO_GLOB_SUBST
26406 fi
26407 # Now quote all the things that may contain metacharacters while being
26408 # careful not to overquote the AC_SUBSTed values. We take copies of the
26409 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026410 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 +000026411 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026412 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26413 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26414 deplibs_check_method reload_flag reload_cmds need_locks \
26415 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26416 lt_cv_sys_global_symbol_to_c_name_address \
26417 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26418 old_postinstall_cmds old_postuninstall_cmds \
26419 compiler_RC \
26420 CC_RC \
26421 LD_RC \
26422 lt_prog_compiler_wl_RC \
26423 lt_prog_compiler_pic_RC \
26424 lt_prog_compiler_static_RC \
26425 lt_prog_compiler_no_builtin_flag_RC \
26426 export_dynamic_flag_spec_RC \
26427 thread_safe_flag_spec_RC \
26428 whole_archive_flag_spec_RC \
26429 enable_shared_with_static_runtimes_RC \
26430 old_archive_cmds_RC \
26431 old_archive_from_new_cmds_RC \
26432 predep_objects_RC \
26433 postdep_objects_RC \
26434 predeps_RC \
26435 postdeps_RC \
26436 compiler_lib_search_path_RC \
26437 archive_cmds_RC \
26438 archive_expsym_cmds_RC \
26439 postinstall_cmds_RC \
26440 postuninstall_cmds_RC \
26441 old_archive_from_expsyms_cmds_RC \
26442 allow_undefined_flag_RC \
26443 no_undefined_flag_RC \
26444 export_symbols_cmds_RC \
26445 hardcode_libdir_flag_spec_RC \
26446 hardcode_libdir_flag_spec_ld_RC \
26447 hardcode_libdir_separator_RC \
26448 hardcode_automatic_RC \
26449 module_cmds_RC \
26450 module_expsym_cmds_RC \
26451 lt_cv_prog_compiler_c_o_RC \
26452 exclude_expsyms_RC \
26453 include_expsyms_RC; do
26454
26455 case $var in
26456 old_archive_cmds_RC | \
26457 old_archive_from_new_cmds_RC | \
26458 archive_cmds_RC | \
26459 archive_expsym_cmds_RC | \
26460 module_cmds_RC | \
26461 module_expsym_cmds_RC | \
26462 old_archive_from_expsyms_cmds_RC | \
26463 export_symbols_cmds_RC | \
26464 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26465 postinstall_cmds | postuninstall_cmds | \
26466 old_postinstall_cmds | old_postuninstall_cmds | \
26467 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26468 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026469 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 +000026470 ;;
26471 *)
26472 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26473 ;;
26474 esac
26475 done
26476
26477 case $lt_echo in
26478 *'\$0 --fallback-echo"')
26479 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26480 ;;
26481 esac
26482
26483cfgfile="$ofile"
26484
26485 cat <<__EOF__ >> "$cfgfile"
26486# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26487
26488# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26489
26490# Shell to use when invoking shell scripts.
26491SHELL=$lt_SHELL
26492
26493# Whether or not to build shared libraries.
26494build_libtool_libs=$enable_shared
26495
26496# Whether or not to build static libraries.
26497build_old_libs=$enable_static
26498
26499# Whether or not to add -lc for building shared libraries.
26500build_libtool_need_lc=$archive_cmds_need_lc_RC
26501
26502# Whether or not to disallow shared libs when runtime libs are static
26503allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26504
26505# Whether or not to optimize for fast installation.
26506fast_install=$enable_fast_install
26507
26508# The host system.
26509host_alias=$host_alias
26510host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026511host_os=$host_os
26512
26513# The build system.
26514build_alias=$build_alias
26515build=$build
26516build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026517
26518# An echo program that does not interpret backslashes.
26519echo=$lt_echo
26520
26521# The archiver.
26522AR=$lt_AR
26523AR_FLAGS=$lt_AR_FLAGS
26524
26525# A C compiler.
26526LTCC=$lt_LTCC
26527
Reid Spencera773bd52006-08-04 18:18:08 +000026528# LTCC compiler flags.
26529LTCFLAGS=$lt_LTCFLAGS
26530
John Criswell47fdd832003-07-14 16:52:07 +000026531# A language-specific compiler.
26532CC=$lt_compiler_RC
26533
26534# Is the compiler the GNU C compiler?
26535with_gcc=$GCC_RC
26536
26537# An ERE matcher.
26538EGREP=$lt_EGREP
26539
26540# The linker used to build libraries.
26541LD=$lt_LD_RC
26542
26543# Whether we need hard or soft links.
26544LN_S=$lt_LN_S
26545
26546# A BSD-compatible nm program.
26547NM=$lt_NM
26548
26549# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026550STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026551
26552# Used to examine libraries when file_magic_cmd begins "file"
26553MAGIC_CMD=$MAGIC_CMD
26554
26555# Used on cygwin: DLL creation program.
26556DLLTOOL="$DLLTOOL"
26557
26558# Used on cygwin: object dumper.
26559OBJDUMP="$OBJDUMP"
26560
26561# Used on cygwin: assembler.
26562AS="$AS"
26563
26564# The name of the directory that contains temporary libtool files.
26565objdir=$objdir
26566
26567# How to create reloadable object files.
26568reload_flag=$lt_reload_flag
26569reload_cmds=$lt_reload_cmds
26570
26571# How to pass a linker flag through the compiler.
26572wl=$lt_lt_prog_compiler_wl_RC
26573
26574# Object file suffix (normally "o").
26575objext="$ac_objext"
26576
26577# Old archive suffix (normally "a").
26578libext="$libext"
26579
26580# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026581shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026582
26583# Executable file suffix (normally "").
26584exeext="$exeext"
26585
26586# Additional compiler flags for building library objects.
26587pic_flag=$lt_lt_prog_compiler_pic_RC
26588pic_mode=$pic_mode
26589
26590# What is the maximum length of a command?
26591max_cmd_len=$lt_cv_sys_max_cmd_len
26592
26593# Does compiler simultaneously support -c and -o options?
26594compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26595
Reid Spencera773bd52006-08-04 18:18:08 +000026596# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026597need_locks=$lt_need_locks
26598
26599# Do we need the lib prefix for modules?
26600need_lib_prefix=$need_lib_prefix
26601
26602# Do we need a version for libraries?
26603need_version=$need_version
26604
26605# Whether dlopen is supported.
26606dlopen_support=$enable_dlopen
26607
26608# Whether dlopen of programs is supported.
26609dlopen_self=$enable_dlopen_self
26610
26611# Whether dlopen of statically linked programs is supported.
26612dlopen_self_static=$enable_dlopen_self_static
26613
26614# Compiler flag to prevent dynamic linking.
26615link_static_flag=$lt_lt_prog_compiler_static_RC
26616
26617# Compiler flag to turn off builtin functions.
26618no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26619
26620# Compiler flag to allow reflexive dlopens.
26621export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26622
26623# Compiler flag to generate shared objects directly from archives.
26624whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26625
26626# Compiler flag to generate thread-safe objects.
26627thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26628
26629# Library versioning type.
26630version_type=$version_type
26631
26632# Format of library name prefix.
26633libname_spec=$lt_libname_spec
26634
26635# List of archive names. First name is the real one, the rest are links.
26636# The last name is the one that the linker finds with -lNAME.
26637library_names_spec=$lt_library_names_spec
26638
26639# The coded name of the library, if different from the real name.
26640soname_spec=$lt_soname_spec
26641
26642# Commands used to build and install an old-style archive.
26643RANLIB=$lt_RANLIB
26644old_archive_cmds=$lt_old_archive_cmds_RC
26645old_postinstall_cmds=$lt_old_postinstall_cmds
26646old_postuninstall_cmds=$lt_old_postuninstall_cmds
26647
26648# Create an old-style archive from a shared archive.
26649old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26650
26651# Create a temporary old-style archive to link instead of a shared archive.
26652old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26653
26654# Commands used to build and install a shared archive.
26655archive_cmds=$lt_archive_cmds_RC
26656archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26657postinstall_cmds=$lt_postinstall_cmds
26658postuninstall_cmds=$lt_postuninstall_cmds
26659
26660# Commands used to build a loadable module (assumed same as above if empty)
26661module_cmds=$lt_module_cmds_RC
26662module_expsym_cmds=$lt_module_expsym_cmds_RC
26663
26664# Commands to strip libraries.
26665old_striplib=$lt_old_striplib
26666striplib=$lt_striplib
26667
26668# Dependencies to place before the objects being linked to create a
26669# shared library.
26670predep_objects=$lt_predep_objects_RC
26671
26672# Dependencies to place after the objects being linked to create a
26673# shared library.
26674postdep_objects=$lt_postdep_objects_RC
26675
26676# Dependencies to place before the objects being linked to create a
26677# shared library.
26678predeps=$lt_predeps_RC
26679
26680# Dependencies to place after the objects being linked to create a
26681# shared library.
26682postdeps=$lt_postdeps_RC
26683
26684# The library search path used internally by the compiler when linking
26685# a shared library.
26686compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26687
26688# Method to check whether dependent libraries are shared objects.
26689deplibs_check_method=$lt_deplibs_check_method
26690
26691# Command to use when deplibs_check_method == file_magic.
26692file_magic_cmd=$lt_file_magic_cmd
26693
26694# Flag that allows shared libraries with undefined symbols to be built.
26695allow_undefined_flag=$lt_allow_undefined_flag_RC
26696
26697# Flag that forces no undefined symbols.
26698no_undefined_flag=$lt_no_undefined_flag_RC
26699
26700# Commands used to finish a libtool library installation in a directory.
26701finish_cmds=$lt_finish_cmds
26702
26703# Same as above, but a single script fragment to be evaled but not shown.
26704finish_eval=$lt_finish_eval
26705
26706# Take the output of nm and produce a listing of raw symbols and C names.
26707global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26708
26709# Transform the output of nm in a proper C declaration
26710global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26711
26712# Transform the output of nm in a C name address pair
26713global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26714
26715# This is the shared library runtime path variable.
26716runpath_var=$runpath_var
26717
26718# This is the shared library path variable.
26719shlibpath_var=$shlibpath_var
26720
26721# Is shlibpath searched before the hard-coded library search path?
26722shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26723
26724# How to hardcode a shared library path into an executable.
26725hardcode_action=$hardcode_action_RC
26726
26727# Whether we should hardcode library paths into libraries.
26728hardcode_into_libs=$hardcode_into_libs
26729
26730# Flag to hardcode \$libdir into a binary during linking.
26731# This must work even if \$libdir does not exist.
26732hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26733
26734# If ld is used when linking, flag to hardcode \$libdir into
26735# a binary during linking. This must work even if \$libdir does
26736# not exist.
26737hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26738
26739# Whether we need a single -rpath flag with a separated argument.
26740hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26741
26742# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26743# resulting binary.
26744hardcode_direct=$hardcode_direct_RC
26745
26746# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26747# resulting binary.
26748hardcode_minus_L=$hardcode_minus_L_RC
26749
26750# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26751# the resulting binary.
26752hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26753
26754# Set to yes if building a shared library automatically hardcodes DIR into the library
26755# and all subsequent libraries and executables linked against it.
26756hardcode_automatic=$hardcode_automatic_RC
26757
26758# Variables whose values should be saved in libtool wrapper scripts and
26759# restored at relink time.
26760variables_saved_for_relink="$variables_saved_for_relink"
26761
26762# Whether libtool must link a program against all its dependency libraries.
26763link_all_deplibs=$link_all_deplibs_RC
26764
26765# Compile-time system search path for libraries
26766sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26767
26768# Run-time system search path for libraries
26769sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26770
26771# Fix the shell variable \$srcfile for the compiler.
26772fix_srcfile_path="$fix_srcfile_path_RC"
26773
26774# Set to yes if exported symbols are required.
26775always_export_symbols=$always_export_symbols_RC
26776
26777# The commands to list exported symbols.
26778export_symbols_cmds=$lt_export_symbols_cmds_RC
26779
26780# The commands to extract the exported symbol list from a shared archive.
26781extract_expsyms_cmds=$lt_extract_expsyms_cmds
26782
26783# Symbols that should not be listed in the preloaded symbols.
26784exclude_expsyms=$lt_exclude_expsyms_RC
26785
26786# Symbols that must always be exported.
26787include_expsyms=$lt_include_expsyms_RC
26788
26789# ### END LIBTOOL TAG CONFIG: $tagname
26790
26791__EOF__
26792
26793
26794else
26795 # If there is no Makefile yet, we rely on a make rule to execute
26796 # `config.status --recheck' to rerun these tests and create the
26797 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026798 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26799 if test -f "$ltmain_in"; then
26800 test -f Makefile && make "$ltmain"
26801 fi
John Criswell47fdd832003-07-14 16:52:07 +000026802fi
26803
26804
26805ac_ext=c
26806ac_cpp='$CPP $CPPFLAGS'
26807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26809ac_compiler_gnu=$ac_cv_c_compiler_gnu
26810
26811CC="$lt_save_CC"
26812
26813 ;;
26814
26815 *)
26816 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26817echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26818 { (exit 1); exit 1; }; }
26819 ;;
26820 esac
26821
26822 # Append the new tag name to the list of available tags.
26823 if test -n "$tagname" ; then
26824 available_tags="$available_tags $tagname"
26825 fi
26826 fi
26827 done
26828 IFS="$lt_save_ifs"
26829
26830 # Now substitute the updated list of available tags.
26831 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26832 mv "${ofile}T" "$ofile"
26833 chmod +x "$ofile"
26834 else
26835 rm -f "${ofile}T"
26836 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26837echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26838 { (exit 1); exit 1; }; }
26839 fi
26840fi
John Criswell7a73b802003-06-30 21:59:07 +000026841
26842
26843
26844# This can be used to rebuild libtool when needed
26845LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26846
26847# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026848LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026849
26850# Prevent multiple expansion
26851
26852
26853
John Criswell47fdd832003-07-14 16:52:07 +000026854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026871
Reid Spencer582a23c2004-12-29 07:07:57 +000026872if test "$lt_cv_dlopen_self" = "yes" ; then
26873
26874cat >>confdefs.h <<\_ACEOF
26875#define CAN_DLOPEN_SELF 1
26876_ACEOF
26877
26878fi
26879
Reid Spencer7931a782004-12-27 06:15:02 +000026880if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026881 LLVMGCC="llvm-gcc${EXEEXT}"
26882 LLVMGXX="llvm-g++${EXEEXT}"
26883 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26884set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026887if test "${ac_cv_path_LLVMGCC+set}" = set; then
26888 echo $ECHO_N "(cached) $ECHO_C" >&6
26889else
26890 case $LLVMGCC in
26891 [\\/]* | ?:[\\/]*)
26892 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26893 ;;
26894 *)
26895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26896for as_dir in $PATH
26897do
26898 IFS=$as_save_IFS
26899 test -z "$as_dir" && as_dir=.
26900 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026901 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 +000026902 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26904 break 2
26905 fi
26906done
26907done
Reid Spencera773bd52006-08-04 18:18:08 +000026908IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026909
Reid Spencer59473af2004-12-25 07:31:29 +000026910 ;;
26911esac
26912fi
26913LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026914if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026915 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26916echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026917else
Reid Spencera773bd52006-08-04 18:18:08 +000026918 { echo "$as_me:$LINENO: result: no" >&5
26919echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026920fi
26921
Reid Spencera773bd52006-08-04 18:18:08 +000026922
Reid Spencerc84492c2005-06-02 22:34:49 +000026923 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26924set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026927if test "${ac_cv_path_LLVMGXX+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26929else
26930 case $LLVMGXX in
26931 [\\/]* | ?:[\\/]*)
26932 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26933 ;;
26934 *)
26935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26936for as_dir in $PATH
26937do
26938 IFS=$as_save_IFS
26939 test -z "$as_dir" && as_dir=.
26940 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026941 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 +000026942 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26944 break 2
26945 fi
26946done
26947done
Reid Spencera773bd52006-08-04 18:18:08 +000026948IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026949
Reid Spencer59473af2004-12-25 07:31:29 +000026950 ;;
26951esac
26952fi
26953LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026954if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026955 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26956echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026957else
Reid Spencera773bd52006-08-04 18:18:08 +000026958 { echo "$as_me:$LINENO: result: no" >&5
26959echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026960fi
26961
Reid Spencera773bd52006-08-04 18:18:08 +000026962
Reid Spencer59473af2004-12-25 07:31:29 +000026963else
Devang Patel5d28b882007-12-04 22:54:47 +000026964 if test -z "$LLVMGCC"; then
26965 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26966 fi
26967 if test -z "$LLVMGXX"; then
26968 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26969 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026970 LLVMGCC=$LLVMGCC
26971
26972 LLVMGXX=$LLVMGXX
26973
26974fi
26975
Reid Spencera773bd52006-08-04 18:18:08 +000026976{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26977echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026978
Reid Spencer86901802004-12-08 23:07:27 +000026979ICC=no
26980IXX=no
26981case $CC in
26982 icc*|icpc*)
26983 ICC=yes
26984 IXX=yes
26985 ;;
26986 *)
26987 ;;
26988esac
26989
Duraid Madina937c60a2006-02-15 07:57:42 +000026990if test "$GCC" != "yes" && test "$ICC" != "yes"
26991then
26992 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26993echo "$as_me: error: gcc|icc required but not found" >&2;}
26994 { (exit 1); exit 1; }; }
26995fi
26996
26997if test "$GXX" != "yes" && test "$IXX" != "yes"
26998then
26999 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27000echo "$as_me: error: g++|icc required but not found" >&2;}
27001 { (exit 1); exit 1; }; }
27002fi
27003
Reid Spencer86901802004-12-08 23:07:27 +000027004if test "$GCC" = "yes"
27005then
Chris Lattner399c7c72008-02-05 19:43:53 +000027006 cat >conftest.$ac_ext <<_ACEOF
27007#if !defined(__GNUC__) || __GNUC__ < 3
27008#error Unsupported GCC version
27009#endif
27010
27011_ACEOF
27012rm -f conftest.$ac_objext
27013if { (ac_try="$ac_compile"
27014case "(($ac_try" in
27015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27016 *) ac_try_echo=$ac_try;;
27017esac
27018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27019 (eval "$ac_compile") 2>conftest.er1
27020 ac_status=$?
27021 grep -v '^ *+' conftest.er1 >conftest.err
27022 rm -f conftest.er1
27023 cat conftest.err >&5
27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27025 (exit $ac_status); } &&
27026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27027 { (case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27030esac
27031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_try") 2>&5
27033 ac_status=$?
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); }; } &&
27036 { ac_try='test -s conftest.$ac_objext'
27037 { (case "(($ac_try" in
27038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039 *) ac_try_echo=$ac_try;;
27040esac
27041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042 (eval "$ac_try") 2>&5
27043 ac_status=$?
27044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27045 (exit $ac_status); }; }; then
27046 :
27047else
27048 echo "$as_me: failed program was:" >&5
27049sed 's/^/| /' conftest.$ac_ext >&5
27050
27051 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027052echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27053 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027054fi
27055
27056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027057fi
27058
27059if test -z "$llvm_cv_gnu_make_command"
27060then
27061 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27062echo "$as_me: error: GNU Make required but not found" >&2;}
27063 { (exit 1); exit 1; }; }
27064fi
27065
Reid Spencera773bd52006-08-04 18:18:08 +000027066{ echo "$as_me:$LINENO: result: ok" >&5
27067echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027068
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027069
John Criswell7a73b802003-06-30 21:59:07 +000027070
Reid Spencera773bd52006-08-04 18:18:08 +000027071{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27072echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027073if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075else
27076 ac_check_lib_save_LIBS=$LIBS
27077LIBS="-lelf $LIBS"
27078cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027084
Reid Spencera773bd52006-08-04 18:18:08 +000027085/* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027088#ifdef __cplusplus
27089extern "C"
27090#endif
John Criswell7a73b802003-06-30 21:59:07 +000027091char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027092int
27093main ()
27094{
Reid Spencera773bd52006-08-04 18:18:08 +000027095return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027096 ;
27097 return 0;
27098}
27099_ACEOF
27100rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027101if { (ac_try="$ac_link"
27102case "(($ac_try" in
27103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104 *) ac_try_echo=$ac_try;;
27105esac
27106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027109 grep -v '^ *+' conftest.er1 >conftest.err
27110 rm -f conftest.er1
27111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027113 (exit $ac_status); } &&
27114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; } &&
27124 { ac_try='test -s conftest$ac_exeext'
27125 { (case "(($ac_try" in
27126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27127 *) ac_try_echo=$ac_try;;
27128esac
27129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27130 (eval "$ac_try") 2>&5
27131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027134 ac_cv_lib_elf_elf_begin=yes
27135else
27136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027137sed 's/^/| /' conftest.$ac_ext >&5
27138
Reid Spencera773bd52006-08-04 18:18:08 +000027139 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027140fi
Reid Spencera773bd52006-08-04 18:18:08 +000027141
Tanya Lattnercf067672008-01-17 05:57:22 +000027142rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027143 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027144LIBS=$ac_check_lib_save_LIBS
27145fi
Reid Spencera773bd52006-08-04 18:18:08 +000027146{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27147echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027148if test $ac_cv_lib_elf_elf_begin = yes; then
27149 cat >>confdefs.h <<_ACEOF
27150#define HAVE_LIBELF 1
27151_ACEOF
27152
27153 LIBS="-lelf $LIBS"
27154
27155fi
27156
27157
Reid Spencera773bd52006-08-04 18:18:08 +000027158{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27159echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027160if test "${ac_cv_lib_m_sin+set}" = set; then
27161 echo $ECHO_N "(cached) $ECHO_C" >&6
27162else
27163 ac_check_lib_save_LIBS=$LIBS
27164LIBS="-lm $LIBS"
27165cat >conftest.$ac_ext <<_ACEOF
27166/* confdefs.h. */
27167_ACEOF
27168cat confdefs.h >>conftest.$ac_ext
27169cat >>conftest.$ac_ext <<_ACEOF
27170/* end confdefs.h. */
27171
Reid Spencera773bd52006-08-04 18:18:08 +000027172/* Override any GCC internal prototype to avoid an error.
27173 Use char because int might match the return type of a GCC
27174 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027175#ifdef __cplusplus
27176extern "C"
27177#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027178char sin ();
27179int
27180main ()
27181{
Reid Spencera773bd52006-08-04 18:18:08 +000027182return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027183 ;
27184 return 0;
27185}
27186_ACEOF
27187rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027188if { (ac_try="$ac_link"
27189case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27192esac
27193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027195 ac_status=$?
27196 grep -v '^ *+' conftest.er1 >conftest.err
27197 rm -f conftest.er1
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027200 (exit $ac_status); } &&
27201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27202 { (case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27205esac
27206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_try") 2>&5
27208 ac_status=$?
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; } &&
27211 { ac_try='test -s conftest$ac_exeext'
27212 { (case "(($ac_try" in
27213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214 *) ac_try_echo=$ac_try;;
27215esac
27216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217 (eval "$ac_try") 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027221 ac_cv_lib_m_sin=yes
27222else
27223 echo "$as_me: failed program was:" >&5
27224sed 's/^/| /' conftest.$ac_ext >&5
27225
Reid Spencera773bd52006-08-04 18:18:08 +000027226 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027227fi
Reid Spencera773bd52006-08-04 18:18:08 +000027228
Tanya Lattnercf067672008-01-17 05:57:22 +000027229rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027230 conftest$ac_exeext conftest.$ac_ext
27231LIBS=$ac_check_lib_save_LIBS
27232fi
Reid Spencera773bd52006-08-04 18:18:08 +000027233{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27234echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027235if test $ac_cv_lib_m_sin = yes; then
27236 cat >>confdefs.h <<_ACEOF
27237#define HAVE_LIBM 1
27238_ACEOF
27239
27240 LIBS="-lm $LIBS"
27241
27242fi
27243
Jeff Cohen28783c32007-01-12 18:22:38 +000027244if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027245
Reid Spencera773bd52006-08-04 18:18:08 +000027246{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27247echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027248if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027249 echo $ECHO_N "(cached) $ECHO_C" >&6
27250else
27251 ac_check_lib_save_LIBS=$LIBS
27252LIBS="-limagehlp $LIBS"
27253cat >conftest.$ac_ext <<_ACEOF
27254/* confdefs.h. */
27255_ACEOF
27256cat confdefs.h >>conftest.$ac_ext
27257cat >>conftest.$ac_ext <<_ACEOF
27258/* end confdefs.h. */
27259
Reid Spencer48fdf912006-06-01 19:03:21 +000027260
Reid Spencer484fc8e2006-06-01 16:55:59 +000027261int
27262main ()
27263{
Reid Spencera773bd52006-08-04 18:18:08 +000027264return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027265 ;
27266 return 0;
27267}
27268_ACEOF
27269rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027270if { (ac_try="$ac_link"
27271case "(($ac_try" in
27272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27273 *) ac_try_echo=$ac_try;;
27274esac
27275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27276 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027277 ac_status=$?
27278 grep -v '^ *+' conftest.er1 >conftest.err
27279 rm -f conftest.er1
27280 cat conftest.err >&5
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027282 (exit $ac_status); } &&
27283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27284 { (case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27287esac
27288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_try") 2>&5
27290 ac_status=$?
27291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27292 (exit $ac_status); }; } &&
27293 { ac_try='test -s conftest$ac_exeext'
27294 { (case "(($ac_try" in
27295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27296 *) ac_try_echo=$ac_try;;
27297esac
27298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27299 (eval "$ac_try") 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027303 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027304else
27305 echo "$as_me: failed program was:" >&5
27306sed 's/^/| /' conftest.$ac_ext >&5
27307
Reid Spencera773bd52006-08-04 18:18:08 +000027308 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027309fi
Reid Spencera773bd52006-08-04 18:18:08 +000027310
Tanya Lattnercf067672008-01-17 05:57:22 +000027311rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027312 conftest$ac_exeext conftest.$ac_ext
27313LIBS=$ac_check_lib_save_LIBS
27314fi
Reid Spencera773bd52006-08-04 18:18:08 +000027315{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27316echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027317if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027318 cat >>confdefs.h <<_ACEOF
27319#define HAVE_LIBIMAGEHLP 1
27320_ACEOF
27321
27322 LIBS="-limagehlp $LIBS"
27323
27324fi
27325
27326
Reid Spencera773bd52006-08-04 18:18:08 +000027327{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27328echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027329if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027330 echo $ECHO_N "(cached) $ECHO_C" >&6
27331else
27332 ac_check_lib_save_LIBS=$LIBS
27333LIBS="-lpsapi $LIBS"
27334cat >conftest.$ac_ext <<_ACEOF
27335/* confdefs.h. */
27336_ACEOF
27337cat confdefs.h >>conftest.$ac_ext
27338cat >>conftest.$ac_ext <<_ACEOF
27339/* end confdefs.h. */
27340
Reid Spencer48fdf912006-06-01 19:03:21 +000027341
Reid Spencer484fc8e2006-06-01 16:55:59 +000027342int
27343main ()
27344{
Reid Spencera773bd52006-08-04 18:18:08 +000027345return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027346 ;
27347 return 0;
27348}
27349_ACEOF
27350rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027351if { (ac_try="$ac_link"
27352case "(($ac_try" in
27353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27354 *) ac_try_echo=$ac_try;;
27355esac
27356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27357 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027358 ac_status=$?
27359 grep -v '^ *+' conftest.er1 >conftest.err
27360 rm -f conftest.er1
27361 cat conftest.err >&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027363 (exit $ac_status); } &&
27364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27365 { (case "(($ac_try" in
27366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367 *) ac_try_echo=$ac_try;;
27368esac
27369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370 (eval "$ac_try") 2>&5
27371 ac_status=$?
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); }; } &&
27374 { ac_try='test -s conftest$ac_exeext'
27375 { (case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27378esac
27379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_try") 2>&5
27381 ac_status=$?
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027384 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027385else
27386 echo "$as_me: failed program was:" >&5
27387sed 's/^/| /' conftest.$ac_ext >&5
27388
Reid Spencera773bd52006-08-04 18:18:08 +000027389 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027390fi
Reid Spencera773bd52006-08-04 18:18:08 +000027391
Tanya Lattnercf067672008-01-17 05:57:22 +000027392rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027393 conftest$ac_exeext conftest.$ac_ext
27394LIBS=$ac_check_lib_save_LIBS
27395fi
Reid Spencera773bd52006-08-04 18:18:08 +000027396{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27397echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027398if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027399 cat >>confdefs.h <<_ACEOF
27400#define HAVE_LIBPSAPI 1
27401_ACEOF
27402
27403 LIBS="-lpsapi $LIBS"
27404
27405fi
27406
27407fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027408
Reid Spencera773bd52006-08-04 18:18:08 +000027409{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27410echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027411if test "${ac_cv_search_dlopen+set}" = set; then
27412 echo $ECHO_N "(cached) $ECHO_C" >&6
27413else
27414 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027415cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027416/* confdefs.h. */
27417_ACEOF
27418cat confdefs.h >>conftest.$ac_ext
27419cat >>conftest.$ac_ext <<_ACEOF
27420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027421
Reid Spencera773bd52006-08-04 18:18:08 +000027422/* Override any GCC internal prototype to avoid an error.
27423 Use char because int might match the return type of a GCC
27424 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027425#ifdef __cplusplus
27426extern "C"
27427#endif
John Criswell7a73b802003-06-30 21:59:07 +000027428char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027429int
27430main ()
27431{
Reid Spencera773bd52006-08-04 18:18:08 +000027432return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027433 ;
27434 return 0;
27435}
27436_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027437for ac_lib in '' dl; do
27438 if test -z "$ac_lib"; then
27439 ac_res="none required"
27440 else
27441 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027443 fi
27444 rm -f conftest.$ac_objext conftest$ac_exeext
27445if { (ac_try="$ac_link"
27446case "(($ac_try" in
27447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27448 *) ac_try_echo=$ac_try;;
27449esac
27450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27451 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027452 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027453 grep -v '^ *+' conftest.er1 >conftest.err
27454 rm -f conftest.er1
27455 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27459 { (case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_try") 2>&5
27465 ac_status=$?
27466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27467 (exit $ac_status); }; } &&
27468 { ac_try='test -s conftest$ac_exeext'
27469 { (case "(($ac_try" in
27470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27472esac
27473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_try") 2>&5
27475 ac_status=$?
27476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027478 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027479else
27480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027481sed 's/^/| /' conftest.$ac_ext >&5
27482
Reid Spencera773bd52006-08-04 18:18:08 +000027483
John Criswell7a73b802003-06-30 21:59:07 +000027484fi
Reid Spencera773bd52006-08-04 18:18:08 +000027485
Tanya Lattnercf067672008-01-17 05:57:22 +000027486rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027487 conftest$ac_exeext
27488 if test "${ac_cv_search_dlopen+set}" = set; then
27489 break
John Criswell7a73b802003-06-30 21:59:07 +000027490fi
Reid Spencera773bd52006-08-04 18:18:08 +000027491done
27492if test "${ac_cv_search_dlopen+set}" = set; then
27493 :
27494else
27495 ac_cv_search_dlopen=no
27496fi
27497rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027498LIBS=$ac_func_search_save_LIBS
27499fi
Reid Spencera773bd52006-08-04 18:18:08 +000027500{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27501echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27502ac_res=$ac_cv_search_dlopen
27503if test "$ac_res" != no; then
27504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027505
27506cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027507#define HAVE_DLOPEN 1
27508_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027509
27510else
Brian Gaekec45be042003-10-07 06:01:34 +000027511 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27512echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027513fi
27514
27515
Reid Spencera773bd52006-08-04 18:18:08 +000027516{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27517echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027518if test "${ac_cv_search_mallinfo+set}" = set; then
27519 echo $ECHO_N "(cached) $ECHO_C" >&6
27520else
27521 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027522cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027523/* confdefs.h. */
27524_ACEOF
27525cat confdefs.h >>conftest.$ac_ext
27526cat >>conftest.$ac_ext <<_ACEOF
27527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027528
Reid Spencera773bd52006-08-04 18:18:08 +000027529/* Override any GCC internal prototype to avoid an error.
27530 Use char because int might match the return type of a GCC
27531 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027532#ifdef __cplusplus
27533extern "C"
27534#endif
John Criswell7a73b802003-06-30 21:59:07 +000027535char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027536int
27537main ()
27538{
Reid Spencera773bd52006-08-04 18:18:08 +000027539return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027540 ;
27541 return 0;
27542}
27543_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027544for ac_lib in '' malloc; do
27545 if test -z "$ac_lib"; then
27546 ac_res="none required"
27547 else
27548 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027549 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027550 fi
27551 rm -f conftest.$ac_objext conftest$ac_exeext
27552if { (ac_try="$ac_link"
27553case "(($ac_try" in
27554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555 *) ac_try_echo=$ac_try;;
27556esac
27557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027559 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027560 grep -v '^ *+' conftest.er1 >conftest.err
27561 rm -f conftest.er1
27562 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027564 (exit $ac_status); } &&
27565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27566 { (case "(($ac_try" in
27567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568 *) ac_try_echo=$ac_try;;
27569esac
27570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27571 (eval "$ac_try") 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; } &&
27575 { ac_try='test -s conftest$ac_exeext'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579esac
27580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027585 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027586else
27587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027588sed 's/^/| /' conftest.$ac_ext >&5
27589
Reid Spencera773bd52006-08-04 18:18:08 +000027590
John Criswell7a73b802003-06-30 21:59:07 +000027591fi
Reid Spencera773bd52006-08-04 18:18:08 +000027592
Tanya Lattnercf067672008-01-17 05:57:22 +000027593rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027594 conftest$ac_exeext
27595 if test "${ac_cv_search_mallinfo+set}" = set; then
27596 break
John Criswell7a73b802003-06-30 21:59:07 +000027597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598done
27599if test "${ac_cv_search_mallinfo+set}" = set; then
27600 :
27601else
27602 ac_cv_search_mallinfo=no
27603fi
27604rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027605LIBS=$ac_func_search_save_LIBS
27606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27608echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27609ac_res=$ac_cv_search_mallinfo
27610if test "$ac_res" != no; then
27611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027612
27613cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027614#define HAVE_MALLINFO 1
27615_ACEOF
27616
27617fi
27618
27619
Reid Spencer0a262ba2005-08-24 10:07:20 +000027620if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027621
Reid Spencera773bd52006-08-04 18:18:08 +000027622{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27623echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027624if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27626else
27627 ac_check_lib_save_LIBS=$LIBS
27628LIBS="-lpthread $LIBS"
27629cat >conftest.$ac_ext <<_ACEOF
27630/* confdefs.h. */
27631_ACEOF
27632cat confdefs.h >>conftest.$ac_ext
27633cat >>conftest.$ac_ext <<_ACEOF
27634/* end confdefs.h. */
27635
Reid Spencera773bd52006-08-04 18:18:08 +000027636/* Override any GCC internal prototype to avoid an error.
27637 Use char because int might match the return type of a GCC
27638 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027639#ifdef __cplusplus
27640extern "C"
27641#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027642char pthread_mutex_init ();
27643int
27644main ()
27645{
Reid Spencera773bd52006-08-04 18:18:08 +000027646return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027647 ;
27648 return 0;
27649}
27650_ACEOF
27651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027652if { (ac_try="$ac_link"
27653case "(($ac_try" in
27654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27655 *) ac_try_echo=$ac_try;;
27656esac
27657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27658 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027659 ac_status=$?
27660 grep -v '^ *+' conftest.er1 >conftest.err
27661 rm -f conftest.er1
27662 cat conftest.err >&5
27663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027664 (exit $ac_status); } &&
27665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27666 { (case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27669esac
27670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_try") 2>&5
27672 ac_status=$?
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); }; } &&
27675 { ac_try='test -s conftest$ac_exeext'
27676 { (case "(($ac_try" in
27677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27678 *) ac_try_echo=$ac_try;;
27679esac
27680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27681 (eval "$ac_try") 2>&5
27682 ac_status=$?
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027685 ac_cv_lib_pthread_pthread_mutex_init=yes
27686else
27687 echo "$as_me: failed program was:" >&5
27688sed 's/^/| /' conftest.$ac_ext >&5
27689
Reid Spencera773bd52006-08-04 18:18:08 +000027690 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027691fi
Reid Spencera773bd52006-08-04 18:18:08 +000027692
Tanya Lattnercf067672008-01-17 05:57:22 +000027693rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027694 conftest$ac_exeext conftest.$ac_ext
27695LIBS=$ac_check_lib_save_LIBS
27696fi
Reid Spencera773bd52006-08-04 18:18:08 +000027697{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27698echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027699if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27700 cat >>confdefs.h <<_ACEOF
27701#define HAVE_LIBPTHREAD 1
27702_ACEOF
27703
27704 LIBS="-lpthread $LIBS"
27705
27706fi
27707
Reid Spencera773bd52006-08-04 18:18:08 +000027708 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27709echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027710if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27711 echo $ECHO_N "(cached) $ECHO_C" >&6
27712else
27713 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027714cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027715/* confdefs.h. */
27716_ACEOF
27717cat confdefs.h >>conftest.$ac_ext
27718cat >>conftest.$ac_ext <<_ACEOF
27719/* end confdefs.h. */
27720
Reid Spencera773bd52006-08-04 18:18:08 +000027721/* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027724#ifdef __cplusplus
27725extern "C"
27726#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027727char pthread_mutex_lock ();
27728int
27729main ()
27730{
Reid Spencera773bd52006-08-04 18:18:08 +000027731return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027732 ;
27733 return 0;
27734}
27735_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027736for ac_lib in '' pthread; do
27737 if test -z "$ac_lib"; then
27738 ac_res="none required"
27739 else
27740 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027742 fi
27743 rm -f conftest.$ac_objext conftest$ac_exeext
27744if { (ac_try="$ac_link"
27745case "(($ac_try" in
27746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27747 *) ac_try_echo=$ac_try;;
27748esac
27749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27750 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027751 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027752 grep -v '^ *+' conftest.er1 >conftest.err
27753 rm -f conftest.er1
27754 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027756 (exit $ac_status); } &&
27757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27758 { (case "(($ac_try" in
27759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27760 *) ac_try_echo=$ac_try;;
27761esac
27762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27763 (eval "$ac_try") 2>&5
27764 ac_status=$?
27765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766 (exit $ac_status); }; } &&
27767 { ac_try='test -s conftest$ac_exeext'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27771esac
27772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027777 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027778else
27779 echo "$as_me: failed program was:" >&5
27780sed 's/^/| /' conftest.$ac_ext >&5
27781
Reid Spencera773bd52006-08-04 18:18:08 +000027782
Brian Gaeke5f268f72003-12-05 19:29:01 +000027783fi
Reid Spencera773bd52006-08-04 18:18:08 +000027784
Tanya Lattnercf067672008-01-17 05:57:22 +000027785rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027786 conftest$ac_exeext
27787 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27788 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027789fi
Reid Spencera773bd52006-08-04 18:18:08 +000027790done
27791if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27792 :
27793else
27794 ac_cv_search_pthread_mutex_lock=no
27795fi
27796rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027797LIBS=$ac_func_search_save_LIBS
27798fi
Reid Spencera773bd52006-08-04 18:18:08 +000027799{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27800echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27801ac_res=$ac_cv_search_pthread_mutex_lock
27802if test "$ac_res" != no; then
27803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027804
John Criswell40468462004-09-24 21:19:06 +000027805cat >>confdefs.h <<\_ACEOF
27806#define HAVE_PTHREAD_MUTEX_LOCK 1
27807_ACEOF
27808
27809fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027810
Reid Spencer0a262ba2005-08-24 10:07:20 +000027811fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027812
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027813
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027814# Check whether --with-udis86 was given.
27815if test "${with_udis86+set}" = set; then
27816 withval=$with_udis86;
27817 USE_UDIS86=1
27818
27819 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027820 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027821 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27822 esac
27823
27824{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27825echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27826if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828else
27829 ac_check_lib_save_LIBS=$LIBS
27830LIBS="-ludis86 $LIBS"
27831cat >conftest.$ac_ext <<_ACEOF
27832/* confdefs.h. */
27833_ACEOF
27834cat confdefs.h >>conftest.$ac_ext
27835cat >>conftest.$ac_ext <<_ACEOF
27836/* end confdefs.h. */
27837
27838/* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27841#ifdef __cplusplus
27842extern "C"
27843#endif
27844char ud_init ();
27845int
27846main ()
27847{
27848return ud_init ();
27849 ;
27850 return 0;
27851}
27852_ACEOF
27853rm -f conftest.$ac_objext conftest$ac_exeext
27854if { (ac_try="$ac_link"
27855case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858esac
27859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_link") 2>conftest.er1
27861 ac_status=$?
27862 grep -v '^ *+' conftest.er1 >conftest.err
27863 rm -f conftest.er1
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871esac
27872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest$ac_exeext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881esac
27882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027887 ac_cv_lib_udis86_ud_init=yes
27888else
27889 echo "$as_me: failed program was:" >&5
27890sed 's/^/| /' conftest.$ac_ext >&5
27891
27892 ac_cv_lib_udis86_ud_init=no
27893fi
27894
Tanya Lattnercf067672008-01-17 05:57:22 +000027895rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027896 conftest$ac_exeext conftest.$ac_ext
27897LIBS=$ac_check_lib_save_LIBS
27898fi
27899{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27900echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27901if test $ac_cv_lib_udis86_ud_init = yes; then
27902 cat >>confdefs.h <<_ACEOF
27903#define HAVE_LIBUDIS86 1
27904_ACEOF
27905
27906 LIBS="-ludis86 $LIBS"
27907
27908else
27909
27910 echo "Error! You need to have libudis86 around."
27911 exit -1
27912
27913fi
27914
27915
27916else
27917 USE_UDIS86=0
27918
27919fi
27920
27921
27922cat >>confdefs.h <<_ACEOF
27923#define USE_UDIS86 $USE_UDIS86
27924_ACEOF
27925
27926
27927
Reid Spencer59473af2004-12-25 07:31:29 +000027928
27929
27930
27931
27932
27933ac_header_dirent=no
27934for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27935 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027936{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27937echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027939 echo $ECHO_N "(cached) $ECHO_C" >&6
27940else
27941 cat >conftest.$ac_ext <<_ACEOF
27942/* confdefs.h. */
27943_ACEOF
27944cat confdefs.h >>conftest.$ac_ext
27945cat >>conftest.$ac_ext <<_ACEOF
27946/* end confdefs.h. */
27947#include <sys/types.h>
27948#include <$ac_hdr>
27949
27950int
27951main ()
27952{
27953if ((DIR *) 0)
27954return 0;
27955 ;
27956 return 0;
27957}
27958_ACEOF
27959rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027960if { (ac_try="$ac_compile"
27961case "(($ac_try" in
27962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27963 *) ac_try_echo=$ac_try;;
27964esac
27965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27966 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027967 ac_status=$?
27968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27977esac
27978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest.$ac_objext'
27984 { (case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27987esac
27988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_try") 2>&5
27990 ac_status=$?
27991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027993 eval "$as_ac_Header=yes"
27994else
27995 echo "$as_me: failed program was:" >&5
27996sed 's/^/| /' conftest.$ac_ext >&5
27997
Reid Spencera773bd52006-08-04 18:18:08 +000027998 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027999fi
Reid Spencera773bd52006-08-04 18:18:08 +000028000
28001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028002fi
Reid Spencera773bd52006-08-04 18:18:08 +000028003ac_res=`eval echo '${'$as_ac_Header'}'`
28004 { echo "$as_me:$LINENO: result: $ac_res" >&5
28005echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028006if test `eval echo '${'$as_ac_Header'}'` = yes; then
28007 cat >>confdefs.h <<_ACEOF
28008#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28009_ACEOF
28010
28011ac_header_dirent=$ac_hdr; break
28012fi
28013
28014done
28015# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28016if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028017 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28018echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028019if test "${ac_cv_search_opendir+set}" = set; then
28020 echo $ECHO_N "(cached) $ECHO_C" >&6
28021else
28022 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028023cat >conftest.$ac_ext <<_ACEOF
28024/* confdefs.h. */
28025_ACEOF
28026cat confdefs.h >>conftest.$ac_ext
28027cat >>conftest.$ac_ext <<_ACEOF
28028/* end confdefs.h. */
28029
Reid Spencera773bd52006-08-04 18:18:08 +000028030/* Override any GCC internal prototype to avoid an error.
28031 Use char because int might match the return type of a GCC
28032 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028033#ifdef __cplusplus
28034extern "C"
28035#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028036char opendir ();
28037int
28038main ()
28039{
Reid Spencera773bd52006-08-04 18:18:08 +000028040return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028041 ;
28042 return 0;
28043}
28044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028045for ac_lib in '' dir; do
28046 if test -z "$ac_lib"; then
28047 ac_res="none required"
28048 else
28049 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028050 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028051 fi
28052 rm -f conftest.$ac_objext conftest$ac_exeext
28053if { (ac_try="$ac_link"
28054case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28057esac
28058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028060 ac_status=$?
28061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028065 (exit $ac_status); } &&
28066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
28073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; } &&
28076 { ac_try='test -s conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28080esac
28081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28083 ac_status=$?
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028086 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028087else
28088 echo "$as_me: failed program was:" >&5
28089sed 's/^/| /' conftest.$ac_ext >&5
28090
Reid Spencera773bd52006-08-04 18:18:08 +000028091
Reid Spencer59473af2004-12-25 07:31:29 +000028092fi
Reid Spencera773bd52006-08-04 18:18:08 +000028093
Tanya Lattnercf067672008-01-17 05:57:22 +000028094rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028095 conftest$ac_exeext
28096 if test "${ac_cv_search_opendir+set}" = set; then
28097 break
Reid Spencer59473af2004-12-25 07:31:29 +000028098fi
Reid Spencera773bd52006-08-04 18:18:08 +000028099done
28100if test "${ac_cv_search_opendir+set}" = set; then
28101 :
28102else
28103 ac_cv_search_opendir=no
28104fi
28105rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028106LIBS=$ac_func_search_save_LIBS
28107fi
Reid Spencera773bd52006-08-04 18:18:08 +000028108{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28109echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28110ac_res=$ac_cv_search_opendir
28111if test "$ac_res" != no; then
28112 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028113
28114fi
28115
28116else
Reid Spencera773bd52006-08-04 18:18:08 +000028117 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28118echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028119if test "${ac_cv_search_opendir+set}" = set; then
28120 echo $ECHO_N "(cached) $ECHO_C" >&6
28121else
28122 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028123cat >conftest.$ac_ext <<_ACEOF
28124/* confdefs.h. */
28125_ACEOF
28126cat confdefs.h >>conftest.$ac_ext
28127cat >>conftest.$ac_ext <<_ACEOF
28128/* end confdefs.h. */
28129
Reid Spencera773bd52006-08-04 18:18:08 +000028130/* Override any GCC internal prototype to avoid an error.
28131 Use char because int might match the return type of a GCC
28132 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028133#ifdef __cplusplus
28134extern "C"
28135#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028136char opendir ();
28137int
28138main ()
28139{
Reid Spencera773bd52006-08-04 18:18:08 +000028140return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028141 ;
28142 return 0;
28143}
28144_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028145for ac_lib in '' x; do
28146 if test -z "$ac_lib"; then
28147 ac_res="none required"
28148 else
28149 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028151 fi
28152 rm -f conftest.$ac_objext conftest$ac_exeext
28153if { (ac_try="$ac_link"
28154case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28157esac
28158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028160 ac_status=$?
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167 { (case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28170esac
28171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_try") 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest$ac_exeext'
28177 { (case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28180esac
28181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_try") 2>&5
28183 ac_status=$?
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028186 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028187else
28188 echo "$as_me: failed program was:" >&5
28189sed 's/^/| /' conftest.$ac_ext >&5
28190
Reid Spencera773bd52006-08-04 18:18:08 +000028191
Reid Spencer59473af2004-12-25 07:31:29 +000028192fi
Reid Spencera773bd52006-08-04 18:18:08 +000028193
Tanya Lattnercf067672008-01-17 05:57:22 +000028194rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028195 conftest$ac_exeext
28196 if test "${ac_cv_search_opendir+set}" = set; then
28197 break
Reid Spencer59473af2004-12-25 07:31:29 +000028198fi
Reid Spencera773bd52006-08-04 18:18:08 +000028199done
28200if test "${ac_cv_search_opendir+set}" = set; then
28201 :
28202else
28203 ac_cv_search_opendir=no
28204fi
28205rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028206LIBS=$ac_func_search_save_LIBS
28207fi
Reid Spencera773bd52006-08-04 18:18:08 +000028208{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28209echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28210ac_res=$ac_cv_search_opendir
28211if test "$ac_res" != no; then
28212 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028213
28214fi
28215
28216fi
28217
Reid Spencera773bd52006-08-04 18:18:08 +000028218{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28219echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028220if test "${ac_cv_header_mmap_anon+set}" = set; then
28221 echo $ECHO_N "(cached) $ECHO_C" >&6
28222else
28223 ac_ext=c
28224ac_cpp='$CPP $CPPFLAGS'
28225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28227ac_compiler_gnu=$ac_cv_c_compiler_gnu
28228
28229 cat >conftest.$ac_ext <<_ACEOF
28230/* confdefs.h. */
28231_ACEOF
28232cat confdefs.h >>conftest.$ac_ext
28233cat >>conftest.$ac_ext <<_ACEOF
28234/* end confdefs.h. */
28235#include <sys/mman.h>
28236#include <unistd.h>
28237#include <fcntl.h>
28238int
28239main ()
28240{
28241mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28242 ;
28243 return 0;
28244}
28245_ACEOF
28246rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028247if { (ac_try="$ac_compile"
28248case "(($ac_try" in
28249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28250 *) ac_try_echo=$ac_try;;
28251esac
28252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28253 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028254 ac_status=$?
28255 grep -v '^ *+' conftest.er1 >conftest.err
28256 rm -f conftest.er1
28257 cat conftest.err >&5
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028259 (exit $ac_status); } &&
28260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28261 { (case "(($ac_try" in
28262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28263 *) ac_try_echo=$ac_try;;
28264esac
28265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28266 (eval "$ac_try") 2>&5
28267 ac_status=$?
28268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269 (exit $ac_status); }; } &&
28270 { ac_try='test -s conftest.$ac_objext'
28271 { (case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274esac
28275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_try") 2>&5
28277 ac_status=$?
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028280 ac_cv_header_mmap_anon=yes
28281else
28282 echo "$as_me: failed program was:" >&5
28283sed 's/^/| /' conftest.$ac_ext >&5
28284
Reid Spencera773bd52006-08-04 18:18:08 +000028285 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028286fi
Reid Spencera773bd52006-08-04 18:18:08 +000028287
28288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028289 ac_ext=c
28290ac_cpp='$CPP $CPPFLAGS'
28291ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28292ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28293ac_compiler_gnu=$ac_cv_c_compiler_gnu
28294
28295
28296fi
Reid Spencera773bd52006-08-04 18:18:08 +000028297{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28298echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028299if test "$ac_cv_header_mmap_anon" = yes; then
28300
28301cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028302#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028303_ACEOF
28304
28305fi
28306
Reid Spencera773bd52006-08-04 18:18:08 +000028307{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28308echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028309if test "${ac_cv_header_stat_broken+set}" = set; then
28310 echo $ECHO_N "(cached) $ECHO_C" >&6
28311else
28312 cat >conftest.$ac_ext <<_ACEOF
28313/* confdefs.h. */
28314_ACEOF
28315cat confdefs.h >>conftest.$ac_ext
28316cat >>conftest.$ac_ext <<_ACEOF
28317/* end confdefs.h. */
28318#include <sys/types.h>
28319#include <sys/stat.h>
28320
Reid Spencera773bd52006-08-04 18:18:08 +000028321#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028322# if S_ISBLK (S_IFDIR)
28323You lose.
28324# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028325#endif
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028328# if S_ISBLK (S_IFCHR)
28329You lose.
28330# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028331#endif
28332
Reid Spencera773bd52006-08-04 18:18:08 +000028333#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028334# if S_ISLNK (S_IFREG)
28335You lose.
28336# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028337#endif
28338
Reid Spencera773bd52006-08-04 18:18:08 +000028339#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028340# if S_ISSOCK (S_IFREG)
28341You lose.
28342# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028343#endif
28344
28345_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28347 $EGREP "You lose" >/dev/null 2>&1; then
28348 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028349else
Tanya Lattnercf067672008-01-17 05:57:22 +000028350 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028351fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028352rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028353
Reid Spencer59473af2004-12-25 07:31:29 +000028354fi
Reid Spencera773bd52006-08-04 18:18:08 +000028355{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28356echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028357if test $ac_cv_header_stat_broken = yes; then
28358
28359cat >>confdefs.h <<\_ACEOF
28360#define STAT_MACROS_BROKEN 1
28361_ACEOF
28362
28363fi
28364
Reid Spencera773bd52006-08-04 18:18:08 +000028365{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28366echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028367if test "${ac_cv_header_stdc+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028371/* confdefs.h. */
28372_ACEOF
28373cat confdefs.h >>conftest.$ac_ext
28374cat >>conftest.$ac_ext <<_ACEOF
28375/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028376#include <stdlib.h>
28377#include <stdarg.h>
28378#include <string.h>
28379#include <float.h>
28380
John Criswell0c38eaf2003-09-10 15:17:25 +000028381int
28382main ()
28383{
28384
28385 ;
28386 return 0;
28387}
John Criswell7a73b802003-06-30 21:59:07 +000028388_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028389rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028390if { (ac_try="$ac_compile"
28391case "(($ac_try" in
28392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28393 *) ac_try_echo=$ac_try;;
28394esac
28395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28396 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028398 grep -v '^ *+' conftest.er1 >conftest.err
28399 rm -f conftest.er1
28400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028402 (exit $ac_status); } &&
28403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28404 { (case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28407esac
28408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_try") 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; } &&
28413 { ac_try='test -s conftest.$ac_objext'
28414 { (case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28417esac
28418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_try") 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028423 ac_cv_header_stdc=yes
28424else
28425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028426sed 's/^/| /' conftest.$ac_ext >&5
28427
Reid Spencera773bd52006-08-04 18:18:08 +000028428 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028429fi
Reid Spencera773bd52006-08-04 18:18:08 +000028430
28431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028432
28433if test $ac_cv_header_stdc = yes; then
28434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028436/* confdefs.h. */
28437_ACEOF
28438cat confdefs.h >>conftest.$ac_ext
28439cat >>conftest.$ac_ext <<_ACEOF
28440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028441#include <string.h>
28442
28443_ACEOF
28444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028445 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028446 :
28447else
28448 ac_cv_header_stdc=no
28449fi
28450rm -f conftest*
28451
28452fi
28453
28454if test $ac_cv_header_stdc = yes; then
28455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028457/* confdefs.h. */
28458_ACEOF
28459cat confdefs.h >>conftest.$ac_ext
28460cat >>conftest.$ac_ext <<_ACEOF
28461/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028462#include <stdlib.h>
28463
28464_ACEOF
28465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028466 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028467 :
28468else
28469 ac_cv_header_stdc=no
28470fi
28471rm -f conftest*
28472
28473fi
28474
28475if test $ac_cv_header_stdc = yes; then
28476 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28477 if test "$cross_compiling" = yes; then
28478 :
28479else
28480 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028481/* confdefs.h. */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028486#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028487#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028488#if ((' ' & 0x0FF) == 0x020)
28489# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28490# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28491#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028492# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028493 (('a' <= (c) && (c) <= 'i') \
28494 || ('j' <= (c) && (c) <= 'r') \
28495 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028496# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28497#endif
28498
28499#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28500int
28501main ()
28502{
28503 int i;
28504 for (i = 0; i < 256; i++)
28505 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028506 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028507 return 2;
28508 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028509}
28510_ACEOF
28511rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028512if { (ac_try="$ac_link"
28513case "(($ac_try" in
28514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515 *) ac_try_echo=$ac_try;;
28516esac
28517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028519 ac_status=$?
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028522 { (case "(($ac_try" in
28523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524 *) ac_try_echo=$ac_try;;
28525esac
28526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028528 ac_status=$?
28529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530 (exit $ac_status); }; }; then
28531 :
28532else
28533 echo "$as_me: program exited with status $ac_status" >&5
28534echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028535sed 's/^/| /' conftest.$ac_ext >&5
28536
John Criswell7a73b802003-06-30 21:59:07 +000028537( exit $ac_status )
28538ac_cv_header_stdc=no
28539fi
Reid Spencera773bd52006-08-04 18:18:08 +000028540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28541fi
28542
28543
John Criswell7a73b802003-06-30 21:59:07 +000028544fi
28545fi
Reid Spencera773bd52006-08-04 18:18:08 +000028546{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28547echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028548if test $ac_cv_header_stdc = yes; then
28549
28550cat >>confdefs.h <<\_ACEOF
28551#define STDC_HEADERS 1
28552_ACEOF
28553
28554fi
28555
Reid Spencera773bd52006-08-04 18:18:08 +000028556{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28557echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028558if test "${ac_cv_header_sys_wait_h+set}" = set; then
28559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560else
28561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028562/* confdefs.h. */
28563_ACEOF
28564cat confdefs.h >>conftest.$ac_ext
28565cat >>conftest.$ac_ext <<_ACEOF
28566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028567#include <sys/types.h>
28568#include <sys/wait.h>
28569#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028570# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028571#endif
28572#ifndef WIFEXITED
28573# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28574#endif
28575
John Criswell7a73b802003-06-30 21:59:07 +000028576int
28577main ()
28578{
28579 int s;
28580 wait (&s);
28581 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28582 ;
28583 return 0;
28584}
28585_ACEOF
28586rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028587if { (ac_try="$ac_compile"
28588case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028595 grep -v '^ *+' conftest.er1 >conftest.err
28596 rm -f conftest.er1
28597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028599 (exit $ac_status); } &&
28600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28601 { (case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_try") 2>&5
28607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); }; } &&
28610 { ac_try='test -s conftest.$ac_objext'
28611 { (case "(($ac_try" in
28612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28613 *) ac_try_echo=$ac_try;;
28614esac
28615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28616 (eval "$ac_try") 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028620 ac_cv_header_sys_wait_h=yes
28621else
28622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028623sed 's/^/| /' conftest.$ac_ext >&5
28624
Reid Spencera773bd52006-08-04 18:18:08 +000028625 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028626fi
Reid Spencera773bd52006-08-04 18:18:08 +000028627
28628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028629fi
Reid Spencera773bd52006-08-04 18:18:08 +000028630{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28631echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028632if test $ac_cv_header_sys_wait_h = yes; then
28633
28634cat >>confdefs.h <<\_ACEOF
28635#define HAVE_SYS_WAIT_H 1
28636_ACEOF
28637
28638fi
28639
Reid Spencera773bd52006-08-04 18:18:08 +000028640{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28641echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028642if test "${ac_cv_header_time+set}" = set; then
28643 echo $ECHO_N "(cached) $ECHO_C" >&6
28644else
28645 cat >conftest.$ac_ext <<_ACEOF
28646/* confdefs.h. */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028651#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028652#include <sys/time.h>
28653#include <time.h>
28654
28655int
28656main ()
28657{
28658if ((struct tm *) 0)
28659return 0;
28660 ;
28661 return 0;
28662}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028663_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028665if { (ac_try="$ac_compile"
28666case "(($ac_try" in
28667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28668 *) ac_try_echo=$ac_try;;
28669esac
28670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28671 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028672 ac_status=$?
28673 grep -v '^ *+' conftest.er1 >conftest.err
28674 rm -f conftest.er1
28675 cat conftest.err >&5
28676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028677 (exit $ac_status); } &&
28678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28679 { (case "(($ac_try" in
28680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28681 *) ac_try_echo=$ac_try;;
28682esac
28683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28684 (eval "$ac_try") 2>&5
28685 ac_status=$?
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); }; } &&
28688 { ac_try='test -s conftest.$ac_objext'
28689 { (case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28692esac
28693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_try") 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028698 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028699else
28700 echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
Reid Spencera773bd52006-08-04 18:18:08 +000028703 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028704fi
Reid Spencera773bd52006-08-04 18:18:08 +000028705
28706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028707fi
Reid Spencera773bd52006-08-04 18:18:08 +000028708{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28709echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028710if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028712cat >>confdefs.h <<\_ACEOF
28713#define TIME_WITH_SYS_TIME 1
28714_ACEOF
28715
28716fi
28717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028718
Reid Spencer59473af2004-12-25 07:31:29 +000028719
28720
28721
28722
28723
28724
28725for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28726do
28727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028732 echo $ECHO_N "(cached) $ECHO_C" >&6
28733fi
Reid Spencera773bd52006-08-04 18:18:08 +000028734ac_res=`eval echo '${'$as_ac_Header'}'`
28735 { echo "$as_me:$LINENO: result: $ac_res" >&5
28736echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028737else
28738 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028741cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028747$ac_includes_default
28748#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028749_ACEOF
28750rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028758 ac_status=$?
28759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
28762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028763 (exit $ac_status); } &&
28764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765 { (case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28768esac
28769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_try") 2>&5
28771 ac_status=$?
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); }; } &&
28774 { ac_try='test -s conftest.$ac_objext'
28775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028784 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
Reid Spencera773bd52006-08-04 18:18:08 +000028789 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028790fi
Reid Spencera773bd52006-08-04 18:18:08 +000028791
28792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028795
Reid Spencer59473af2004-12-25 07:31:29 +000028796# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028797{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028799cat >conftest.$ac_ext <<_ACEOF
28800/* confdefs.h. */
28801_ACEOF
28802cat confdefs.h >>conftest.$ac_ext
28803cat >>conftest.$ac_ext <<_ACEOF
28804/* end confdefs.h. */
28805#include <$ac_header>
28806_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028807if { (ac_try="$ac_cpp conftest.$ac_ext"
28808case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28811esac
28812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028814 ac_status=$?
28815 grep -v '^ *+' conftest.er1 >conftest.err
28816 rm -f conftest.er1
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028819 (exit $ac_status); } >/dev/null; then
28820 if test -s conftest.err; then
28821 ac_cpp_err=$ac_c_preproc_warn_flag
28822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28823 else
28824 ac_cpp_err=
28825 fi
28826else
28827 ac_cpp_err=yes
28828fi
28829if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028830 ac_header_preproc=yes
28831else
28832 echo "$as_me: failed program was:" >&5
28833sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ac_header_preproc=no
28836fi
Reid Spencera773bd52006-08-04 18:18:08 +000028837
Reid Spencer59473af2004-12-25 07:31:29 +000028838rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028841
28842# So? What about this header?
28843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844 yes:no: )
28845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28849 ac_header_preproc=yes
28850 ;;
28851 no:yes:* )
28852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028864 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028865## ----------------------------------- ##
28866## Report this to llvmbugs@cs.uiuc.edu ##
28867## ----------------------------------- ##
28868_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028869 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028870 ;;
28871esac
Reid Spencera773bd52006-08-04 18:18:08 +000028872{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028875 echo $ECHO_N "(cached) $ECHO_C" >&6
28876else
28877 eval "$as_ac_Header=\$ac_header_preproc"
28878fi
Reid Spencera773bd52006-08-04 18:18:08 +000028879ac_res=`eval echo '${'$as_ac_Header'}'`
28880 { echo "$as_me:$LINENO: result: $ac_res" >&5
28881echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028882
28883fi
Reid Spencer59473af2004-12-25 07:31:29 +000028884if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885 cat >>confdefs.h <<_ACEOF
28886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028887_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028888
28889fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028890
Reid Spencer59473af2004-12-25 07:31:29 +000028891done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028892
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028893
28894
Reid Spencer59473af2004-12-25 07:31:29 +000028895
28896
28897
28898
Reid Spencercdb08a32006-06-05 16:11:07 +000028899for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028900do
28901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028906 echo $ECHO_N "(cached) $ECHO_C" >&6
28907fi
Reid Spencera773bd52006-08-04 18:18:08 +000028908ac_res=`eval echo '${'$as_ac_Header'}'`
28909 { echo "$as_me:$LINENO: result: $ac_res" >&5
28910echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028911else
28912 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028913{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028915cat >conftest.$ac_ext <<_ACEOF
28916/* confdefs.h. */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h. */
28921$ac_includes_default
28922#include <$ac_header>
28923_ACEOF
28924rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028925if { (ac_try="$ac_compile"
28926case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28929esac
28930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028932 ac_status=$?
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028937 (exit $ac_status); } &&
28938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28939 { (case "(($ac_try" in
28940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28941 *) ac_try_echo=$ac_try;;
28942esac
28943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28944 (eval "$ac_try") 2>&5
28945 ac_status=$?
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947 (exit $ac_status); }; } &&
28948 { ac_try='test -s conftest.$ac_objext'
28949 { (case "(($ac_try" in
28950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28951 *) ac_try_echo=$ac_try;;
28952esac
28953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28954 (eval "$ac_try") 2>&5
28955 ac_status=$?
28956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028958 ac_header_compiler=yes
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
Reid Spencera773bd52006-08-04 18:18:08 +000028963 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028964fi
Reid Spencera773bd52006-08-04 18:18:08 +000028965
28966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28967{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28968echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028969
28970# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028971{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28972echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028973cat >conftest.$ac_ext <<_ACEOF
28974/* confdefs.h. */
28975_ACEOF
28976cat confdefs.h >>conftest.$ac_ext
28977cat >>conftest.$ac_ext <<_ACEOF
28978/* end confdefs.h. */
28979#include <$ac_header>
28980_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028981if { (ac_try="$ac_cpp conftest.$ac_ext"
28982case "(($ac_try" in
28983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28984 *) ac_try_echo=$ac_try;;
28985esac
28986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028988 ac_status=$?
28989 grep -v '^ *+' conftest.er1 >conftest.err
28990 rm -f conftest.er1
28991 cat conftest.err >&5
28992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028993 (exit $ac_status); } >/dev/null; then
28994 if test -s conftest.err; then
28995 ac_cpp_err=$ac_c_preproc_warn_flag
28996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28997 else
28998 ac_cpp_err=
28999 fi
29000else
29001 ac_cpp_err=yes
29002fi
29003if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029004 ac_header_preproc=yes
29005else
29006 echo "$as_me: failed program was:" >&5
29007sed 's/^/| /' conftest.$ac_ext >&5
29008
29009 ac_header_preproc=no
29010fi
Reid Spencera773bd52006-08-04 18:18:08 +000029011
Reid Spencer59473af2004-12-25 07:31:29 +000029012rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029013{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29014echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029015
29016# So? What about this header?
29017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29018 yes:no: )
29019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29020echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29022echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29023 ac_header_preproc=yes
29024 ;;
29025 no:yes:* )
29026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29027echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29029echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29031echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29033echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29035echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29037echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029038 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029039## ----------------------------------- ##
29040## Report this to llvmbugs@cs.uiuc.edu ##
29041## ----------------------------------- ##
29042_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029043 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029044 ;;
29045esac
Reid Spencera773bd52006-08-04 18:18:08 +000029046{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029049 echo $ECHO_N "(cached) $ECHO_C" >&6
29050else
29051 eval "$as_ac_Header=\$ac_header_preproc"
29052fi
Reid Spencera773bd52006-08-04 18:18:08 +000029053ac_res=`eval echo '${'$as_ac_Header'}'`
29054 { echo "$as_me:$LINENO: result: $ac_res" >&5
29055echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029056
29057fi
29058if test `eval echo '${'$as_ac_Header'}'` = yes; then
29059 cat >>confdefs.h <<_ACEOF
29060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29061_ACEOF
29062
29063fi
29064
29065done
29066
29067
Reid Spencerbe3e4192007-08-17 05:45:26 +000029068for ac_header in windows.h
29069do
29070as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29076fi
29077ac_res=`eval echo '${'$as_ac_Header'}'`
29078 { echo "$as_me:$LINENO: result: $ac_res" >&5
29079echo "${ECHO_T}$ac_res" >&6; }
29080else
29081 # Is the header compilable?
29082{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29084cat >conftest.$ac_ext <<_ACEOF
29085/* confdefs.h. */
29086_ACEOF
29087cat confdefs.h >>conftest.$ac_ext
29088cat >>conftest.$ac_ext <<_ACEOF
29089/* end confdefs.h. */
29090$ac_includes_default
29091#include <$ac_header>
29092_ACEOF
29093rm -f conftest.$ac_objext
29094if { (ac_try="$ac_compile"
29095case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_compile") 2>conftest.er1
29101 ac_status=$?
29102 grep -v '^ *+' conftest.er1 >conftest.err
29103 rm -f conftest.er1
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029106 (exit $ac_status); } &&
29107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29108 { (case "(($ac_try" in
29109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110 *) ac_try_echo=$ac_try;;
29111esac
29112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29113 (eval "$ac_try") 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; } &&
29117 { ac_try='test -s conftest.$ac_objext'
29118 { (case "(($ac_try" in
29119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120 *) ac_try_echo=$ac_try;;
29121esac
29122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123 (eval "$ac_try") 2>&5
29124 ac_status=$?
29125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029127 ac_header_compiler=yes
29128else
29129 echo "$as_me: failed program was:" >&5
29130sed 's/^/| /' conftest.$ac_ext >&5
29131
29132 ac_header_compiler=no
29133fi
29134
29135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29137echo "${ECHO_T}$ac_header_compiler" >&6; }
29138
29139# Is the header present?
29140{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29141echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29142cat >conftest.$ac_ext <<_ACEOF
29143/* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
29148#include <$ac_header>
29149_ACEOF
29150if { (ac_try="$ac_cpp conftest.$ac_ext"
29151case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154esac
29155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29157 ac_status=$?
29158 grep -v '^ *+' conftest.er1 >conftest.err
29159 rm -f conftest.er1
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029162 (exit $ac_status); } >/dev/null; then
29163 if test -s conftest.err; then
29164 ac_cpp_err=$ac_c_preproc_warn_flag
29165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29166 else
29167 ac_cpp_err=
29168 fi
29169else
29170 ac_cpp_err=yes
29171fi
29172if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029173 ac_header_preproc=yes
29174else
29175 echo "$as_me: failed program was:" >&5
29176sed 's/^/| /' conftest.$ac_ext >&5
29177
29178 ac_header_preproc=no
29179fi
29180
29181rm -f conftest.err conftest.$ac_ext
29182{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29183echo "${ECHO_T}$ac_header_preproc" >&6; }
29184
29185# So? What about this header?
29186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29187 yes:no: )
29188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29192 ac_header_preproc=yes
29193 ;;
29194 no:yes:* )
29195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29199 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29201 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29202echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29203 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29205 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29207 ( cat <<\_ASBOX
29208## ----------------------------------- ##
29209## Report this to llvmbugs@cs.uiuc.edu ##
29210## ----------------------------------- ##
29211_ASBOX
29212 ) | sed "s/^/$as_me: WARNING: /" >&2
29213 ;;
29214esac
29215{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29216echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29218 echo $ECHO_N "(cached) $ECHO_C" >&6
29219else
29220 eval "$as_ac_Header=\$ac_header_preproc"
29221fi
29222ac_res=`eval echo '${'$as_ac_Header'}'`
29223 { echo "$as_me:$LINENO: result: $ac_res" >&5
29224echo "${ECHO_T}$ac_res" >&6; }
29225
29226fi
29227if test `eval echo '${'$as_ac_Header'}'` = yes; then
29228 cat >>confdefs.h <<_ACEOF
29229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29230_ACEOF
29231
29232fi
29233
29234done
Reid Spencer59473af2004-12-25 07:31:29 +000029235
29236
29237
29238
Reid Spencerbe3e4192007-08-17 05:45:26 +000029239
29240for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029241do
29242as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029243if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29245echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248fi
Reid Spencera773bd52006-08-04 18:18:08 +000029249ac_res=`eval echo '${'$as_ac_Header'}'`
29250 { echo "$as_me:$LINENO: result: $ac_res" >&5
29251echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029252else
29253 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029254{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29255echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029256cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029263#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029264_ACEOF
29265rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029266if { (ac_try="$ac_compile"
29267case "(($ac_try" in
29268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29269 *) ac_try_echo=$ac_try;;
29270esac
29271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29272 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029274 grep -v '^ *+' conftest.er1 >conftest.err
29275 rm -f conftest.er1
29276 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029278 (exit $ac_status); } &&
29279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29280 { (case "(($ac_try" in
29281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29282 *) ac_try_echo=$ac_try;;
29283esac
29284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29285 (eval "$ac_try") 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; } &&
29289 { ac_try='test -s conftest.$ac_objext'
29290 { (case "(($ac_try" in
29291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29292 *) ac_try_echo=$ac_try;;
29293esac
29294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29295 (eval "$ac_try") 2>&5
29296 ac_status=$?
29297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29298 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029299 ac_header_compiler=yes
29300else
29301 echo "$as_me: failed program was:" >&5
29302sed 's/^/| /' conftest.$ac_ext >&5
29303
Reid Spencera773bd52006-08-04 18:18:08 +000029304 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029305fi
Reid Spencera773bd52006-08-04 18:18:08 +000029306
29307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29308{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29309echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310
29311# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029312{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29313echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029314cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029315/* confdefs.h. */
29316_ACEOF
29317cat confdefs.h >>conftest.$ac_ext
29318cat >>conftest.$ac_ext <<_ACEOF
29319/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029320#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029321_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029322if { (ac_try="$ac_cpp conftest.$ac_ext"
29323case "(($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_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029329 ac_status=$?
29330 grep -v '^ *+' conftest.er1 >conftest.err
29331 rm -f conftest.er1
29332 cat conftest.err >&5
29333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029334 (exit $ac_status); } >/dev/null; then
29335 if test -s conftest.err; then
29336 ac_cpp_err=$ac_c_preproc_warn_flag
29337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29338 else
29339 ac_cpp_err=
29340 fi
29341else
29342 ac_cpp_err=yes
29343fi
29344if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029345 ac_header_preproc=yes
29346else
29347 echo "$as_me: failed program was:" >&5
29348sed 's/^/| /' conftest.$ac_ext >&5
29349
29350 ac_header_preproc=no
29351fi
Reid Spencera773bd52006-08-04 18:18:08 +000029352
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029353rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029354{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29355echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029356
29357# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29359 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29361echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29363echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029365 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029366 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29370echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29372echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29374echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29376echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29378echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029379 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029380## ----------------------------------- ##
29381## Report this to llvmbugs@cs.uiuc.edu ##
29382## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029383_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029384 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029385 ;;
29386esac
Reid Spencera773bd52006-08-04 18:18:08 +000029387{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029390 echo $ECHO_N "(cached) $ECHO_C" >&6
29391else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029392 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029393fi
Reid Spencera773bd52006-08-04 18:18:08 +000029394ac_res=`eval echo '${'$as_ac_Header'}'`
29395 { echo "$as_me:$LINENO: result: $ac_res" >&5
29396echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029397
29398fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029399if test `eval echo '${'$as_ac_Header'}'` = yes; then
29400 cat >>confdefs.h <<_ACEOF
29401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029402_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029403
29404fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029405
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029406done
29407
John Criswell7ed43ad2004-07-19 16:12:29 +000029408
Reid Spencercdb08a32006-06-05 16:11:07 +000029409
Reid Spencera6d990a2006-09-14 06:17:21 +000029410
29411for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029412do
29413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029418 echo $ECHO_N "(cached) $ECHO_C" >&6
29419fi
Reid Spencera773bd52006-08-04 18:18:08 +000029420ac_res=`eval echo '${'$as_ac_Header'}'`
29421 { echo "$as_me:$LINENO: result: $ac_res" >&5
29422echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029423else
29424 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029425{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29426echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029427cat >conftest.$ac_ext <<_ACEOF
29428/* confdefs.h. */
29429_ACEOF
29430cat confdefs.h >>conftest.$ac_ext
29431cat >>conftest.$ac_ext <<_ACEOF
29432/* end confdefs.h. */
29433$ac_includes_default
29434#include <$ac_header>
29435_ACEOF
29436rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029437if { (ac_try="$ac_compile"
29438case "(($ac_try" in
29439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29440 *) ac_try_echo=$ac_try;;
29441esac
29442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29443 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029444 ac_status=$?
29445 grep -v '^ *+' conftest.er1 >conftest.err
29446 rm -f conftest.er1
29447 cat conftest.err >&5
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029449 (exit $ac_status); } &&
29450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29451 { (case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29454esac
29455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_try") 2>&5
29457 ac_status=$?
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; } &&
29460 { ac_try='test -s conftest.$ac_objext'
29461 { (case "(($ac_try" in
29462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29463 *) ac_try_echo=$ac_try;;
29464esac
29465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29466 (eval "$ac_try") 2>&5
29467 ac_status=$?
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029470 ac_header_compiler=yes
29471else
29472 echo "$as_me: failed program was:" >&5
29473sed 's/^/| /' conftest.$ac_ext >&5
29474
Reid Spencera773bd52006-08-04 18:18:08 +000029475 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029476fi
Reid Spencera773bd52006-08-04 18:18:08 +000029477
29478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29479{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29480echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029481
29482# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029483{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029485cat >conftest.$ac_ext <<_ACEOF
29486/* confdefs.h. */
29487_ACEOF
29488cat confdefs.h >>conftest.$ac_ext
29489cat >>conftest.$ac_ext <<_ACEOF
29490/* end confdefs.h. */
29491#include <$ac_header>
29492_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029493if { (ac_try="$ac_cpp conftest.$ac_ext"
29494case "(($ac_try" in
29495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29496 *) ac_try_echo=$ac_try;;
29497esac
29498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029500 ac_status=$?
29501 grep -v '^ *+' conftest.er1 >conftest.err
29502 rm -f conftest.er1
29503 cat conftest.err >&5
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029505 (exit $ac_status); } >/dev/null; then
29506 if test -s conftest.err; then
29507 ac_cpp_err=$ac_c_preproc_warn_flag
29508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29509 else
29510 ac_cpp_err=
29511 fi
29512else
29513 ac_cpp_err=yes
29514fi
29515if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029516 ac_header_preproc=yes
29517else
29518 echo "$as_me: failed program was:" >&5
29519sed 's/^/| /' conftest.$ac_ext >&5
29520
29521 ac_header_preproc=no
29522fi
Reid Spencera773bd52006-08-04 18:18:08 +000029523
Chris Lattner0b142592005-11-14 06:57:34 +000029524rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029525{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29526echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029527
29528# So? What about this header?
29529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29530 yes:no: )
29531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29535 ac_header_preproc=yes
29536 ;;
29537 no:yes:* )
29538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029550 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029551## ----------------------------------- ##
29552## Report this to llvmbugs@cs.uiuc.edu ##
29553## ----------------------------------- ##
29554_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029555 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029556 ;;
29557esac
Reid Spencera773bd52006-08-04 18:18:08 +000029558{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029561 echo $ECHO_N "(cached) $ECHO_C" >&6
29562else
29563 eval "$as_ac_Header=\$ac_header_preproc"
29564fi
Reid Spencera773bd52006-08-04 18:18:08 +000029565ac_res=`eval echo '${'$as_ac_Header'}'`
29566 { echo "$as_me:$LINENO: result: $ac_res" >&5
29567echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029568
29569fi
29570if test `eval echo '${'$as_ac_Header'}'` = yes; then
29571 cat >>confdefs.h <<_ACEOF
29572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29573_ACEOF
29574
29575fi
29576
29577done
29578
Reid Spencer0a262ba2005-08-24 10:07:20 +000029579if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029580
29581for ac_header in pthread.h
29582do
29583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29587if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029588 echo $ECHO_N "(cached) $ECHO_C" >&6
29589fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029590ac_res=`eval echo '${'$as_ac_Header'}'`
29591 { echo "$as_me:$LINENO: result: $ac_res" >&5
29592echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029593else
29594 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029595{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029597cat >conftest.$ac_ext <<_ACEOF
29598/* confdefs.h. */
29599_ACEOF
29600cat confdefs.h >>conftest.$ac_ext
29601cat >>conftest.$ac_ext <<_ACEOF
29602/* end confdefs.h. */
29603$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029604#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029605_ACEOF
29606rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029607if { (ac_try="$ac_compile"
29608case "(($ac_try" in
29609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29610 *) ac_try_echo=$ac_try;;
29611esac
29612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29613 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029614 ac_status=$?
29615 grep -v '^ *+' conftest.er1 >conftest.err
29616 rm -f conftest.er1
29617 cat conftest.err >&5
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029619 (exit $ac_status); } &&
29620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29621 { (case "(($ac_try" in
29622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29623 *) ac_try_echo=$ac_try;;
29624esac
29625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29626 (eval "$ac_try") 2>&5
29627 ac_status=$?
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29629 (exit $ac_status); }; } &&
29630 { ac_try='test -s conftest.$ac_objext'
29631 { (case "(($ac_try" in
29632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633 *) ac_try_echo=$ac_try;;
29634esac
29635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636 (eval "$ac_try") 2>&5
29637 ac_status=$?
29638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029640 ac_header_compiler=yes
29641else
29642 echo "$as_me: failed program was:" >&5
29643sed 's/^/| /' conftest.$ac_ext >&5
29644
Reid Spencera773bd52006-08-04 18:18:08 +000029645 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029646fi
Reid Spencera773bd52006-08-04 18:18:08 +000029647
29648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29649{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29650echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029651
29652# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029653{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29654echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029655cat >conftest.$ac_ext <<_ACEOF
29656/* confdefs.h. */
29657_ACEOF
29658cat confdefs.h >>conftest.$ac_ext
29659cat >>conftest.$ac_ext <<_ACEOF
29660/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029661#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029662_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029663if { (ac_try="$ac_cpp conftest.$ac_ext"
29664case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667esac
29668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029670 ac_status=$?
29671 grep -v '^ *+' conftest.er1 >conftest.err
29672 rm -f conftest.er1
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029675 (exit $ac_status); } >/dev/null; then
29676 if test -s conftest.err; then
29677 ac_cpp_err=$ac_c_preproc_warn_flag
29678 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29679 else
29680 ac_cpp_err=
29681 fi
29682else
29683 ac_cpp_err=yes
29684fi
29685if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029686 ac_header_preproc=yes
29687else
29688 echo "$as_me: failed program was:" >&5
29689sed 's/^/| /' conftest.$ac_ext >&5
29690
29691 ac_header_preproc=no
29692fi
Reid Spencera773bd52006-08-04 18:18:08 +000029693
Reid Spencer0a262ba2005-08-24 10:07:20 +000029694rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029695{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29696echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029697
29698# So? What about this header?
29699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29700 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029701 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029705 ac_header_preproc=yes
29706 ;;
29707 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029708 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29710 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29711echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29712 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29714 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29715echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29718 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029720 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029721## ----------------------------------- ##
29722## Report this to llvmbugs@cs.uiuc.edu ##
29723## ----------------------------------- ##
29724_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029725 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029726 ;;
29727esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029728{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029731 echo $ECHO_N "(cached) $ECHO_C" >&6
29732else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029733 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029734fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029735ac_res=`eval echo '${'$as_ac_Header'}'`
29736 { echo "$as_me:$LINENO: result: $ac_res" >&5
29737echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029738
29739fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029740if test `eval echo '${'$as_ac_Header'}'` = yes; then
29741 cat >>confdefs.h <<_ACEOF
29742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29743_ACEOF
29744 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029745
29746else
29747 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029748
29749fi
29750
Reid Spencerbe3e4192007-08-17 05:45:26 +000029751done
Reid Spencer1000b732006-12-01 00:37:14 +000029752
29753else
29754 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029755
29756fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029757
29758
Reid Spencerb2ed05262006-11-03 18:04:08 +000029759
29760 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29761echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29762if test "${ac_cv_huge_val_sanity+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764else
29765
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029766 ac_ext=cpp
29767ac_cpp='$CXXCPP $CPPFLAGS'
29768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029771
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029772 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029773 if test "$cross_compiling" = yes; then
29774 ac_cv_huge_val_sanity=yes
29775else
29776 cat >conftest.$ac_ext <<_ACEOF
29777/* confdefs.h. */
29778_ACEOF
29779cat confdefs.h >>conftest.$ac_ext
29780cat >>conftest.$ac_ext <<_ACEOF
29781/* end confdefs.h. */
29782#include <math.h>
29783int
29784main ()
29785{
29786double x = HUGE_VAL; return x != x;
29787 ;
29788 return 0;
29789}
29790_ACEOF
29791rm -f conftest$ac_exeext
29792if { (ac_try="$ac_link"
29793case "(($ac_try" in
29794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795 *) ac_try_echo=$ac_try;;
29796esac
29797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798 (eval "$ac_link") 2>&5
29799 ac_status=$?
29800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29802 { (case "(($ac_try" in
29803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804 *) ac_try_echo=$ac_try;;
29805esac
29806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807 (eval "$ac_try") 2>&5
29808 ac_status=$?
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); }; }; then
29811 ac_cv_huge_val_sanity=yes
29812else
29813 echo "$as_me: program exited with status $ac_status" >&5
29814echo "$as_me: failed program was:" >&5
29815sed 's/^/| /' conftest.$ac_ext >&5
29816
29817( exit $ac_status )
29818ac_cv_huge_val_sanity=no
29819fi
29820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29821fi
29822
29823
29824 ac_ext=c
29825ac_cpp='$CPP $CPPFLAGS'
29826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29828ac_compiler_gnu=$ac_cv_c_compiler_gnu
29829
29830
29831fi
29832{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29833echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29834 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29835
29836
Reid Spencera773bd52006-08-04 18:18:08 +000029837{ echo "$as_me:$LINENO: checking for pid_t" >&5
29838echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029839if test "${ac_cv_type_pid_t+set}" = set; then
29840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841else
29842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029843/* confdefs.h. */
29844_ACEOF
29845cat confdefs.h >>conftest.$ac_ext
29846cat >>conftest.$ac_ext <<_ACEOF
29847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029848$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029849typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029850int
29851main ()
29852{
Reid Spencera773bd52006-08-04 18:18:08 +000029853if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029854 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029855if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029856 return 0;
29857 ;
29858 return 0;
29859}
29860_ACEOF
29861rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029862if { (ac_try="$ac_compile"
29863case "(($ac_try" in
29864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29865 *) ac_try_echo=$ac_try;;
29866esac
29867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29868 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029874 (exit $ac_status); } &&
29875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29876 { (case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29879esac
29880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_try") 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest.$ac_objext'
29886 { (case "(($ac_try" in
29887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888 *) ac_try_echo=$ac_try;;
29889esac
29890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29891 (eval "$ac_try") 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029895 ac_cv_type_pid_t=yes
29896else
29897 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029898sed 's/^/| /' conftest.$ac_ext >&5
29899
Reid Spencera773bd52006-08-04 18:18:08 +000029900 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029901fi
Reid Spencera773bd52006-08-04 18:18:08 +000029902
29903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029904fi
Reid Spencera773bd52006-08-04 18:18:08 +000029905{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29906echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029907if test $ac_cv_type_pid_t = yes; then
29908 :
29909else
29910
29911cat >>confdefs.h <<_ACEOF
29912#define pid_t int
29913_ACEOF
29914
29915fi
29916
Reid Spencera773bd52006-08-04 18:18:08 +000029917{ echo "$as_me:$LINENO: checking for size_t" >&5
29918echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029919if test "${ac_cv_type_size_t+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29921else
29922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029923/* confdefs.h. */
29924_ACEOF
29925cat confdefs.h >>conftest.$ac_ext
29926cat >>conftest.$ac_ext <<_ACEOF
29927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029928$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029929typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029930int
29931main ()
29932{
Reid Spencera773bd52006-08-04 18:18:08 +000029933if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029934 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029935if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029936 return 0;
29937 ;
29938 return 0;
29939}
29940_ACEOF
29941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029942if { (ac_try="$ac_compile"
29943case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29946esac
29947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950 grep -v '^ *+' conftest.er1 >conftest.err
29951 rm -f conftest.er1
29952 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029954 (exit $ac_status); } &&
29955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956 { (case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29959esac
29960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_try") 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest.$ac_objext'
29966 { (case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29969esac
29970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_try") 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029975 ac_cv_type_size_t=yes
29976else
29977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029978sed 's/^/| /' conftest.$ac_ext >&5
29979
Reid Spencera773bd52006-08-04 18:18:08 +000029980 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029981fi
Reid Spencera773bd52006-08-04 18:18:08 +000029982
29983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029984fi
Reid Spencera773bd52006-08-04 18:18:08 +000029985{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29986echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029987if test $ac_cv_type_size_t = yes; then
29988 :
29989else
29990
29991cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029992#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029993_ACEOF
29994
29995fi
29996
Reid Spencera773bd52006-08-04 18:18:08 +000029997{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29998echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029999if test "${ac_cv_type_signal+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002 cat >conftest.$ac_ext <<_ACEOF
30003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
30008#include <sys/types.h>
30009#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030010
30011int
30012main ()
30013{
Reid Spencera773bd52006-08-04 18:18:08 +000030014return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030015 ;
30016 return 0;
30017}
30018_ACEOF
30019rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030020if { (ac_try="$ac_compile"
30021case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30024esac
30025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027 ac_status=$?
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030032 (exit $ac_status); } &&
30033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037esac
30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
30040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest.$ac_objext'
30044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047esac
30048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
30050 ac_status=$?
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030053 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030054else
30055 echo "$as_me: failed program was:" >&5
30056sed 's/^/| /' conftest.$ac_ext >&5
30057
Reid Spencera773bd52006-08-04 18:18:08 +000030058 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030059fi
Reid Spencera773bd52006-08-04 18:18:08 +000030060
30061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030062fi
Reid Spencera773bd52006-08-04 18:18:08 +000030063{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30064echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030065
30066cat >>confdefs.h <<_ACEOF
30067#define RETSIGTYPE $ac_cv_type_signal
30068_ACEOF
30069
30070
Reid Spencera773bd52006-08-04 18:18:08 +000030071{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30072echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030073if test "${ac_cv_struct_tm+set}" = set; then
30074 echo $ECHO_N "(cached) $ECHO_C" >&6
30075else
30076 cat >conftest.$ac_ext <<_ACEOF
30077/* confdefs.h. */
30078_ACEOF
30079cat confdefs.h >>conftest.$ac_ext
30080cat >>conftest.$ac_ext <<_ACEOF
30081/* end confdefs.h. */
30082#include <sys/types.h>
30083#include <time.h>
30084
30085int
30086main ()
30087{
Tanya Lattnercf067672008-01-17 05:57:22 +000030088struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030089 ;
30090 return 0;
30091}
30092_ACEOF
30093rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030094if { (ac_try="$ac_compile"
30095case "(($ac_try" in
30096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30097 *) ac_try_echo=$ac_try;;
30098esac
30099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30100 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030101 ac_status=$?
30102 grep -v '^ *+' conftest.er1 >conftest.err
30103 rm -f conftest.er1
30104 cat conftest.err >&5
30105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030106 (exit $ac_status); } &&
30107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30108 { (case "(($ac_try" in
30109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30110 *) ac_try_echo=$ac_try;;
30111esac
30112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30113 (eval "$ac_try") 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; } &&
30117 { ac_try='test -s conftest.$ac_objext'
30118 { (case "(($ac_try" in
30119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120 *) ac_try_echo=$ac_try;;
30121esac
30122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123 (eval "$ac_try") 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030127 ac_cv_struct_tm=time.h
30128else
30129 echo "$as_me: failed program was:" >&5
30130sed 's/^/| /' conftest.$ac_ext >&5
30131
Reid Spencera773bd52006-08-04 18:18:08 +000030132 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030133fi
Reid Spencera773bd52006-08-04 18:18:08 +000030134
30135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030136fi
Reid Spencera773bd52006-08-04 18:18:08 +000030137{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30138echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139if test $ac_cv_struct_tm = sys/time.h; then
30140
30141cat >>confdefs.h <<\_ACEOF
30142#define TM_IN_SYS_TIME 1
30143_ACEOF
30144
30145fi
30146
Reid Spencera773bd52006-08-04 18:18:08 +000030147{ echo "$as_me:$LINENO: checking for int64_t" >&5
30148echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030149if test "${ac_cv_type_int64_t+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30151else
30152 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030158$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030159typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030160int
30161main ()
30162{
Reid Spencera773bd52006-08-04 18:18:08 +000030163if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030164 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030165if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030166 return 0;
30167 ;
30168 return 0;
30169}
30170_ACEOF
30171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030172if { (ac_try="$ac_compile"
30173case "(($ac_try" in
30174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30175 *) ac_try_echo=$ac_try;;
30176esac
30177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30178 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030184 (exit $ac_status); } &&
30185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189esac
30190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest.$ac_objext'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030205 ac_cv_type_int64_t=yes
30206else
30207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030208sed 's/^/| /' conftest.$ac_ext >&5
30209
Reid Spencera773bd52006-08-04 18:18:08 +000030210 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030211fi
Reid Spencera773bd52006-08-04 18:18:08 +000030212
30213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030214fi
Reid Spencera773bd52006-08-04 18:18:08 +000030215{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30216echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030217if test $ac_cv_type_int64_t = yes; then
30218
30219cat >>confdefs.h <<_ACEOF
30220#define HAVE_INT64_T 1
30221_ACEOF
30222
30223
30224else
30225 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30226echo "$as_me: error: Type int64_t required but not found" >&2;}
30227 { (exit 1); exit 1; }; }
30228fi
30229
Reid Spencera773bd52006-08-04 18:18:08 +000030230{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30231echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030232if test "${ac_cv_type_uint64_t+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30234else
30235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030236/* confdefs.h. */
30237_ACEOF
30238cat confdefs.h >>conftest.$ac_ext
30239cat >>conftest.$ac_ext <<_ACEOF
30240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030241$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030242typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030243int
30244main ()
30245{
Reid Spencera773bd52006-08-04 18:18:08 +000030246if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030247 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030248if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030249 return 0;
30250 ;
30251 return 0;
30252}
30253_ACEOF
30254rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030255if { (ac_try="$ac_compile"
30256case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30259esac
30260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030263 grep -v '^ *+' conftest.er1 >conftest.err
30264 rm -f conftest.er1
30265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030267 (exit $ac_status); } &&
30268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269 { (case "(($ac_try" in
30270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271 *) ac_try_echo=$ac_try;;
30272esac
30273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274 (eval "$ac_try") 2>&5
30275 ac_status=$?
30276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277 (exit $ac_status); }; } &&
30278 { ac_try='test -s conftest.$ac_objext'
30279 { (case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_try") 2>&5
30285 ac_status=$?
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030288 ac_cv_type_uint64_t=yes
30289else
30290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030291sed 's/^/| /' conftest.$ac_ext >&5
30292
Reid Spencera773bd52006-08-04 18:18:08 +000030293 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030294fi
Reid Spencera773bd52006-08-04 18:18:08 +000030295
30296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030297fi
Reid Spencera773bd52006-08-04 18:18:08 +000030298{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30299echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030300if test $ac_cv_type_uint64_t = yes; then
30301
30302cat >>confdefs.h <<_ACEOF
30303#define HAVE_UINT64_T 1
30304_ACEOF
30305
30306
30307else
Reid Spencera773bd52006-08-04 18:18:08 +000030308 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30309echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030310if test "${ac_cv_type_u_int64_t+set}" = set; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030320typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030321int
30322main ()
30323{
Reid Spencera773bd52006-08-04 18:18:08 +000030324if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030325 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030326if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030327 return 0;
30328 ;
30329 return 0;
30330}
30331_ACEOF
30332rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030333if { (ac_try="$ac_compile"
30334case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30337esac
30338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030345 (exit $ac_status); } &&
30346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30350esac
30351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; } &&
30356 { ac_try='test -s conftest.$ac_objext'
30357 { (case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360esac
30361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_try") 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030366 ac_cv_type_u_int64_t=yes
30367else
30368 echo "$as_me: failed program was:" >&5
30369sed 's/^/| /' conftest.$ac_ext >&5
30370
Reid Spencera773bd52006-08-04 18:18:08 +000030371 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030372fi
Reid Spencera773bd52006-08-04 18:18:08 +000030373
30374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030375fi
Reid Spencera773bd52006-08-04 18:18:08 +000030376{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30377echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030378if test $ac_cv_type_u_int64_t = yes; then
30379
30380cat >>confdefs.h <<_ACEOF
30381#define HAVE_U_INT64_T 1
30382_ACEOF
30383
30384
Misha Brukmanceca9042004-09-02 23:02:30 +000030385else
30386 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30387echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30388 { (exit 1); exit 1; }; }
30389fi
30390
John Criswell679ff312004-09-02 18:44:44 +000030391fi
30392
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393
30394
30395
30396
30397
30398
30399
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030400
30401
Reid Spencerdf3be822006-01-23 08:15:53 +000030402for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030403do
30404as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030405{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30406echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030408 echo $ECHO_N "(cached) $ECHO_C" >&6
30409else
30410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30418#define $ac_func innocuous_$ac_func
30419
30420/* System header to define __stub macros and hopefully few prototypes,
30421 which can conflict with char $ac_func (); below.
30422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30423 <limits.h> exists even on freestanding compilers. */
30424
30425#ifdef __STDC__
30426# include <limits.h>
30427#else
30428# include <assert.h>
30429#endif
30430
30431#undef $ac_func
30432
Reid Spencera773bd52006-08-04 18:18:08 +000030433/* Override any GCC internal prototype to avoid an error.
30434 Use char because int might match the return type of a GCC
30435 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030436#ifdef __cplusplus
30437extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030439char $ac_func ();
30440/* The GNU C library defines this for functions which it implements
30441 to always fail with ENOSYS. Some functions are actually named
30442 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030443#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030444choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030445#endif
John Criswell7a73b802003-06-30 21:59:07 +000030446
John Criswell7a73b802003-06-30 21:59:07 +000030447int
30448main ()
30449{
Reid Spencera773bd52006-08-04 18:18:08 +000030450return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030451 ;
30452 return 0;
30453}
30454_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030456if { (ac_try="$ac_link"
30457case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30460esac
30461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030463 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030464 grep -v '^ *+' conftest.er1 >conftest.err
30465 rm -f conftest.er1
30466 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030468 (exit $ac_status); } &&
30469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30470 { (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
30476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; } &&
30479 { ac_try='test -s conftest$ac_exeext'
30480 { (case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30483esac
30484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485 (eval "$ac_try") 2>&5
30486 ac_status=$?
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030489 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030490else
30491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030492sed 's/^/| /' conftest.$ac_ext >&5
30493
Reid Spencera773bd52006-08-04 18:18:08 +000030494 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030495fi
Reid Spencera773bd52006-08-04 18:18:08 +000030496
Tanya Lattnercf067672008-01-17 05:57:22 +000030497rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030499fi
Reid Spencera773bd52006-08-04 18:18:08 +000030500ac_res=`eval echo '${'$as_ac_var'}'`
30501 { echo "$as_me:$LINENO: result: $ac_res" >&5
30502echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030503if test `eval echo '${'$as_ac_var'}'` = yes; then
30504 cat >>confdefs.h <<_ACEOF
30505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030506_ACEOF
30507
30508fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030509done
John Criswell7a73b802003-06-30 21:59:07 +000030510
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030511
30512
30513
Reid Spencer6af3d262004-12-15 04:01:48 +000030514
Reid Spencer96cf5872007-07-13 10:05:30 +000030515for ac_func in powf fmodf strtof round
30516do
30517as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30518{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30519echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30522else
30523 cat >conftest.$ac_ext <<_ACEOF
30524/* confdefs.h. */
30525_ACEOF
30526cat confdefs.h >>conftest.$ac_ext
30527cat >>conftest.$ac_ext <<_ACEOF
30528/* end confdefs.h. */
30529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30531#define $ac_func innocuous_$ac_func
30532
30533/* System header to define __stub macros and hopefully few prototypes,
30534 which can conflict with char $ac_func (); below.
30535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30536 <limits.h> exists even on freestanding compilers. */
30537
30538#ifdef __STDC__
30539# include <limits.h>
30540#else
30541# include <assert.h>
30542#endif
30543
30544#undef $ac_func
30545
30546/* Override any GCC internal prototype to avoid an error.
30547 Use char because int might match the return type of a GCC
30548 builtin and then its argument prototype would still apply. */
30549#ifdef __cplusplus
30550extern "C"
30551#endif
30552char $ac_func ();
30553/* The GNU C library defines this for functions which it implements
30554 to always fail with ENOSYS. Some functions are actually named
30555 something starting with __ and the normal name is an alias. */
30556#if defined __stub_$ac_func || defined __stub___$ac_func
30557choke me
30558#endif
30559
30560int
30561main ()
30562{
30563return $ac_func ();
30564 ;
30565 return 0;
30566}
30567_ACEOF
30568rm -f conftest.$ac_objext conftest$ac_exeext
30569if { (ac_try="$ac_link"
30570case "(($ac_try" in
30571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30572 *) ac_try_echo=$ac_try;;
30573esac
30574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30575 (eval "$ac_link") 2>conftest.er1
30576 ac_status=$?
30577 grep -v '^ *+' conftest.er1 >conftest.err
30578 rm -f conftest.er1
30579 cat conftest.err >&5
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030581 (exit $ac_status); } &&
30582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30583 { (case "(($ac_try" in
30584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30585 *) ac_try_echo=$ac_try;;
30586esac
30587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30588 (eval "$ac_try") 2>&5
30589 ac_status=$?
30590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30591 (exit $ac_status); }; } &&
30592 { ac_try='test -s conftest$ac_exeext'
30593 { (case "(($ac_try" in
30594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30595 *) ac_try_echo=$ac_try;;
30596esac
30597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30598 (eval "$ac_try") 2>&5
30599 ac_status=$?
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030602 eval "$as_ac_var=yes"
30603else
30604 echo "$as_me: failed program was:" >&5
30605sed 's/^/| /' conftest.$ac_ext >&5
30606
30607 eval "$as_ac_var=no"
30608fi
30609
Tanya Lattnercf067672008-01-17 05:57:22 +000030610rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030611 conftest$ac_exeext conftest.$ac_ext
30612fi
30613ac_res=`eval echo '${'$as_ac_var'}'`
30614 { echo "$as_me:$LINENO: result: $ac_res" >&5
30615echo "${ECHO_T}$ac_res" >&6; }
30616if test `eval echo '${'$as_ac_var'}'` = yes; then
30617 cat >>confdefs.h <<_ACEOF
30618#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30619_ACEOF
30620
30621fi
30622done
30623
30624
30625
30626
30627
Reid Spencer6af3d262004-12-15 04:01:48 +000030628
Reid Spencerb90645c2007-02-16 19:17:20 +000030629for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30630do
30631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30632{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30635 echo $ECHO_N "(cached) $ECHO_C" >&6
30636else
30637 cat >conftest.$ac_ext <<_ACEOF
30638/* confdefs.h. */
30639_ACEOF
30640cat confdefs.h >>conftest.$ac_ext
30641cat >>conftest.$ac_ext <<_ACEOF
30642/* end confdefs.h. */
30643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30645#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030646
Reid Spencerb90645c2007-02-16 19:17:20 +000030647/* System header to define __stub macros and hopefully few prototypes,
30648 which can conflict with char $ac_func (); below.
30649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30650 <limits.h> exists even on freestanding compilers. */
30651
30652#ifdef __STDC__
30653# include <limits.h>
30654#else
30655# include <assert.h>
30656#endif
30657
30658#undef $ac_func
30659
30660/* Override any GCC internal prototype to avoid an error.
30661 Use char because int might match the return type of a GCC
30662 builtin and then its argument prototype would still apply. */
30663#ifdef __cplusplus
30664extern "C"
30665#endif
30666char $ac_func ();
30667/* The GNU C library defines this for functions which it implements
30668 to always fail with ENOSYS. Some functions are actually named
30669 something starting with __ and the normal name is an alias. */
30670#if defined __stub_$ac_func || defined __stub___$ac_func
30671choke me
30672#endif
30673
30674int
30675main ()
30676{
30677return $ac_func ();
30678 ;
30679 return 0;
30680}
30681_ACEOF
30682rm -f conftest.$ac_objext conftest$ac_exeext
30683if { (ac_try="$ac_link"
30684case "(($ac_try" in
30685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30686 *) ac_try_echo=$ac_try;;
30687esac
30688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30689 (eval "$ac_link") 2>conftest.er1
30690 ac_status=$?
30691 grep -v '^ *+' conftest.er1 >conftest.err
30692 rm -f conftest.er1
30693 cat conftest.err >&5
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030695 (exit $ac_status); } &&
30696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30697 { (case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30700esac
30701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_try") 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; } &&
30706 { ac_try='test -s conftest$ac_exeext'
30707 { (case "(($ac_try" in
30708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709 *) ac_try_echo=$ac_try;;
30710esac
30711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30712 (eval "$ac_try") 2>&5
30713 ac_status=$?
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030716 eval "$as_ac_var=yes"
30717else
30718 echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721 eval "$as_ac_var=no"
30722fi
30723
Tanya Lattnercf067672008-01-17 05:57:22 +000030724rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030725 conftest$ac_exeext conftest.$ac_ext
30726fi
30727ac_res=`eval echo '${'$as_ac_var'}'`
30728 { echo "$as_me:$LINENO: result: $ac_res" >&5
30729echo "${ECHO_T}$ac_res" >&6; }
30730if test `eval echo '${'$as_ac_var'}'` = yes; then
30731 cat >>confdefs.h <<_ACEOF
30732#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30733_ACEOF
30734
30735fi
30736done
30737
30738
30739
30740
30741for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030742do
30743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030747 echo $ECHO_N "(cached) $ECHO_C" >&6
30748else
30749 cat >conftest.$ac_ext <<_ACEOF
30750/* confdefs.h. */
30751_ACEOF
30752cat confdefs.h >>conftest.$ac_ext
30753cat >>conftest.$ac_ext <<_ACEOF
30754/* end confdefs.h. */
30755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30757#define $ac_func innocuous_$ac_func
30758
30759/* System header to define __stub macros and hopefully few prototypes,
30760 which can conflict with char $ac_func (); below.
30761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30762 <limits.h> exists even on freestanding compilers. */
30763
30764#ifdef __STDC__
30765# include <limits.h>
30766#else
30767# include <assert.h>
30768#endif
30769
30770#undef $ac_func
30771
Reid Spencera773bd52006-08-04 18:18:08 +000030772/* Override any GCC internal prototype to avoid an error.
30773 Use char because int might match the return type of a GCC
30774 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030775#ifdef __cplusplus
30776extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030777#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030778char $ac_func ();
30779/* The GNU C library defines this for functions which it implements
30780 to always fail with ENOSYS. Some functions are actually named
30781 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030782#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030783choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030784#endif
30785
30786int
30787main ()
30788{
Reid Spencera773bd52006-08-04 18:18:08 +000030789return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030790 ;
30791 return 0;
30792}
30793_ACEOF
30794rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030795if { (ac_try="$ac_link"
30796case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30799esac
30800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030802 ac_status=$?
30803 grep -v '^ *+' conftest.er1 >conftest.err
30804 rm -f conftest.er1
30805 cat conftest.err >&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030807 (exit $ac_status); } &&
30808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30809 { (case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30812esac
30813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_try") 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; } &&
30818 { ac_try='test -s conftest$ac_exeext'
30819 { (case "(($ac_try" in
30820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30821 *) ac_try_echo=$ac_try;;
30822esac
30823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30824 (eval "$ac_try") 2>&5
30825 ac_status=$?
30826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030828 eval "$as_ac_var=yes"
30829else
30830 echo "$as_me: failed program was:" >&5
30831sed 's/^/| /' conftest.$ac_ext >&5
30832
Reid Spencera773bd52006-08-04 18:18:08 +000030833 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030834fi
Reid Spencera773bd52006-08-04 18:18:08 +000030835
Tanya Lattnercf067672008-01-17 05:57:22 +000030836rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030837 conftest$ac_exeext conftest.$ac_ext
30838fi
Reid Spencera773bd52006-08-04 18:18:08 +000030839ac_res=`eval echo '${'$as_ac_var'}'`
30840 { echo "$as_me:$LINENO: result: $ac_res" >&5
30841echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030842if test `eval echo '${'$as_ac_var'}'` = yes; then
30843 cat >>confdefs.h <<_ACEOF
30844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30845_ACEOF
30846
30847fi
30848done
30849
30850
30851
30852
30853
30854
30855
30856
30857for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030858do
30859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030860{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030863 echo $ECHO_N "(cached) $ECHO_C" >&6
30864else
30865 cat >conftest.$ac_ext <<_ACEOF
30866/* confdefs.h. */
30867_ACEOF
30868cat confdefs.h >>conftest.$ac_ext
30869cat >>conftest.$ac_ext <<_ACEOF
30870/* end confdefs.h. */
30871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30873#define $ac_func innocuous_$ac_func
30874
30875/* System header to define __stub macros and hopefully few prototypes,
30876 which can conflict with char $ac_func (); below.
30877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30878 <limits.h> exists even on freestanding compilers. */
30879
30880#ifdef __STDC__
30881# include <limits.h>
30882#else
30883# include <assert.h>
30884#endif
30885
30886#undef $ac_func
30887
Reid Spencera773bd52006-08-04 18:18:08 +000030888/* Override any GCC internal prototype to avoid an error.
30889 Use char because int might match the return type of a GCC
30890 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030891#ifdef __cplusplus
30892extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030893#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030894char $ac_func ();
30895/* The GNU C library defines this for functions which it implements
30896 to always fail with ENOSYS. Some functions are actually named
30897 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030898#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030899choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030900#endif
30901
30902int
30903main ()
30904{
Reid Spencera773bd52006-08-04 18:18:08 +000030905return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030906 ;
30907 return 0;
30908}
30909_ACEOF
30910rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030911if { (ac_try="$ac_link"
30912case "(($ac_try" in
30913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914 *) ac_try_echo=$ac_try;;
30915esac
30916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30917 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030918 ac_status=$?
30919 grep -v '^ *+' conftest.er1 >conftest.err
30920 rm -f conftest.er1
30921 cat conftest.err >&5
30922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030923 (exit $ac_status); } &&
30924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30925 { (case "(($ac_try" in
30926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30927 *) ac_try_echo=$ac_try;;
30928esac
30929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30930 (eval "$ac_try") 2>&5
30931 ac_status=$?
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; } &&
30934 { ac_try='test -s conftest$ac_exeext'
30935 { (case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30938esac
30939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_try") 2>&5
30941 ac_status=$?
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030944 eval "$as_ac_var=yes"
30945else
30946 echo "$as_me: failed program was:" >&5
30947sed 's/^/| /' conftest.$ac_ext >&5
30948
Reid Spencera773bd52006-08-04 18:18:08 +000030949 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030950fi
Reid Spencera773bd52006-08-04 18:18:08 +000030951
Tanya Lattnercf067672008-01-17 05:57:22 +000030952rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030953 conftest$ac_exeext conftest.$ac_ext
30954fi
Reid Spencera773bd52006-08-04 18:18:08 +000030955ac_res=`eval echo '${'$as_ac_var'}'`
30956 { echo "$as_me:$LINENO: result: $ac_res" >&5
30957echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030958if test `eval echo '${'$as_ac_var'}'` = yes; then
30959 cat >>confdefs.h <<_ACEOF
30960#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30961_ACEOF
30962
30963fi
30964done
30965
30966
Reid Spencerba46ca32004-12-31 05:49:15 +000030967
30968
Chris Lattner0b142592005-11-14 06:57:34 +000030969
Chris Lattner511f11d2005-11-14 07:25:50 +000030970for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030971do
30972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030973{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030976 echo $ECHO_N "(cached) $ECHO_C" >&6
30977else
30978 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030979/* confdefs.h. */
30980_ACEOF
30981cat confdefs.h >>conftest.$ac_ext
30982cat >>conftest.$ac_ext <<_ACEOF
30983/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30986#define $ac_func innocuous_$ac_func
30987
30988/* System header to define __stub macros and hopefully few prototypes,
30989 which can conflict with char $ac_func (); below.
30990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30991 <limits.h> exists even on freestanding compilers. */
30992
30993#ifdef __STDC__
30994# include <limits.h>
30995#else
30996# include <assert.h>
30997#endif
30998
30999#undef $ac_func
31000
Reid Spencera773bd52006-08-04 18:18:08 +000031001/* Override any GCC internal prototype to avoid an error.
31002 Use char because int might match the return type of a GCC
31003 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031004#ifdef __cplusplus
31005extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031006#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031007char $ac_func ();
31008/* The GNU C library defines this for functions which it implements
31009 to always fail with ENOSYS. Some functions are actually named
31010 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031011#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031012choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031013#endif
John Criswell7a73b802003-06-30 21:59:07 +000031014
John Criswell7a73b802003-06-30 21:59:07 +000031015int
31016main ()
31017{
Reid Spencera773bd52006-08-04 18:18:08 +000031018return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031019 ;
31020 return 0;
31021}
31022_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031024if { (ac_try="$ac_link"
31025case "(($ac_try" in
31026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027 *) ac_try_echo=$ac_try;;
31028esac
31029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031031 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031032 grep -v '^ *+' conftest.er1 >conftest.err
31033 rm -f conftest.er1
31034 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031036 (exit $ac_status); } &&
31037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31038 { (case "(($ac_try" in
31039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31040 *) ac_try_echo=$ac_try;;
31041esac
31042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31043 (eval "$ac_try") 2>&5
31044 ac_status=$?
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; } &&
31047 { ac_try='test -s conftest$ac_exeext'
31048 { (case "(($ac_try" in
31049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050 *) ac_try_echo=$ac_try;;
31051esac
31052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053 (eval "$ac_try") 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031057 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031058else
31059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031060sed 's/^/| /' conftest.$ac_ext >&5
31061
Reid Spencera773bd52006-08-04 18:18:08 +000031062 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031063fi
Reid Spencera773bd52006-08-04 18:18:08 +000031064
Tanya Lattnercf067672008-01-17 05:57:22 +000031065rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031066 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031067fi
Reid Spencera773bd52006-08-04 18:18:08 +000031068ac_res=`eval echo '${'$as_ac_var'}'`
31069 { echo "$as_me:$LINENO: result: $ac_res" >&5
31070echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031071if test `eval echo '${'$as_ac_var'}'` = yes; then
31072 cat >>confdefs.h <<_ACEOF
31073#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031074_ACEOF
31075
31076fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031077done
John Criswell7a73b802003-06-30 21:59:07 +000031078
Reid Spencercdb08a32006-06-05 16:11:07 +000031079
31080
31081
31082
Reid Spencerafa22e22006-12-10 23:29:19 +000031083for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031084do
31085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031089 echo $ECHO_N "(cached) $ECHO_C" >&6
31090else
31091 cat >conftest.$ac_ext <<_ACEOF
31092/* confdefs.h. */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h. */
31097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31099#define $ac_func innocuous_$ac_func
31100
31101/* System header to define __stub macros and hopefully few prototypes,
31102 which can conflict with char $ac_func (); below.
31103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104 <limits.h> exists even on freestanding compilers. */
31105
31106#ifdef __STDC__
31107# include <limits.h>
31108#else
31109# include <assert.h>
31110#endif
31111
31112#undef $ac_func
31113
Reid Spencera773bd52006-08-04 18:18:08 +000031114/* Override any GCC internal prototype to avoid an error.
31115 Use char because int might match the return type of a GCC
31116 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031117#ifdef __cplusplus
31118extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031119#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031120char $ac_func ();
31121/* The GNU C library defines this for functions which it implements
31122 to always fail with ENOSYS. Some functions are actually named
31123 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031124#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031125choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031126#endif
31127
31128int
31129main ()
31130{
Reid Spencera773bd52006-08-04 18:18:08 +000031131return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031132 ;
31133 return 0;
31134}
31135_ACEOF
31136rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031137if { (ac_try="$ac_link"
31138case "(($ac_try" in
31139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140 *) ac_try_echo=$ac_try;;
31141esac
31142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031144 ac_status=$?
31145 grep -v '^ *+' conftest.er1 >conftest.err
31146 rm -f conftest.er1
31147 cat conftest.err >&5
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031149 (exit $ac_status); } &&
31150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31151 { (case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31154esac
31155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_try") 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
31161 { (case "(($ac_try" in
31162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163 *) ac_try_echo=$ac_try;;
31164esac
31165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166 (eval "$ac_try") 2>&5
31167 ac_status=$?
31168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031170 eval "$as_ac_var=yes"
31171else
31172 echo "$as_me: failed program was:" >&5
31173sed 's/^/| /' conftest.$ac_ext >&5
31174
Reid Spencera773bd52006-08-04 18:18:08 +000031175 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031176fi
Reid Spencera773bd52006-08-04 18:18:08 +000031177
Tanya Lattnercf067672008-01-17 05:57:22 +000031178rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031179 conftest$ac_exeext conftest.$ac_ext
31180fi
Reid Spencera773bd52006-08-04 18:18:08 +000031181ac_res=`eval echo '${'$as_ac_var'}'`
31182 { echo "$as_me:$LINENO: result: $ac_res" >&5
31183echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031184if test `eval echo '${'$as_ac_var'}'` = yes; then
31185 cat >>confdefs.h <<_ACEOF
31186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31187_ACEOF
31188
31189fi
31190done
31191
Reid Spencera773bd52006-08-04 18:18:08 +000031192{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31193echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031194if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031195 echo $ECHO_N "(cached) $ECHO_C" >&6
31196else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031198ac_cpp='$CPP $CPPFLAGS'
31199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201ac_compiler_gnu=$ac_cv_c_compiler_gnu
31202
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031203 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031204 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031205else
31206 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031207
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031208 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031213
John Criswella0137d32003-10-13 16:22:01 +000031214#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031215#include <stdlib.h>
31216
John Criswella0137d32003-10-13 16:22:01 +000031217int
31218main ()
31219{
31220
Reid Spencer2706f8c2004-09-19 23:53:36 +000031221volatile double A, B;
31222char Buffer[100];
31223A = 1;
31224A /= 10.0;
31225sprintf(Buffer, "%a", A);
31226B = atof(Buffer);
31227if (A != B)
31228 return (1);
31229if (A != 0x1.999999999999ap-4)
31230 return (1);
31231return (0);
John Criswella0137d32003-10-13 16:22:01 +000031232 ;
31233 return 0;
31234}
31235_ACEOF
31236rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031237if { (ac_try="$ac_link"
31238case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31241esac
31242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031244 ac_status=$?
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031247 { (case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31250esac
31251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031253 ac_status=$?
31254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031256 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031257else
31258 echo "$as_me: program exited with status $ac_status" >&5
31259echo "$as_me: failed program was:" >&5
31260sed 's/^/| /' conftest.$ac_ext >&5
31261
31262( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031263llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031264fi
Reid Spencera773bd52006-08-04 18:18:08 +000031265rm -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 +000031266fi
Reid Spencera773bd52006-08-04 18:18:08 +000031267
31268
Reid Spencer2706f8c2004-09-19 23:53:36 +000031269 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031270ac_cpp='$CPP $CPPFLAGS'
31271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31273ac_compiler_gnu=$ac_cv_c_compiler_gnu
31274
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275fi
Reid Spencera773bd52006-08-04 18:18:08 +000031276{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31277echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031278 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031279
31280cat >>confdefs.h <<\_ACEOF
31281#define HAVE_PRINTF_A 1
31282_ACEOF
31283
Reid Spencer2706f8c2004-09-19 23:53:36 +000031284 fi
John Criswella0137d32003-10-13 16:22:01 +000031285
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031286# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31287# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031288{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31289echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031290if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031291 echo $ECHO_N "(cached) $ECHO_C" >&6
31292else
John Criswell0021c312004-02-13 21:57:29 +000031293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031299#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031300int
31301main ()
31302{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031303char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031304 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031305 ;
31306 return 0;
31307}
31308_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031309rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031310if { (ac_try="$ac_link"
31311case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031317 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031322 (exit $ac_status); } &&
31323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326 *) ac_try_echo=$ac_try;;
31327esac
31328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; } &&
31333 { ac_try='test -s conftest$ac_exeext'
31334 { (case "(($ac_try" in
31335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336 *) ac_try_echo=$ac_try;;
31337esac
31338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339 (eval "$ac_try") 2>&5
31340 ac_status=$?
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031343 ac_cv_working_alloca_h=yes
31344else
31345 echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
Reid Spencera773bd52006-08-04 18:18:08 +000031348 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031349fi
Reid Spencera773bd52006-08-04 18:18:08 +000031350
Tanya Lattnercf067672008-01-17 05:57:22 +000031351rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352 conftest$ac_exeext conftest.$ac_ext
31353fi
Reid Spencera773bd52006-08-04 18:18:08 +000031354{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31355echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031356if test $ac_cv_working_alloca_h = yes; then
31357
31358cat >>confdefs.h <<\_ACEOF
31359#define HAVE_ALLOCA_H 1
31360_ACEOF
31361
31362fi
31363
Reid Spencera773bd52006-08-04 18:18:08 +000031364{ echo "$as_me:$LINENO: checking for alloca" >&5
31365echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031366if test "${ac_cv_func_alloca_works+set}" = set; then
31367 echo $ECHO_N "(cached) $ECHO_C" >&6
31368else
31369 cat >conftest.$ac_ext <<_ACEOF
31370/* confdefs.h. */
31371_ACEOF
31372cat confdefs.h >>conftest.$ac_ext
31373cat >>conftest.$ac_ext <<_ACEOF
31374/* end confdefs.h. */
31375#ifdef __GNUC__
31376# define alloca __builtin_alloca
31377#else
31378# ifdef _MSC_VER
31379# include <malloc.h>
31380# define alloca _alloca
31381# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031382# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383# include <alloca.h>
31384# else
31385# ifdef _AIX
31386 #pragma alloca
31387# else
31388# ifndef alloca /* predefined by HP cc +Olibcalls */
31389char *alloca ();
31390# endif
31391# endif
31392# endif
31393# endif
31394#endif
31395
31396int
31397main ()
31398{
31399char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031400 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031401 ;
31402 return 0;
31403}
31404_ACEOF
31405rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031406if { (ac_try="$ac_link"
31407case "(($ac_try" in
31408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31409 *) ac_try_echo=$ac_try;;
31410esac
31411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31412 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413 ac_status=$?
31414 grep -v '^ *+' conftest.er1 >conftest.err
31415 rm -f conftest.er1
31416 cat conftest.err >&5
31417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031418 (exit $ac_status); } &&
31419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31420 { (case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31423esac
31424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_try") 2>&5
31426 ac_status=$?
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; } &&
31429 { ac_try='test -s conftest$ac_exeext'
31430 { (case "(($ac_try" in
31431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31432 *) ac_try_echo=$ac_try;;
31433esac
31434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31435 (eval "$ac_try") 2>&5
31436 ac_status=$?
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031439 ac_cv_func_alloca_works=yes
31440else
31441 echo "$as_me: failed program was:" >&5
31442sed 's/^/| /' conftest.$ac_ext >&5
31443
Reid Spencera773bd52006-08-04 18:18:08 +000031444 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031445fi
Reid Spencera773bd52006-08-04 18:18:08 +000031446
Tanya Lattnercf067672008-01-17 05:57:22 +000031447rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448 conftest$ac_exeext conftest.$ac_ext
31449fi
Reid Spencera773bd52006-08-04 18:18:08 +000031450{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31451echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031452
31453if test $ac_cv_func_alloca_works = yes; then
31454
31455cat >>confdefs.h <<\_ACEOF
31456#define HAVE_ALLOCA 1
31457_ACEOF
31458
31459else
31460 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31461# that cause trouble. Some versions do not even contain alloca or
31462# contain a buggy version. If you still want to use their alloca,
31463# use ar to extract alloca.o from them instead of compiling alloca.c.
31464
Reid Spencera773bd52006-08-04 18:18:08 +000031465ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031466
31467cat >>confdefs.h <<\_ACEOF
31468#define C_ALLOCA 1
31469_ACEOF
31470
31471
Reid Spencera773bd52006-08-04 18:18:08 +000031472{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31473echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031474if test "${ac_cv_os_cray+set}" = set; then
31475 echo $ECHO_N "(cached) $ECHO_C" >&6
31476else
31477 cat >conftest.$ac_ext <<_ACEOF
31478/* confdefs.h. */
31479_ACEOF
31480cat confdefs.h >>conftest.$ac_ext
31481cat >>conftest.$ac_ext <<_ACEOF
31482/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031483#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031484webecray
31485#else
31486wenotbecray
31487#endif
31488
31489_ACEOF
31490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31491 $EGREP "webecray" >/dev/null 2>&1; then
31492 ac_cv_os_cray=yes
31493else
31494 ac_cv_os_cray=no
31495fi
31496rm -f conftest*
31497
31498fi
Reid Spencera773bd52006-08-04 18:18:08 +000031499{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31500echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031501if test $ac_cv_os_cray = yes; then
31502 for ac_func in _getb67 GETB67 getb67; do
31503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031504{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31506if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031507 echo $ECHO_N "(cached) $ECHO_C" >&6
31508else
31509 cat >conftest.$ac_ext <<_ACEOF
31510/* confdefs.h. */
31511_ACEOF
31512cat confdefs.h >>conftest.$ac_ext
31513cat >>conftest.$ac_ext <<_ACEOF
31514/* end confdefs.h. */
31515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31517#define $ac_func innocuous_$ac_func
31518
31519/* System header to define __stub macros and hopefully few prototypes,
31520 which can conflict with char $ac_func (); below.
31521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522 <limits.h> exists even on freestanding compilers. */
31523
31524#ifdef __STDC__
31525# include <limits.h>
31526#else
31527# include <assert.h>
31528#endif
31529
31530#undef $ac_func
31531
Reid Spencera773bd52006-08-04 18:18:08 +000031532/* Override any GCC internal prototype to avoid an error.
31533 Use char because int might match the return type of a GCC
31534 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031535#ifdef __cplusplus
31536extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031537#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031538char $ac_func ();
31539/* The GNU C library defines this for functions which it implements
31540 to always fail with ENOSYS. Some functions are actually named
31541 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031542#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031543choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031544#endif
31545
31546int
31547main ()
31548{
Reid Spencera773bd52006-08-04 18:18:08 +000031549return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031550 ;
31551 return 0;
31552}
31553_ACEOF
31554rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031555if { (ac_try="$ac_link"
31556case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31559esac
31560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031562 ac_status=$?
31563 grep -v '^ *+' conftest.er1 >conftest.err
31564 rm -f conftest.er1
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031567 (exit $ac_status); } &&
31568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31572esac
31573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest$ac_exeext'
31579 { (case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31582esac
31583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_try") 2>&5
31585 ac_status=$?
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031588 eval "$as_ac_var=yes"
31589else
31590 echo "$as_me: failed program was:" >&5
31591sed 's/^/| /' conftest.$ac_ext >&5
31592
Reid Spencera773bd52006-08-04 18:18:08 +000031593 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031594fi
Reid Spencera773bd52006-08-04 18:18:08 +000031595
Tanya Lattnercf067672008-01-17 05:57:22 +000031596rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031597 conftest$ac_exeext conftest.$ac_ext
31598fi
Reid Spencera773bd52006-08-04 18:18:08 +000031599ac_res=`eval echo '${'$as_ac_var'}'`
31600 { echo "$as_me:$LINENO: result: $ac_res" >&5
31601echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031602if test `eval echo '${'$as_ac_var'}'` = yes; then
31603
31604cat >>confdefs.h <<_ACEOF
31605#define CRAY_STACKSEG_END $ac_func
31606_ACEOF
31607
31608 break
31609fi
31610
31611 done
31612fi
31613
Reid Spencera773bd52006-08-04 18:18:08 +000031614{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31615echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031616if test "${ac_cv_c_stack_direction+set}" = set; then
31617 echo $ECHO_N "(cached) $ECHO_C" >&6
31618else
31619 if test "$cross_compiling" = yes; then
31620 ac_cv_c_stack_direction=0
31621else
31622 cat >conftest.$ac_ext <<_ACEOF
31623/* confdefs.h. */
31624_ACEOF
31625cat confdefs.h >>conftest.$ac_ext
31626cat >>conftest.$ac_ext <<_ACEOF
31627/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031628$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031629int
31630find_stack_direction ()
31631{
31632 static char *addr = 0;
31633 auto char dummy;
31634 if (addr == 0)
31635 {
31636 addr = &dummy;
31637 return find_stack_direction ();
31638 }
John Criswell0021c312004-02-13 21:57:29 +000031639 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031640 return (&dummy > addr) ? 1 : -1;
31641}
John Criswell0021c312004-02-13 21:57:29 +000031642
John Criswell0021c312004-02-13 21:57:29 +000031643int
31644main ()
31645{
Reid Spencera773bd52006-08-04 18:18:08 +000031646 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031647}
31648_ACEOF
31649rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031650if { (ac_try="$ac_link"
31651case "(($ac_try" in
31652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31653 *) ac_try_echo=$ac_try;;
31654esac
31655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31656 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031657 ac_status=$?
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031660 { (case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31663esac
31664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031669 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031670else
31671 echo "$as_me: program exited with status $ac_status" >&5
31672echo "$as_me: failed program was:" >&5
31673sed 's/^/| /' conftest.$ac_ext >&5
31674
31675( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031677fi
Reid Spencera773bd52006-08-04 18:18:08 +000031678rm -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 +000031679fi
Reid Spencera773bd52006-08-04 18:18:08 +000031680
31681
John Criswell0021c312004-02-13 21:57:29 +000031682fi
Reid Spencera773bd52006-08-04 18:18:08 +000031683{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31684echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685
31686cat >>confdefs.h <<_ACEOF
31687#define STACK_DIRECTION $ac_cv_c_stack_direction
31688_ACEOF
31689
31690
John Criswell0021c312004-02-13 21:57:29 +000031691fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692
31693
Reid Spencera773bd52006-08-04 18:18:08 +000031694{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31695echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031696if test "${ac_cv_func_rand48+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31698else
Reid Spencera773bd52006-08-04 18:18:08 +000031699 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031700ac_cpp='$CXXCPP $CPPFLAGS'
31701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31704
31705 cat >conftest.$ac_ext <<_ACEOF
31706/* confdefs.h. */
31707_ACEOF
31708cat confdefs.h >>conftest.$ac_ext
31709cat >>conftest.$ac_ext <<_ACEOF
31710/* end confdefs.h. */
31711#include <stdlib.h>
31712int
31713main ()
31714{
31715srand48(0);lrand48();drand48();
31716 ;
31717 return 0;
31718}
31719_ACEOF
31720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031721if { (ac_try="$ac_compile"
31722case "(($ac_try" in
31723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31724 *) ac_try_echo=$ac_try;;
31725esac
31726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31727 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031728 ac_status=$?
31729 grep -v '^ *+' conftest.er1 >conftest.err
31730 rm -f conftest.er1
31731 cat conftest.err >&5
31732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031733 (exit $ac_status); } &&
31734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31735 { (case "(($ac_try" in
31736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31737 *) ac_try_echo=$ac_try;;
31738esac
31739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31740 (eval "$ac_try") 2>&5
31741 ac_status=$?
31742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31743 (exit $ac_status); }; } &&
31744 { ac_try='test -s conftest.$ac_objext'
31745 { (case "(($ac_try" in
31746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31747 *) ac_try_echo=$ac_try;;
31748esac
31749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31750 (eval "$ac_try") 2>&5
31751 ac_status=$?
31752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031754 ac_cv_func_rand48=yes
31755else
31756 echo "$as_me: failed program was:" >&5
31757sed 's/^/| /' conftest.$ac_ext >&5
31758
Reid Spencera773bd52006-08-04 18:18:08 +000031759 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031760fi
Reid Spencera773bd52006-08-04 18:18:08 +000031761
31762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763 ac_ext=c
31764ac_cpp='$CPP $CPPFLAGS'
31765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31767ac_compiler_gnu=$ac_cv_c_compiler_gnu
31768
31769fi
Reid Spencera773bd52006-08-04 18:18:08 +000031770{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31771echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772
31773if test "$ac_cv_func_rand48" = "yes" ; then
31774
31775cat >>confdefs.h <<\_ACEOF
31776#define HAVE_RAND48 1
31777_ACEOF
31778
31779fi
John Criswell0021c312004-02-13 21:57:29 +000031780
31781
Reid Spencera773bd52006-08-04 18:18:08 +000031782{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31783echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031784if test "${ac_cv_cxx_namespaces+set}" = set; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31786else
Reid Spencera773bd52006-08-04 18:18:08 +000031787 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031788ac_cpp='$CXXCPP $CPPFLAGS'
31789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31792
31793 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031794/* confdefs.h. */
31795_ACEOF
31796cat confdefs.h >>conftest.$ac_ext
31797cat >>conftest.$ac_ext <<_ACEOF
31798/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031799namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031800int
31801main ()
31802{
31803using namespace Outer::Inner; return i;
31804 ;
31805 return 0;
31806}
31807_ACEOF
31808rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031809if { (ac_try="$ac_compile"
31810case "(($ac_try" in
31811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31812 *) ac_try_echo=$ac_try;;
31813esac
31814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31815 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031817 grep -v '^ *+' conftest.er1 >conftest.err
31818 rm -f conftest.er1
31819 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031821 (exit $ac_status); } &&
31822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31823 { (case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31826esac
31827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_try") 2>&5
31829 ac_status=$?
31830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31831 (exit $ac_status); }; } &&
31832 { ac_try='test -s conftest.$ac_objext'
31833 { (case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31836esac
31837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_try") 2>&5
31839 ac_status=$?
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031842 ac_cv_cxx_namespaces=yes
31843else
31844 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031845sed 's/^/| /' conftest.$ac_ext >&5
31846
Reid Spencera773bd52006-08-04 18:18:08 +000031847 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031848fi
Reid Spencera773bd52006-08-04 18:18:08 +000031849
31850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031851 ac_ext=c
31852ac_cpp='$CPP $CPPFLAGS'
31853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31855ac_compiler_gnu=$ac_cv_c_compiler_gnu
31856
31857
31858fi
Reid Spencera773bd52006-08-04 18:18:08 +000031859{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31860echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031861if test "$ac_cv_cxx_namespaces" = yes; then
31862
31863cat >>confdefs.h <<\_ACEOF
31864#define HAVE_NAMESPACES
31865_ACEOF
31866
31867fi
31868
Reid Spencera773bd52006-08-04 18:18:08 +000031869{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31870echo $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 +000031871if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031872 echo $ECHO_N "(cached) $ECHO_C" >&6
31873else
31874
Reid Spencera773bd52006-08-04 18:18:08 +000031875 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031876ac_cpp='$CXXCPP $CPPFLAGS'
31877ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31878ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31879ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31880
31881 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031882/* confdefs.h. */
31883_ACEOF
31884cat confdefs.h >>conftest.$ac_ext
31885cat >>conftest.$ac_ext <<_ACEOF
31886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031887#include <ext/hash_map>
31888#ifdef HAVE_NAMESPACES
31889using namespace std;
31890#endif
John Criswell7a73b802003-06-30 21:59:07 +000031891int
31892main ()
31893{
Brian Gaeke90583492003-11-10 03:06:28 +000031894hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031895 ;
31896 return 0;
31897}
31898_ACEOF
31899rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031900if { (ac_try="$ac_compile"
31901case "(($ac_try" in
31902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31903 *) ac_try_echo=$ac_try;;
31904esac
31905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31906 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031907 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031908 grep -v '^ *+' conftest.er1 >conftest.err
31909 rm -f conftest.er1
31910 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031912 (exit $ac_status); } &&
31913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31914 { (case "(($ac_try" in
31915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31916 *) ac_try_echo=$ac_try;;
31917esac
31918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31919 (eval "$ac_try") 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; } &&
31923 { ac_try='test -s conftest.$ac_objext'
31924 { (case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31927esac
31928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_try") 2>&5
31930 ac_status=$?
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031933 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031934else
31935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031936sed 's/^/| /' conftest.$ac_ext >&5
31937
Reid Spencera773bd52006-08-04 18:18:08 +000031938 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031939fi
Reid Spencera773bd52006-08-04 18:18:08 +000031940
31941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031942 ac_ext=c
31943ac_cpp='$CPP $CPPFLAGS'
31944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31946ac_compiler_gnu=$ac_cv_c_compiler_gnu
31947
John Criswell7a73b802003-06-30 21:59:07 +000031948fi
Reid Spencera773bd52006-08-04 18:18:08 +000031949{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31950echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031951 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31952 then
John Criswell9f011862004-09-24 18:28:00 +000031953
31954cat >>confdefs.h <<\_ACEOF
31955#define HAVE_STD_EXT_HASH_MAP 1
31956_ACEOF
31957
31958 else
31959
31960cat >>confdefs.h <<\_ACEOF
31961#define HAVE_STD_EXT_HASH_MAP 0
31962_ACEOF
31963
Brian Gaeke90583492003-11-10 03:06:28 +000031964 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031965
Reid Spencera773bd52006-08-04 18:18:08 +000031966 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31967echo $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 +000031968if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31969 echo $ECHO_N "(cached) $ECHO_C" >&6
31970else
31971
Reid Spencera773bd52006-08-04 18:18:08 +000031972 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031973ac_cpp='$CXXCPP $CPPFLAGS'
31974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31977
31978 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031979/* confdefs.h. */
31980_ACEOF
31981cat confdefs.h >>conftest.$ac_ext
31982cat >>conftest.$ac_ext <<_ACEOF
31983/* end confdefs.h. */
31984#include <ext/hash_map>
31985#ifdef HAVE_NAMESPACES
31986using namespace __gnu_cxx;
31987#endif
31988int
31989main ()
31990{
31991hash_map<int,int> t;
31992 ;
31993 return 0;
31994}
31995_ACEOF
31996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031997if { (ac_try="$ac_compile"
31998case "(($ac_try" in
31999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000 *) ac_try_echo=$ac_try;;
32001esac
32002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032005 grep -v '^ *+' conftest.er1 >conftest.err
32006 rm -f conftest.er1
32007 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032009 (exit $ac_status); } &&
32010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32011 { (case "(($ac_try" in
32012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32013 *) ac_try_echo=$ac_try;;
32014esac
32015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32016 (eval "$ac_try") 2>&5
32017 ac_status=$?
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); }; } &&
32020 { ac_try='test -s conftest.$ac_objext'
32021 { (case "(($ac_try" in
32022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32023 *) ac_try_echo=$ac_try;;
32024esac
32025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32026 (eval "$ac_try") 2>&5
32027 ac_status=$?
32028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32029 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032030 ac_cv_cxx_have_gnu_ext_hash_map=yes
32031else
32032 echo "$as_me: failed program was:" >&5
32033sed 's/^/| /' conftest.$ac_ext >&5
32034
Reid Spencera773bd52006-08-04 18:18:08 +000032035 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032036fi
Reid Spencera773bd52006-08-04 18:18:08 +000032037
32038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032039 ac_ext=c
32040ac_cpp='$CPP $CPPFLAGS'
32041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32043ac_compiler_gnu=$ac_cv_c_compiler_gnu
32044
32045fi
Reid Spencera773bd52006-08-04 18:18:08 +000032046{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32047echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032048 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32049 then
John Criswell9f011862004-09-24 18:28:00 +000032050
32051cat >>confdefs.h <<\_ACEOF
32052#define HAVE_GNU_EXT_HASH_MAP 1
32053_ACEOF
32054
32055 else
32056
32057cat >>confdefs.h <<\_ACEOF
32058#define HAVE_GNU_EXT_HASH_MAP 0
32059_ACEOF
32060
Brian Gaeke90583492003-11-10 03:06:28 +000032061 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032062
Reid Spencera773bd52006-08-04 18:18:08 +000032063 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32064echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032065if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32066 echo $ECHO_N "(cached) $ECHO_C" >&6
32067else
John Criswell7a73b802003-06-30 21:59:07 +000032068
Reid Spencera773bd52006-08-04 18:18:08 +000032069 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032070ac_cpp='$CXXCPP $CPPFLAGS'
32071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32074
32075 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032076/* confdefs.h. */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h. */
32081#include <hash_map>
32082int
32083main ()
32084{
32085hash_map<int,int> t;
32086 ;
32087 return 0;
32088}
32089_ACEOF
32090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032091if { (ac_try="$ac_compile"
32092case "(($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_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032099 grep -v '^ *+' conftest.er1 >conftest.err
32100 rm -f conftest.er1
32101 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032103 (exit $ac_status); } &&
32104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32105 { (case "(($ac_try" in
32106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32107 *) ac_try_echo=$ac_try;;
32108esac
32109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32110 (eval "$ac_try") 2>&5
32111 ac_status=$?
32112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113 (exit $ac_status); }; } &&
32114 { ac_try='test -s conftest.$ac_objext'
32115 { (case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32118esac
32119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_try") 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032124 ac_cv_cxx_have_global_hash_map=yes
32125else
32126 echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
Reid Spencera773bd52006-08-04 18:18:08 +000032129 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032130fi
Reid Spencera773bd52006-08-04 18:18:08 +000032131
32132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032133 ac_ext=c
32134ac_cpp='$CPP $CPPFLAGS'
32135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32137ac_compiler_gnu=$ac_cv_c_compiler_gnu
32138
32139fi
Reid Spencera773bd52006-08-04 18:18:08 +000032140{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32141echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032142 if test "$ac_cv_cxx_have_global_hash_map" = yes
32143 then
John Criswell9f011862004-09-24 18:28:00 +000032144
32145cat >>confdefs.h <<\_ACEOF
32146#define HAVE_GLOBAL_HASH_MAP 1
32147_ACEOF
32148
32149 else
32150
32151cat >>confdefs.h <<\_ACEOF
32152#define HAVE_GLOBAL_HASH_MAP 0
32153_ACEOF
32154
Brian Gaeke90583492003-11-10 03:06:28 +000032155 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032156
Reid Spencera773bd52006-08-04 18:18:08 +000032157{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32158echo $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 +000032159if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032160 echo $ECHO_N "(cached) $ECHO_C" >&6
32161else
32162
Reid Spencera773bd52006-08-04 18:18:08 +000032163 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032164ac_cpp='$CXXCPP $CPPFLAGS'
32165ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32168
32169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032170/* confdefs.h. */
32171_ACEOF
32172cat confdefs.h >>conftest.$ac_ext
32173cat >>conftest.$ac_ext <<_ACEOF
32174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032175#include <ext/hash_set>
32176#ifdef HAVE_NAMESPACES
32177using namespace std;
32178#endif
John Criswell7a73b802003-06-30 21:59:07 +000032179int
32180main ()
32181{
Brian Gaeke90583492003-11-10 03:06:28 +000032182hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032183 ;
32184 return 0;
32185}
32186_ACEOF
32187rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032188if { (ac_try="$ac_compile"
32189case "(($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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032195 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032200 (exit $ac_status); } &&
32201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32202 { (case "(($ac_try" in
32203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32204 *) ac_try_echo=$ac_try;;
32205esac
32206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32207 (eval "$ac_try") 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
32211 { ac_try='test -s conftest.$ac_objext'
32212 { (case "(($ac_try" in
32213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32214 *) ac_try_echo=$ac_try;;
32215esac
32216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32217 (eval "$ac_try") 2>&5
32218 ac_status=$?
32219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032221 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032222else
32223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032224sed 's/^/| /' conftest.$ac_ext >&5
32225
Reid Spencera773bd52006-08-04 18:18:08 +000032226 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032227fi
Reid Spencera773bd52006-08-04 18:18:08 +000032228
32229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032230 ac_ext=c
32231ac_cpp='$CPP $CPPFLAGS'
32232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32234ac_compiler_gnu=$ac_cv_c_compiler_gnu
32235
32236fi
Reid Spencera773bd52006-08-04 18:18:08 +000032237{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32238echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032239 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32240 then
John Criswell9f011862004-09-24 18:28:00 +000032241
32242cat >>confdefs.h <<\_ACEOF
32243#define HAVE_STD_EXT_HASH_SET 1
32244_ACEOF
32245
32246 else
32247
32248cat >>confdefs.h <<\_ACEOF
32249#define HAVE_STD_EXT_HASH_SET 0
32250_ACEOF
32251
Brian Gaeke90583492003-11-10 03:06:28 +000032252 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032253
Reid Spencera773bd52006-08-04 18:18:08 +000032254 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32255echo $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 +000032256if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
32259
Reid Spencera773bd52006-08-04 18:18:08 +000032260 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032261ac_cpp='$CXXCPP $CPPFLAGS'
32262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32265
John Criswell7a73b802003-06-30 21:59:07 +000032266 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032267/* confdefs.h. */
32268_ACEOF
32269cat confdefs.h >>conftest.$ac_ext
32270cat >>conftest.$ac_ext <<_ACEOF
32271/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032272#include <ext/hash_set>
32273#ifdef HAVE_NAMESPACES
32274using namespace __gnu_cxx;
32275#endif
John Criswell7a73b802003-06-30 21:59:07 +000032276int
32277main ()
32278{
Brian Gaeke90583492003-11-10 03:06:28 +000032279hash_set<int> t;
32280 ;
32281 return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032285if { (ac_try="$ac_compile"
32286case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32289esac
32290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032293 grep -v '^ *+' conftest.er1 >conftest.err
32294 rm -f conftest.er1
32295 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032297 (exit $ac_status); } &&
32298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32299 { (case "(($ac_try" in
32300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301 *) ac_try_echo=$ac_try;;
32302esac
32303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_try") 2>&5
32305 ac_status=$?
32306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307 (exit $ac_status); }; } &&
32308 { ac_try='test -s conftest.$ac_objext'
32309 { (case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32312esac
32313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_try") 2>&5
32315 ac_status=$?
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032318 ac_cv_cxx_have_gnu_ext_hash_set=yes
32319else
32320 echo "$as_me: failed program was:" >&5
32321sed 's/^/| /' conftest.$ac_ext >&5
32322
Reid Spencera773bd52006-08-04 18:18:08 +000032323 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032324fi
Reid Spencera773bd52006-08-04 18:18:08 +000032325
32326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032327 ac_ext=c
32328ac_cpp='$CPP $CPPFLAGS'
32329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32331ac_compiler_gnu=$ac_cv_c_compiler_gnu
32332
32333fi
Reid Spencera773bd52006-08-04 18:18:08 +000032334{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32335echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032336 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32337 then
John Criswell9f011862004-09-24 18:28:00 +000032338
32339cat >>confdefs.h <<\_ACEOF
32340#define HAVE_GNU_EXT_HASH_SET 1
32341_ACEOF
32342
32343 else
32344
32345cat >>confdefs.h <<\_ACEOF
32346#define HAVE_GNU_EXT_HASH_SET 0
32347_ACEOF
32348
Brian Gaeke90583492003-11-10 03:06:28 +000032349 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032350
Reid Spencera773bd52006-08-04 18:18:08 +000032351 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32352echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032353if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32354 echo $ECHO_N "(cached) $ECHO_C" >&6
32355else
32356
Reid Spencera773bd52006-08-04 18:18:08 +000032357 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032358ac_cpp='$CXXCPP $CPPFLAGS'
32359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32362
32363 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032364/* confdefs.h. */
32365_ACEOF
32366cat confdefs.h >>conftest.$ac_ext
32367cat >>conftest.$ac_ext <<_ACEOF
32368/* end confdefs.h. */
32369#include <hash_set>
32370int
32371main ()
32372{
John Criswell7a73b802003-06-30 21:59:07 +000032373hash_set<int> t; return 0;
32374 ;
32375 return 0;
32376}
32377_ACEOF
32378rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032379if { (ac_try="$ac_compile"
32380case "(($ac_try" in
32381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382 *) ac_try_echo=$ac_try;;
32383esac
32384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032387 grep -v '^ *+' conftest.er1 >conftest.err
32388 rm -f conftest.er1
32389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032391 (exit $ac_status); } &&
32392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393 { (case "(($ac_try" in
32394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395 *) ac_try_echo=$ac_try;;
32396esac
32397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398 (eval "$ac_try") 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32406esac
32407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_try") 2>&5
32409 ac_status=$?
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032412 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032413else
32414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032415sed 's/^/| /' conftest.$ac_ext >&5
32416
Reid Spencera773bd52006-08-04 18:18:08 +000032417 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032418fi
Reid Spencera773bd52006-08-04 18:18:08 +000032419
32420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032421 ac_ext=c
32422ac_cpp='$CPP $CPPFLAGS'
32423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426
John Criswell7a73b802003-06-30 21:59:07 +000032427fi
Reid Spencera773bd52006-08-04 18:18:08 +000032428{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32429echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032430 if test "$ac_cv_cxx_have_global_hash_set" = yes
32431 then
John Criswell9f011862004-09-24 18:28:00 +000032432
32433cat >>confdefs.h <<\_ACEOF
32434#define HAVE_GLOBAL_HASH_SET 1
32435_ACEOF
32436
32437 else
32438
32439cat >>confdefs.h <<\_ACEOF
32440#define HAVE_GLOBAL_HASH_SET 0
32441_ACEOF
32442
Brian Gaeke90583492003-11-10 03:06:28 +000032443 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032444
Reid Spencera773bd52006-08-04 18:18:08 +000032445{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32446echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032447if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32449else
32450
Reid Spencera773bd52006-08-04 18:18:08 +000032451 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032452ac_cpp='$CXXCPP $CPPFLAGS'
32453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32456
32457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032458/* confdefs.h. */
32459_ACEOF
32460cat confdefs.h >>conftest.$ac_ext
32461cat >>conftest.$ac_ext <<_ACEOF
32462/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032463#include <iterator>
32464#ifdef HAVE_NAMESPACES
32465using namespace std;
32466#endif
John Criswell7a73b802003-06-30 21:59:07 +000032467int
32468main ()
32469{
32470iterator<int,int,int> t; return 0;
32471 ;
32472 return 0;
32473}
32474_ACEOF
32475rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032476if { (ac_try="$ac_compile"
32477case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32480esac
32481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032483 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032484 grep -v '^ *+' conftest.er1 >conftest.err
32485 rm -f conftest.er1
32486 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032488 (exit $ac_status); } &&
32489 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32490 { (case "(($ac_try" in
32491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492 *) ac_try_echo=$ac_try;;
32493esac
32494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495 (eval "$ac_try") 2>&5
32496 ac_status=$?
32497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498 (exit $ac_status); }; } &&
32499 { ac_try='test -s conftest.$ac_objext'
32500 { (case "(($ac_try" in
32501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502 *) ac_try_echo=$ac_try;;
32503esac
32504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505 (eval "$ac_try") 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032509 ac_cv_cxx_have_std_iterator=yes
32510else
32511 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032512sed 's/^/| /' conftest.$ac_ext >&5
32513
Reid Spencera773bd52006-08-04 18:18:08 +000032514 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032515fi
Reid Spencera773bd52006-08-04 18:18:08 +000032516
32517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032518 ac_ext=c
32519ac_cpp='$CPP $CPPFLAGS'
32520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32522ac_compiler_gnu=$ac_cv_c_compiler_gnu
32523
32524
32525fi
Reid Spencera773bd52006-08-04 18:18:08 +000032526{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32527echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032528if test "$ac_cv_cxx_have_std_iterator" = yes
32529then
John Criswell40468462004-09-24 21:19:06 +000032530
32531cat >>confdefs.h <<\_ACEOF
32532#define HAVE_STD_ITERATOR 1
32533_ACEOF
32534
32535else
32536
32537cat >>confdefs.h <<\_ACEOF
32538#define HAVE_STD_ITERATOR 0
32539_ACEOF
32540
John Criswell7a73b802003-06-30 21:59:07 +000032541fi
32542
Reid Spencera773bd52006-08-04 18:18:08 +000032543{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32544echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032545if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32546 echo $ECHO_N "(cached) $ECHO_C" >&6
32547else
32548
Reid Spencera773bd52006-08-04 18:18:08 +000032549 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032550ac_cpp='$CXXCPP $CPPFLAGS'
32551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32554
32555 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032556/* confdefs.h. */
32557_ACEOF
32558cat confdefs.h >>conftest.$ac_ext
32559cat >>conftest.$ac_ext <<_ACEOF
32560/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032561#include <iterator>
32562#ifdef HAVE_NAMESPACES
32563using namespace std;
32564#endif
John Criswell7a73b802003-06-30 21:59:07 +000032565int
32566main ()
32567{
John Criswellc78022e2003-07-29 19:11:58 +000032568bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032569 ;
32570 return 0;
32571}
32572_ACEOF
32573rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032574if { (ac_try="$ac_compile"
32575case "(($ac_try" in
32576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32577 *) ac_try_echo=$ac_try;;
32578esac
32579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32580 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032586 (exit $ac_status); } &&
32587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32588 { (case "(($ac_try" in
32589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32590 *) ac_try_echo=$ac_try;;
32591esac
32592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32593 (eval "$ac_try") 2>&5
32594 ac_status=$?
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; } &&
32597 { ac_try='test -s conftest.$ac_objext'
32598 { (case "(($ac_try" in
32599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600 *) ac_try_echo=$ac_try;;
32601esac
32602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603 (eval "$ac_try") 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032607 ac_cv_cxx_have_bi_iterator=yes
32608else
32609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032610sed 's/^/| /' conftest.$ac_ext >&5
32611
Reid Spencera773bd52006-08-04 18:18:08 +000032612 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032613fi
Reid Spencera773bd52006-08-04 18:18:08 +000032614
32615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032616 ac_ext=c
32617ac_cpp='$CPP $CPPFLAGS'
32618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32620ac_compiler_gnu=$ac_cv_c_compiler_gnu
32621
32622
32623fi
Reid Spencera773bd52006-08-04 18:18:08 +000032624{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32625echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032626if test "$ac_cv_cxx_have_bi_iterator" = yes
32627then
John Criswell40468462004-09-24 21:19:06 +000032628
32629cat >>confdefs.h <<\_ACEOF
32630#define HAVE_BI_ITERATOR 1
32631_ACEOF
32632
32633else
32634
32635cat >>confdefs.h <<\_ACEOF
32636#define HAVE_BI_ITERATOR 0
32637_ACEOF
32638
John Criswell7a73b802003-06-30 21:59:07 +000032639fi
32640
Reid Spencera773bd52006-08-04 18:18:08 +000032641{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32642echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032643if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32644 echo $ECHO_N "(cached) $ECHO_C" >&6
32645else
32646
Reid Spencera773bd52006-08-04 18:18:08 +000032647 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032648ac_cpp='$CXXCPP $CPPFLAGS'
32649ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32650ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32651ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32652
32653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032654/* confdefs.h. */
32655_ACEOF
32656cat confdefs.h >>conftest.$ac_ext
32657cat >>conftest.$ac_ext <<_ACEOF
32658/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032659#include <iterator>
32660#ifdef HAVE_NAMESPACES
32661using namespace std;
32662#endif
John Criswell7a73b802003-06-30 21:59:07 +000032663int
32664main ()
32665{
John Criswellc78022e2003-07-29 19:11:58 +000032666forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032667 ;
32668 return 0;
32669}
32670_ACEOF
32671rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032672if { (ac_try="$ac_compile"
32673case "(($ac_try" in
32674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32675 *) ac_try_echo=$ac_try;;
32676esac
32677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32678 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032680 grep -v '^ *+' conftest.er1 >conftest.err
32681 rm -f conftest.er1
32682 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032684 (exit $ac_status); } &&
32685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32686 { (case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32689esac
32690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_try") 2>&5
32692 ac_status=$?
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } &&
32695 { ac_try='test -s conftest.$ac_objext'
32696 { (case "(($ac_try" in
32697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32698 *) ac_try_echo=$ac_try;;
32699esac
32700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32701 (eval "$ac_try") 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032705 ac_cv_cxx_have_fwd_iterator=yes
32706else
32707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032708sed 's/^/| /' conftest.$ac_ext >&5
32709
Reid Spencera773bd52006-08-04 18:18:08 +000032710 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032711fi
Reid Spencera773bd52006-08-04 18:18:08 +000032712
32713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032714 ac_ext=c
32715ac_cpp='$CPP $CPPFLAGS'
32716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32718ac_compiler_gnu=$ac_cv_c_compiler_gnu
32719
32720
32721fi
Reid Spencera773bd52006-08-04 18:18:08 +000032722{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32723echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032724if test "$ac_cv_cxx_have_fwd_iterator" = yes
32725then
John Criswell40468462004-09-24 21:19:06 +000032726
32727cat >>confdefs.h <<\_ACEOF
32728#define HAVE_FWD_ITERATOR 1
32729_ACEOF
32730
32731else
32732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_FWD_ITERATOR 0
32735_ACEOF
32736
John Criswell7a73b802003-06-30 21:59:07 +000032737fi
32738
32739
Reid Spencera773bd52006-08-04 18:18:08 +000032740{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32741echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032742if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32744else
Reid Spencera773bd52006-08-04 18:18:08 +000032745 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032746ac_cpp='$CXXCPP $CPPFLAGS'
32747ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32748ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32749ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32750
Reid Spencerabec8f92004-10-27 23:03:44 +000032751 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032752/* confdefs.h. */
32753_ACEOF
32754cat confdefs.h >>conftest.$ac_ext
32755cat >>conftest.$ac_ext <<_ACEOF
32756/* end confdefs.h. */
32757#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032758int
32759main ()
32760{
32761float f; isnan(f);
32762 ;
32763 return 0;
32764}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032765_ACEOF
32766rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032767if { (ac_try="$ac_compile"
32768case "(($ac_try" in
32769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770 *) ac_try_echo=$ac_try;;
32771esac
32772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032774 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032775 grep -v '^ *+' conftest.er1 >conftest.err
32776 rm -f conftest.er1
32777 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032779 (exit $ac_status); } &&
32780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32781 { (case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784esac
32785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_try") 2>&5
32787 ac_status=$?
32788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32789 (exit $ac_status); }; } &&
32790 { ac_try='test -s conftest.$ac_objext'
32791 { (case "(($ac_try" in
32792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32793 *) ac_try_echo=$ac_try;;
32794esac
32795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32796 (eval "$ac_try") 2>&5
32797 ac_status=$?
32798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32799 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032800 ac_cv_func_isnan_in_math_h=yes
32801else
32802 echo "$as_me: failed program was:" >&5
32803sed 's/^/| /' conftest.$ac_ext >&5
32804
Reid Spencera773bd52006-08-04 18:18:08 +000032805 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032806fi
Reid Spencera773bd52006-08-04 18:18:08 +000032807
32808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032809 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032810ac_cpp='$CPP $CPPFLAGS'
32811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32813ac_compiler_gnu=$ac_cv_c_compiler_gnu
32814
32815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32817echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032818
32819
32820if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032821
32822cat >>confdefs.h <<\_ACEOF
32823#define HAVE_ISNAN_IN_MATH_H 1
32824_ACEOF
32825
Reid Spencerabec8f92004-10-27 23:03:44 +000032826fi
32827
Reid Spencera773bd52006-08-04 18:18:08 +000032828{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32829echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032830if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32831 echo $ECHO_N "(cached) $ECHO_C" >&6
32832else
Reid Spencera773bd52006-08-04 18:18:08 +000032833 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032834ac_cpp='$CXXCPP $CPPFLAGS'
32835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32838
Reid Spencerabec8f92004-10-27 23:03:44 +000032839 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032840/* confdefs.h. */
32841_ACEOF
32842cat confdefs.h >>conftest.$ac_ext
32843cat >>conftest.$ac_ext <<_ACEOF
32844/* end confdefs.h. */
32845#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032846int
32847main ()
32848{
32849float f; isnan(f);
32850 ;
32851 return 0;
32852}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032853_ACEOF
32854rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032855if { (ac_try="$ac_compile"
32856case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32859esac
32860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032862 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032863 grep -v '^ *+' conftest.er1 >conftest.err
32864 rm -f conftest.er1
32865 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032867 (exit $ac_status); } &&
32868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32869 { (case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32872esac
32873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_try") 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest.$ac_objext'
32879 { (case "(($ac_try" in
32880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32881 *) ac_try_echo=$ac_try;;
32882esac
32883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32884 (eval "$ac_try") 2>&5
32885 ac_status=$?
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032888 ac_cv_func_isnan_in_cmath=yes
32889else
32890 echo "$as_me: failed program was:" >&5
32891sed 's/^/| /' conftest.$ac_ext >&5
32892
Reid Spencera773bd52006-08-04 18:18:08 +000032893 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032894fi
Reid Spencera773bd52006-08-04 18:18:08 +000032895
32896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032897 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032898ac_cpp='$CPP $CPPFLAGS'
32899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32901ac_compiler_gnu=$ac_cv_c_compiler_gnu
32902
32903fi
Reid Spencera773bd52006-08-04 18:18:08 +000032904{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32905echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032906
32907if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032908
32909cat >>confdefs.h <<\_ACEOF
32910#define HAVE_ISNAN_IN_CMATH 1
32911_ACEOF
32912
Reid Spencerabec8f92004-10-27 23:03:44 +000032913fi
32914
Reid Spencera773bd52006-08-04 18:18:08 +000032915{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32916echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032917if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32918 echo $ECHO_N "(cached) $ECHO_C" >&6
32919else
Reid Spencera773bd52006-08-04 18:18:08 +000032920 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032921ac_cpp='$CXXCPP $CPPFLAGS'
32922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32925
Reid Spencerabec8f92004-10-27 23:03:44 +000032926 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032927/* confdefs.h. */
32928_ACEOF
32929cat confdefs.h >>conftest.$ac_ext
32930cat >>conftest.$ac_ext <<_ACEOF
32931/* end confdefs.h. */
32932#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032933int
32934main ()
32935{
32936float f; std::isnan(f);
32937 ;
32938 return 0;
32939}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032940_ACEOF
32941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032942if { (ac_try="$ac_compile"
32943case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946esac
32947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032950 grep -v '^ *+' conftest.er1 >conftest.err
32951 rm -f conftest.er1
32952 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032954 (exit $ac_status); } &&
32955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32956 { (case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32959esac
32960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_try") 2>&5
32962 ac_status=$?
32963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32964 (exit $ac_status); }; } &&
32965 { ac_try='test -s conftest.$ac_objext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32969esac
32970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32972 ac_status=$?
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032975 ac_cv_func_std_isnan_in_cmath=yes
32976else
32977 echo "$as_me: failed program was:" >&5
32978sed 's/^/| /' conftest.$ac_ext >&5
32979
Reid Spencera773bd52006-08-04 18:18:08 +000032980 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032981fi
Reid Spencera773bd52006-08-04 18:18:08 +000032982
32983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032984 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032985ac_cpp='$CPP $CPPFLAGS'
32986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32988ac_compiler_gnu=$ac_cv_c_compiler_gnu
32989
32990fi
Reid Spencera773bd52006-08-04 18:18:08 +000032991{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32992echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032993
32994if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032995
32996cat >>confdefs.h <<\_ACEOF
32997#define HAVE_STD_ISNAN_IN_CMATH 1
32998_ACEOF
32999
Reid Spencerabec8f92004-10-27 23:03:44 +000033000fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033001
33002
Reid Spencera773bd52006-08-04 18:18:08 +000033003{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33004echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033005if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33006 echo $ECHO_N "(cached) $ECHO_C" >&6
33007else
Reid Spencera773bd52006-08-04 18:18:08 +000033008 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033009ac_cpp='$CXXCPP $CPPFLAGS'
33010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33013
Reid Spencerabec8f92004-10-27 23:03:44 +000033014 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033015/* confdefs.h. */
33016_ACEOF
33017cat confdefs.h >>conftest.$ac_ext
33018cat >>conftest.$ac_ext <<_ACEOF
33019/* end confdefs.h. */
33020#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033021int
33022main ()
33023{
33024float f; isinf(f);
33025 ;
33026 return 0;
33027}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033028_ACEOF
33029rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033030if { (ac_try="$ac_compile"
33031case "(($ac_try" in
33032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33033 *) ac_try_echo=$ac_try;;
33034esac
33035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33036 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033037 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033038 grep -v '^ *+' conftest.er1 >conftest.err
33039 rm -f conftest.er1
33040 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033042 (exit $ac_status); } &&
33043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33044 { (case "(($ac_try" in
33045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046 *) ac_try_echo=$ac_try;;
33047esac
33048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049 (eval "$ac_try") 2>&5
33050 ac_status=$?
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); }; } &&
33053 { ac_try='test -s conftest.$ac_objext'
33054 { (case "(($ac_try" in
33055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33056 *) ac_try_echo=$ac_try;;
33057esac
33058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33059 (eval "$ac_try") 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033063 ac_cv_func_isinf_in_math_h=yes
33064else
33065 echo "$as_me: failed program was:" >&5
33066sed 's/^/| /' conftest.$ac_ext >&5
33067
Reid Spencera773bd52006-08-04 18:18:08 +000033068 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033069fi
Reid Spencera773bd52006-08-04 18:18:08 +000033070
33071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033072 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033073ac_cpp='$CPP $CPPFLAGS'
33074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33076ac_compiler_gnu=$ac_cv_c_compiler_gnu
33077
33078fi
Reid Spencera773bd52006-08-04 18:18:08 +000033079{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33080echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033081
33082if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033083
33084cat >>confdefs.h <<\_ACEOF
33085#define HAVE_ISINF_IN_MATH_H 1
33086_ACEOF
33087
Reid Spencerabec8f92004-10-27 23:03:44 +000033088fi
33089
Reid Spencera773bd52006-08-04 18:18:08 +000033090{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33091echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033092if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
Reid Spencera773bd52006-08-04 18:18:08 +000033095 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033096ac_cpp='$CXXCPP $CPPFLAGS'
33097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33100
Reid Spencerabec8f92004-10-27 23:03:44 +000033101 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033102/* confdefs.h. */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h. */
33107#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033108int
33109main ()
33110{
33111float f; isinf(f);
33112 ;
33113 return 0;
33114}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033115_ACEOF
33116rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033117if { (ac_try="$ac_compile"
33118case "(($ac_try" in
33119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120 *) ac_try_echo=$ac_try;;
33121esac
33122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033125 grep -v '^ *+' conftest.er1 >conftest.err
33126 rm -f conftest.er1
33127 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033129 (exit $ac_status); } &&
33130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33131 { (case "(($ac_try" in
33132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33133 *) ac_try_echo=$ac_try;;
33134esac
33135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33136 (eval "$ac_try") 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } &&
33140 { ac_try='test -s conftest.$ac_objext'
33141 { (case "(($ac_try" in
33142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143 *) ac_try_echo=$ac_try;;
33144esac
33145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33146 (eval "$ac_try") 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033150 ac_cv_func_isinf_in_cmath=yes
33151else
33152 echo "$as_me: failed program was:" >&5
33153sed 's/^/| /' conftest.$ac_ext >&5
33154
Reid Spencera773bd52006-08-04 18:18:08 +000033155 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033156fi
Reid Spencera773bd52006-08-04 18:18:08 +000033157
33158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033159 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033160ac_cpp='$CPP $CPPFLAGS'
33161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33163ac_compiler_gnu=$ac_cv_c_compiler_gnu
33164
33165fi
Reid Spencera773bd52006-08-04 18:18:08 +000033166{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33167echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033168
33169if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033170
33171cat >>confdefs.h <<\_ACEOF
33172#define HAVE_ISINF_IN_CMATH 1
33173_ACEOF
33174
Reid Spencerabec8f92004-10-27 23:03:44 +000033175fi
33176
Reid Spencera773bd52006-08-04 18:18:08 +000033177{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33178echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033179if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
33181else
Reid Spencera773bd52006-08-04 18:18:08 +000033182 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033183ac_cpp='$CXXCPP $CPPFLAGS'
33184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33187
Reid Spencerabec8f92004-10-27 23:03:44 +000033188 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033189/* confdefs.h. */
33190_ACEOF
33191cat confdefs.h >>conftest.$ac_ext
33192cat >>conftest.$ac_ext <<_ACEOF
33193/* end confdefs.h. */
33194#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033195int
33196main ()
33197{
33198float f; std::isinf(f)}
33199 ;
33200 return 0;
33201}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033202_ACEOF
33203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033204if { (ac_try="$ac_compile"
33205case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33208esac
33209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033212 grep -v '^ *+' conftest.er1 >conftest.err
33213 rm -f conftest.er1
33214 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33218 { (case "(($ac_try" in
33219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33220 *) ac_try_echo=$ac_try;;
33221esac
33222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33223 (eval "$ac_try") 2>&5
33224 ac_status=$?
33225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33226 (exit $ac_status); }; } &&
33227 { ac_try='test -s conftest.$ac_objext'
33228 { (case "(($ac_try" in
33229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230 *) ac_try_echo=$ac_try;;
33231esac
33232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233 (eval "$ac_try") 2>&5
33234 ac_status=$?
33235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33236 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033237 ac_cv_func_std_isinf_in_cmath=yes
33238else
33239 echo "$as_me: failed program was:" >&5
33240sed 's/^/| /' conftest.$ac_ext >&5
33241
Reid Spencera773bd52006-08-04 18:18:08 +000033242 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033243fi
Reid Spencera773bd52006-08-04 18:18:08 +000033244
33245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033246 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033247ac_cpp='$CPP $CPPFLAGS'
33248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33250ac_compiler_gnu=$ac_cv_c_compiler_gnu
33251
33252fi
Reid Spencera773bd52006-08-04 18:18:08 +000033253{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33254echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033255
33256if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033257
33258cat >>confdefs.h <<\_ACEOF
33259#define HAVE_STD_ISINF_IN_CMATH 1
33260_ACEOF
33261
Reid Spencerabec8f92004-10-27 23:03:44 +000033262fi
33263
Reid Spencera773bd52006-08-04 18:18:08 +000033264{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33265echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033266if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33267 echo $ECHO_N "(cached) $ECHO_C" >&6
33268else
Reid Spencera773bd52006-08-04 18:18:08 +000033269 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033270ac_cpp='$CXXCPP $CPPFLAGS'
33271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33274
Reid Spencerabec8f92004-10-27 23:03:44 +000033275 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033276/* confdefs.h. */
33277_ACEOF
33278cat confdefs.h >>conftest.$ac_ext
33279cat >>conftest.$ac_ext <<_ACEOF
33280/* end confdefs.h. */
33281#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033282int
33283main ()
33284{
33285float f; finite(f);
33286 ;
33287 return 0;
33288}
Brian Gaeked59a6472004-07-21 03:33:58 +000033289_ACEOF
33290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033291if { (ac_try="$ac_compile"
33292case "(($ac_try" in
33293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294 *) ac_try_echo=$ac_try;;
33295esac
33296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033299 grep -v '^ *+' conftest.er1 >conftest.err
33300 rm -f conftest.er1
33301 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033303 (exit $ac_status); } &&
33304 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33305 { (case "(($ac_try" in
33306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33307 *) ac_try_echo=$ac_try;;
33308esac
33309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33310 (eval "$ac_try") 2>&5
33311 ac_status=$?
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; } &&
33314 { ac_try='test -s conftest.$ac_objext'
33315 { (case "(($ac_try" in
33316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317 *) ac_try_echo=$ac_try;;
33318esac
33319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320 (eval "$ac_try") 2>&5
33321 ac_status=$?
33322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033324 ac_cv_func_finite_in_ieeefp_h=yes
33325else
33326 echo "$as_me: failed program was:" >&5
33327sed 's/^/| /' conftest.$ac_ext >&5
33328
Reid Spencera773bd52006-08-04 18:18:08 +000033329 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033330fi
Reid Spencera773bd52006-08-04 18:18:08 +000033331
33332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033333 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033334ac_cpp='$CPP $CPPFLAGS'
33335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33337ac_compiler_gnu=$ac_cv_c_compiler_gnu
33338
33339fi
Reid Spencera773bd52006-08-04 18:18:08 +000033340{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33341echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033342
Brian Gaeke6802b552004-10-28 05:06:45 +000033343if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033344
33345cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033346#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033347_ACEOF
33348
Reid Spencerabec8f92004-10-27 23:03:44 +000033349fi
33350
33351
33352
Reid Spencer30fe5262007-01-20 07:48:49 +000033353if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033354
33355
33356for ac_header in stdlib.h unistd.h
33357do
33358as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33361echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033363 echo $ECHO_N "(cached) $ECHO_C" >&6
33364fi
Reid Spencera773bd52006-08-04 18:18:08 +000033365ac_res=`eval echo '${'$as_ac_Header'}'`
33366 { echo "$as_me:$LINENO: result: $ac_res" >&5
33367echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033368else
33369 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033370{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33371echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033372cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033373/* confdefs.h. */
33374_ACEOF
33375cat confdefs.h >>conftest.$ac_ext
33376cat >>conftest.$ac_ext <<_ACEOF
33377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033378$ac_includes_default
33379#include <$ac_header>
33380_ACEOF
33381rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033382if { (ac_try="$ac_compile"
33383case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33386esac
33387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033390 grep -v '^ *+' conftest.er1 >conftest.err
33391 rm -f conftest.er1
33392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033394 (exit $ac_status); } &&
33395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33396 { (case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33399esac
33400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_try") 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; } &&
33405 { ac_try='test -s conftest.$ac_objext'
33406 { (case "(($ac_try" in
33407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33408 *) ac_try_echo=$ac_try;;
33409esac
33410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33411 (eval "$ac_try") 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033415 ac_header_compiler=yes
33416else
33417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033418sed 's/^/| /' conftest.$ac_ext >&5
33419
Reid Spencera773bd52006-08-04 18:18:08 +000033420 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033421fi
Reid Spencera773bd52006-08-04 18:18:08 +000033422
33423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33425echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033426
33427# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033428{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33429echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033430cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033431/* confdefs.h. */
33432_ACEOF
33433cat confdefs.h >>conftest.$ac_ext
33434cat >>conftest.$ac_ext <<_ACEOF
33435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033436#include <$ac_header>
33437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033438if { (ac_try="$ac_cpp conftest.$ac_ext"
33439case "(($ac_try" in
33440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441 *) ac_try_echo=$ac_try;;
33442esac
33443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033445 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033446 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033447 rm -f conftest.er1
33448 cat conftest.err >&5
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033450 (exit $ac_status); } >/dev/null; then
33451 if test -s conftest.err; then
33452 ac_cpp_err=$ac_c_preproc_warn_flag
33453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33454 else
33455 ac_cpp_err=
33456 fi
33457else
33458 ac_cpp_err=yes
33459fi
33460if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033461 ac_header_preproc=yes
33462else
33463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033464sed 's/^/| /' conftest.$ac_ext >&5
33465
John Criswell7a73b802003-06-30 21:59:07 +000033466 ac_header_preproc=no
33467fi
Reid Spencera773bd52006-08-04 18:18:08 +000033468
John Criswell7a73b802003-06-30 21:59:07 +000033469rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033470{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33471echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033472
33473# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33475 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33477echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33479echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33480 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033481 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033482 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33484echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33486echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33488echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33490echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33494echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033495 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033496## ----------------------------------- ##
33497## Report this to llvmbugs@cs.uiuc.edu ##
33498## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033499_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033500 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033501 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033502esac
Reid Spencera773bd52006-08-04 18:18:08 +000033503{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033506 echo $ECHO_N "(cached) $ECHO_C" >&6
33507else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033508 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033509fi
Reid Spencera773bd52006-08-04 18:18:08 +000033510ac_res=`eval echo '${'$as_ac_Header'}'`
33511 { echo "$as_me:$LINENO: result: $ac_res" >&5
33512echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033513
33514fi
33515if test `eval echo '${'$as_ac_Header'}'` = yes; then
33516 cat >>confdefs.h <<_ACEOF
33517#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33518_ACEOF
33519
33520fi
33521
33522done
33523
33524
33525for ac_func in getpagesize
33526do
33527as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033528{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33529echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33530if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033531 echo $ECHO_N "(cached) $ECHO_C" >&6
33532else
33533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033534/* confdefs.h. */
33535_ACEOF
33536cat confdefs.h >>conftest.$ac_ext
33537cat >>conftest.$ac_ext <<_ACEOF
33538/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033539/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33541#define $ac_func innocuous_$ac_func
33542
John Criswell7a73b802003-06-30 21:59:07 +000033543/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033544 which can conflict with char $ac_func (); below.
33545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33546 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033547
John Criswell0c38eaf2003-09-10 15:17:25 +000033548#ifdef __STDC__
33549# include <limits.h>
33550#else
33551# include <assert.h>
33552#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033553
33554#undef $ac_func
33555
Reid Spencera773bd52006-08-04 18:18:08 +000033556/* Override any GCC internal prototype to avoid an error.
33557 Use char because int might match the return type of a GCC
33558 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033559#ifdef __cplusplus
33560extern "C"
33561#endif
John Criswell7a73b802003-06-30 21:59:07 +000033562char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033563/* The GNU C library defines this for functions which it implements
33564 to always fail with ENOSYS. Some functions are actually named
33565 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033566#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033567choke me
John Criswell7a73b802003-06-30 21:59:07 +000033568#endif
33569
John Criswell0c38eaf2003-09-10 15:17:25 +000033570int
33571main ()
33572{
Reid Spencera773bd52006-08-04 18:18:08 +000033573return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033574 ;
33575 return 0;
33576}
33577_ACEOF
33578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033579if { (ac_try="$ac_link"
33580case "(($ac_try" in
33581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33582 *) ac_try_echo=$ac_try;;
33583esac
33584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33585 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033587 grep -v '^ *+' conftest.er1 >conftest.err
33588 rm -f conftest.er1
33589 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033591 (exit $ac_status); } &&
33592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33593 { (case "(($ac_try" in
33594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33595 *) ac_try_echo=$ac_try;;
33596esac
33597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33598 (eval "$ac_try") 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest$ac_exeext'
33603 { (case "(($ac_try" in
33604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605 *) ac_try_echo=$ac_try;;
33606esac
33607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608 (eval "$ac_try") 2>&5
33609 ac_status=$?
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033612 eval "$as_ac_var=yes"
33613else
33614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033615sed 's/^/| /' conftest.$ac_ext >&5
33616
Reid Spencera773bd52006-08-04 18:18:08 +000033617 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033618fi
Reid Spencera773bd52006-08-04 18:18:08 +000033619
Tanya Lattnercf067672008-01-17 05:57:22 +000033620rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033621 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033622fi
Reid Spencera773bd52006-08-04 18:18:08 +000033623ac_res=`eval echo '${'$as_ac_var'}'`
33624 { echo "$as_me:$LINENO: result: $ac_res" >&5
33625echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033626if test `eval echo '${'$as_ac_var'}'` = yes; then
33627 cat >>confdefs.h <<_ACEOF
33628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33629_ACEOF
33630
33631fi
33632done
33633
Reid Spencera773bd52006-08-04 18:18:08 +000033634{ echo "$as_me:$LINENO: checking for working mmap" >&5
33635echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033636if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33637 echo $ECHO_N "(cached) $ECHO_C" >&6
33638else
33639 if test "$cross_compiling" = yes; then
33640 ac_cv_func_mmap_fixed_mapped=no
33641else
33642 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033643/* confdefs.h. */
33644_ACEOF
33645cat confdefs.h >>conftest.$ac_ext
33646cat >>conftest.$ac_ext <<_ACEOF
33647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033648$ac_includes_default
33649/* malloc might have been renamed as rpl_malloc. */
33650#undef malloc
33651
33652/* Thanks to Mike Haertel and Jim Avera for this test.
33653 Here is a matrix of mmap possibilities:
33654 mmap private not fixed
33655 mmap private fixed at somewhere currently unmapped
33656 mmap private fixed at somewhere already mapped
33657 mmap shared not fixed
33658 mmap shared fixed at somewhere currently unmapped
33659 mmap shared fixed at somewhere already mapped
33660 For private mappings, we should verify that changes cannot be read()
33661 back from the file, nor mmap's back from the file at a different
33662 address. (There have been systems where private was not correctly
33663 implemented like the infamous i386 svr4.0, and systems where the
33664 VM page cache was not coherent with the file system buffer cache
33665 like early versions of FreeBSD and possibly contemporary NetBSD.)
33666 For shared mappings, we should conversely verify that changes get
33667 propagated back to all the places they're supposed to be.
33668
33669 Grep wants private fixed already mapped.
33670 The main things grep needs to know about mmap are:
33671 * does it exist and is it safe to write into the mmap'd area
33672 * how to use it (BSD variants) */
33673
33674#include <fcntl.h>
33675#include <sys/mman.h>
33676
Tanya Lattnercf067672008-01-17 05:57:22 +000033677#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033678char *malloc ();
33679#endif
33680
33681/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033682#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033683/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033684# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033685# define HAVE_SYS_PARAM_H 1
33686# endif
33687
33688# ifdef _SC_PAGESIZE
33689# define getpagesize() sysconf(_SC_PAGESIZE)
33690# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033691# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033692# include <sys/param.h>
33693# ifdef EXEC_PAGESIZE
33694# define getpagesize() EXEC_PAGESIZE
33695# else /* no EXEC_PAGESIZE */
33696# ifdef NBPG
33697# define getpagesize() NBPG * CLSIZE
33698# ifndef CLSIZE
33699# define CLSIZE 1
33700# endif /* no CLSIZE */
33701# else /* no NBPG */
33702# ifdef NBPC
33703# define getpagesize() NBPC
33704# else /* no NBPC */
33705# ifdef PAGESIZE
33706# define getpagesize() PAGESIZE
33707# endif /* PAGESIZE */
33708# endif /* no NBPC */
33709# endif /* no NBPG */
33710# endif /* no EXEC_PAGESIZE */
33711# else /* no HAVE_SYS_PARAM_H */
33712# define getpagesize() 8192 /* punt totally */
33713# endif /* no HAVE_SYS_PARAM_H */
33714# endif /* no _SC_PAGESIZE */
33715
33716#endif /* no HAVE_GETPAGESIZE */
33717
33718int
33719main ()
33720{
33721 char *data, *data2, *data3;
33722 int i, pagesize;
33723 int fd;
33724
33725 pagesize = getpagesize ();
33726
33727 /* First, make a file with some known garbage in it. */
33728 data = (char *) malloc (pagesize);
33729 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033730 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033731 for (i = 0; i < pagesize; ++i)
33732 *(data + i) = rand ();
33733 umask (0);
33734 fd = creat ("conftest.mmap", 0600);
33735 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033736 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033737 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033738 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033739 close (fd);
33740
33741 /* Next, try to mmap the file at a fixed address which already has
33742 something else allocated at it. If we can, also make sure that
33743 we see the same garbage. */
33744 fd = open ("conftest.mmap", O_RDWR);
33745 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033746 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033747 data2 = (char *) malloc (2 * pagesize);
33748 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033749 return 1;
33750 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033751 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033752 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033753 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033754 for (i = 0; i < pagesize; ++i)
33755 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033756 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033757
33758 /* Finally, make sure that changes to the mapped area do not
33759 percolate back to the file as seen by read(). (This is a bug on
33760 some variants of i386 svr4.0.) */
33761 for (i = 0; i < pagesize; ++i)
33762 *(data2 + i) = *(data2 + i) + 1;
33763 data3 = (char *) malloc (pagesize);
33764 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033765 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033766 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033767 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033768 for (i = 0; i < pagesize; ++i)
33769 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033770 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033771 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033772 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033773}
33774_ACEOF
33775rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033776if { (ac_try="$ac_link"
33777case "(($ac_try" in
33778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779 *) ac_try_echo=$ac_try;;
33780esac
33781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033786 { (case "(($ac_try" in
33787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33788 *) ac_try_echo=$ac_try;;
33789esac
33790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33791 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_func_mmap_fixed_mapped=yes
33796else
33797 echo "$as_me: program exited with status $ac_status" >&5
33798echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033799sed 's/^/| /' conftest.$ac_ext >&5
33800
John Criswell7a73b802003-06-30 21:59:07 +000033801( exit $ac_status )
33802ac_cv_func_mmap_fixed_mapped=no
33803fi
Reid Spencera773bd52006-08-04 18:18:08 +000033804rm -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 +000033805fi
Reid Spencera773bd52006-08-04 18:18:08 +000033806
33807
John Criswell7a73b802003-06-30 21:59:07 +000033808fi
Reid Spencera773bd52006-08-04 18:18:08 +000033809{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33810echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033811if test $ac_cv_func_mmap_fixed_mapped = yes; then
33812
33813cat >>confdefs.h <<\_ACEOF
33814#define HAVE_MMAP 1
33815_ACEOF
33816
33817fi
33818rm -f conftest.mmap
33819
Reid Spencer30fe5262007-01-20 07:48:49 +000033820 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033821echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033822if test "${ac_cv_func_mmap_file+set}" = set; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33824else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033825 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033826ac_cpp='$CPP $CPPFLAGS'
33827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33829ac_compiler_gnu=$ac_cv_c_compiler_gnu
33830
33831 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033832 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033833else
33834 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033835
Reid Spencer777ce172004-09-20 04:09:56 +000033836 /* confdefs.h. */
33837_ACEOF
33838cat confdefs.h >>conftest.$ac_ext
33839cat >>conftest.$ac_ext <<_ACEOF
33840/* end confdefs.h. */
33841
John Criswell7a73b802003-06-30 21:59:07 +000033842#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033843#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033844#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033845
33846int
33847main ()
33848{
John Criswell7a73b802003-06-30 21:59:07 +000033849
33850 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033851 fd = creat ("foo",0777);
33852 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33853 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033854 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033855 ;
33856 return 0;
33857}
John Criswell7a73b802003-06-30 21:59:07 +000033858_ACEOF
33859rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033860if { (ac_try="$ac_link"
33861case "(($ac_try" in
33862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863 *) ac_try_echo=$ac_try;;
33864esac
33865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033867 ac_status=$?
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033870 { (case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33873esac
33874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033876 ac_status=$?
33877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33878 (exit $ac_status); }; }; then
33879 ac_cv_func_mmap_file=yes
33880else
33881 echo "$as_me: program exited with status $ac_status" >&5
33882echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033883sed 's/^/| /' conftest.$ac_ext >&5
33884
John Criswell7a73b802003-06-30 21:59:07 +000033885( exit $ac_status )
33886ac_cv_func_mmap_file=no
33887fi
Reid Spencera773bd52006-08-04 18:18:08 +000033888rm -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 +000033889fi
Reid Spencera773bd52006-08-04 18:18:08 +000033890
33891
John Criswell7a73b802003-06-30 21:59:07 +000033892 ac_ext=c
33893ac_cpp='$CPP $CPPFLAGS'
33894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33896ac_compiler_gnu=$ac_cv_c_compiler_gnu
33897
33898
33899fi
Reid Spencera773bd52006-08-04 18:18:08 +000033900{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33901echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033902if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033903
33904cat >>confdefs.h <<\_ACEOF
33905#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033906_ACEOF
33907
33908 MMAP_FILE=yes
33909
33910fi
33911
Reid Spencer30fe5262007-01-20 07:48:49 +000033912 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033913echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033914if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33915 echo $ECHO_N "(cached) $ECHO_C" >&6
33916else
Reid Spencer582a23c2004-12-29 07:07:57 +000033917 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033918 ac_cv_need_dev_zero_for_mmap=yes
33919 else
33920 ac_cv_need_dev_zero_for_mmap=no
33921 fi
33922
33923fi
Reid Spencera773bd52006-08-04 18:18:08 +000033924{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33925echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033926if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33927
33928cat >>confdefs.h <<\_ACEOF
33929#define NEED_DEV_ZERO_FOR_MMAP 1
33930_ACEOF
33931
33932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033933
Reid Spencer30fe5262007-01-20 07:48:49 +000033934 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33935 then
33936 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033937echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033938 fi
33939 if test "$ac_cv_func_mmap_file" = "no"
33940 then
33941 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033942echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033943 fi
John Criswellb13092b2003-07-22 21:00:24 +000033944fi
John Criswell7a73b802003-06-30 21:59:07 +000033945
33946
Reid Spencer9372f152007-07-30 20:13:24 +000033947
33948for ac_func in __dso_handle
33949do
33950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33951{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33953if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33954 echo $ECHO_N "(cached) $ECHO_C" >&6
33955else
33956 cat >conftest.$ac_ext <<_ACEOF
33957/* confdefs.h. */
33958_ACEOF
33959cat confdefs.h >>conftest.$ac_ext
33960cat >>conftest.$ac_ext <<_ACEOF
33961/* end confdefs.h. */
33962/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33964#define $ac_func innocuous_$ac_func
33965
33966/* System header to define __stub macros and hopefully few prototypes,
33967 which can conflict with char $ac_func (); below.
33968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33969 <limits.h> exists even on freestanding compilers. */
33970
33971#ifdef __STDC__
33972# include <limits.h>
33973#else
33974# include <assert.h>
33975#endif
33976
33977#undef $ac_func
33978
33979/* Override any GCC internal prototype to avoid an error.
33980 Use char because int might match the return type of a GCC
33981 builtin and then its argument prototype would still apply. */
33982#ifdef __cplusplus
33983extern "C"
33984#endif
33985char $ac_func ();
33986/* The GNU C library defines this for functions which it implements
33987 to always fail with ENOSYS. Some functions are actually named
33988 something starting with __ and the normal name is an alias. */
33989#if defined __stub_$ac_func || defined __stub___$ac_func
33990choke me
33991#endif
33992
33993int
33994main ()
33995{
33996return $ac_func ();
33997 ;
33998 return 0;
33999}
34000_ACEOF
34001rm -f conftest.$ac_objext conftest$ac_exeext
34002if { (ac_try="$ac_link"
34003case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34006esac
34007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_link") 2>conftest.er1
34009 ac_status=$?
34010 grep -v '^ *+' conftest.er1 >conftest.err
34011 rm -f conftest.er1
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000034014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34016 { (case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34019esac
34020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_try") 2>&5
34022 ac_status=$?
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; } &&
34025 { ac_try='test -s conftest$ac_exeext'
34026 { (case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34029esac
34030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_try") 2>&5
34032 ac_status=$?
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034035 eval "$as_ac_var=yes"
34036else
34037 echo "$as_me: failed program was:" >&5
34038sed 's/^/| /' conftest.$ac_ext >&5
34039
34040 eval "$as_ac_var=no"
34041fi
34042
Tanya Lattnercf067672008-01-17 05:57:22 +000034043rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034044 conftest$ac_exeext conftest.$ac_ext
34045fi
34046ac_res=`eval echo '${'$as_ac_var'}'`
34047 { echo "$as_me:$LINENO: result: $ac_res" >&5
34048echo "${ECHO_T}$ac_res" >&6; }
34049if test `eval echo '${'$as_ac_var'}'` = yes; then
34050 cat >>confdefs.h <<_ACEOF
34051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34052_ACEOF
34053
34054fi
34055done
34056
34057
Reid Spencera773bd52006-08-04 18:18:08 +000034058{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34059echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034060if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34061 echo $ECHO_N "(cached) $ECHO_C" >&6
34062else
34063 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034064if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034065 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034066 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34067 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034068 if test $? -eq 0 ; then
34069 llvm_cv_llvmgcc_sanity="yes"
34070 fi
34071 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034072fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034073fi
Reid Spencera773bd52006-08-04 18:18:08 +000034074{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34075echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034076
34077if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034078 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34079echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034080 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034081 LLVMCC1=$llvmcc1path
34082
Reid Spencer502935f2004-12-22 05:56:56 +000034083 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034084 LLVMCC1PLUS=$llvmcc1pluspath
34085
Reid Spencer502935f2004-12-22 05:56:56 +000034086 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34087 LLVMGCCDIR=$llvmgccdir
34088
Reid Spencer282d8c12006-12-21 22:55:41 +000034089 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34090 LLVMGCCLIBEXEC=$llvmgcclibexec
34091
Reid Spencerb5d75b82006-05-09 00:31:01 +000034092 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034093 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34094 LLVMGCC_VERSION=$llvmgccversion
34095
34096 LLVMGCC_MAJVERS=$llvmgccmajvers
34097
Reid Spencer0d238182007-04-21 21:28:52 +000034098 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34099 LLVMGCC_LANGS=$llvmgcclangs
34100
34101 { echo "$as_me:$LINENO: result: ok" >&5
34102echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034103fi
34104
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034105SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034106
34107
Reid Spencere9de0912004-08-20 09:03:57 +000034108# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034109# information into substitutions that will end up in Makefile.config.in
34110# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034111if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034112 prefix="/usr/local"
34113fi
Reid Spencere9de0912004-08-20 09:03:57 +000034114eval LLVM_PREFIX="${prefix}";
34115eval LLVM_BINDIR="${prefix}/bin";
34116eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034117eval LLVM_DATADIR="${prefix}/share/llvm";
34118eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34119eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034120eval LLVM_INCLUDEDIR="${prefix}/include";
34121eval LLVM_INFODIR="${prefix}/info";
34122eval LLVM_MANDIR="${prefix}/man";
34123LLVM_CONFIGTIME=`date`
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034135# Place the various directores into the config.h file as #defines so that we
34136# can know about the installation paths within LLVM.
34137
Reid Spencere9de0912004-08-20 09:03:57 +000034138cat >>confdefs.h <<_ACEOF
34139#define LLVM_PREFIX "$LLVM_PREFIX"
34140_ACEOF
34141
34142
34143cat >>confdefs.h <<_ACEOF
34144#define LLVM_BINDIR "$LLVM_BINDIR"
34145_ACEOF
34146
34147
34148cat >>confdefs.h <<_ACEOF
34149#define LLVM_LIBDIR "$LLVM_LIBDIR"
34150_ACEOF
34151
34152
34153cat >>confdefs.h <<_ACEOF
34154#define LLVM_DATADIR "$LLVM_DATADIR"
34155_ACEOF
34156
34157
34158cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034159#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034160_ACEOF
34161
34162
34163cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034164#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034165_ACEOF
34166
34167
34168cat >>confdefs.h <<_ACEOF
34169#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34170_ACEOF
34171
34172
34173cat >>confdefs.h <<_ACEOF
34174#define LLVM_INFODIR "$LLVM_INFODIR"
34175_ACEOF
34176
34177
34178cat >>confdefs.h <<_ACEOF
34179#define LLVM_MANDIR "$LLVM_MANDIR"
34180_ACEOF
34181
34182
34183cat >>confdefs.h <<_ACEOF
34184#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34185_ACEOF
34186
34187
Eric Christopher790e11c2007-12-01 00:34:39 +000034188cat >>confdefs.h <<_ACEOF
34189#define LLVM_HOSTTRIPLE "$host"
34190_ACEOF
34191
34192
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034193# Determine which bindings to build.
34194if test "$BINDINGS_TO_BUILD" = auto ; then
34195 BINDINGS_TO_BUILD=""
34196 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34197 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34198 fi
34199fi
34200BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34201
34202
34203# This isn't really configurey, but it avoids having to repeat the list in
34204# other files.
34205ALL_BINDINGS=ocaml
34206
34207
Gordon Henriksenf0915682007-10-02 16:42:22 +000034208# Do any work necessary to ensure that bindings have what they need.
34209binding_prereqs_failed=0
34210for a_binding in $BINDINGS_TO_BUILD ; do
34211 case "$a_binding" in
34212 ocaml)
34213 if test "x$OCAMLC" = x ; then
34214 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34215echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34216 binding_prereqs_failed=1
34217 fi
34218 if test "x$OCAMLDEP" = x ; then
34219 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34220echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34221 binding_prereqs_failed=1
34222 fi
34223 if test "x$OCAMLOPT" = x ; then
34224 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34225echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34226 fi
34227 if test "x$with_ocaml_libdir" != xauto ; then
34228 OCAML_LIBDIR=$with_ocaml_libdir
34229
34230 else
34231 ocaml_stdlib="`"$OCAMLC" -where`"
34232 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34233 then
34234 # ocaml stdlib is beneath our prefix; use stdlib
34235 OCAML_LIBDIR=$ocaml_stdlib
34236
34237 else
34238 # ocaml stdlib is outside our prefix; use libdir/ocaml
34239 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34240
34241 fi
34242 fi
34243 ;;
34244 esac
34245done
34246if test "$binding_prereqs_failed" = 1 ; then
34247 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34248echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34249 { (exit 1); exit 1; }; }
34250fi
34251
34252
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034253
Reid Spencera773bd52006-08-04 18:18:08 +000034254ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034255
Reid Spencera773bd52006-08-04 18:18:08 +000034256ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034257
Reid Spencera773bd52006-08-04 18:18:08 +000034258ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034259
Reid Spencera773bd52006-08-04 18:18:08 +000034260ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034261
Reid Spencera773bd52006-08-04 18:18:08 +000034262ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034263
34264
Reid Spencera773bd52006-08-04 18:18:08 +000034265ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034266
34267
Reid Spencerea949cf2006-08-16 00:45:38 +000034268ac_config_files="$ac_config_files llvm.spec"
34269
34270
Reid Spencera773bd52006-08-04 18:18:08 +000034271ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034272
34273
Reid Spencera773bd52006-08-04 18:18:08 +000034274ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034275
34276
Reid Spencera773bd52006-08-04 18:18:08 +000034277ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034278
Reid Spencera773bd52006-08-04 18:18:08 +000034279ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034280
34281
Reid Spencera773bd52006-08-04 18:18:08 +000034282ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034283
34284
Reid Spencera773bd52006-08-04 18:18:08 +000034285ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034286
34287
Reid Spencera773bd52006-08-04 18:18:08 +000034288ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034289
34290
Reid Spencer8b2e1412006-11-17 03:32:33 +000034291ac_config_commands="$ac_config_commands runtime/Makefile"
34292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencera773bd52006-08-04 18:18:08 +000034297ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034298
34299
Reid Spencera773bd52006-08-04 18:18:08 +000034300ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034301
34302
Reid Spencera773bd52006-08-04 18:18:08 +000034303ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034304
34305
Reid Spencera773bd52006-08-04 18:18:08 +000034306ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034309ac_config_commands="$ac_config_commands bindings/Makefile"
34310
34311
34312ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34313
34314
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034315
John Criswell7a73b802003-06-30 21:59:07 +000034316cat >confcache <<\_ACEOF
34317# This file is a shell script that caches the results of configure
34318# tests run on this system so they can be shared between configure
34319# scripts and configure runs, see configure's option --config-cache.
34320# It is not useful on other systems. If it contains results you don't
34321# want to keep, you may remove or edit it.
34322#
34323# config.status only pays attention to the cache file if you give it
34324# the --recheck option to rerun configure.
34325#
John Criswell0c38eaf2003-09-10 15:17:25 +000034326# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034327# loading this file, other *unset* `ac_cv_foo' will be assigned the
34328# following values.
34329
34330_ACEOF
34331
34332# The following way of writing the cache mishandles newlines in values,
34333# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034334# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034335# Ultrix sh set writes to stderr and can't be redirected directly,
34336# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034337(
34338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34339 eval ac_val=\$$ac_var
34340 case $ac_val in #(
34341 *${as_nl}*)
34342 case $ac_var in #(
34343 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34344echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34345 esac
34346 case $ac_var in #(
34347 _ | IFS | as_nl) ;; #(
34348 *) $as_unset $ac_var ;;
34349 esac ;;
34350 esac
34351 done
34352
John Criswell7a73b802003-06-30 21:59:07 +000034353 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34355 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034356 # `set' does not quote correctly, so add quotes (double-quote
34357 # substitution turns \\\\ into \\, and sed turns \\ into \).
34358 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034359 "s/'/'\\\\''/g;
34360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034361 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034362 *)
34363 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034365 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034366 esac |
34367 sort
34368) |
John Criswell7a73b802003-06-30 21:59:07 +000034369 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034370 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034371 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034372 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34374 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34376 :end' >>confcache
34377if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34378 if test -w "$cache_file"; then
34379 test "x$cache_file" != "x/dev/null" &&
34380 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34381echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034382 cat confcache >$cache_file
34383 else
Reid Spencera773bd52006-08-04 18:18:08 +000034384 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34385echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034386 fi
34387fi
34388rm -f confcache
34389
34390test "x$prefix" = xNONE && prefix=$ac_default_prefix
34391# Let make expand exec_prefix.
34392test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34393
John Criswell7a73b802003-06-30 21:59:07 +000034394DEFS=-DHAVE_CONFIG_H
34395
John Criswell0c38eaf2003-09-10 15:17:25 +000034396ac_libobjs=
34397ac_ltlibobjs=
34398for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34399 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34401 ac_i=`echo "$ac_i" | sed "$ac_script"`
34402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34403 # will be set to the directory where LIBOBJS objects are built.
34404 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34405 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034406done
34407LIBOBJS=$ac_libobjs
34408
34409LTLIBOBJS=$ac_ltlibobjs
34410
34411
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034412if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34413 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34414Usually this means the macro was only invoked conditionally." >&5
34415echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34416Usually this means the macro was only invoked conditionally." >&2;}
34417 { (exit 1); exit 1; }; }
34418fi
34419if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34420 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34421Usually this means the macro was only invoked conditionally." >&5
34422echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34423Usually this means the macro was only invoked conditionally." >&2;}
34424 { (exit 1); exit 1; }; }
34425fi
John Criswell7a73b802003-06-30 21:59:07 +000034426
34427: ${CONFIG_STATUS=./config.status}
34428ac_clean_files_save=$ac_clean_files
34429ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34430{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34431echo "$as_me: creating $CONFIG_STATUS" >&6;}
34432cat >$CONFIG_STATUS <<_ACEOF
34433#! $SHELL
34434# Generated by $as_me.
34435# Run this file to recreate the current configuration.
34436# Compiler output produced by configure, useful for debugging
34437# configure, is in config.log if it exists.
34438
34439debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034440ac_cs_recheck=false
34441ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034442SHELL=\${CONFIG_SHELL-$SHELL}
34443_ACEOF
34444
34445cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034446## --------------------- ##
34447## M4sh Initialization. ##
34448## --------------------- ##
34449
Tanya Lattnercf067672008-01-17 05:57:22 +000034450# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34452 emulate sh
34453 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034454 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34455 # is contrary to our usage. Disable this feature.
34456 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034457 setopt NO_GLOB_SUBST
34458else
Tanya Lattnercf067672008-01-17 05:57:22 +000034459 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034460fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034461BIN_SH=xpg4; export BIN_SH # for Tru64
34462DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034463
John Criswell7a73b802003-06-30 21:59:07 +000034464
Reid Spencera773bd52006-08-04 18:18:08 +000034465# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034466# Avoid depending upon Character Ranges.
34467as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34468as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34469as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34470as_cr_digits='0123456789'
34471as_cr_alnum=$as_cr_Letters$as_cr_digits
34472
34473# The user is always right.
34474if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034475 echo "#! /bin/sh" >conf$$.sh
34476 echo "exit 0" >>conf$$.sh
34477 chmod +x conf$$.sh
34478 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034479 PATH_SEPARATOR=';'
34480 else
34481 PATH_SEPARATOR=:
34482 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034483 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034484fi
34485
Reid Spencera773bd52006-08-04 18:18:08 +000034486# Support unset when possible.
34487if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34488 as_unset=unset
34489else
34490 as_unset=false
34491fi
John Criswell7a73b802003-06-30 21:59:07 +000034492
Reid Spencera773bd52006-08-04 18:18:08 +000034493
34494# IFS
34495# We need space, tab and new line, in precisely that order. Quoting is
34496# there to prevent editors from complaining about space-tab.
34497# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34498# splitting by setting IFS to empty value.)
34499as_nl='
34500'
34501IFS=" "" $as_nl"
34502
34503# Find who we are. Look in the path if we contain no directory separator.
34504case $0 in
34505 *[\\/]* ) as_myself=$0 ;;
34506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034507for as_dir in $PATH
34508do
34509 IFS=$as_save_IFS
34510 test -z "$as_dir" && as_dir=.
34511 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34512done
Reid Spencera773bd52006-08-04 18:18:08 +000034513IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034514
Reid Spencera773bd52006-08-04 18:18:08 +000034515 ;;
34516esac
34517# We did not find ourselves, most probably we were run as `sh COMMAND'
34518# in which case we are not to be found in the path.
34519if test "x$as_myself" = x; then
34520 as_myself=$0
34521fi
34522if test ! -f "$as_myself"; then
34523 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34524 { (exit 1); exit 1; }
34525fi
34526
34527# Work around bugs in pre-3.0 UWIN ksh.
34528for as_var in ENV MAIL MAILPATH
34529do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34530done
34531PS1='$ '
34532PS2='> '
34533PS4='+ '
34534
34535# NLS nuisances.
34536for as_var in \
34537 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34538 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34539 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034540do
Reid Spencera773bd52006-08-04 18:18:08 +000034541 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34542 eval $as_var=C; export $as_var
34543 else
34544 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34545 fi
34546done
34547
34548# Required to use basename.
34549if expr a : '\(a\)' >/dev/null 2>&1 &&
34550 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34551 as_expr=expr
34552else
34553 as_expr=false
34554fi
34555
34556if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34557 as_basename=basename
34558else
34559 as_basename=false
34560fi
34561
34562
34563# Name of the executable.
34564as_me=`$as_basename -- "$0" ||
34565$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34566 X"$0" : 'X\(//\)$' \| \
34567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34568echo X/"$0" |
34569 sed '/^.*\/\([^/][^/]*\)\/*$/{
34570 s//\1/
34571 q
34572 }
34573 /^X\/\(\/\/\)$/{
34574 s//\1/
34575 q
34576 }
34577 /^X\/\(\/\).*/{
34578 s//\1/
34579 q
34580 }
34581 s/.*/./; q'`
34582
34583# CDPATH.
34584$as_unset CDPATH
34585
34586
34587
John Criswell7a73b802003-06-30 21:59:07 +000034588 as_lineno_1=$LINENO
34589 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034590 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034591 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034592
34593 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34594 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034595 # line-number line after each line using $LINENO; the second 'sed'
34596 # does the real work. The second script uses 'N' to pair each
34597 # line-number line with the line containing $LINENO, and appends
34598 # trailing '-' during substitution so that $LINENO is not a special
34599 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034600 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034601 # scripts with optimization help from Paolo Bonzini. Blame Lee
34602 # E. McMahon (1931-1989) for sed's syntax. :-)
34603 sed -n '
34604 p
34605 /[$]LINENO/=
34606 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034607 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034608 s/[$]LINENO.*/&-/
34609 t lineno
34610 b
34611 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034612 N
Reid Spencera773bd52006-08-04 18:18:08 +000034613 :loop
34614 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034615 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034616 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034617 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034618 chmod +x "$as_me.lineno" ||
34619 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034620 { (exit 1); exit 1; }; }
34621
34622 # Don't try to exec as it changes $[0], causing all sort of problems
34623 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034624 # original and so on. Autoconf is especially sensitive to this).
34625 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034626 # Exit status is that of the last command.
34627 exit
34628}
34629
34630
Reid Spencera773bd52006-08-04 18:18:08 +000034631if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34632 as_dirname=dirname
34633else
34634 as_dirname=false
34635fi
34636
34637ECHO_C= ECHO_N= ECHO_T=
34638case `echo -n x` in
34639-n*)
34640 case `echo 'x\c'` in
34641 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34642 *) ECHO_C='\c';;
34643 esac;;
34644*)
34645 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034646esac
34647
Reid Spencera773bd52006-08-04 18:18:08 +000034648if expr a : '\(a\)' >/dev/null 2>&1 &&
34649 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034650 as_expr=expr
34651else
34652 as_expr=false
34653fi
34654
34655rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034656if test -d conf$$.dir; then
34657 rm -f conf$$.dir/conf$$.file
34658else
34659 rm -f conf$$.dir
34660 mkdir conf$$.dir
34661fi
John Criswell7a73b802003-06-30 21:59:07 +000034662echo >conf$$.file
34663if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034664 as_ln_s='ln -s'
34665 # ... but there are two gotchas:
34666 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34667 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34668 # In both cases, we have to default to `cp -p'.
34669 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034670 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034671elif ln conf$$.file conf$$ 2>/dev/null; then
34672 as_ln_s=ln
34673else
34674 as_ln_s='cp -p'
34675fi
Reid Spencera773bd52006-08-04 18:18:08 +000034676rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34677rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034678
John Criswell0c38eaf2003-09-10 15:17:25 +000034679if mkdir -p . 2>/dev/null; then
34680 as_mkdir_p=:
34681else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034682 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034683 as_mkdir_p=false
34684fi
34685
Tanya Lattnercf067672008-01-17 05:57:22 +000034686# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34687# systems may use methods other than mode bits to determine executability.
34688cat >conf$$.file <<_ASEOF
34689#! /bin/sh
34690exit 0
34691_ASEOF
34692chmod +x conf$$.file
34693if test -x conf$$.file >/dev/null 2>&1; then
34694 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034695else
Tanya Lattnercf067672008-01-17 05:57:22 +000034696 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034697fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034698rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034699
34700# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034701as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034702
34703# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034704as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034705
34706
John Criswell7a73b802003-06-30 21:59:07 +000034707exec 6>&1
34708
Reid Spencera773bd52006-08-04 18:18:08 +000034709# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034710# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034711# values after options handling.
34712ac_log="
Tanya Lattnercf067672008-01-17 05:57:22 +000034713This file was extended by llvm $as_me 2.3svn, which was
34714generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034715
34716 CONFIG_FILES = $CONFIG_FILES
34717 CONFIG_HEADERS = $CONFIG_HEADERS
34718 CONFIG_LINKS = $CONFIG_LINKS
34719 CONFIG_COMMANDS = $CONFIG_COMMANDS
34720 $ $0 $@
34721
Reid Spencera773bd52006-08-04 18:18:08 +000034722on `(hostname || uname -n) 2>/dev/null | sed 1q`
34723"
34724
John Criswell7a73b802003-06-30 21:59:07 +000034725_ACEOF
34726
Reid Spencera773bd52006-08-04 18:18:08 +000034727cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034728# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034729config_files="$ac_config_files"
34730config_headers="$ac_config_headers"
34731config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034732
Reid Spencera773bd52006-08-04 18:18:08 +000034733_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034734
34735cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034736ac_cs_usage="\
34737\`$as_me' instantiates files from templates according to the
34738current configuration.
34739
34740Usage: $0 [OPTIONS] [FILE]...
34741
34742 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034743 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034744 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034745 -d, --debug don't remove temporary files
34746 --recheck update $as_me by reconfiguring in the same conditions
34747 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034748 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034749 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034750 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034751
34752Configuration files:
34753$config_files
34754
34755Configuration headers:
34756$config_headers
34757
John Criswellc764fbc2003-09-06 15:17:13 +000034758Configuration commands:
34759$config_commands
34760
John Criswell7a73b802003-06-30 21:59:07 +000034761Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034762
Reid Spencera773bd52006-08-04 18:18:08 +000034763_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034764cat >>$CONFIG_STATUS <<_ACEOF
34765ac_cs_version="\\
Tanya Lattnercf067672008-01-17 05:57:22 +000034766llvm config.status 2.3svn
34767configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034768 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034769
Reid Spencera773bd52006-08-04 18:18:08 +000034770Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034771This config.status script is free software; the Free Software Foundation
34772gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034773
34774ac_pwd='$ac_pwd'
34775srcdir='$srcdir'
34776INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034777_ACEOF
34778
34779cat >>$CONFIG_STATUS <<\_ACEOF
34780# If no file are specified by the user, then we need to provide default
34781# value. By we need to know if files were specified by the user.
34782ac_need_defaults=:
34783while test $# != 0
34784do
34785 case $1 in
34786 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34788 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034789 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034791 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034792 ac_option=$1
34793 ac_optarg=$2
34794 ac_shift=shift
34795 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034796 esac
34797
John Criswell0c38eaf2003-09-10 15:17:25 +000034798 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034799 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34801 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34803 echo "$ac_cs_version"; exit ;;
34804 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034805 debug=: ;;
34806 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034807 $ac_shift
34808 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034809 ac_need_defaults=false;;
34810 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034811 $ac_shift
34812 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034813 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034814 --he | --h)
34815 # Conflict between --help and --header
34816 { echo "$as_me: error: ambiguous option: $1
34817Try \`$0 --help' for more information." >&2
34818 { (exit 1); exit 1; }; };;
34819 --help | --hel | -h )
34820 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34822 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34823 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034824
34825 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034826 -*) { echo "$as_me: error: unrecognized option: $1
34827Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034828 { (exit 1); exit 1; }; } ;;
34829
Reid Spencera773bd52006-08-04 18:18:08 +000034830 *) ac_config_targets="$ac_config_targets $1"
34831 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034832
34833 esac
34834 shift
34835done
34836
John Criswell0c38eaf2003-09-10 15:17:25 +000034837ac_configure_extra_args=
34838
34839if $ac_cs_silent; then
34840 exec 6>/dev/null
34841 ac_configure_extra_args="$ac_configure_extra_args --silent"
34842fi
34843
34844_ACEOF
34845cat >>$CONFIG_STATUS <<_ACEOF
34846if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034847 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34848 CONFIG_SHELL=$SHELL
34849 export CONFIG_SHELL
34850 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034851fi
34852
John Criswell7a73b802003-06-30 21:59:07 +000034853_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034854cat >>$CONFIG_STATUS <<\_ACEOF
34855exec 5>>config.log
34856{
34857 echo
34858 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34859## Running $as_me. ##
34860_ASBOX
34861 echo "$ac_log"
34862} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034863
Reid Spencera773bd52006-08-04 18:18:08 +000034864_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034865cat >>$CONFIG_STATUS <<_ACEOF
34866#
Reid Spencera773bd52006-08-04 18:18:08 +000034867# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034868#
Reid Spencerc0682832005-02-24 19:05:19 +000034869llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034870
34871_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034872
John Criswell7a73b802003-06-30 21:59:07 +000034873cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034874
34875# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034876for ac_config_target in $ac_config_targets
34877do
Reid Spencera773bd52006-08-04 18:18:08 +000034878 case $ac_config_target in
34879 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34880 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34881 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34882 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34883 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34884 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034885 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034886 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34887 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34888 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34889 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34890 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34891 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34892 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034893 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034894 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34895 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34896 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34897 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34898 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034899 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34900 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034901
John Criswell7a73b802003-06-30 21:59:07 +000034902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34903echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34904 { (exit 1); exit 1; }; };;
34905 esac
34906done
34907
Reid Spencera773bd52006-08-04 18:18:08 +000034908
John Criswell7a73b802003-06-30 21:59:07 +000034909# If the user did not use the arguments to specify the items to instantiate,
34910# then the envvar interface is used. Set only those that are not.
34911# We use the long form for the default assignment because of an extremely
34912# bizarre bug on SunOS 4.1.3.
34913if $ac_need_defaults; then
34914 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34915 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034917fi
34918
John Criswell0c38eaf2003-09-10 15:17:25 +000034919# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034920# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034921# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034922# Hook for its removal unless debugging.
34923# Note that there is a small window in which the directory will not be cleaned:
34924# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034925$debug ||
34926{
Reid Spencera773bd52006-08-04 18:18:08 +000034927 tmp=
34928 trap 'exit_status=$?
34929 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34930' 0
John Criswell7a73b802003-06-30 21:59:07 +000034931 trap '{ (exit 1); exit 1; }' 1 2 13 15
34932}
John Criswell7a73b802003-06-30 21:59:07 +000034933# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034934
John Criswell7a73b802003-06-30 21:59:07 +000034935{
Reid Spencera773bd52006-08-04 18:18:08 +000034936 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034937 test -n "$tmp" && test -d "$tmp"
34938} ||
34939{
Reid Spencera773bd52006-08-04 18:18:08 +000034940 tmp=./conf$$-$RANDOM
34941 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034942} ||
34943{
John Criswell0c38eaf2003-09-10 15:17:25 +000034944 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034945 { (exit 1); exit 1; }
34946}
34947
John Criswell7a73b802003-06-30 21:59:07 +000034948#
Reid Spencera773bd52006-08-04 18:18:08 +000034949# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034950#
34951
34952# No need to generate the scripts if there are no CONFIG_FILES.
34953# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034954if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034955
34956_ACEOF
34957
Reid Spencera773bd52006-08-04 18:18:08 +000034958
34959
34960ac_delim='%!_!# '
34961for ac_last_try in false false false false false :; do
34962 cat >conf$$subs.sed <<_ACEOF
34963SHELL!$SHELL$ac_delim
34964PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34965PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34966PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34967PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34968PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34969PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34970exec_prefix!$exec_prefix$ac_delim
34971prefix!$prefix$ac_delim
34972program_transform_name!$program_transform_name$ac_delim
34973bindir!$bindir$ac_delim
34974sbindir!$sbindir$ac_delim
34975libexecdir!$libexecdir$ac_delim
34976datarootdir!$datarootdir$ac_delim
34977datadir!$datadir$ac_delim
34978sysconfdir!$sysconfdir$ac_delim
34979sharedstatedir!$sharedstatedir$ac_delim
34980localstatedir!$localstatedir$ac_delim
34981includedir!$includedir$ac_delim
34982oldincludedir!$oldincludedir$ac_delim
34983docdir!$docdir$ac_delim
34984infodir!$infodir$ac_delim
34985htmldir!$htmldir$ac_delim
34986dvidir!$dvidir$ac_delim
34987pdfdir!$pdfdir$ac_delim
34988psdir!$psdir$ac_delim
34989libdir!$libdir$ac_delim
34990localedir!$localedir$ac_delim
34991mandir!$mandir$ac_delim
34992DEFS!$DEFS$ac_delim
34993ECHO_C!$ECHO_C$ac_delim
34994ECHO_N!$ECHO_N$ac_delim
34995ECHO_T!$ECHO_T$ac_delim
34996LIBS!$LIBS$ac_delim
34997build_alias!$build_alias$ac_delim
34998host_alias!$host_alias$ac_delim
34999target_alias!$target_alias$ac_delim
35000LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35001subdirs!$subdirs$ac_delim
35002build!$build$ac_delim
35003build_cpu!$build_cpu$ac_delim
35004build_vendor!$build_vendor$ac_delim
35005build_os!$build_os$ac_delim
35006host!$host$ac_delim
35007host_cpu!$host_cpu$ac_delim
35008host_vendor!$host_vendor$ac_delim
35009host_os!$host_os$ac_delim
35010target!$target$ac_delim
35011target_cpu!$target_cpu$ac_delim
35012target_vendor!$target_vendor$ac_delim
35013target_os!$target_os$ac_delim
35014OS!$OS$ac_delim
35015LINKALL!$LINKALL$ac_delim
35016NOLINKALL!$NOLINKALL$ac_delim
35017LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35018LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35019ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035020ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035021CC!$CC$ac_delim
35022CFLAGS!$CFLAGS$ac_delim
35023LDFLAGS!$LDFLAGS$ac_delim
35024CPPFLAGS!$CPPFLAGS$ac_delim
35025ac_ct_CC!$ac_ct_CC$ac_delim
35026EXEEXT!$EXEEXT$ac_delim
35027OBJEXT!$OBJEXT$ac_delim
35028CPP!$CPP$ac_delim
35029GREP!$GREP$ac_delim
35030EGREP!$EGREP$ac_delim
35031LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35032BUILD_CC!$BUILD_CC$ac_delim
35033BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
35034CVSBUILD!$CVSBUILD$ac_delim
35035ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35036DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035037ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35038EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035039DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035040JIT!$JIT$ac_delim
35041TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35042ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35043ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035044ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035045TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035046ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035047EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35048CXX!$CXX$ac_delim
35049CXXFLAGS!$CXXFLAGS$ac_delim
35050ac_ct_CXX!$ac_ct_CXX$ac_delim
35051LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035052LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035053LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035054FLEX!$FLEX$ac_delim
35055YACC!$YACC$ac_delim
35056YFLAGS!$YFLAGS$ac_delim
35057BISON!$BISON$ac_delim
35058NM!$NM$ac_delim
35059ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035060_ACEOF
35061
35062 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35063 break
35064 elif $ac_last_try; then
35065 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35066echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35067 { (exit 1); exit 1; }; }
35068 else
35069 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035070 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035071done
35072
35073ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35074if test -n "$ac_eof"; then
35075 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35076 ac_eof=`expr $ac_eof + 1`
35077fi
35078
35079cat >>$CONFIG_STATUS <<_ACEOF
35080cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35081/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35082_ACEOF
35083sed '
35084s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35085s/^/s,@/; s/!/@,|#_!!_#|/
35086:n
35087t n
35088s/'"$ac_delim"'$/,g/; t
35089s/$/\\/; p
35090N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35091' >>$CONFIG_STATUS <conf$$subs.sed
35092rm -f conf$$subs.sed
35093cat >>$CONFIG_STATUS <<_ACEOF
35094CEOF$ac_eof
35095_ACEOF
35096
35097
35098ac_delim='%!_!# '
35099for ac_last_try in false false false false false :; do
35100 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035101LN_S!$LN_S$ac_delim
35102CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035103CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035104DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035105FIND!$FIND$ac_delim
35106MKDIR!$MKDIR$ac_delim
35107MV!$MV$ac_delim
35108RANLIB!$RANLIB$ac_delim
35109RM!$RM$ac_delim
35110SED!$SED$ac_delim
35111TAR!$TAR$ac_delim
35112BINPWD!$BINPWD$ac_delim
35113GRAPHVIZ!$GRAPHVIZ$ac_delim
35114DOT!$DOT$ac_delim
35115GV!$GV$ac_delim
35116DOTTY!$DOTTY$ac_delim
35117PERL!$PERL$ac_delim
35118HAVE_PERL!$HAVE_PERL$ac_delim
35119INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35120INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35121INSTALL_DATA!$INSTALL_DATA$ac_delim
35122BZIP2!$BZIP2$ac_delim
35123DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035124GROFF!$GROFF$ac_delim
35125GZIP!$GZIP$ac_delim
35126POD2HTML!$POD2HTML$ac_delim
35127POD2MAN!$POD2MAN$ac_delim
35128RUNTEST!$RUNTEST$ac_delim
35129TCLSH!$TCLSH$ac_delim
35130ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035131OCAMLC!$OCAMLC$ac_delim
35132OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035133OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035134OCAMLDOC!$OCAMLDOC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035135INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35136INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35137CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35138CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35139LIBADD_DL!$LIBADD_DL$ac_delim
35140ECHO!$ECHO$ac_delim
35141AR!$AR$ac_delim
35142STRIP!$STRIP$ac_delim
35143CXXCPP!$CXXCPP$ac_delim
35144F77!$F77$ac_delim
35145FFLAGS!$FFLAGS$ac_delim
35146ac_ct_F77!$ac_ct_F77$ac_delim
35147LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035148LLVMGCC!$LLVMGCC$ac_delim
35149LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035150USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035151HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035152HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035153ALLOCA!$ALLOCA$ac_delim
35154MMAP_FILE!$MMAP_FILE$ac_delim
35155LLVMCC1!$LLVMCC1$ac_delim
35156LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35157LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035158LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035159LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35160LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035161LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035162SHLIBEXT!$SHLIBEXT$ac_delim
35163LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35164LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35165LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35166LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35167LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35168LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35169LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35170LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35171LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35172LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035173BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35174ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035175OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035176LIBOBJS!$LIBOBJS$ac_delim
35177LTLIBOBJS!$LTLIBOBJS$ac_delim
35178_ACEOF
35179
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000035181 break
35182 elif $ac_last_try; then
35183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35184echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35185 { (exit 1); exit 1; }; }
35186 else
35187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35188 fi
35189done
35190
35191ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35192if test -n "$ac_eof"; then
35193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35194 ac_eof=`expr $ac_eof + 1`
35195fi
35196
35197cat >>$CONFIG_STATUS <<_ACEOF
35198cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35199/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35200_ACEOF
35201sed '
35202s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35203s/^/s,@/; s/!/@,|#_!!_#|/
35204:n
35205t n
35206s/'"$ac_delim"'$/,g/; t
35207s/$/\\/; p
35208N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35209' >>$CONFIG_STATUS <conf$$subs.sed
35210rm -f conf$$subs.sed
35211cat >>$CONFIG_STATUS <<_ACEOF
35212:end
35213s/|#_!!_#|//g
35214CEOF$ac_eof
35215_ACEOF
35216
35217
35218# VPATH may cause trouble with some makes, so we remove $(srcdir),
35219# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35220# trailing colons and then remove the whole line if VPATH becomes empty
35221# (actually we leave an empty line to preserve line numbers).
35222if test "x$srcdir" = x.; then
35223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35224s/:*\$(srcdir):*/:/
35225s/:*\${srcdir}:*/:/
35226s/:*@srcdir@:*/:/
35227s/^\([^=]*=[ ]*\):*/\1/
35228s/:*$//
35229s/^[^=]*=[ ]*$//
35230}'
35231fi
35232
35233cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035234fi # test -n "$CONFIG_FILES"
35235
Reid Spencera773bd52006-08-04 18:18:08 +000035236
35237for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35238do
35239 case $ac_tag in
35240 :[FHLC]) ac_mode=$ac_tag; continue;;
35241 esac
35242 case $ac_mode$ac_tag in
35243 :[FHL]*:*);;
35244 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35245echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35246 { (exit 1); exit 1; }; };;
35247 :[FH]-) ac_tag=-:-;;
35248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35249 esac
35250 ac_save_IFS=$IFS
35251 IFS=:
35252 set x $ac_tag
35253 IFS=$ac_save_IFS
35254 shift
35255 ac_file=$1
35256 shift
35257
35258 case $ac_mode in
35259 :L) ac_source=$1;;
35260 :[FH])
35261 ac_file_inputs=
35262 for ac_f
35263 do
35264 case $ac_f in
35265 -) ac_f="$tmp/stdin";;
35266 *) # Look for the file first in the build tree, then in the source tree
35267 # (if the path is not absolute). The absolute path cannot be DOS-style,
35268 # because $ac_f cannot contain `:'.
35269 test -f "$ac_f" ||
35270 case $ac_f in
35271 [\\/$]*) false;;
35272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35273 esac ||
35274 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35275echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35276 { (exit 1); exit 1; }; };;
35277 esac
35278 ac_file_inputs="$ac_file_inputs $ac_f"
35279 done
35280
35281 # Let's still pretend it is `configure' which instantiates (i.e., don't
35282 # use $as_me), people would be surprised to read:
35283 # /* config.h. Generated by config.status. */
35284 configure_input="Generated from "`IFS=:
35285 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35286 if test x"$ac_file" != x-; then
35287 configure_input="$ac_file. $configure_input"
35288 { echo "$as_me:$LINENO: creating $ac_file" >&5
35289echo "$as_me: creating $ac_file" >&6;}
35290 fi
35291
35292 case $ac_tag in
35293 *:-:* | *:-) cat >"$tmp/stdin";;
35294 esac
35295 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035296 esac
35297
Reid Spencera773bd52006-08-04 18:18:08 +000035298 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035299$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035300 X"$ac_file" : 'X\(//\)[^/]' \| \
35301 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035303echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35305 s//\1/
35306 q
35307 }
35308 /^X\(\/\/\)[^/].*/{
35309 s//\1/
35310 q
35311 }
35312 /^X\(\/\/\)$/{
35313 s//\1/
35314 q
35315 }
35316 /^X\(\/\).*/{
35317 s//\1/
35318 q
35319 }
35320 s/.*/./; q'`
35321 { as_dir="$ac_dir"
35322 case $as_dir in #(
35323 -*) as_dir=./$as_dir;;
35324 esac
35325 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035326 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035327 while :; do
35328 case $as_dir in #(
35329 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35330 *) as_qdir=$as_dir;;
35331 esac
35332 as_dirs="'$as_qdir' $as_dirs"
35333 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035335 X"$as_dir" : 'X\(//\)[^/]' \| \
35336 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035338echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35340 s//\1/
35341 q
35342 }
35343 /^X\(\/\/\)[^/].*/{
35344 s//\1/
35345 q
35346 }
35347 /^X\(\/\/\)$/{
35348 s//\1/
35349 q
35350 }
35351 /^X\(\/\).*/{
35352 s//\1/
35353 q
35354 }
35355 s/.*/./; q'`
35356 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035357 done
Reid Spencera773bd52006-08-04 18:18:08 +000035358 test -z "$as_dirs" || eval "mkdir $as_dirs"
35359 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35360echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035361 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035362 ac_builddir=.
35363
Reid Spencera773bd52006-08-04 18:18:08 +000035364case "$ac_dir" in
35365.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35366*)
John Criswell7a73b802003-06-30 21:59:07 +000035367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035368 # A ".." for each directory in $ac_dir_suffix.
35369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35370 case $ac_top_builddir_sub in
35371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35373 esac ;;
35374esac
35375ac_abs_top_builddir=$ac_pwd
35376ac_abs_builddir=$ac_pwd$ac_dir_suffix
35377# for backward compatibility:
35378ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035379
35380case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035381 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035382 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035383 ac_top_srcdir=$ac_top_builddir_sub
35384 ac_abs_top_srcdir=$ac_pwd ;;
35385 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035386 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035387 ac_top_srcdir=$srcdir
35388 ac_abs_top_srcdir=$srcdir ;;
35389 *) # Relative name.
35390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35391 ac_top_srcdir=$ac_top_build_prefix$srcdir
35392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035393esac
Reid Spencera773bd52006-08-04 18:18:08 +000035394ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035395
John Criswell7a73b802003-06-30 21:59:07 +000035396
Reid Spencera773bd52006-08-04 18:18:08 +000035397 case $ac_mode in
35398 :F)
35399 #
35400 # CONFIG_FILE
35401 #
John Criswell7a73b802003-06-30 21:59:07 +000035402
35403 case $INSTALL in
35404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035406 esac
John Criswell7a73b802003-06-30 21:59:07 +000035407_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035408
35409cat >>$CONFIG_STATUS <<\_ACEOF
35410# If the template does not know about datarootdir, expand it.
35411# FIXME: This hack should be removed a few years after 2.60.
35412ac_datarootdir_hack=; ac_datarootdir_seen=
35413
35414case `sed -n '/datarootdir/ {
35415 p
35416 q
35417}
35418/@datadir@/p
35419/@docdir@/p
35420/@infodir@/p
35421/@localedir@/p
35422/@mandir@/p
35423' $ac_file_inputs` in
35424*datarootdir*) ac_datarootdir_seen=yes;;
35425*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35426 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35427echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35428_ACEOF
35429cat >>$CONFIG_STATUS <<_ACEOF
35430 ac_datarootdir_hack='
35431 s&@datadir@&$datadir&g
35432 s&@docdir@&$docdir&g
35433 s&@infodir@&$infodir&g
35434 s&@localedir@&$localedir&g
35435 s&@mandir@&$mandir&g
35436 s&\\\${datarootdir}&$datarootdir&g' ;;
35437esac
35438_ACEOF
35439
35440# Neutralize VPATH when `$srcdir' = `.'.
35441# Shell code in configure.ac might set extrasub.
35442# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035443cat >>$CONFIG_STATUS <<_ACEOF
35444 sed "$ac_vpsub
35445$extrasub
35446_ACEOF
35447cat >>$CONFIG_STATUS <<\_ACEOF
35448:t
35449/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035450s&@configure_input@&$configure_input&;t t
35451s&@top_builddir@&$ac_top_builddir_sub&;t t
35452s&@srcdir@&$ac_srcdir&;t t
35453s&@abs_srcdir@&$ac_abs_srcdir&;t t
35454s&@top_srcdir@&$ac_top_srcdir&;t t
35455s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35456s&@builddir@&$ac_builddir&;t t
35457s&@abs_builddir@&$ac_abs_builddir&;t t
35458s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35459s&@INSTALL@&$ac_INSTALL&;t t
35460$ac_datarootdir_hack
35461" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035462
Reid Spencera773bd52006-08-04 18:18:08 +000035463test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35467which seems to be undefined. Please make sure it is defined." >&5
35468echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35469which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035470
Reid Spencera773bd52006-08-04 18:18:08 +000035471 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035472 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035473 -) cat "$tmp/out"; rm -f "$tmp/out";;
35474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035475 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035476 ;;
35477 :H)
35478 #
35479 # CONFIG_HEADER
35480 #
John Criswell7a73b802003-06-30 21:59:07 +000035481_ACEOF
35482
Reid Spencera773bd52006-08-04 18:18:08 +000035483# Transform confdefs.h into a sed script `conftest.defines', that
35484# substitutes the proper values into config.h.in to produce config.h.
35485rm -f conftest.defines conftest.tail
35486# First, append a space to every undef/define line, to ease matching.
35487echo 's/$/ /' >conftest.defines
35488# Then, protect against being on the right side of a sed subst, or in
35489# an unquoted here document, in config.status. If some macros were
35490# called several times there might be several #defines for the same
35491# symbol, which is useless. But do not sort them, since the last
35492# AC_DEFINE must be honored.
35493ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35494# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35495# NAME is the cpp macro being defined, VALUE is the value it is being given.
35496# PARAMS is the parameter list in the macro definition--in most cases, it's
35497# just an empty string.
35498ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35499ac_dB='\\)[ (].*,\\1define\\2'
35500ac_dC=' '
35501ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035502
Reid Spencera773bd52006-08-04 18:18:08 +000035503uniq confdefs.h |
35504 sed -n '
35505 t rset
35506 :rset
35507 s/^[ ]*#[ ]*define[ ][ ]*//
35508 t ok
35509 d
35510 :ok
35511 s/[\\&,]/\\&/g
35512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35514 ' >>conftest.defines
35515
35516# Remove the space that was appended to ease matching.
35517# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035518# example, in the case of _POSIX_SOURCE, which is predefined and required
35519# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035520# (The regexp can be short, since the line contains either #define or #undef.)
35521echo 's/ $//
35522s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035523
Reid Spencera773bd52006-08-04 18:18:08 +000035524# Break up conftest.defines:
35525ac_max_sed_lines=50
35526
35527# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35528# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35529# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35530# et cetera.
35531ac_in='$ac_file_inputs'
35532ac_out='"$tmp/out1"'
35533ac_nxt='"$tmp/out2"'
35534
35535while :
John Criswell7a73b802003-06-30 21:59:07 +000035536do
Reid Spencera773bd52006-08-04 18:18:08 +000035537 # Write a here document:
35538 cat >>$CONFIG_STATUS <<_ACEOF
35539 # First, check the format of the line:
35540 cat >"\$tmp/defines.sed" <<\\CEOF
35541/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35542/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35543b
35544:def
35545_ACEOF
35546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035547 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35551 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035552 rm -f conftest.defines
35553 mv conftest.tail conftest.defines
35554done
Reid Spencera773bd52006-08-04 18:18:08 +000035555rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035556
Reid Spencera773bd52006-08-04 18:18:08 +000035557echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035558cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035559 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035560 echo "/* $configure_input */" >"$tmp/config.h"
35561 cat "$ac_result" >>"$tmp/config.h"
35562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35564echo "$as_me: $ac_file is unchanged" >&6;}
35565 else
John Criswell7a73b802003-06-30 21:59:07 +000035566 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035567 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035568 fi
35569 else
Reid Spencera773bd52006-08-04 18:18:08 +000035570 echo "/* $configure_input */"
35571 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035572 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035573 rm -f "$tmp/out12"
35574 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035575
Reid Spencera773bd52006-08-04 18:18:08 +000035576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35577echo "$as_me: executing $ac_file commands" >&6;}
35578 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035579 esac
John Criswell7a73b802003-06-30 21:59:07 +000035580
Reid Spencera773bd52006-08-04 18:18:08 +000035581
35582 case $ac_file$ac_mode in
35583 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35584 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35585 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35586 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35587 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35588 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35589 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35590 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035591 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035593 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35595 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35597 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35599 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35601 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035603 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35605 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035607
35608 esac
35609done # for ac_tag
35610
John Criswell7a73b802003-06-30 21:59:07 +000035611
35612{ (exit 0); exit 0; }
35613_ACEOF
35614chmod +x $CONFIG_STATUS
35615ac_clean_files=$ac_clean_files_save
35616
35617
35618# configure is writing to config.log, and then calls config.status.
35619# config.status does its own redirection, appending to config.log.
35620# Unfortunately, on DOS this fails, as config.log is still kept open
35621# by configure, so config.status won't be able to write to it; its
35622# output is simply discarded. So we exec the FD to /dev/null,
35623# effectively closing config.log, so it can be properly (re)opened and
35624# appended to by config.status. When coming back to configure, we
35625# need to make the FD available again.
35626if test "$no_create" != yes; then
35627 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035628 ac_config_status_args=
35629 test "$silent" = yes &&
35630 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035631 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035633 exec 5>>config.log
35634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35635 # would make configure fail if this is the last instruction.
35636 $ac_cs_success || { (exit 1); exit 1; }
35637fi
35638
John Criswell12399a12003-09-30 15:55:44 +000035639#
35640# CONFIG_SUBDIRS section.
35641#
35642if test "$no_recursion" != yes; then
35643
35644 # Remove --cache-file and --srcdir arguments so they do not pile up.
35645 ac_sub_configure_args=
35646 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035647 eval "set x $ac_configure_args"
35648 shift
35649 for ac_arg
35650 do
John Criswell12399a12003-09-30 15:55:44 +000035651 if test -n "$ac_prev"; then
35652 ac_prev=
35653 continue
35654 fi
35655 case $ac_arg in
35656 -cache-file | --cache-file | --cache-fil | --cache-fi \
35657 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35658 ac_prev=cache_file ;;
35659 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35660 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35661 | --c=*)
35662 ;;
35663 --config-cache | -C)
35664 ;;
35665 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35666 ac_prev=srcdir ;;
35667 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35668 ;;
35669 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35670 ac_prev=prefix ;;
35671 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35672 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035673 *)
35674 case $ac_arg in
35675 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35676 esac
35677 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035678 esac
35679 done
35680
35681 # Always prepend --prefix to ensure using the same prefix
35682 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035683 ac_arg="--prefix=$prefix"
35684 case $ac_arg in
35685 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35686 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035687 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035688
35689 ac_popdir=`pwd`
35690 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35691
35692 # Do not complain, so a configure script can configure whichever
35693 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035694 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035695
Reid Spencera773bd52006-08-04 18:18:08 +000035696 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35697 echo "$as_me:$LINENO: $ac_msg" >&5
35698 echo "$ac_msg" >&6
35699 { as_dir="$ac_dir"
35700 case $as_dir in #(
35701 -*) as_dir=./$as_dir;;
35702 esac
35703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035704 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035705 while :; do
35706 case $as_dir in #(
35707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35708 *) as_qdir=$as_dir;;
35709 esac
35710 as_dirs="'$as_qdir' $as_dirs"
35711 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035712$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035713 X"$as_dir" : 'X\(//\)[^/]' \| \
35714 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035716echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35718 s//\1/
35719 q
35720 }
35721 /^X\(\/\/\)[^/].*/{
35722 s//\1/
35723 q
35724 }
35725 /^X\(\/\/\)$/{
35726 s//\1/
35727 q
35728 }
35729 /^X\(\/\).*/{
35730 s//\1/
35731 q
35732 }
35733 s/.*/./; q'`
35734 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035735 done
Reid Spencera773bd52006-08-04 18:18:08 +000035736 test -z "$as_dirs" || eval "mkdir $as_dirs"
35737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35738echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035739 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035740 ac_builddir=.
35741
Reid Spencera773bd52006-08-04 18:18:08 +000035742case "$ac_dir" in
35743.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35744*)
John Criswell12399a12003-09-30 15:55:44 +000035745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035746 # A ".." for each directory in $ac_dir_suffix.
35747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35748 case $ac_top_builddir_sub in
35749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35751 esac ;;
35752esac
35753ac_abs_top_builddir=$ac_pwd
35754ac_abs_builddir=$ac_pwd$ac_dir_suffix
35755# for backward compatibility:
35756ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035757
35758case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035759 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035760 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035761 ac_top_srcdir=$ac_top_builddir_sub
35762 ac_abs_top_srcdir=$ac_pwd ;;
35763 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035764 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035765 ac_top_srcdir=$srcdir
35766 ac_abs_top_srcdir=$srcdir ;;
35767 *) # Relative name.
35768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35769 ac_top_srcdir=$ac_top_build_prefix$srcdir
35770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035771esac
Reid Spencera773bd52006-08-04 18:18:08 +000035772ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035773
35774
Reid Spencera773bd52006-08-04 18:18:08 +000035775 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035776
35777 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035778 if test -f "$ac_srcdir/configure.gnu"; then
35779 ac_sub_configure=$ac_srcdir/configure.gnu
35780 elif test -f "$ac_srcdir/configure"; then
35781 ac_sub_configure=$ac_srcdir/configure
35782 elif test -f "$ac_srcdir/configure.in"; then
35783 # This should be Cygnus configure.
35784 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035785 else
35786 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35787echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35788 ac_sub_configure=
35789 fi
35790
35791 # The recursion is here.
35792 if test -n "$ac_sub_configure"; then
35793 # Make the cache file name correct relative to the subdirectory.
35794 case $cache_file in
35795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035796 *) # Relative name.
35797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035798 esac
35799
Reid Spencera773bd52006-08-04 18:18:08 +000035800 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35801echo "$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 +000035802 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035805 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035806echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35807 { (exit 1); exit 1; }; }
35808 fi
35809
Reid Spencera773bd52006-08-04 18:18:08 +000035810 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035811 done
35812fi
35813