blob: b0db1e8d602a86ecd89e281beb16287fb68b4640 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
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 Lattnerf9eb2d82009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
849LEX
Nick Lewycky2ab1d862009-01-20 00:52:24 +0000850LEXLIB
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000851LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000852FLEX
853YACC
854YFLAGS
855BISON
856NM
857ifGNUmake
858LN_S
859CMP
860CP
861DATE
862FIND
863MKDIR
864MV
865RANLIB
866RM
867SED
868TAR
869BINPWD
870GRAPHVIZ
871DOT
872GV
873DOTTY
874PERL
875HAVE_PERL
876INSTALL_PROGRAM
877INSTALL_SCRIPT
878INSTALL_DATA
879BZIP2
880DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000881GROFF
882GZIP
883POD2HTML
884POD2MAN
885RUNTEST
886TCLSH
887ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000888OCAMLC
889OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000890OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000891OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000892GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000893INSTALL_LTDL_TRUE
894INSTALL_LTDL_FALSE
895CONVENIENCE_LTDL_TRUE
896CONVENIENCE_LTDL_FALSE
897LIBADD_DL
898ECHO
899AR
900STRIP
901CXXCPP
902F77
903FFLAGS
904ac_ct_F77
905LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000906LLVMGCC
907LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000908USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000909HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000910HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000911ALLOCA
912MMAP_FILE
913LLVMCC1
914LLVMCC1PLUS
915LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000916LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000917LLVMGCC_VERSION
918LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000919LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000920SHLIBEXT
921LLVM_PREFIX
922LLVM_BINDIR
923LLVM_LIBDIR
924LLVM_DATADIR
925LLVM_DOCSDIR
926LLVM_ETCDIR
927LLVM_INCLUDEDIR
928LLVM_INFODIR
929LLVM_MANDIR
930LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000931BINDINGS_TO_BUILD
932ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000933OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000934ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000935LIBOBJS
936LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000937ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944CPPFLAGS
945CPP
946CXX
947CXXFLAGS
948CCC
949YACC
950YFLAGS
951CXXCPP
952F77
953FFLAGS'
954ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000956projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000957projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000958projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-reopt
960projects/llvm-gcc
961projects/llvm-java
962projects/llvm-tv
963projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000964projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000965projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000966
967# Initialize some variables set by options.
968ac_init_help=
969ac_init_version=false
970# The variables have the same names as the options, with
971# dashes changed to underlines.
972cache_file=/dev/null
973exec_prefix=NONE
974no_create=
975no_recursion=
976prefix=NONE
977program_prefix=NONE
978program_suffix=NONE
979program_transform_name=s,x,x,
980silent=
981site=
982srcdir=
983verbose=
984x_includes=NONE
985x_libraries=NONE
986
987# Installation directory options.
988# These are left unexpanded so users can "make install exec_prefix=/foo"
989# and all the variables that are supposed to be based on exec_prefix
990# by default will actually change.
991# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000992# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000993bindir='${exec_prefix}/bin'
994sbindir='${exec_prefix}/sbin'
995libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000996datarootdir='${prefix}/share'
997datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000998sysconfdir='${prefix}/etc'
999sharedstatedir='${prefix}/com'
1000localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001001includedir='${prefix}/include'
1002oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001003docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1004infodir='${datarootdir}/info'
1005htmldir='${docdir}'
1006dvidir='${docdir}'
1007pdfdir='${docdir}'
1008psdir='${docdir}'
1009libdir='${exec_prefix}/lib'
1010localedir='${datarootdir}/locale'
1011mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001012
1013ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001014ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001015for ac_option
1016do
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001019 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001020 ac_prev=
1021 continue
1022 fi
1023
Reid Spencera773bd52006-08-04 18:18:08 +00001024 case $ac_option in
1025 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 *) ac_optarg=yes ;;
1027 esac
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
Reid Spencera773bd52006-08-04 18:18:08 +00001031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001056 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001058 datadir=$ac_optarg ;;
1059
Reid Spencera773bd52006-08-04 18:18:08 +00001060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
John Criswell7a73b802003-06-30 21:59:07 +00001067 -disable-* | --disable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001074 eval enable_$ac_feature=no ;;
1075
1076 -docdir | --docdir | --docdi | --doc | --do)
1077 ac_prev=docdir ;;
1078 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1079 docdir=$ac_optarg ;;
1080
1081 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1082 ac_prev=dvidir ;;
1083 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1084 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001085
1086 -enable-* | --enable-*)
1087 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1088 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001089 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001090 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1091 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001092 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001093 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001094
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1103
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1106 with_gas=yes ;;
1107
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1114
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1119
Reid Spencera773bd52006-08-04 18:18:08 +00001120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1121 ac_prev=htmldir ;;
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1123 | --ht=*)
1124 htmldir=$ac_optarg ;;
1125
John Criswell7a73b802003-06-30 21:59:07 +00001126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1132
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1134 ac_prev=infodir ;;
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1137
1138 -libdir | --libdir | --libdi | --libd)
1139 ac_prev=libdir ;;
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1142
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1149
Reid Spencera773bd52006-08-04 18:18:08 +00001150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1154
John Criswell7a73b802003-06-30 21:59:07 +00001155 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001156 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001160 localstatedir=$ac_optarg ;;
1161
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1163 ac_prev=mandir ;;
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1166
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1169 with_fp=no ;;
1170
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1173 no_create=yes ;;
1174
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1177 no_recursion=yes ;;
1178
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1187
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1189 ac_prev=prefix ;;
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1192
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1199
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1206
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1223
Reid Spencera773bd52006-08-04 18:18:08 +00001224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1225 ac_prev=pdfdir ;;
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1228
1229 -psdir | --psdir | --psdi | --psd | --ps)
1230 ac_prev=psdir ;;
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1232 psdir=$ac_optarg ;;
1233
John Criswell7a73b802003-06-30 21:59:07 +00001234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1236 silent=yes ;;
1237
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 ac_prev=sbindir ;;
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 | --sbi=* | --sb=*)
1242 sbindir=$ac_optarg ;;
1243
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1247 | --sha | --sh)
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 | --sha=* | --sh=*)
1253 sharedstatedir=$ac_optarg ;;
1254
1255 -site | --site | --sit)
1256 ac_prev=site ;;
1257 -site=* | --site=* | --sit=*)
1258 site=$ac_optarg ;;
1259
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 ac_prev=srcdir ;;
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1264
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1271
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1276
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1278 verbose=yes ;;
1279
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1282
1283 -with-* | --with-*)
1284 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001286 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001287 { echo "$as_me: error: invalid package name: $ac_package" >&2
1288 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001289 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001290 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001291
1292 -without-* | --without-*)
1293 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001295 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001296 { echo "$as_me: error: invalid package name: $ac_package" >&2
1297 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001298 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001299 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001300
1301 --x)
1302 # Obsolete; use --with-x.
1303 with_x=yes ;;
1304
1305 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306 | --x-incl | --x-inc | --x-in | --x-i)
1307 ac_prev=x_includes ;;
1308 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310 x_includes=$ac_optarg ;;
1311
1312 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314 ac_prev=x_libraries ;;
1315 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317 x_libraries=$ac_optarg ;;
1318
1319 -*) { echo "$as_me: error: unrecognized option: $ac_option
1320Try \`$0 --help' for more information." >&2
1321 { (exit 1); exit 1; }; }
1322 ;;
1323
1324 *=*)
1325 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1328 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1329 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001330 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001331 export $ac_envvar ;;
1332
1333 *)
1334 # FIXME: should be removed in autoconf 3.0.
1335 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339 ;;
1340
1341 esac
1342done
1343
1344if test -n "$ac_prev"; then
1345 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346 { echo "$as_me: error: missing argument to $ac_option" >&2
1347 { (exit 1); exit 1; }; }
1348fi
1349
Reid Spencera773bd52006-08-04 18:18:08 +00001350# Be sure to have absolute directory names.
1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001355do
Reid Spencera773bd52006-08-04 18:18:08 +00001356 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001357 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001360 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001361 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1362 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001363done
1364
1365# There might be people who depend on the old broken behavior: `$host'
1366# used to hold the argument of --host etc.
1367# FIXME: To remove some day.
1368build=$build_alias
1369host=$host_alias
1370target=$target_alias
1371
1372# FIXME: To remove some day.
1373if test "x$host_alias" != x; then
1374 if test "x$build_alias" = x; then
1375 cross_compiling=maybe
1376 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1377 If a cross compiler is detected then cross compile mode will be used." >&2
1378 elif test "x$build_alias" != "x$host_alias"; then
1379 cross_compiling=yes
1380 fi
1381fi
1382
1383ac_tool_prefix=
1384test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386test "$silent" = yes && exec 6>/dev/null
1387
1388
Reid Spencera773bd52006-08-04 18:18:08 +00001389ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390ac_ls_di=`ls -di .` &&
1391ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392 { echo "$as_me: error: Working directory cannot be determined" >&2
1393 { (exit 1); exit 1; }; }
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395 { echo "$as_me: error: pwd does not report name of working directory" >&2
1396 { (exit 1); exit 1; }; }
1397
1398
John Criswell7a73b802003-06-30 21:59:07 +00001399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001404$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001405 X"$0" : 'X\(//\)[^/]' \| \
1406 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001408echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)[^/].*/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\).*/{
1422 s//\1/
1423 q
1424 }
1425 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001427 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001428 srcdir=..
1429 fi
1430else
1431 ac_srcdir_defaulted=no
1432fi
Reid Spencera773bd52006-08-04 18:18:08 +00001433if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001436 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001437fi
Reid Spencera773bd52006-08-04 18:18:08 +00001438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
1440 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001441 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001442 pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
John Criswell7a73b802003-06-30 21:59:07 +00001459
1460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001467\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE. See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
John Criswell7a73b802003-06-30 21:59:07 +00001487Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001491 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001520_ACEOF
1521
1522 cat <<\_ACEOF
1523
1524System types:
1525 --build=BUILD configure for building on BUILD [guessed]
1526 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1527 --target=TARGET configure for building compilers for TARGET [HOST]
1528_ACEOF
1529fi
1530
1531if test -n "$ac_init_help"; then
1532 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001533 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001534 esac
1535 cat <<\_ACEOF
1536
1537Optional Features:
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001540 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001541 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001542 --enable-expensive-checks
1543
Reid Spencer8b2e1412006-11-17 03:32:33 +00001544 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001545 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001546 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001547 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001548 --enable-pic Build LLVM with Position Independent Code (default
1549 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001550 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001551 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001552 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1553 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001554 --enable-bindings Build specific language bindings:
1555 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001556 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001558 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001559 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001560 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001561 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001562 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001563 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001564 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001565
1566Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001569 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1570 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001571 --with-llvmgcc Specify location of llvm-gcc driver (default
1572 searches PATH)
1573 --with-llvmgxx Specify location of llvm-g++ driver (default
1574 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001575 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001576 --with-ocaml-libdir Specify install location for ocaml bindings (default
1577 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001578 --with-binutils-include Specify path to binutils/include/ containing
1579 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001580 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-pic try to use only PIC/non-PIC objects [default=use
1583 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001584 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001585 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001586
1587Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001588 CC C compiler command
1589 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001592 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001594 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001595 CXX C++ compiler command
1596 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001597 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1598 the first program found out of: `bison -y', `byacc', `yacc'.
1599 YFLAGS The list of arguments that will be passed by default to $YACC.
1600 This script will default YFLAGS to the empty string to avoid a
1601 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001602 CXXCPP C++ preprocessor
1603 F77 Fortran 77 compiler command
1604 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
1609Report bugs to <llvmbugs@cs.uiuc.edu>.
1610_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001611ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001617 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001618 ac_builddir=.
1619
Reid Spencera773bd52006-08-04 18:18:08 +00001620case "$ac_dir" in
1621.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622*)
John Criswell7a73b802003-06-30 21:59:07 +00001623 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001624 # A ".." for each directory in $ac_dir_suffix.
1625 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1626 case $ac_top_builddir_sub in
1627 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629 esac ;;
1630esac
1631ac_abs_top_builddir=$ac_pwd
1632ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633# for backward compatibility:
1634ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001635
1636case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001637 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001638 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001639 ac_top_srcdir=$ac_top_builddir_sub
1640 ac_abs_top_srcdir=$ac_pwd ;;
1641 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001642 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001643 ac_top_srcdir=$srcdir
1644 ac_abs_top_srcdir=$srcdir ;;
1645 *) # Relative name.
1646 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647 ac_top_srcdir=$ac_top_build_prefix$srcdir
1648 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001649esac
Reid Spencera773bd52006-08-04 18:18:08 +00001650ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001651
Reid Spencera773bd52006-08-04 18:18:08 +00001652 cd "$ac_dir" || { ac_status=$?; continue; }
1653 # Check for guested configure.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001660 else
1661 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001664 done
1665fi
1666
Reid Spencera773bd52006-08-04 18:18:08 +00001667test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001668if $ac_init_version; then
1669 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001670llvm configure 2.6svn
1671generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001672
Reid Spencera773bd52006-08-04 18:18:08 +00001673Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16742002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001675This configure script is free software; the Free Software Foundation
1676gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001677
Tanya Lattnercf067672008-01-17 05:57:22 +00001678Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001680 exit
John Criswell7a73b802003-06-30 21:59:07 +00001681fi
Reid Spencera773bd52006-08-04 18:18:08 +00001682cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001683This file contains any messages produced by compilers while
1684running configure, to aid debugging if configure makes a mistake.
1685
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001686It was created by llvm $as_me 2.6svn, which was
1687generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001688
1689 $ $0 $@
1690
1691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001692exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001693{
1694cat <<_ASUNAME
1695## --------- ##
1696## Platform. ##
1697## --------- ##
1698
1699hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704
1705/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1707
1708/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001711/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001712/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715
1716_ASUNAME
1717
1718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719for as_dir in $PATH
1720do
1721 IFS=$as_save_IFS
1722 test -z "$as_dir" && as_dir=.
1723 echo "PATH: $as_dir"
1724done
Reid Spencera773bd52006-08-04 18:18:08 +00001725IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001726
1727} >&5
1728
1729cat >&5 <<_ACEOF
1730
1731
1732## ----------- ##
1733## Core tests. ##
1734## ----------- ##
1735
1736_ACEOF
1737
1738
1739# Keep a trace of the command line.
1740# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001741# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001742# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001743# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001744ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001745ac_configure_args0=
1746ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001747ac_must_keep_next=false
1748for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001749do
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 for ac_arg
1751 do
1752 case $ac_arg in
1753 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755 | -silent | --silent | --silen | --sile | --sil)
1756 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001757 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 esac
1760 case $ac_pass in
1761 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1762 2)
1763 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001765 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001767 case $ac_arg in
1768 *=* | --config-cache | -C | -disable-* | --disable-* \
1769 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771 | -with-* | --with-* | -without-* | --without-* | --x)
1772 case "$ac_configure_args0 " in
1773 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774 esac
1775 ;;
1776 -* ) ac_must_keep_next=true ;;
1777 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001779 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001780 ;;
1781 esac
1782 done
John Criswell7a73b802003-06-30 21:59:07 +00001783done
John Criswell0c38eaf2003-09-10 15:17:25 +00001784$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785$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 +00001786
1787# When interrupted or exit'd, cleanup temporary files, and complete
1788# config.log. We remove comments because anyway the quotes in there
1789# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001790# WARNING: Use '\'' to represent an apostrophe within the trap.
1791# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001792trap 'exit_status=$?
1793 # Save into config.log some information that might help in debugging.
1794 {
1795 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001796
John Criswell7a73b802003-06-30 21:59:07 +00001797 cat <<\_ASBOX
1798## ---------------- ##
1799## Cache variables. ##
1800## ---------------- ##
1801_ASBOX
1802 echo
1803 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001804(
1805 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806 eval ac_val=\$$ac_var
1807 case $ac_val in #(
1808 *${as_nl}*)
1809 case $ac_var in #(
1810 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812 esac
1813 case $ac_var in #(
1814 _ | IFS | as_nl) ;; #(
1815 *) $as_unset $ac_var ;;
1816 esac ;;
1817 esac
1818 done
John Criswell7a73b802003-06-30 21:59:07 +00001819 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001820 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001822 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001823 "s/'\''/'\''\\\\'\'''\''/g;
1824 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001826 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001828 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001829 esac |
1830 sort
1831)
John Criswell7a73b802003-06-30 21:59:07 +00001832 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001833
1834 cat <<\_ASBOX
1835## ----------------- ##
1836## Output variables. ##
1837## ----------------- ##
1838_ASBOX
1839 echo
1840 for ac_var in $ac_subst_vars
1841 do
Reid Spencera773bd52006-08-04 18:18:08 +00001842 eval ac_val=\$$ac_var
1843 case $ac_val in
1844 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845 esac
1846 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001847 done | sort
1848 echo
1849
1850 if test -n "$ac_subst_files"; then
1851 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001852## ------------------- ##
1853## File substitutions. ##
1854## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001855_ASBOX
1856 echo
1857 for ac_var in $ac_subst_files
1858 do
Reid Spencera773bd52006-08-04 18:18:08 +00001859 eval ac_val=\$$ac_var
1860 case $ac_val in
1861 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862 esac
1863 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001864 done | sort
1865 echo
1866 fi
1867
John Criswell7a73b802003-06-30 21:59:07 +00001868 if test -s confdefs.h; then
1869 cat <<\_ASBOX
1870## ----------- ##
1871## confdefs.h. ##
1872## ----------- ##
1873_ASBOX
1874 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001875 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001876 echo
1877 fi
1878 test "$ac_signal" != 0 &&
1879 echo "$as_me: caught signal $ac_signal"
1880 echo "$as_me: exit $exit_status"
1881 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001882 rm -f core *.core core.conftest.* &&
1883 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001884 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001885' 0
John Criswell7a73b802003-06-30 21:59:07 +00001886for ac_signal in 1 2 13 15; do
1887 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888done
1889ac_signal=0
1890
1891# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001892rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001893
1894# Predefined preprocessor variables.
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_NAME "$PACKAGE_NAME"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_VERSION "$PACKAGE_VERSION"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_STRING "$PACKAGE_STRING"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918_ACEOF
1919
1920
1921# Let the site file select an alternate cache file if it wants to.
1922# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001923if test -n "$CONFIG_SITE"; then
1924 set x "$CONFIG_SITE"
1925elif test "x$prefix" != xNONE; then
1926 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1927else
1928 set x "$ac_default_prefix/share/config.site" \
1929 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001930fi
Reid Spencera773bd52006-08-04 18:18:08 +00001931shift
1932for ac_site_file
1933do
John Criswell7a73b802003-06-30 21:59:07 +00001934 if test -r "$ac_site_file"; then
1935 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936echo "$as_me: loading site script $ac_site_file" >&6;}
1937 sed 's/^/| /' "$ac_site_file" >&5
1938 . "$ac_site_file"
1939 fi
1940done
1941
1942if test -r "$cache_file"; then
1943 # Some versions of bash will fail to source /dev/null (special
1944 # files actually), so we avoid doing that.
1945 if test -f "$cache_file"; then
1946 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947echo "$as_me: loading cache $cache_file" >&6;}
1948 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001949 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001951 esac
1952 fi
1953else
1954 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955echo "$as_me: creating cache $cache_file" >&6;}
1956 >$cache_file
1957fi
1958
1959# Check that the precious variables saved in the cache have kept the same
1960# value.
1961ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001962for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001963 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001965 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001967 case $ac_old_set,$ac_new_set in
1968 set,)
1969 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,set)
1973 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975 ac_cache_corrupted=: ;;
1976 ,);;
1977 *)
1978 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001982echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001983 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001984echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001985 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001986 fi;;
1987 esac
1988 # Pass precious variables to config.status.
1989 if test "$ac_new_set" = set; then
1990 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001991 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001992 *) ac_arg=$ac_var=$ac_new_val ;;
1993 esac
1994 case " $ac_configure_args " in
1995 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997 esac
1998 fi
1999done
2000if $ac_cache_corrupted; then
2001 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005 { (exit 1); exit 1; }; }
2006fi
2007
Reid Spencera773bd52006-08-04 18:18:08 +00002008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
John Criswell7a73b802003-06-30 21:59:07 +00002032ac_ext=c
2033ac_cpp='$CPP $CPPFLAGS'
2034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039
Tanya Lattnercf067672008-01-17 05:57:22 +00002040LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002041
2042
2043
2044
2045
2046
2047
John Criswell7a73b802003-06-30 21:59:07 +00002048ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002049for ac_dir in autoconf "$srcdir"/autoconf; do
2050 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 break
Reid Spencera773bd52006-08-04 18:18:08 +00002054 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002055 ac_aux_dir=$ac_dir
2056 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 break
Reid Spencera773bd52006-08-04 18:18:08 +00002058 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002059 ac_aux_dir=$ac_dir
2060 ac_install_sh="$ac_aux_dir/shtool install -c"
2061 break
2062 fi
2063done
2064if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002065 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2066echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002067 { (exit 1); exit 1; }; }
2068fi
Reid Spencera773bd52006-08-04 18:18:08 +00002069
2070# These three variables are undocumented and unsupported,
2071# and are intended to be withdrawn in a future Autoconf release.
2072# They can cause serious problems if a builder's source tree is in a directory
2073# whose full name contains unusual characters.
2074ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2075ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2076ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078
John Criswell392aaa32003-07-22 19:18:09 +00002079
Reid Spencer2706f8c2004-09-19 23:53:36 +00002080if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002081 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2082 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002083echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2084 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002085 fi
John Criswell93e1c722003-09-15 17:04:06 +00002086fi
2087
John Criswell33a911a2003-11-25 20:36:46 +00002088for i in `ls ${srcdir}/projects`
2089do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 if test -d ${srcdir}/projects/${i} ; then
2091 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 CVS) ;;
2093 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002099 # llvm-test is the old name of the test-suite, kept here for backwards
2100 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002101 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002103 test-suite) subdirs="$subdirs projects/test-suite"
2104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002113 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002114 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002115 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002118 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002119 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002120 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2121echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002122 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002123 esac
John Criswell33a911a2003-11-25 20:36:46 +00002124 fi
2125done
John Criswell559a6c12003-09-30 16:31:48 +00002126
John Criswell7a73b802003-06-30 21:59:07 +00002127
2128# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002129$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2130 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2131echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002132 { (exit 1); exit 1; }; }
2133
Reid Spencera773bd52006-08-04 18:18:08 +00002134{ echo "$as_me:$LINENO: checking build system type" >&5
2135echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002136if test "${ac_cv_build+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
Reid Spencera773bd52006-08-04 18:18:08 +00002139 ac_build_alias=$build_alias
2140test "x$ac_build_alias" = x &&
2141 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2142test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002143 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2144echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2145 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002146ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2147 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2148echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002149 { (exit 1); exit 1; }; }
2150
2151fi
Reid Spencera773bd52006-08-04 18:18:08 +00002152{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2153echo "${ECHO_T}$ac_cv_build" >&6; }
2154case $ac_cv_build in
2155*-*-*) ;;
2156*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2157echo "$as_me: error: invalid value of canonical build" >&2;}
2158 { (exit 1); exit 1; }; };;
2159esac
John Criswell7a73b802003-06-30 21:59:07 +00002160build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002161ac_save_IFS=$IFS; IFS='-'
2162set x $ac_cv_build
2163shift
2164build_cpu=$1
2165build_vendor=$2
2166shift; shift
2167# Remember, the first character of IFS is used to create $*,
2168# except with old shells:
2169build_os=$*
2170IFS=$ac_save_IFS
2171case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002172
2173
Reid Spencera773bd52006-08-04 18:18:08 +00002174{ echo "$as_me:$LINENO: checking host system type" >&5
2175echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002176if test "${ac_cv_host+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
Reid Spencera773bd52006-08-04 18:18:08 +00002179 if test "x$host_alias" = x; then
2180 ac_cv_host=$ac_cv_build
2181else
2182 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2183 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2184echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002185 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002186fi
John Criswell7a73b802003-06-30 21:59:07 +00002187
2188fi
Reid Spencera773bd52006-08-04 18:18:08 +00002189{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2190echo "${ECHO_T}$ac_cv_host" >&6; }
2191case $ac_cv_host in
2192*-*-*) ;;
2193*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2194echo "$as_me: error: invalid value of canonical host" >&2;}
2195 { (exit 1); exit 1; }; };;
2196esac
John Criswell7a73b802003-06-30 21:59:07 +00002197host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002198ac_save_IFS=$IFS; IFS='-'
2199set x $ac_cv_host
2200shift
2201host_cpu=$1
2202host_vendor=$2
2203shift; shift
2204# Remember, the first character of IFS is used to create $*,
2205# except with old shells:
2206host_os=$*
2207IFS=$ac_save_IFS
2208case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002209
2210
Reid Spencera773bd52006-08-04 18:18:08 +00002211{ echo "$as_me:$LINENO: checking target system type" >&5
2212echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002213if test "${ac_cv_target+set}" = set; then
2214 echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
Reid Spencera773bd52006-08-04 18:18:08 +00002216 if test "x$target_alias" = x; then
2217 ac_cv_target=$ac_cv_host
2218else
2219 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2220 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2221echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002222 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002223fi
John Criswell7a73b802003-06-30 21:59:07 +00002224
2225fi
Reid Spencera773bd52006-08-04 18:18:08 +00002226{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2227echo "${ECHO_T}$ac_cv_target" >&6; }
2228case $ac_cv_target in
2229*-*-*) ;;
2230*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2231echo "$as_me: error: invalid value of canonical target" >&2;}
2232 { (exit 1); exit 1; }; };;
2233esac
John Criswell7a73b802003-06-30 21:59:07 +00002234target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002235ac_save_IFS=$IFS; IFS='-'
2236set x $ac_cv_target
2237shift
2238target_cpu=$1
2239target_vendor=$2
2240shift; shift
2241# Remember, the first character of IFS is used to create $*,
2242# except with old shells:
2243target_os=$*
2244IFS=$ac_save_IFS
2245case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002246
2247
2248# The aliases save the names the user supplied, while $host etc.
2249# will get canonicalized.
2250test -n "$target_alias" &&
2251 test "$program_prefix$program_suffix$program_transform_name" = \
2252 NONENONEs,x,x, &&
2253 program_prefix=${target_alias}-
2254
Reid Spencera773bd52006-08-04 18:18:08 +00002255{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2256echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002260 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002264 llvm_cv_os_type="AIX"
2265 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002266 *-*-irix*)
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="IRIX"
2270 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 llvm_cv_os_type="Cygwin"
2275 llvm_cv_platform_type="Unix" ;;
2276 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002278 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Darwin"
2280 llvm_cv_platform_type="Unix" ;;
2281 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="FreeBSD"
2285 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002286 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002289 llvm_cv_os_type="OpenBSD"
2290 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002291 *-*-netbsd*)
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="NetBSD"
2295 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002296 *-*-dragonfly*)
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="DragonFly"
2300 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002301 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002304 llvm_cv_os_type="HP-UX"
2305 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002309 llvm_cv_os_type="Interix"
2310 llvm_cv_platform_type="Unix" ;;
2311 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 llvm_cv_os_type="Linux"
2315 llvm_cv_platform_type="Unix" ;;
2316 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002317 llvm_cv_link_all_option="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002319 llvm_cv_os_type="SunOS"
2320 llvm_cv_platform_type="Unix" ;;
2321 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324 llvm_cv_os_type="Win32"
2325 llvm_cv_platform_type="Win32" ;;
2326 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329 llvm_cv_os_type="MingW"
2330 llvm_cv_platform_type="Win32" ;;
2331 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002332 llvm_cv_link_all_option=""
2333 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 llvm_cv_os_type="Unknown"
2335 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002336esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337fi
Reid Spencera773bd52006-08-04 18:18:08 +00002338{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002340
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002344 { (exit 1); exit 1; }; }
2345fi
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348
2349
Reid Spencera773bd52006-08-04 18:18:08 +00002350LINKALL=$llvm_cv_link_all_option
2351
2352NOLINKALL=$llvm_cv_no_link_all_option
2353
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355case $llvm_cv_platform_type in
2356 Unix)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_UNIX 1
2360_ACEOF
2361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=1
2363
2364 LLVM_ON_WIN32=0
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367 Win32)
2368
2369cat >>confdefs.h <<\_ACEOF
2370#define LLVM_ON_WIN32 1
2371_ACEOF
2372
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002373 LLVM_ON_UNIX=0
2374
2375 LLVM_ON_WIN32=1
2376
Reid Spencer7b3e8512004-12-24 06:29:05 +00002377 ;;
2378esac
2379
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: checking target architecture" >&5
2381echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002382if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2384else
2385 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002386 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002391 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002392 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002393 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002394 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002395 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002396 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002397esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398fi
Reid Spencera773bd52006-08-04 18:18:08 +00002399{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2400echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002401
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402if test "$llvm_cv_target_arch" = "Unknown" ; then
2403 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2404echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2405fi
John Criswell76595452003-07-01 22:07:39 +00002406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002408
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410ac_ext=c
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002415if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420if test "${ac_cv_prog_CC+set}" = set; then
2421 echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423 if test -n "$CC"; then
2424 ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002432 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 +00002433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437done
2438done
Reid Spencera773bd52006-08-04 18:18:08 +00002439IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440
2441fi
2442fi
2443CC=$ac_cv_prog_CC
2444if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002445 { echo "$as_me:$LINENO: result: $CC" >&5
2446echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447else
Reid Spencera773bd52006-08-04 18:18:08 +00002448 { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450fi
2451
Reid Spencera773bd52006-08-04 18:18:08 +00002452
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453fi
2454if test -z "$ac_cv_prog_CC"; then
2455 ac_ct_CC=$CC
2456 # Extract the first word of "gcc", so it can be a program name with args.
2457set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002472 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 +00002473 ac_cv_prog_ac_ct_CC="gcc"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478done
Reid Spencera773bd52006-08-04 18:18:08 +00002479IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480
2481fi
2482fi
2483ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002485 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487else
Reid Spencera773bd52006-08-04 18:18:08 +00002488 { echo "$as_me:$LINENO: result: no" >&5
2489echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490fi
2491
Reid Spencera773bd52006-08-04 18:18:08 +00002492 if test "x$ac_ct_CC" = x; then
2493 CC=""
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496yes:)
2497{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet. If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&5
2500echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501whose name does not start with the host triplet. If you think this
2502configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503ac_tool_warned=yes ;;
2504esac
2505 CC=$ac_ct_CC
2506 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002507else
2508 CC="$ac_cv_prog_CC"
2509fi
2510
2511if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002512 if test -n "$ac_tool_prefix"; then
2513 # 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 +00002514set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002529 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 +00002530 ac_cv_prog_CC="${ac_tool_prefix}cc"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534done
2535done
Reid Spencera773bd52006-08-04 18:18:08 +00002536IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002542 { echo "$as_me:$LINENO: result: $CC" >&5
2543echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544else
Reid Spencera773bd52006-08-04 18:18:08 +00002545 { echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547fi
2548
Reid Spencera773bd52006-08-04 18:18:08 +00002549
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551fi
2552if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563 ac_prog_rejected=no
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002570 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 +00002571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2573 continue
2574 fi
2575 ac_cv_prog_CC="cc"
2576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580done
Reid Spencera773bd52006-08-04 18:18:08 +00002581IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582
2583if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2586 shift
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2591 shift
2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593 fi
2594fi
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002599 { echo "$as_me:$LINENO: result: $CC" >&5
2600echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601else
Reid Spencera773bd52006-08-04 18:18:08 +00002602 { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604fi
2605
Reid Spencera773bd52006-08-04 18:18:08 +00002606
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607fi
2608if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002610 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002611 do
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002628 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 +00002629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2632 fi
2633done
2634done
Reid Spencera773bd52006-08-04 18:18:08 +00002635IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002636
2637fi
2638fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002641 { echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002643else
Reid Spencera773bd52006-08-04 18:18:08 +00002644 { echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002646fi
2647
Reid Spencera773bd52006-08-04 18:18:08 +00002648
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002650 done
2651fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652if test -z "$CC"; then
2653 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002654 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002655do
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002661 echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669 IFS=$as_save_IFS
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002672 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 +00002673 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675 break 2
2676 fi
2677done
2678done
Reid Spencera773bd52006-08-04 18:18:08 +00002679IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002680
2681fi
2682fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002687else
Reid Spencera773bd52006-08-04 18:18:08 +00002688 { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002690fi
2691
Reid Spencera773bd52006-08-04 18:18:08 +00002692
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002693 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002694done
John Criswell7a73b802003-06-30 21:59:07 +00002695
Reid Spencera773bd52006-08-04 18:18:08 +00002696 if test "x$ac_ct_CC" = x; then
2697 CC=""
2698 else
2699 case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702whose name does not start with the host triplet. If you think this
2703configuration is useful to you, please write to autoconf@gnu.org." >&5
2704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705whose name does not start with the host triplet. If you think this
2706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707ac_tool_warned=yes ;;
2708esac
2709 CC=$ac_ct_CC
2710 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002711fi
2712
John Criswell7a73b802003-06-30 21:59:07 +00002713fi
2714
2715
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002716test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: no acceptable C compiler found in \$PATH
2719See \`config.log' for more details." >&2;}
2720 { (exit 1); exit 1; }; }
2721
John Criswell7a73b802003-06-30 21:59:07 +00002722# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002723echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002724ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002725{ (ac_try="$ac_compiler --version >&5"
2726case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002735{ (ac_try="$ac_compiler -v >&5"
2736case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002745{ (ac_try="$ac_compiler -V >&5"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755
2756cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002762
John Criswell7a73b802003-06-30 21:59:07 +00002763int
2764main ()
2765{
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002772ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002773# Try to create an executable without -o first, disregard a.out.
2774# It will help us diagnose broken compilers, and finding out an intuition
2775# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002776{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002778ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002779#
2780# List of possible output files, starting from the most likely.
2781# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2782# only as a last resort. b.out is created by i960 compilers.
2783ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2784#
2785# The IRIX 6 linker writes into existing files which may not be
2786# executable, retaining their permissions. Remove them first so a
2787# subsequent execution test works.
2788ac_rmfiles=
2789for ac_file in $ac_files
2790do
2791 case $ac_file in
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2794 esac
2795done
2796rm -f $ac_rmfiles
2797
2798if { (ac_try="$ac_link_default"
2799case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802esac
2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2809# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2810# in a Makefile. We should not override ac_cv_exeext if it was cached,
2811# so that the user can short-circuit this test for compilers unknown to
2812# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002813for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002814do
2815 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002816 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002818 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002819 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002820 # We found the default executable, but exeext='' is most
2821 # certainly right.
2822 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002823 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2825 then :; else
2826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2827 fi
2828 # We set ac_cv_exeext here because the later test for it is not
2829 # safe: cross compilers may not add the suffix if given an `-o'
2830 # argument, so we may need to know it at that point already.
2831 # Even if this section looks crufty: it has the advantage of
2832 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002833 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002834 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002835 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002836 esac
2837done
Reid Spencera773bd52006-08-04 18:18:08 +00002838test "$ac_cv_exeext" = no && ac_cv_exeext=
2839
John Criswell7a73b802003-06-30 21:59:07 +00002840else
2841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002842sed 's/^/| /' conftest.$ac_ext >&5
2843
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002844{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002845See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002846echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002847See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002848 { (exit 77); exit 77; }; }
2849fi
2850
2851ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002852{ echo "$as_me:$LINENO: result: $ac_file" >&5
2853echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002854
Reid Spencera773bd52006-08-04 18:18:08 +00002855# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002856# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002857{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2858echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002859# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2860# If not cross compiling, check that we can run a simple program.
2861if test "$cross_compiling" != yes; then
2862 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002863 { (case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; }; then
2872 cross_compiling=no
2873 else
2874 if test "$cross_compiling" = maybe; then
2875 cross_compiling=yes
2876 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002877 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002878If you meant to cross compile, use \`--host'.
2879See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002880echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002881If you meant to cross compile, use \`--host'.
2882See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002883 { (exit 1); exit 1; }; }
2884 fi
2885 fi
2886fi
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: result: yes" >&5
2888echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002889
John Criswell0c38eaf2003-09-10 15:17:25 +00002890rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002891ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002892# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002893# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002894{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2895echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2896{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2897echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002898
Reid Spencera773bd52006-08-04 18:18:08 +00002899{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2900echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2901if { (ac_try="$ac_link"
2902case "(($ac_try" in
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2905esac
2906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002908 ac_status=$?
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2912# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2913# work properly (i.e., refer to `conftest.exe'), while it won't with
2914# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002915for ac_file in conftest.exe conftest conftest.*; do
2916 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002917 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002920 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002921 * ) break;;
2922 esac
2923done
2924else
John Criswell0c38eaf2003-09-10 15:17:25 +00002925 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2926See \`config.log' for more details." >&5
2927echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2928See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002929 { (exit 1); exit 1; }; }
2930fi
2931
2932rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002933{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2934echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002935
2936rm -f conftest.$ac_ext
2937EXEEXT=$ac_cv_exeext
2938ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002939{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2940echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002941if test "${ac_cv_objext+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943else
2944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002950
John Criswell7a73b802003-06-30 21:59:07 +00002951int
2952main ()
2953{
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002960if { (ac_try="$ac_compile"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002970 for ac_file in conftest.o conftest.obj conftest.*; do
2971 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002972 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002974 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2975 break;;
2976 esac
2977done
2978else
2979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2983See \`config.log' for more details." >&5
2984echo "$as_me: error: cannot compute suffix of object files: cannot compile
2985See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002986 { (exit 1); exit 1; }; }
2987fi
2988
2989rm -f conftest.$ac_cv_objext conftest.$ac_ext
2990fi
Reid Spencera773bd52006-08-04 18:18:08 +00002991{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2992echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002993OBJEXT=$ac_cv_objext
2994ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002995{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2996echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002997if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002998 echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003001/* confdefs.h. */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003006
John Criswell7a73b802003-06-30 21:59:07 +00003007int
3008main ()
3009{
3010#ifndef __GNUC__
3011 choke me
3012#endif
3013
3014 ;
3015 return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003019if { (ac_try="$ac_compile"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036esac
3037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_try") 2>&5
3049 ac_status=$?
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003052 ac_compiler_gnu=yes
3053else
3054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003055sed 's/^/| /' conftest.$ac_ext >&5
3056
Reid Spencera773bd52006-08-04 18:18:08 +00003057 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003058fi
Reid Spencera773bd52006-08-04 18:18:08 +00003059
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003061ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003062
3063fi
Reid Spencera773bd52006-08-04 18:18:08 +00003064{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003066GCC=`test $ac_compiler_gnu = yes && echo yes`
3067ac_test_CFLAGS=${CFLAGS+set}
3068ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003069{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073else
Reid Spencera773bd52006-08-04 18:18:08 +00003074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3076 ac_cv_prog_cc_g=no
3077 CFLAGS="-g"
3078 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003084
John Criswell7a73b802003-06-30 21:59:07 +00003085int
3086main ()
3087{
3088
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003094if { (ac_try="$ac_compile"
3095case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111esac
3112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3114 ac_status=$?
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3121esac
3122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3124 ac_status=$?
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003127 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003128else
3129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003130sed 's/^/| /' conftest.$ac_ext >&5
3131
Reid Spencera773bd52006-08-04 18:18:08 +00003132 CFLAGS=""
3133 cat >conftest.$ac_ext <<_ACEOF
3134/* confdefs.h. */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (ac_try="$ac_compile"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003182 :
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3188 CFLAGS="-g"
3189 cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h. */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h. */
3195
3196int
3197main ()
3198{
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_compile") 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
3225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; } &&
3228 { ac_try='test -s conftest.$ac_objext'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
3233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_try") 2>&5
3235 ac_status=$?
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003238 ac_cv_prog_cc_g=yes
3239else
3240 echo "$as_me: failed program was:" >&5
3241sed 's/^/| /' conftest.$ac_ext >&5
3242
3243
John Criswell7a73b802003-06-30 21:59:07 +00003244fi
Reid Spencera773bd52006-08-04 18:18:08 +00003245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003247fi
Reid Spencera773bd52006-08-04 18:18:08 +00003248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250fi
3251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3254fi
3255{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3256echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3261 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003262 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003264 fi
3265else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 if test "$GCC" = yes; then
3267 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003268 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003270 fi
3271fi
Reid Spencera773bd52006-08-04 18:18:08 +00003272{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3273echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3274if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
Reid Spencera773bd52006-08-04 18:18:08 +00003277 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278ac_save_CC=$CC
3279cat >conftest.$ac_ext <<_ACEOF
3280/* confdefs.h. */
3281_ACEOF
3282cat confdefs.h >>conftest.$ac_ext
3283cat >>conftest.$ac_ext <<_ACEOF
3284/* end confdefs.h. */
3285#include <stdarg.h>
3286#include <stdio.h>
3287#include <sys/types.h>
3288#include <sys/stat.h>
3289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3290struct buf { int x; };
3291FILE * (*rcsopen) (struct buf *, struct stat *, int);
3292static char *e (p, i)
3293 char **p;
3294 int i;
3295{
3296 return p[i];
3297}
3298static char *f (char * (*g) (char **, int), char **p, ...)
3299{
3300 char *s;
3301 va_list v;
3302 va_start (v,p);
3303 s = g (p, va_arg (v,int));
3304 va_end (v);
3305 return s;
3306}
3307
3308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3309 function prototypes and stuff, but not '\xHH' hex character constants.
3310 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003311 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3313 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003314 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3316
Reid Spencera773bd52006-08-04 18:18:08 +00003317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3318 inside strings and character constants. */
3319#define FOO(x) 'x'
3320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3321
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322int test (int i, double x);
3323struct s1 {int (*f) (int a);};
3324struct s2 {int (*f) (double a);};
3325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326int argc;
3327char **argv;
3328int
3329main ()
3330{
3331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3332 ;
3333 return 0;
3334}
3335_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3337 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003338do
3339 CC="$ac_save_CC $ac_arg"
3340 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003341if { (ac_try="$ac_compile"
3342case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348 ac_status=$?
3349 grep -v '^ *+' conftest.er1 >conftest.err
3350 rm -f conftest.er1
3351 cat conftest.err >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003353 (exit $ac_status); } &&
3354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; } &&
3364 { ac_try='test -s conftest.$ac_objext'
3365 { (case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370 (eval "$ac_try") 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003374 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375else
3376 echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
3378
Reid Spencera773bd52006-08-04 18:18:08 +00003379
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003380fi
Reid Spencera773bd52006-08-04 18:18:08 +00003381
3382rm -f core conftest.err conftest.$ac_objext
3383 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384done
Reid Spencera773bd52006-08-04 18:18:08 +00003385rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386CC=$ac_save_CC
3387
3388fi
Reid Spencera773bd52006-08-04 18:18:08 +00003389# AC_CACHE_VAL
3390case "x$ac_cv_prog_cc_c89" in
3391 x)
3392 { echo "$as_me:$LINENO: result: none needed" >&5
3393echo "${ECHO_T}none needed" >&6; } ;;
3394 xno)
3395 { echo "$as_me:$LINENO: result: unsupported" >&5
3396echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003398 CC="$CC $ac_cv_prog_cc_c89"
3399 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3400echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401esac
3402
John Criswell0c38eaf2003-09-10 15:17:25 +00003403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409
3410
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411ac_ext=c
3412ac_cpp='$CPP $CPPFLAGS'
3413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3415ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003416{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3417echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418# On Suns, sometimes $CPP names a directory.
3419if test -n "$CPP" && test -d "$CPP"; then
3420 CPP=
3421fi
3422if test -z "$CPP"; then
3423 if test "${ac_cv_prog_CPP+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 # Double quotes because CPP needs to be expanded
3427 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428 do
3429 ac_preproc_ok=false
3430for ac_c_preproc_warn_flag in '' yes
3431do
3432 # Use a header file that comes with gcc, so configuring glibc
3433 # with a fresh cross-compiler works.
3434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3435 # <limits.h> exists even on freestanding compilers.
3436 # On the NeXT, cc -E runs the code through the compiler's parser,
3437 # not just through cpp. "Syntax error" is here to catch this case.
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444#ifdef __STDC__
3445# include <limits.h>
3446#else
3447# include <assert.h>
3448#endif
3449 Syntax error
3450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003451if { (ac_try="$ac_cpp conftest.$ac_ext"
3452case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003463 (exit $ac_status); } >/dev/null; then
3464 if test -s conftest.err; then
3465 ac_cpp_err=$ac_c_preproc_warn_flag
3466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3467 else
3468 ac_cpp_err=
3469 fi
3470else
3471 ac_cpp_err=yes
3472fi
3473if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474 :
3475else
3476 echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479 # Broken: fails on valid input.
3480continue
3481fi
Reid Spencera773bd52006-08-04 18:18:08 +00003482
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483rm -f conftest.err conftest.$ac_ext
3484
Reid Spencera773bd52006-08-04 18:18:08 +00003485 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003486 # can be detected and how.
3487 cat >conftest.$ac_ext <<_ACEOF
3488/* confdefs.h. */
3489_ACEOF
3490cat confdefs.h >>conftest.$ac_ext
3491cat >>conftest.$ac_ext <<_ACEOF
3492/* end confdefs.h. */
3493#include <ac_nonexistent.h>
3494_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003495if { (ac_try="$ac_cpp conftest.$ac_ext"
3496case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003507 (exit $ac_status); } >/dev/null; then
3508 if test -s conftest.err; then
3509 ac_cpp_err=$ac_c_preproc_warn_flag
3510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3511 else
3512 ac_cpp_err=
3513 fi
3514else
3515 ac_cpp_err=yes
3516fi
3517if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518 # Broken: success on invalid input.
3519continue
3520else
3521 echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524 # Passes both tests.
3525ac_preproc_ok=:
3526break
3527fi
Reid Spencera773bd52006-08-04 18:18:08 +00003528
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529rm -f conftest.err conftest.$ac_ext
3530
3531done
3532# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533rm -f conftest.err conftest.$ac_ext
3534if $ac_preproc_ok; then
3535 break
3536fi
3537
3538 done
3539 ac_cv_prog_CPP=$CPP
3540
3541fi
3542 CPP=$ac_cv_prog_CPP
3543else
3544 ac_cv_prog_CPP=$CPP
3545fi
Reid Spencera773bd52006-08-04 18:18:08 +00003546{ echo "$as_me:$LINENO: result: $CPP" >&5
3547echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548ac_preproc_ok=false
3549for ac_c_preproc_warn_flag in '' yes
3550do
3551 # Use a header file that comes with gcc, so configuring glibc
3552 # with a fresh cross-compiler works.
3553 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3554 # <limits.h> exists even on freestanding compilers.
3555 # On the NeXT, cc -E runs the code through the compiler's parser,
3556 # not just through cpp. "Syntax error" is here to catch this case.
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#ifdef __STDC__
3564# include <limits.h>
3565#else
3566# include <assert.h>
3567#endif
3568 Syntax error
3569_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003570if { (ac_try="$ac_cpp conftest.$ac_ext"
3571case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574esac
3575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003582 (exit $ac_status); } >/dev/null; then
3583 if test -s conftest.err; then
3584 ac_cpp_err=$ac_c_preproc_warn_flag
3585 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3586 else
3587 ac_cpp_err=
3588 fi
3589else
3590 ac_cpp_err=yes
3591fi
3592if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593 :
3594else
3595 echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598 # Broken: fails on valid input.
3599continue
3600fi
Reid Spencera773bd52006-08-04 18:18:08 +00003601
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602rm -f conftest.err conftest.$ac_ext
3603
Reid Spencera773bd52006-08-04 18:18:08 +00003604 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003605 # can be detected and how.
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612#include <ac_nonexistent.h>
3613_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003614if { (ac_try="$ac_cpp conftest.$ac_ext"
3615case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618esac
3619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003621 ac_status=$?
3622 grep -v '^ *+' conftest.er1 >conftest.err
3623 rm -f conftest.er1
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003626 (exit $ac_status); } >/dev/null; then
3627 if test -s conftest.err; then
3628 ac_cpp_err=$ac_c_preproc_warn_flag
3629 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3630 else
3631 ac_cpp_err=
3632 fi
3633else
3634 ac_cpp_err=yes
3635fi
3636if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637 # Broken: success on invalid input.
3638continue
3639else
3640 echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 # Passes both tests.
3644ac_preproc_ok=:
3645break
3646fi
Reid Spencera773bd52006-08-04 18:18:08 +00003647
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003648rm -f conftest.err conftest.$ac_ext
3649
3650done
3651# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3652rm -f conftest.err conftest.$ac_ext
3653if $ac_preproc_ok; then
3654 :
3655else
3656 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3657See \`config.log' for more details." >&5
3658echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3659See \`config.log' for more details." >&2;}
3660 { (exit 1); exit 1; }; }
3661fi
3662
John Criswell7a73b802003-06-30 21:59:07 +00003663ac_ext=c
3664ac_cpp='$CPP $CPPFLAGS'
3665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3667ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668
John Criswell7a73b802003-06-30 21:59:07 +00003669
Reid Spencera773bd52006-08-04 18:18:08 +00003670{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3671echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672if test "${ac_cv_path_GREP+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3674else
Reid Spencera773bd52006-08-04 18:18:08 +00003675 # Extract the first word of "grep ggrep" to use in msg output
3676if test -z "$GREP"; then
3677set dummy grep ggrep; ac_prog_name=$2
3678if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
Reid Spencera773bd52006-08-04 18:18:08 +00003681 ac_path_GREP_found=false
3682# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003688 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003690 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003691 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003692 # Check for GNU ac_path_GREP and select it if it is found.
3693 # Check for GNU $ac_path_GREP
3694case `"$ac_path_GREP" --version 2>&1` in
3695*GNU*)
3696 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3697*)
3698 ac_count=0
3699 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3700 while :
3701 do
3702 cat "conftest.in" "conftest.in" >"conftest.tmp"
3703 mv "conftest.tmp" "conftest.in"
3704 cp "conftest.in" "conftest.nl"
3705 echo 'GREP' >> "conftest.nl"
3706 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3708 ac_count=`expr $ac_count + 1`
3709 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3710 # Best one so far, save it but keep looking for a better one
3711 ac_cv_path_GREP="$ac_path_GREP"
3712 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003713 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003714 # 10*(2^10) chars as input seems more than enough
3715 test $ac_count -gt 10 && break
3716 done
3717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3718esac
3719
3720
3721 $ac_path_GREP_found && break 3
3722 done
3723done
3724
3725done
3726IFS=$as_save_IFS
3727
3728
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003729fi
Reid Spencera773bd52006-08-04 18:18:08 +00003730
3731GREP="$ac_cv_path_GREP"
3732if test -z "$GREP"; then
3733 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3734echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3735 { (exit 1); exit 1; }; }
3736fi
3737
3738else
3739 ac_cv_path_GREP=$GREP
3740fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003741
John Criswell7a73b802003-06-30 21:59:07 +00003742
Reid Spencera773bd52006-08-04 18:18:08 +00003743fi
3744{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3745echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3746 GREP="$ac_cv_path_GREP"
3747
3748
3749{ echo "$as_me:$LINENO: checking for egrep" >&5
3750echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3751if test "${ac_cv_path_EGREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3755 then ac_cv_path_EGREP="$GREP -E"
3756 else
3757 # Extract the first word of "egrep" to use in msg output
3758if test -z "$EGREP"; then
3759set dummy egrep; ac_prog_name=$2
3760if test "${ac_cv_path_EGREP+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3762else
3763 ac_path_EGREP_found=false
3764# Loop through the user's path and test for each of PROGNAME-LIST
3765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3767do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_prog in egrep; do
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003773 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003774 # Check for GNU ac_path_EGREP and select it if it is found.
3775 # Check for GNU $ac_path_EGREP
3776case `"$ac_path_EGREP" --version 2>&1` in
3777*GNU*)
3778 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3779*)
3780 ac_count=0
3781 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3782 while :
3783 do
3784 cat "conftest.in" "conftest.in" >"conftest.tmp"
3785 mv "conftest.tmp" "conftest.in"
3786 cp "conftest.in" "conftest.nl"
3787 echo 'EGREP' >> "conftest.nl"
3788 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3790 ac_count=`expr $ac_count + 1`
3791 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3792 # Best one so far, save it but keep looking for a better one
3793 ac_cv_path_EGREP="$ac_path_EGREP"
3794 ac_path_EGREP_max=$ac_count
3795 fi
3796 # 10*(2^10) chars as input seems more than enough
3797 test $ac_count -gt 10 && break
3798 done
3799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800esac
3801
3802
3803 $ac_path_EGREP_found && break 3
3804 done
3805done
3806
3807done
3808IFS=$as_save_IFS
3809
3810
3811fi
3812
3813EGREP="$ac_cv_path_EGREP"
3814if test -z "$EGREP"; then
3815 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3816echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3817 { (exit 1); exit 1; }; }
3818fi
3819
3820else
3821 ac_cv_path_EGREP=$EGREP
3822fi
3823
3824
3825 fi
3826fi
3827{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3828echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3829 EGREP="$ac_cv_path_EGREP"
3830
3831
3832{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3833echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003834if test "${ac_cv_header_stdc+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836else
3837 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003838/* confdefs.h. */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003843#include <stdlib.h>
3844#include <stdarg.h>
3845#include <string.h>
3846#include <float.h>
3847
John Criswell0c38eaf2003-09-10 15:17:25 +00003848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
John Criswell7a73b802003-06-30 21:59:07 +00003855_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003856rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003857if { (ac_try="$ac_compile"
3858case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003869 (exit $ac_status); } &&
3870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874esac
3875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; } &&
3880 { ac_try='test -s conftest.$ac_objext'
3881 { (case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884esac
3885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_try") 2>&5
3887 ac_status=$?
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003890 ac_cv_header_stdc=yes
3891else
3892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003893sed 's/^/| /' conftest.$ac_ext >&5
3894
Reid Spencera773bd52006-08-04 18:18:08 +00003895 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003896fi
Reid Spencera773bd52006-08-04 18:18:08 +00003897
3898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003899
3900if test $ac_cv_header_stdc = yes; then
3901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003908#include <string.h>
3909
3910_ACEOF
3911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003912 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003913 :
3914else
3915 ac_cv_header_stdc=no
3916fi
3917rm -f conftest*
3918
3919fi
3920
3921if test $ac_cv_header_stdc = yes; then
3922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <stdlib.h>
3930
3931_ACEOF
3932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003933 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003934 :
3935else
3936 ac_cv_header_stdc=no
3937fi
3938rm -f conftest*
3939
3940fi
3941
3942if test $ac_cv_header_stdc = yes; then
3943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3944 if test "$cross_compiling" = yes; then
3945 :
3946else
3947 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003948/* confdefs.h. */
3949_ACEOF
3950cat confdefs.h >>conftest.$ac_ext
3951cat >>conftest.$ac_ext <<_ACEOF
3952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003953#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003954#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003955#if ((' ' & 0x0FF) == 0x020)
3956# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3957# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3958#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003959# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003960 (('a' <= (c) && (c) <= 'i') \
3961 || ('j' <= (c) && (c) <= 'r') \
3962 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003963# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3964#endif
3965
3966#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3967int
3968main ()
3969{
3970 int i;
3971 for (i = 0; i < 256; i++)
3972 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003973 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003974 return 2;
3975 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003976}
3977_ACEOF
3978rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003979if { (ac_try="$ac_link"
3980case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983esac
3984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003989 { (case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992esac
3993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 :
3999else
4000 echo "$as_me: program exited with status $ac_status" >&5
4001echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004002sed 's/^/| /' conftest.$ac_ext >&5
4003
John Criswell7a73b802003-06-30 21:59:07 +00004004( exit $ac_status )
4005ac_cv_header_stdc=no
4006fi
Reid Spencera773bd52006-08-04 18:18:08 +00004007rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4008fi
4009
4010
John Criswell7a73b802003-06-30 21:59:07 +00004011fi
4012fi
Reid Spencera773bd52006-08-04 18:18:08 +00004013{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4014echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004015if test $ac_cv_header_stdc = yes; then
4016
4017cat >>confdefs.h <<\_ACEOF
4018#define STDC_HEADERS 1
4019_ACEOF
4020
4021fi
4022
Reid Spencera773bd52006-08-04 18:18:08 +00004023# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4034 inttypes.h stdint.h unistd.h
4035do
4036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4037{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4039if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041else
4042 cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048$ac_includes_default
4049
4050#include <$ac_header>
4051_ACEOF
4052rm -f conftest.$ac_objext
4053if { (ac_try="$ac_compile"
4054case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004065 (exit $ac_status); } &&
4066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
4073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; } &&
4076 { ac_try='test -s conftest.$ac_objext'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080esac
4081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004086 eval "$as_ac_Header=yes"
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091 eval "$as_ac_Header=no"
4092fi
4093
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095fi
4096ac_res=`eval echo '${'$as_ac_Header'}'`
4097 { echo "$as_me:$LINENO: result: $ac_res" >&5
4098echo "${ECHO_T}$ac_res" >&6; }
4099if test `eval echo '${'$as_ac_Header'}'` = yes; then
4100 cat >>confdefs.h <<_ACEOF
4101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4102_ACEOF
4103
4104fi
4105
4106done
4107
4108
4109{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4110echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4111if test "${ac_cv_c_bigendian+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 # See if sys/param.h defines the BYTE_ORDER macro.
4115cat >conftest.$ac_ext <<_ACEOF
4116/* confdefs.h. */
4117_ACEOF
4118cat confdefs.h >>conftest.$ac_ext
4119cat >>conftest.$ac_ext <<_ACEOF
4120/* end confdefs.h. */
4121#include <sys/types.h>
4122#include <sys/param.h>
4123
4124int
4125main ()
4126{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004127#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004128 bogus endian macros
4129#endif
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135rm -f conftest.$ac_objext
4136if { (ac_try="$ac_compile"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_compile") 2>conftest.er1
4143 ac_status=$?
4144 grep -v '^ *+' conftest.er1 >conftest.err
4145 rm -f conftest.er1
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153esac
4154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_try") 2>&5
4156 ac_status=$?
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; } &&
4159 { ac_try='test -s conftest.$ac_objext'
4160 { (case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163esac
4164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_try") 2>&5
4166 ac_status=$?
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004169 # It does; now see whether it defined to BIG_ENDIAN or not.
4170cat >conftest.$ac_ext <<_ACEOF
4171/* confdefs.h. */
4172_ACEOF
4173cat confdefs.h >>conftest.$ac_ext
4174cat >>conftest.$ac_ext <<_ACEOF
4175/* end confdefs.h. */
4176#include <sys/types.h>
4177#include <sys/param.h>
4178
4179int
4180main ()
4181{
4182#if BYTE_ORDER != BIG_ENDIAN
4183 not big endian
4184#endif
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190rm -f conftest.$ac_objext
4191if { (ac_try="$ac_compile"
4192case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_compile") 2>conftest.er1
4198 ac_status=$?
4199 grep -v '^ *+' conftest.er1 >conftest.err
4200 rm -f conftest.er1
4201 cat conftest.err >&5
4202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004203 (exit $ac_status); } &&
4204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4205 { (case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_try") 2>&5
4211 ac_status=$?
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; } &&
4214 { ac_try='test -s conftest.$ac_objext'
4215 { (case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218esac
4219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_try") 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004224 ac_cv_c_bigendian=yes
4225else
4226 echo "$as_me: failed program was:" >&5
4227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229 ac_cv_c_bigendian=no
4230fi
4231
4232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4233else
4234 echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 # It does not; compile a test program.
4238if test "$cross_compiling" = yes; then
4239 # try to guess the endianness by grepping values into an object file
4240 ac_cv_c_bigendian=unknown
4241 cat >conftest.$ac_ext <<_ACEOF
4242/* confdefs.h. */
4243_ACEOF
4244cat confdefs.h >>conftest.$ac_ext
4245cat >>conftest.$ac_ext <<_ACEOF
4246/* end confdefs.h. */
4247short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4248short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4249void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4250short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4251short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4252void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4253int
4254main ()
4255{
4256 _ascii (); _ebcdic ();
4257 ;
4258 return 0;
4259}
4260_ACEOF
4261rm -f conftest.$ac_objext
4262if { (ac_try="$ac_compile"
4263case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_compile") 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279esac
4280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest.$ac_objext'
4286 { (case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_try") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4296 ac_cv_c_bigendian=yes
4297fi
4298if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4299 if test "$ac_cv_c_bigendian" = unknown; then
4300 ac_cv_c_bigendian=no
4301 else
4302 # finding both strings is unlikely to happen, but who knows?
4303 ac_cv_c_bigendian=unknown
4304 fi
4305fi
4306else
4307 echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310
4311fi
4312
4313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314else
4315 cat >conftest.$ac_ext <<_ACEOF
4316/* confdefs.h. */
4317_ACEOF
4318cat confdefs.h >>conftest.$ac_ext
4319cat >>conftest.$ac_ext <<_ACEOF
4320/* end confdefs.h. */
4321$ac_includes_default
4322int
4323main ()
4324{
4325
4326 /* Are we little or big endian? From Harbison&Steele. */
4327 union
4328 {
4329 long int l;
4330 char c[sizeof (long int)];
4331 } u;
4332 u.l = 1;
4333 return u.c[sizeof (long int) - 1] == 1;
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest$ac_exeext
4340if { (ac_try="$ac_link"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_link") 2>&5
4347 ac_status=$?
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4350 { (case "(($ac_try" in
4351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4353esac
4354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_c_bigendian=no
4360else
4361 echo "$as_me: program exited with status $ac_status" >&5
4362echo "$as_me: failed program was:" >&5
4363sed 's/^/| /' conftest.$ac_ext >&5
4364
4365( exit $ac_status )
4366ac_cv_c_bigendian=yes
4367fi
4368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4369fi
4370
4371
4372fi
4373
4374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4375fi
4376{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4377echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4378case $ac_cv_c_bigendian in
4379 yes)
4380 ENDIAN=big
4381 ;;
4382 no)
4383 ENDIAN=little
4384 ;;
4385 *)
4386 { { echo "$as_me:$LINENO: error: unknown endianness
4387presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4388echo "$as_me: error: unknown endianness
4389presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4390 { (exit 1); exit 1; }; } ;;
4391esac
4392
4393
4394if test "$cross_compiling" = yes; then
4395 LLVM_CROSS_COMPILING=1
4396
4397
4398{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4399echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4400if test "${ac_cv_build_exeext+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4404 ac_cv_build_exeext=.exe
4405else
4406 ac_build_prefix=${build_alias}-
4407
4408 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4409set dummy ${ac_build_prefix}gcc; ac_word=$2
4410{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 if test -n "$BUILD_CC"; then
4416 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004424 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 +00004425 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435BUILD_CC=$ac_cv_prog_BUILD_CC
4436if test -n "$BUILD_CC"; then
4437 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4438echo "${ECHO_T}$BUILD_CC" >&6; }
4439else
4440 { echo "$as_me:$LINENO: result: no" >&5
4441echo "${ECHO_T}no" >&6; }
4442fi
4443
4444
4445 if test -z "$BUILD_CC"; then
4446 # Extract the first word of "gcc", so it can be a program name with args.
4447set dummy gcc; ac_word=$2
4448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4450if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452else
4453 if test -n "$BUILD_CC"; then
4454 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004462 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 +00004463 ac_cv_prog_BUILD_CC="gcc"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 break 2
4466 fi
4467done
4468done
4469IFS=$as_save_IFS
4470
4471fi
4472fi
4473BUILD_CC=$ac_cv_prog_BUILD_CC
4474if test -n "$BUILD_CC"; then
4475 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4476echo "${ECHO_T}$BUILD_CC" >&6; }
4477else
4478 { echo "$as_me:$LINENO: result: no" >&5
4479echo "${ECHO_T}no" >&6; }
4480fi
4481
4482
4483 if test -z "$BUILD_CC"; then
4484 # Extract the first word of "cc", so it can be a program name with args.
4485set dummy cc; ac_word=$2
4486{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4488if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490else
4491 if test -n "$BUILD_CC"; then
4492 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4493else
4494 ac_prog_rejected=no
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004501 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 +00004502 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4503 ac_prog_rejected=yes
4504 continue
4505 fi
4506 ac_cv_prog_BUILD_CC="cc"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512IFS=$as_save_IFS
4513
4514if test $ac_prog_rejected = yes; then
4515 # We found a bogon in the path, so make sure we never use it.
4516 set dummy $ac_cv_prog_BUILD_CC
4517 shift
4518 if test $# != 0; then
4519 # We chose a different compiler from the bogus one.
4520 # However, it has the same basename, so the bogon will be chosen
4521 # first if we set BUILD_CC to just the basename; use the full file name.
4522 shift
4523 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4524 fi
4525fi
4526fi
4527fi
4528BUILD_CC=$ac_cv_prog_BUILD_CC
4529if test -n "$BUILD_CC"; then
4530 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4531echo "${ECHO_T}$BUILD_CC" >&6; }
4532else
4533 { echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6; }
4535fi
4536
4537
4538 fi
4539 fi
4540 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4541echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4542 { (exit 1); exit 1; }; }
4543 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4544 rm -f conftest*
4545 echo 'int main () { return 0; }' > conftest.$ac_ext
4546 ac_cv_build_exeext=
4547 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4548 (eval $ac_build_link) 2>&5
4549 ac_status=$?
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; then
4552 for file in conftest.*; do
4553 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004554 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004555 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4556 esac
4557 done
4558 else
4559 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4560echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4561 { (exit 1); exit 1; }; }
4562 fi
4563 rm -f conftest*
4564 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4565fi
4566fi
4567
4568BUILD_EXEEXT=""
4569test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4570{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4571echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4572ac_build_exeext=$BUILD_EXEEXT
4573
Jim Grosbach673612e2008-10-02 22:56:44 +00004574 ac_build_prefix=${build_alias}-
4575 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4576set dummy ${ac_build_prefix}g++; ac_word=$2
4577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582 if test -n "$BUILD_CXX"; then
4583 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4584else
4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588 IFS=$as_save_IFS
4589 test -z "$as_dir" && as_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004592 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596done
4597done
4598IFS=$as_save_IFS
4599
4600fi
4601fi
4602BUILD_CXX=$ac_cv_prog_BUILD_CXX
4603if test -n "$BUILD_CXX"; then
4604 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4605echo "${ECHO_T}$BUILD_CXX" >&6; }
4606else
4607 { echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6; }
4609fi
4610
4611
4612 if test -z "$BUILD_CXX"; then
4613 # Extract the first word of "g++", so it can be a program name with args.
4614set dummy g++; ac_word=$2
4615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619else
4620 if test -n "$BUILD_CXX"; then
4621 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004630 ac_cv_prog_BUILD_CXX="g++"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4633 fi
4634done
4635done
4636IFS=$as_save_IFS
4637
4638fi
4639fi
4640BUILD_CXX=$ac_cv_prog_BUILD_CXX
4641if test -n "$BUILD_CXX"; then
4642 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4643echo "${ECHO_T}$BUILD_CXX" >&6; }
4644else
4645 { echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6; }
4647fi
4648
4649
4650 if test -z "$BUILD_CXX"; then
4651 # Extract the first word of "c++", so it can be a program name with args.
4652set dummy c++; ac_word=$2
4653{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4655if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658 if test -n "$BUILD_CXX"; then
4659 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4660else
4661 ac_prog_rejected=no
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4670 ac_prog_rejected=yes
4671 continue
4672 fi
4673 ac_cv_prog_BUILD_CXX="c++"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677done
4678done
4679IFS=$as_save_IFS
4680
4681if test $ac_prog_rejected = yes; then
4682 # We found a bogon in the path, so make sure we never use it.
4683 set dummy $ac_cv_prog_BUILD_CXX
4684 shift
4685 if test $# != 0; then
4686 # We chose a different compiler from the bogus one.
4687 # However, it has the same basename, so the bogon will be chosen
4688 # first if we set BUILD_CXX to just the basename; use the full file name.
4689 shift
4690 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4691 fi
4692fi
4693fi
4694fi
4695BUILD_CXX=$ac_cv_prog_BUILD_CXX
4696if test -n "$BUILD_CXX"; then
4697 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4698echo "${ECHO_T}$BUILD_CXX" >&6; }
4699else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701echo "${ECHO_T}no" >&6; }
4702fi
4703
4704
4705 fi
4706 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004707else
4708 LLVM_CROSS_COMPILING=0
4709
4710fi
4711
Reid Spencer0b1e4662007-04-02 15:41:39 +00004712if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004713 cvsbuild="yes"
4714 optimize="no"
4715 CVSBUILD=CVSBUILD=1
4716
4717else
4718 cvsbuild="no"
4719 optimize="yes"
4720fi
4721
4722
4723# Check whether --enable-optimized was given.
4724if test "${enable_optimized+set}" = set; then
4725 enableval=$enable_optimized;
4726else
4727 enableval=$optimize
4728fi
4729
4730if test ${enableval} = "no" ; then
4731 ENABLE_OPTIMIZED=
4732
4733else
4734 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4735
4736fi
4737
4738# Check whether --enable-assertions was given.
4739if test "${enable_assertions+set}" = set; then
4740 enableval=$enable_assertions;
4741else
4742 enableval="yes"
4743fi
4744
4745if test ${enableval} = "yes" ; then
4746 DISABLE_ASSERTIONS=
4747
4748else
4749 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4750
4751fi
4752
David Greenea696d242007-06-28 19:36:08 +00004753# Check whether --enable-expensive-checks was given.
4754if test "${enable_expensive_checks+set}" = set; then
4755 enableval=$enable_expensive_checks;
4756else
4757 enableval="no"
4758fi
4759
4760if test ${enableval} = "yes" ; then
4761 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4762
4763 EXPENSIVE_CHECKS=yes
4764
4765else
4766 ENABLE_EXPENSIVE_CHECKS=
4767
4768 EXPENSIVE_CHECKS=no
4769
4770fi
4771
Reid Spencer8b2e1412006-11-17 03:32:33 +00004772# Check whether --enable-debug-runtime was given.
4773if test "${enable_debug_runtime+set}" = set; then
4774 enableval=$enable_debug_runtime;
4775else
4776 enableval=no
4777fi
4778
4779if test ${enableval} = "no" ; then
4780 DEBUG_RUNTIME=
4781
4782else
4783 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4784
4785fi
4786
Reid Spencera773bd52006-08-04 18:18:08 +00004787# Check whether --enable-jit was given.
4788if test "${enable_jit+set}" = set; then
4789 enableval=$enable_jit;
4790else
4791 enableval=default
4792fi
4793
4794if test ${enableval} = "no"
4795then
4796 JIT=
4797
4798else
4799 case "$llvm_cv_target_arch" in
4800 x86) TARGET_HAS_JIT=1
4801 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004802 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004803 ;;
4804 PowerPC) TARGET_HAS_JIT=1
4805 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004806 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004807 ;;
4808 Alpha) TARGET_HAS_JIT=1
4809 ;;
4810 IA64) TARGET_HAS_JIT=0
4811 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004812 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004813 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004814 Mips) TARGET_HAS_JIT=0
4815 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004816 PIC16) TARGET_HAS_JIT=0
4817 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004818 XCore) TARGET_HAS_JIT=0
4819 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004820 *) TARGET_HAS_JIT=0
4821 ;;
4822 esac
4823fi
4824
4825# Check whether --enable-doxygen was given.
4826if test "${enable_doxygen+set}" = set; then
4827 enableval=$enable_doxygen;
4828else
4829 enableval=default
4830fi
4831
4832case "$enableval" in
4833 yes) ENABLE_DOXYGEN=1
4834 ;;
4835 no) ENABLE_DOXYGEN=0
4836 ;;
4837 default) ENABLE_DOXYGEN=0
4838 ;;
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4842esac
4843
4844# Check whether --enable-threads was given.
4845if test "${enable_threads+set}" = set; then
4846 enableval=$enable_threads;
4847else
Reid Spencer65c5d752006-11-05 17:08:18 +00004848 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004849fi
4850
4851case "$enableval" in
4852 yes) ENABLE_THREADS=1
4853 ;;
4854 no) ENABLE_THREADS=0
4855 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004856 default) ENABLE_THREADS=1
4857 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
4861esac
4862
4863cat >>confdefs.h <<_ACEOF
4864#define ENABLE_THREADS $ENABLE_THREADS
4865_ACEOF
4866
4867
Reid Spencer89b0d992006-12-16 22:07:52 +00004868# Check whether --enable-pic was given.
4869if test "${enable_pic+set}" = set; then
4870 enableval=$enable_pic;
4871else
4872 enableval=default
4873fi
4874
4875case "$enableval" in
4876 yes) ENABLE_PIC=1
4877 ;;
4878 no) ENABLE_PIC=0
4879 ;;
4880 default) ENABLE_PIC=0
4881 ;;
4882 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884 { (exit 1); exit 1; }; } ;;
4885esac
4886
4887cat >>confdefs.h <<_ACEOF
4888#define ENABLE_PIC $ENABLE_PIC
4889_ACEOF
4890
4891
Reid Spencera773bd52006-08-04 18:18:08 +00004892TARGETS_TO_BUILD=""
4893# Check whether --enable-targets was given.
4894if test "${enable_targets+set}" = set; then
4895 enableval=$enable_targets;
4896else
4897 enableval=all
4898fi
4899
4900case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004901 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004902 host-only)
4903 case "$llvm_cv_target_arch" in
4904 x86) TARGETS_TO_BUILD="X86" ;;
4905 x86_64) TARGETS_TO_BUILD="X86" ;;
4906 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4907 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4908 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4909 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004910 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004911 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004912 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004913 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004914 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004915 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4916echo "$as_me: error: Can not set target to build" >&2;}
4917 { (exit 1); exit 1; }; } ;;
4918 esac
4919 ;;
4920 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4921 case "$a_target" in
4922 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4923 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4925 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4926 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4927 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004928 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004929 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004930 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004931 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004932 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004933 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4934 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004935 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004936 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4937echo "$as_me: error: Unrecognized target $a_target" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939 esac
4940 done
4941 ;;
4942esac
Reid Spencera773bd52006-08-04 18:18:08 +00004943TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4944
4945
Reid Spencer65c5d752006-11-05 17:08:18 +00004946# Check whether --enable-cbe-printf-a was given.
4947if test "${enable_cbe_printf_a+set}" = set; then
4948 enableval=$enable_cbe_printf_a;
4949else
4950 enableval=default
4951fi
4952
4953case "$enableval" in
4954 yes) ENABLE_CBE_PRINTF_A=1
4955 ;;
4956 no) ENABLE_CBE_PRINTF_A=0
4957 ;;
4958 default) ENABLE_CBE_PRINTF_A=1
4959 ;;
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4961echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4963esac
4964
4965cat >>confdefs.h <<_ACEOF
4966#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4967_ACEOF
4968
4969
Reid Spencera773bd52006-08-04 18:18:08 +00004970
4971# Check whether --with-llvmgccdir was given.
4972if test "${with_llvmgccdir+set}" = set; then
4973 withval=$with_llvmgccdir;
4974else
4975 withval=default
4976fi
4977
4978case "$withval" in
4979 default) WITH_LLVMGCCDIR=default ;;
4980 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4981 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4982echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4984esac
4985
4986
Devang Patel5d28b882007-12-04 22:54:47 +00004987# Check whether --with-llvmgcc was given.
4988if test "${with_llvmgcc+set}" = set; then
4989 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4990 WITH_LLVMGCCDIR=""
4991fi
4992
4993
4994
4995# Check whether --with-llvmgxx was given.
4996if test "${with_llvmgxx+set}" = set; then
4997 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4998 WITH_LLVMGCCDIR=""
4999fi
5000
5001
5002if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5003 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5004echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5005 { (exit 1); exit 1; }; };
5006fi
5007
5008if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5009 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5010echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5011 { (exit 1); exit 1; }; };
5012fi
5013
5014
Reid Spencera773bd52006-08-04 18:18:08 +00005015# Check whether --with-extra-options was given.
5016if test "${with_extra_options+set}" = set; then
5017 withval=$with_extra_options;
5018else
5019 withval=default
5020fi
5021
5022case "$withval" in
5023 default) EXTRA_OPTIONS= ;;
5024 *) EXTRA_OPTIONS=$withval ;;
5025esac
5026EXTRA_OPTIONS=$EXTRA_OPTIONS
5027
5028
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005029# Check whether --enable-bindings was given.
5030if test "${enable_bindings+set}" = set; then
5031 enableval=$enable_bindings;
5032else
5033 enableval=default
5034fi
5035
5036BINDINGS_TO_BUILD=""
5037case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005038 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005039 all ) BINDINGS_TO_BUILD="ocaml" ;;
5040 none | no) BINDINGS_TO_BUILD="" ;;
5041 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5042 case "$a_binding" in
5043 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5044 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5045echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5046 { (exit 1); exit 1; }; } ;;
5047 esac
5048 done
5049 ;;
5050esac
5051
Reid Spencera773bd52006-08-04 18:18:08 +00005052
Gordon Henriksenf0915682007-10-02 16:42:22 +00005053# Check whether --with-ocaml-libdir was given.
5054if test "${with_ocaml_libdir+set}" = set; then
5055 withval=$with_ocaml_libdir;
5056else
5057 withval=auto
5058fi
5059
5060case "$withval" in
5061 auto) with_ocaml_libdir="$withval" ;;
5062 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5063 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5064echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5065 { (exit 1); exit 1; }; } ;;
5066esac
5067
5068
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005069# Check whether --with-binutils-include was given.
5070if test "${with_binutils_include+set}" = set; then
5071 withval=$with_binutils_include;
5072else
5073 withval=default
5074fi
5075
5076case "$withval" in
5077 default) WITH_BINUTILS_INCDIR=default ;;
5078 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5079 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5080echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5081 { (exit 1); exit 1; }; } ;;
5082esac
5083if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5084 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5085
5086 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5087 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5088 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5089echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5090 { (exit 1); exit 1; }; };
5091 fi
5092fi
5093
5094
Reid Spencera773bd52006-08-04 18:18:08 +00005095ac_ext=c
5096ac_cpp='$CPP $CPPFLAGS'
5097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5101echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5102# On Suns, sometimes $CPP names a directory.
5103if test -n "$CPP" && test -d "$CPP"; then
5104 CPP=
5105fi
5106if test -z "$CPP"; then
5107 if test "${ac_cv_prog_CPP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 # Double quotes because CPP needs to be expanded
5111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5112 do
5113 ac_preproc_ok=false
5114for ac_c_preproc_warn_flag in '' yes
5115do
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
5120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h. */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h. */
5128#ifdef __STDC__
5129# include <limits.h>
5130#else
5131# include <assert.h>
5132#endif
5133 Syntax error
5134_ACEOF
5135if { (ac_try="$ac_cpp conftest.$ac_ext"
5136case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139esac
5140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5142 ac_status=$?
5143 grep -v '^ *+' conftest.er1 >conftest.err
5144 rm -f conftest.er1
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005147 (exit $ac_status); } >/dev/null; then
5148 if test -s conftest.err; then
5149 ac_cpp_err=$ac_c_preproc_warn_flag
5150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5151 else
5152 ac_cpp_err=
5153 fi
5154else
5155 ac_cpp_err=yes
5156fi
5157if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005158 :
5159else
5160 echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 # Broken: fails on valid input.
5164continue
5165fi
5166
5167rm -f conftest.err conftest.$ac_ext
5168
5169 # OK, works on sane cases. Now check whether nonexistent headers
5170 # can be detected and how.
5171 cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
5177#include <ac_nonexistent.h>
5178_ACEOF
5179if { (ac_try="$ac_cpp conftest.$ac_ext"
5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 ac_status=$?
5187 grep -v '^ *+' conftest.er1 >conftest.err
5188 rm -f conftest.er1
5189 cat conftest.err >&5
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005191 (exit $ac_status); } >/dev/null; then
5192 if test -s conftest.err; then
5193 ac_cpp_err=$ac_c_preproc_warn_flag
5194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5195 else
5196 ac_cpp_err=
5197 fi
5198else
5199 ac_cpp_err=yes
5200fi
5201if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005202 # Broken: success on invalid input.
5203continue
5204else
5205 echo "$as_me: failed program was:" >&5
5206sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 # Passes both tests.
5209ac_preproc_ok=:
5210break
5211fi
5212
5213rm -f conftest.err conftest.$ac_ext
5214
5215done
5216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5217rm -f conftest.err conftest.$ac_ext
5218if $ac_preproc_ok; then
5219 break
5220fi
5221
5222 done
5223 ac_cv_prog_CPP=$CPP
5224
5225fi
5226 CPP=$ac_cv_prog_CPP
5227else
5228 ac_cv_prog_CPP=$CPP
5229fi
5230{ echo "$as_me:$LINENO: result: $CPP" >&5
5231echo "${ECHO_T}$CPP" >&6; }
5232ac_preproc_ok=false
5233for ac_c_preproc_warn_flag in '' yes
5234do
5235 # Use a header file that comes with gcc, so configuring glibc
5236 # with a fresh cross-compiler works.
5237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5238 # <limits.h> exists even on freestanding compilers.
5239 # On the NeXT, cc -E runs the code through the compiler's parser,
5240 # not just through cpp. "Syntax error" is here to catch this case.
5241 cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247#ifdef __STDC__
5248# include <limits.h>
5249#else
5250# include <assert.h>
5251#endif
5252 Syntax error
5253_ACEOF
5254if { (ac_try="$ac_cpp conftest.$ac_ext"
5255case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258esac
5259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005266 (exit $ac_status); } >/dev/null; then
5267 if test -s conftest.err; then
5268 ac_cpp_err=$ac_c_preproc_warn_flag
5269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5270 else
5271 ac_cpp_err=
5272 fi
5273else
5274 ac_cpp_err=yes
5275fi
5276if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005277 :
5278else
5279 echo "$as_me: failed program was:" >&5
5280sed 's/^/| /' conftest.$ac_ext >&5
5281
5282 # Broken: fails on valid input.
5283continue
5284fi
5285
5286rm -f conftest.err conftest.$ac_ext
5287
5288 # OK, works on sane cases. Now check whether nonexistent headers
5289 # can be detected and how.
5290 cat >conftest.$ac_ext <<_ACEOF
5291/* confdefs.h. */
5292_ACEOF
5293cat confdefs.h >>conftest.$ac_ext
5294cat >>conftest.$ac_ext <<_ACEOF
5295/* end confdefs.h. */
5296#include <ac_nonexistent.h>
5297_ACEOF
5298if { (ac_try="$ac_cpp conftest.$ac_ext"
5299case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302esac
5303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005310 (exit $ac_status); } >/dev/null; then
5311 if test -s conftest.err; then
5312 ac_cpp_err=$ac_c_preproc_warn_flag
5313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5314 else
5315 ac_cpp_err=
5316 fi
5317else
5318 ac_cpp_err=yes
5319fi
5320if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005321 # Broken: success on invalid input.
5322continue
5323else
5324 echo "$as_me: failed program was:" >&5
5325sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 # Passes both tests.
5328ac_preproc_ok=:
5329break
5330fi
5331
5332rm -f conftest.err conftest.$ac_ext
5333
5334done
5335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5336rm -f conftest.err conftest.$ac_ext
5337if $ac_preproc_ok; then
5338 :
5339else
5340 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5341See \`config.log' for more details." >&5
5342echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5343See \`config.log' for more details." >&2;}
5344 { (exit 1); exit 1; }; }
5345fi
5346
5347ac_ext=c
5348ac_cpp='$CPP $CPPFLAGS'
5349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5351ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352
5353ac_ext=c
5354ac_cpp='$CPP $CPPFLAGS'
5355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5357ac_compiler_gnu=$ac_cv_c_compiler_gnu
5358if test -n "$ac_tool_prefix"; then
5359 for ac_prog in gcc
5360 do
5361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5362set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5365if test "${ac_cv_prog_CC+set}" = set; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC="$CC" # Let the user override the test.
5370else
5371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372for as_dir in $PATH
5373do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005377 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 +00005378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382done
5383done
5384IFS=$as_save_IFS
5385
5386fi
5387fi
5388CC=$ac_cv_prog_CC
5389if test -n "$CC"; then
5390 { echo "$as_me:$LINENO: result: $CC" >&5
5391echo "${ECHO_T}$CC" >&6; }
5392else
5393 { echo "$as_me:$LINENO: result: no" >&5
5394echo "${ECHO_T}no" >&6; }
5395fi
5396
5397
5398 test -n "$CC" && break
5399 done
5400fi
5401if test -z "$CC"; then
5402 ac_ct_CC=$CC
5403 for ac_prog in gcc
5404do
5405 # Extract the first word of "$ac_prog", so it can be a program name with args.
5406set dummy $ac_prog; ac_word=$2
5407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5409if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 if test -n "$ac_ct_CC"; then
5413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
5420 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005421 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 +00005422 ac_cv_prog_ac_ct_CC="$ac_prog"
5423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 break 2
5425 fi
5426done
5427done
5428IFS=$as_save_IFS
5429
5430fi
5431fi
5432ac_ct_CC=$ac_cv_prog_ac_ct_CC
5433if test -n "$ac_ct_CC"; then
5434 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5435echo "${ECHO_T}$ac_ct_CC" >&6; }
5436else
5437 { echo "$as_me:$LINENO: result: no" >&5
5438echo "${ECHO_T}no" >&6; }
5439fi
5440
5441
5442 test -n "$ac_ct_CC" && break
5443done
5444
5445 if test "x$ac_ct_CC" = x; then
5446 CC=""
5447 else
5448 case $cross_compiling:$ac_tool_warned in
5449yes:)
5450{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5451whose name does not start with the host triplet. If you think this
5452configuration is useful to you, please write to autoconf@gnu.org." >&5
5453echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5454whose name does not start with the host triplet. If you think this
5455configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5456ac_tool_warned=yes ;;
5457esac
5458 CC=$ac_ct_CC
5459 fi
5460fi
5461
5462
5463test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5464See \`config.log' for more details." >&5
5465echo "$as_me: error: no acceptable C compiler found in \$PATH
5466See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5468
5469# Provide some information about the compiler.
5470echo "$as_me:$LINENO: checking for C compiler version" >&5
5471ac_compiler=`set X $ac_compile; echo $2`
5472{ (ac_try="$ac_compiler --version >&5"
5473case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476esac
5477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compiler --version >&5") 2>&5
5479 ac_status=$?
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); }
5482{ (ac_try="$ac_compiler -v >&5"
5483case "(($ac_try" in
5484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5486esac
5487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_compiler -v >&5") 2>&5
5489 ac_status=$?
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); }
5492{ (ac_try="$ac_compiler -V >&5"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compiler -V >&5") 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }
5502
5503{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5504echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5505if test "${ac_cv_c_compiler_gnu+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508 cat >conftest.$ac_ext <<_ACEOF
5509/* confdefs.h. */
5510_ACEOF
5511cat confdefs.h >>conftest.$ac_ext
5512cat >>conftest.$ac_ext <<_ACEOF
5513/* end confdefs.h. */
5514
5515int
5516main ()
5517{
5518#ifndef __GNUC__
5519 choke me
5520#endif
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 Lattnerf9eb2d82009-01-22 05:17:59 +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_compiler_gnu=yes
5561else
5562 echo "$as_me: failed program was:" >&5
5563sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 ac_compiler_gnu=no
5566fi
5567
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569ac_cv_c_compiler_gnu=$ac_compiler_gnu
5570
5571fi
5572{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5573echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5574GCC=`test $ac_compiler_gnu = yes && echo yes`
5575ac_test_CFLAGS=${CFLAGS+set}
5576ac_save_CFLAGS=$CFLAGS
5577{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5578echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5579if test "${ac_cv_prog_cc_g+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 ac_save_c_werror_flag=$ac_c_werror_flag
5583 ac_c_werror_flag=yes
5584 ac_cv_prog_cc_g=no
5585 CFLAGS="-g"
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592
5593int
5594main ()
5595{
5596
5597 ;
5598 return 0;
5599}
5600_ACEOF
5601rm -f conftest.$ac_objext
5602if { (ac_try="$ac_compile"
5603case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005614 (exit $ac_status); } &&
5615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5616 { (case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_try") 2>&5
5622 ac_status=$?
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; } &&
5625 { ac_try='test -s conftest.$ac_objext'
5626 { (case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
5630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_try") 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005635 ac_cv_prog_cc_g=yes
5636else
5637 echo "$as_me: failed program was:" >&5
5638sed 's/^/| /' conftest.$ac_ext >&5
5639
5640 CFLAGS=""
5641 cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */
5647
5648int
5649main ()
5650{
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext
5657if { (ac_try="$ac_compile"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5671 { (case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674esac
5675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_try") 2>&5
5677 ac_status=$?
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); }; } &&
5680 { ac_try='test -s conftest.$ac_objext'
5681 { (case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_try") 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005690 :
5691else
5692 echo "$as_me: failed program was:" >&5
5693sed 's/^/| /' conftest.$ac_ext >&5
5694
5695 ac_c_werror_flag=$ac_save_c_werror_flag
5696 CFLAGS="-g"
5697 cat >conftest.$ac_ext <<_ACEOF
5698/* confdefs.h. */
5699_ACEOF
5700cat confdefs.h >>conftest.$ac_ext
5701cat >>conftest.$ac_ext <<_ACEOF
5702/* end confdefs.h. */
5703
5704int
5705main ()
5706{
5707
5708 ;
5709 return 0;
5710}
5711_ACEOF
5712rm -f conftest.$ac_objext
5713if { (ac_try="$ac_compile"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5720 ac_status=$?
5721 grep -v '^ *+' conftest.er1 >conftest.err
5722 rm -f conftest.er1
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005725 (exit $ac_status); } &&
5726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5727 { (case "(($ac_try" in
5728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5729 *) ac_try_echo=$ac_try;;
5730esac
5731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5732 (eval "$ac_try") 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest.$ac_objext'
5737 { (case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_try") 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005746 ac_cv_prog_cc_g=yes
5747else
5748 echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751
5752fi
5753
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755fi
5756
5757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758fi
5759
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 ac_c_werror_flag=$ac_save_c_werror_flag
5762fi
5763{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5764echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5765if test "$ac_test_CFLAGS" = set; then
5766 CFLAGS=$ac_save_CFLAGS
5767elif test $ac_cv_prog_cc_g = yes; then
5768 if test "$GCC" = yes; then
5769 CFLAGS="-g -O2"
5770 else
5771 CFLAGS="-g"
5772 fi
5773else
5774 if test "$GCC" = yes; then
5775 CFLAGS="-O2"
5776 else
5777 CFLAGS=
5778 fi
5779fi
5780{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5781echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5782if test "${ac_cv_prog_cc_c89+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784else
5785 ac_cv_prog_cc_c89=no
5786ac_save_CC=$CC
5787cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793#include <stdarg.h>
5794#include <stdio.h>
5795#include <sys/types.h>
5796#include <sys/stat.h>
5797/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5798struct buf { int x; };
5799FILE * (*rcsopen) (struct buf *, struct stat *, int);
5800static char *e (p, i)
5801 char **p;
5802 int i;
5803{
5804 return p[i];
5805}
5806static char *f (char * (*g) (char **, int), char **p, ...)
5807{
5808 char *s;
5809 va_list v;
5810 va_start (v,p);
5811 s = g (p, va_arg (v,int));
5812 va_end (v);
5813 return s;
5814}
5815
5816/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5817 function prototypes and stuff, but not '\xHH' hex character constants.
5818 These don't provoke an error unfortunately, instead are silently treated
5819 as 'x'. The following induces an error, until -std is added to get
5820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5821 array size at least. It's necessary to write '\x00'==0 to get something
5822 that's true only with -std. */
5823int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5824
5825/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5826 inside strings and character constants. */
5827#define FOO(x) 'x'
5828int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5829
5830int test (int i, double x);
5831struct s1 {int (*f) (int a);};
5832struct s2 {int (*f) (double a);};
5833int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5834int argc;
5835char **argv;
5836int
5837main ()
5838{
5839return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5846do
5847 CC="$ac_save_CC $ac_arg"
5848 rm -f conftest.$ac_objext
5849if { (ac_try="$ac_compile"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005861 (exit $ac_status); } &&
5862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5863 { (case "(($ac_try" in
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5866esac
5867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_try") 2>&5
5869 ac_status=$?
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); }; } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876esac
5877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_try") 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005882 ac_cv_prog_cc_c89=$ac_arg
5883else
5884 echo "$as_me: failed program was:" >&5
5885sed 's/^/| /' conftest.$ac_ext >&5
5886
5887
5888fi
5889
5890rm -f core conftest.err conftest.$ac_objext
5891 test "x$ac_cv_prog_cc_c89" != "xno" && break
5892done
5893rm -f conftest.$ac_ext
5894CC=$ac_save_CC
5895
5896fi
5897# AC_CACHE_VAL
5898case "x$ac_cv_prog_cc_c89" in
5899 x)
5900 { echo "$as_me:$LINENO: result: none needed" >&5
5901echo "${ECHO_T}none needed" >&6; } ;;
5902 xno)
5903 { echo "$as_me:$LINENO: result: unsupported" >&5
5904echo "${ECHO_T}unsupported" >&6; } ;;
5905 *)
5906 CC="$CC $ac_cv_prog_cc_c89"
5907 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5908echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5909esac
5910
5911
5912ac_ext=c
5913ac_cpp='$CPP $CPPFLAGS'
5914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
5918ac_ext=cpp
5919ac_cpp='$CXXCPP $CPPFLAGS'
5920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5923if test -z "$CXX"; then
5924 if test -n "$CCC"; then
5925 CXX=$CCC
5926 else
5927 if test -n "$ac_tool_prefix"; then
5928 for ac_prog in g++
5929 do
5930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5932{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934if test "${ac_cv_prog_CXX+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 if test -n "$CXX"; then
5938 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5939else
5940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH
5942do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005946 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 +00005947 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951done
5952done
5953IFS=$as_save_IFS
5954
5955fi
5956fi
5957CXX=$ac_cv_prog_CXX
5958if test -n "$CXX"; then
5959 { echo "$as_me:$LINENO: result: $CXX" >&5
5960echo "${ECHO_T}$CXX" >&6; }
5961else
5962 { echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6; }
5964fi
5965
5966
5967 test -n "$CXX" && break
5968 done
5969fi
5970if test -z "$CXX"; then
5971 ac_ct_CXX=$CXX
5972 for ac_prog in g++
5973do
5974 # Extract the first word of "$ac_prog", so it can be a program name with args.
5975set dummy $ac_prog; ac_word=$2
5976{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5978if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5980else
5981 if test -n "$ac_ct_CXX"; then
5982 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5983else
5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985for as_dir in $PATH
5986do
5987 IFS=$as_save_IFS
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005990 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 +00005991 ac_cv_prog_ac_ct_CXX="$ac_prog"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 break 2
5994 fi
5995done
5996done
5997IFS=$as_save_IFS
5998
5999fi
6000fi
6001ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6002if test -n "$ac_ct_CXX"; then
6003 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6004echo "${ECHO_T}$ac_ct_CXX" >&6; }
6005else
6006 { echo "$as_me:$LINENO: result: no" >&5
6007echo "${ECHO_T}no" >&6; }
6008fi
6009
6010
6011 test -n "$ac_ct_CXX" && break
6012done
6013
6014 if test "x$ac_ct_CXX" = x; then
6015 CXX="g++"
6016 else
6017 case $cross_compiling:$ac_tool_warned in
6018yes:)
6019{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6020whose name does not start with the host triplet. If you think this
6021configuration is useful to you, please write to autoconf@gnu.org." >&5
6022echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6023whose name does not start with the host triplet. If you think this
6024configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6025ac_tool_warned=yes ;;
6026esac
6027 CXX=$ac_ct_CXX
6028 fi
6029fi
6030
6031 fi
6032fi
6033# Provide some information about the compiler.
6034echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6035ac_compiler=`set X $ac_compile; echo $2`
6036{ (ac_try="$ac_compiler --version >&5"
6037case "(($ac_try" in
6038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6039 *) ac_try_echo=$ac_try;;
6040esac
6041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compiler --version >&5") 2>&5
6043 ac_status=$?
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); }
6046{ (ac_try="$ac_compiler -v >&5"
6047case "(($ac_try" in
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6050esac
6051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compiler -v >&5") 2>&5
6053 ac_status=$?
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); }
6056{ (ac_try="$ac_compiler -V >&5"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compiler -V >&5") 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }
6066
6067{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6068echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6069if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072 cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h. */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h. */
6078
6079int
6080main ()
6081{
6082#ifndef __GNUC__
6083 choke me
6084#endif
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 Lattnerf9eb2d82009-01-22 05:17:59 +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_compiler_gnu=yes
6125else
6126 echo "$as_me: failed program was:" >&5
6127sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ac_compiler_gnu=no
6130fi
6131
6132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6134
6135fi
6136{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6137echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6138GXX=`test $ac_compiler_gnu = yes && echo yes`
6139ac_test_CXXFLAGS=${CXXFLAGS+set}
6140ac_save_CXXFLAGS=$CXXFLAGS
6141{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6142echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6143if test "${ac_cv_prog_cxx_g+set}" = set; then
6144 echo $ECHO_N "(cached) $ECHO_C" >&6
6145else
6146 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6147 ac_cxx_werror_flag=yes
6148 ac_cv_prog_cxx_g=no
6149 CXXFLAGS="-g"
6150 cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156
6157int
6158main ()
6159{
6160
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext
6166if { (ac_try="$ac_compile"
6167case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_compile") 2>conftest.er1
6173 ac_status=$?
6174 grep -v '^ *+' conftest.er1 >conftest.err
6175 rm -f conftest.er1
6176 cat conftest.err >&5
6177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006178 (exit $ac_status); } &&
6179 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6180 { (case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_try") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; } &&
6189 { ac_try='test -s conftest.$ac_objext'
6190 { (case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193esac
6194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_try") 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006199 ac_cv_prog_cxx_g=yes
6200else
6201 echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 CXXFLAGS=""
6205 cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h. */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h. */
6211
6212int
6213main ()
6214{
6215
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220rm -f conftest.$ac_objext
6221if { (ac_try="$ac_compile"
6222case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_compile") 2>conftest.er1
6228 ac_status=$?
6229 grep -v '^ *+' conftest.er1 >conftest.err
6230 rm -f conftest.er1
6231 cat conftest.err >&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006233 (exit $ac_status); } &&
6234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6235 { (case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$ac_try") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
6245 { (case "(($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_try") 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006254 :
6255else
6256 echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6260 CXXFLAGS="-g"
6261 cat >conftest.$ac_ext <<_ACEOF
6262/* confdefs.h. */
6263_ACEOF
6264cat confdefs.h >>conftest.$ac_ext
6265cat >>conftest.$ac_ext <<_ACEOF
6266/* end confdefs.h. */
6267
6268int
6269main ()
6270{
6271
6272 ;
6273 return 0;
6274}
6275_ACEOF
6276rm -f conftest.$ac_objext
6277if { (ac_try="$ac_compile"
6278case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6284 ac_status=$?
6285 grep -v '^ *+' conftest.er1 >conftest.err
6286 rm -f conftest.er1
6287 cat conftest.err >&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006289 (exit $ac_status); } &&
6290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6291 { (case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294esac
6295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_try") 2>&5
6297 ac_status=$?
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; } &&
6300 { ac_try='test -s conftest.$ac_objext'
6301 { (case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_try") 2>&5
6307 ac_status=$?
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006310 ac_cv_prog_cxx_g=yes
6311else
6312 echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315
6316fi
6317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322fi
6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6326fi
6327{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6328echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6329if test "$ac_test_CXXFLAGS" = set; then
6330 CXXFLAGS=$ac_save_CXXFLAGS
6331elif test $ac_cv_prog_cxx_g = yes; then
6332 if test "$GXX" = yes; then
6333 CXXFLAGS="-g -O2"
6334 else
6335 CXXFLAGS="-g"
6336 fi
6337else
6338 if test "$GXX" = yes; then
6339 CXXFLAGS="-O2"
6340 else
6341 CXXFLAGS=
6342 fi
6343fi
6344ac_ext=c
6345ac_cpp='$CPP $CPPFLAGS'
6346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6348ac_compiler_gnu=$ac_cv_c_compiler_gnu
6349
6350{ echo "$as_me:$LINENO: checking " >&5
6351echo $ECHO_N "checking ... $ECHO_C" >&6; }
6352if test "${ac_cv_has_flex+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6354else
6355 for ac_prog in flex lex
6356do
6357 # Extract the first word of "$ac_prog", so it can be a program name with args.
6358set dummy $ac_prog; ac_word=$2
6359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6361if test "${ac_cv_prog_LEX+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6363else
6364 if test -n "$LEX"; then
6365 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6366else
6367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368for as_dir in $PATH
6369do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006373 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 +00006374 ac_cv_prog_LEX="$ac_prog"
6375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378done
6379done
6380IFS=$as_save_IFS
6381
6382fi
6383fi
6384LEX=$ac_cv_prog_LEX
6385if test -n "$LEX"; then
6386 { echo "$as_me:$LINENO: result: $LEX" >&5
6387echo "${ECHO_T}$LEX" >&6; }
6388else
6389 { echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6; }
6391fi
6392
6393
6394 test -n "$LEX" && break
6395done
6396test -n "$LEX" || LEX=":"
6397
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006398if test -z "$LEXLIB"
6399then
6400 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6401echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6402if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405 ac_check_lib_save_LIBS=$LIBS
6406LIBS="-lfl $LIBS"
6407cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413
6414/* Override any GCC internal prototype to avoid an error.
6415 Use char because int might match the return type of a GCC
6416 builtin and then its argument prototype would still apply. */
6417#ifdef __cplusplus
6418extern "C"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006419#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006420char yywrap ();
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006421int
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006422main ()
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006423{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006424return yywrap ();
6425 ;
6426 return 0;
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006427}
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006428_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006429rm -f conftest.$ac_objext conftest$ac_exeext
6430if { (ac_try="$ac_link"
6431case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434esac
6435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_link") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } &&
6443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6444 { (case "(($ac_try" in
6445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6446 *) ac_try_echo=$ac_try;;
6447esac
6448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6449 (eval "$ac_try") 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; } &&
6453 { ac_try='test -s conftest$ac_exeext'
6454 { (case "(($ac_try" in
6455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456 *) ac_try_echo=$ac_try;;
6457esac
6458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_try") 2>&5
6460 ac_status=$?
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); }; }; then
6463 ac_cv_lib_fl_yywrap=yes
6464else
6465 echo "$as_me: failed program was:" >&5
6466sed 's/^/| /' conftest.$ac_ext >&5
6467
6468 ac_cv_lib_fl_yywrap=no
6469fi
6470
6471rm -f core conftest.err conftest.$ac_objext \
6472 conftest$ac_exeext conftest.$ac_ext
6473LIBS=$ac_check_lib_save_LIBS
6474fi
6475{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6476echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6477if test $ac_cv_lib_fl_yywrap = yes; then
6478 LEXLIB="-lfl"
6479else
6480 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6481echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6482if test "${ac_cv_lib_l_yywrap+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6484else
6485 ac_check_lib_save_LIBS=$LIBS
6486LIBS="-ll $LIBS"
6487cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493
6494/* Override any GCC internal prototype to avoid an error.
6495 Use char because int might match the return type of a GCC
6496 builtin and then its argument prototype would still apply. */
6497#ifdef __cplusplus
6498extern "C"
6499#endif
6500char yywrap ();
6501int
6502main ()
6503{
6504return yywrap ();
6505 ;
6506 return 0;
6507}
6508_ACEOF
6509rm -f conftest.$ac_objext conftest$ac_exeext
6510if { (ac_try="$ac_link"
6511case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
6515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_link") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6524 { (case "(($ac_try" in
6525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6527esac
6528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_try") 2>&5
6530 ac_status=$?
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); }; } &&
6533 { ac_try='test -s conftest$ac_exeext'
6534 { (case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537esac
6538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_try") 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 ac_cv_lib_l_yywrap=yes
6544else
6545 echo "$as_me: failed program was:" >&5
6546sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 ac_cv_lib_l_yywrap=no
6549fi
6550
6551rm -f core conftest.err conftest.$ac_objext \
6552 conftest$ac_exeext conftest.$ac_ext
6553LIBS=$ac_check_lib_save_LIBS
6554fi
6555{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6556echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6557if test $ac_cv_lib_l_yywrap = yes; then
6558 LEXLIB="-ll"
6559fi
6560
6561fi
6562
6563fi
6564
6565if test "x$LEX" != "x:"; then
6566 { echo "$as_me:$LINENO: checking lex output file root" >&5
6567echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6568if test "${ac_cv_prog_lex_root+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 # The minimal lex program is just a single line: %%. But some broken lexes
6572# (Solaris, I think it was) want two %% lines, so accommodate them.
6573cat >conftest.l <<_ACEOF
6574%%
6575%%
6576_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006577{ (ac_try="$LEX conftest.l"
6578case "(($ac_try" in
6579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580 *) ac_try_echo=$ac_try;;
6581esac
6582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583 (eval "$LEX conftest.l") 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }
6587if test -f lex.yy.c; then
6588 ac_cv_prog_lex_root=lex.yy
6589elif test -f lexyy.c; then
6590 ac_cv_prog_lex_root=lexyy
6591else
6592 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6593echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6594 { (exit 1); exit 1; }; }
6595fi
6596fi
6597{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6598echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006599rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006600LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6601
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006602{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6603echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6604if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6606else
6607 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006608# default is implementation-dependent. Figure out which it is, since
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006609# not all implementations provide the %pointer and %array declarations.
6610ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006611echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006612ac_save_LIBS=$LIBS
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006613LIBS="$LIBS $LEXLIB"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006614cat >conftest.$ac_ext <<_ACEOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006615`cat $LEX_OUTPUT_ROOT.c`
6616_ACEOF
6617rm -f conftest.$ac_objext conftest$ac_exeext
6618if { (ac_try="$ac_link"
6619case "(($ac_try" in
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622esac
6623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006624 (eval "$ac_link") 2>conftest.er1
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006625 ac_status=$?
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006630 (exit $ac_status); } &&
6631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6632 { (case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635esac
6636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_try") 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (case "(($ac_try" in
6643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6645esac
6646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_try") 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006651 ac_cv_prog_lex_yytext_pointer=yes
6652else
6653 echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656
6657fi
6658
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006659rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006660 conftest$ac_exeext conftest.$ac_ext
6661LIBS=$ac_save_LIBS
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006662rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006663
6664fi
6665{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6666echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6667if test $ac_cv_prog_lex_yytext_pointer = yes; then
6668
6669cat >>confdefs.h <<\_ACEOF
6670#define YYTEXT_POINTER 1
6671_ACEOF
6672
6673fi
6674
6675fi
6676
6677fi
6678{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6679echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6680if test "$LEX" != "flex"; then
6681 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6682echo "$as_me: error: flex not found but required" >&2;}
6683 { (exit 1); exit 1; }; }
6684else
6685 FLEX=flex
6686
6687fi
6688
6689{ echo "$as_me:$LINENO: checking " >&5
6690echo $ECHO_N "checking ... $ECHO_C" >&6; }
6691if test "${llvm_cv_has_bison+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 for ac_prog in 'bison -y' byacc
6695do
6696 # Extract the first word of "$ac_prog", so it can be a program name with args.
6697set dummy $ac_prog; 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_prog_YACC+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6702else
6703 if test -n "$YACC"; then
6704 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6705else
6706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707for as_dir in $PATH
6708do
6709 IFS=$as_save_IFS
6710 test -z "$as_dir" && as_dir=.
6711 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006712 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 +00006713 ac_cv_prog_YACC="$ac_prog"
6714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6715 break 2
6716 fi
6717done
6718done
6719IFS=$as_save_IFS
6720
6721fi
6722fi
6723YACC=$ac_cv_prog_YACC
6724if test -n "$YACC"; then
6725 { echo "$as_me:$LINENO: result: $YACC" >&5
6726echo "${ECHO_T}$YACC" >&6; }
6727else
6728 { echo "$as_me:$LINENO: result: no" >&5
6729echo "${ECHO_T}no" >&6; }
6730fi
6731
6732
6733 test -n "$YACC" && break
6734done
6735test -n "$YACC" || YACC="yacc"
6736
6737fi
6738{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6739echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6740if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006741
6742 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6743echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006744else
6745 BISON=bison
6746
6747fi
6748
6749{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6750echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6751if test "${lt_cv_path_NM+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6753else
6754 if test -n "$NM"; then
6755 # Let the user override the test.
6756 lt_cv_path_NM="$NM"
6757else
6758 lt_nm_to_check="${ac_tool_prefix}nm"
6759 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6760 lt_nm_to_check="$lt_nm_to_check nm"
6761 fi
6762 for lt_tmp_nm in $lt_nm_to_check; do
6763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6764 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6765 IFS="$lt_save_ifs"
6766 test -z "$ac_dir" && ac_dir=.
6767 tmp_nm="$ac_dir/$lt_tmp_nm"
6768 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6769 # Check to see if the nm accepts a BSD-compat flag.
6770 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6771 # nm: unknown option "B" ignored
6772 # Tru64's nm complains that /dev/null is an invalid object file
6773 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6774 */dev/null* | *'Invalid file or object type'*)
6775 lt_cv_path_NM="$tmp_nm -B"
6776 break
6777 ;;
6778 *)
6779 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6780 */dev/null*)
6781 lt_cv_path_NM="$tmp_nm -p"
6782 break
6783 ;;
6784 *)
6785 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6786 continue # so that we can try to find one that supports BSD flags
6787 ;;
6788 esac
6789 ;;
6790 esac
6791 fi
6792 done
6793 IFS="$lt_save_ifs"
6794 done
6795 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6796fi
6797fi
6798{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6799echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6800NM="$lt_cv_path_NM"
6801
6802
6803
6804{ echo "$as_me:$LINENO: checking for GNU make" >&5
6805echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6806if test "${llvm_cv_gnu_make_command+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809 llvm_cv_gnu_make_command=''
6810 for a in "$MAKE" make gmake gnumake ; do
6811 if test -z "$a" ; then continue ; fi ;
6812 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6813 then
6814 llvm_cv_gnu_make_command=$a ;
6815 break;
6816 fi
6817 done
6818fi
6819{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6820echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6821 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6822 ifGNUmake='' ;
6823 else
6824 ifGNUmake='#' ;
6825 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6826echo "${ECHO_T}\"Not found\"" >&6; };
6827 fi
6828
6829
6830{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6831echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6832LN_S=$as_ln_s
6833if test "$LN_S" = "ln -s"; then
6834 { echo "$as_me:$LINENO: result: yes" >&5
6835echo "${ECHO_T}yes" >&6; }
6836else
6837 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6838echo "${ECHO_T}no, using $LN_S" >&6; }
6839fi
6840
6841# Extract the first word of "cmp", so it can be a program name with args.
6842set dummy cmp; ac_word=$2
6843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845if test "${ac_cv_path_CMP+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 case $CMP in
6849 [\\/]* | ?:[\\/]*)
6850 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6851 ;;
6852 *)
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006859 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 +00006860 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
6866IFS=$as_save_IFS
6867
6868 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6869 ;;
6870esac
6871fi
6872CMP=$ac_cv_path_CMP
6873if test -n "$CMP"; then
6874 { echo "$as_me:$LINENO: result: $CMP" >&5
6875echo "${ECHO_T}$CMP" >&6; }
6876else
6877 { echo "$as_me:$LINENO: result: no" >&5
6878echo "${ECHO_T}no" >&6; }
6879fi
6880
6881
6882# Extract the first word of "cp", so it can be a program name with args.
6883set dummy cp; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_CP+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $CP in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006900 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 +00006901 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6910 ;;
6911esac
6912fi
6913CP=$ac_cv_path_CP
6914if test -n "$CP"; then
6915 { echo "$as_me:$LINENO: result: $CP" >&5
6916echo "${ECHO_T}$CP" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923# Extract the first word of "date", so it can be a program name with args.
6924set dummy date; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_DATE+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $DATE in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006941 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 +00006942 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6951 ;;
6952esac
6953fi
6954DATE=$ac_cv_path_DATE
6955if test -n "$DATE"; then
6956 { echo "$as_me:$LINENO: result: $DATE" >&5
6957echo "${ECHO_T}$DATE" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "find", so it can be a program name with args.
6965set dummy find; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_FIND+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $FIND in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006982 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 +00006983 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6992 ;;
6993esac
6994fi
6995FIND=$ac_cv_path_FIND
6996if test -n "$FIND"; then
6997 { echo "$as_me:$LINENO: result: $FIND" >&5
6998echo "${ECHO_T}$FIND" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "grep", so it can be a program name with args.
7006set dummy grep; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_GREP+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $GREP in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007023 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 +00007024 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7033 ;;
7034esac
7035fi
7036GREP=$ac_cv_path_GREP
7037if test -n "$GREP"; then
7038 { echo "$as_me:$LINENO: result: $GREP" >&5
7039echo "${ECHO_T}$GREP" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046# Extract the first word of "mkdir", so it can be a program name with args.
7047set dummy mkdir; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_MKDIR+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $MKDIR in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007064 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 +00007065 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7074 ;;
7075esac
7076fi
7077MKDIR=$ac_cv_path_MKDIR
7078if test -n "$MKDIR"; then
7079 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7080echo "${ECHO_T}$MKDIR" >&6; }
7081else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086
7087# Extract the first word of "mv", so it can be a program name with args.
7088set dummy mv; ac_word=$2
7089{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7091if test "${ac_cv_path_MV+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093else
7094 case $MV in
7095 [\\/]* | ?:[\\/]*)
7096 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7097 ;;
7098 *)
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100for as_dir in $PATH
7101do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007105 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 +00007106 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110done
7111done
7112IFS=$as_save_IFS
7113
7114 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7115 ;;
7116esac
7117fi
7118MV=$ac_cv_path_MV
7119if test -n "$MV"; then
7120 { echo "$as_me:$LINENO: result: $MV" >&5
7121echo "${ECHO_T}$MV" >&6; }
7122else
7123 { echo "$as_me:$LINENO: result: no" >&5
7124echo "${ECHO_T}no" >&6; }
7125fi
7126
7127
7128if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7130set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7131{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7133if test "${ac_cv_prog_RANLIB+set}" = set; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135else
7136 if test -n "$RANLIB"; then
7137 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7138else
7139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140for as_dir in $PATH
7141do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007145 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 +00007146 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150done
7151done
7152IFS=$as_save_IFS
7153
7154fi
7155fi
7156RANLIB=$ac_cv_prog_RANLIB
7157if test -n "$RANLIB"; then
7158 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7159echo "${ECHO_T}$RANLIB" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166fi
7167if test -z "$ac_cv_prog_RANLIB"; then
7168 ac_ct_RANLIB=$RANLIB
7169 # Extract the first word of "ranlib", so it can be a program name with args.
7170set dummy ranlib; ac_word=$2
7171{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7173if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7174 echo $ECHO_N "(cached) $ECHO_C" >&6
7175else
7176 if test -n "$ac_ct_RANLIB"; then
7177 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007185 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 +00007186 ac_cv_prog_ac_ct_RANLIB="ranlib"
7187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190done
7191done
7192IFS=$as_save_IFS
7193
7194fi
7195fi
7196ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7197if test -n "$ac_ct_RANLIB"; then
7198 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7199echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7200else
7201 { echo "$as_me:$LINENO: result: no" >&5
7202echo "${ECHO_T}no" >&6; }
7203fi
7204
7205 if test "x$ac_ct_RANLIB" = x; then
7206 RANLIB=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209yes:)
7210{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7211whose name does not start with the host triplet. If you think this
7212configuration is useful to you, please write to autoconf@gnu.org." >&5
7213echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7214whose name does not start with the host triplet. If you think this
7215configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7216ac_tool_warned=yes ;;
7217esac
7218 RANLIB=$ac_ct_RANLIB
7219 fi
7220else
7221 RANLIB="$ac_cv_prog_RANLIB"
7222fi
7223
7224# Extract the first word of "rm", so it can be a program name with args.
7225set dummy rm; ac_word=$2
7226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7228if test "${ac_cv_path_RM+set}" = set; then
7229 echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231 case $RM in
7232 [\\/]* | ?:[\\/]*)
7233 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7234 ;;
7235 *)
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007242 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 +00007243 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248done
7249IFS=$as_save_IFS
7250
7251 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7252 ;;
7253esac
7254fi
7255RM=$ac_cv_path_RM
7256if test -n "$RM"; then
7257 { echo "$as_me:$LINENO: result: $RM" >&5
7258echo "${ECHO_T}$RM" >&6; }
7259else
7260 { echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6; }
7262fi
7263
7264
7265# Extract the first word of "sed", so it can be a program name with args.
7266set dummy sed; ac_word=$2
7267{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269if test "${ac_cv_path_SED+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7271else
7272 case $SED in
7273 [\\/]* | ?:[\\/]*)
7274 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7275 ;;
7276 *)
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278for as_dir in $PATH
7279do
7280 IFS=$as_save_IFS
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007283 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 +00007284 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286 break 2
7287 fi
7288done
7289done
7290IFS=$as_save_IFS
7291
7292 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7293 ;;
7294esac
7295fi
7296SED=$ac_cv_path_SED
7297if test -n "$SED"; then
7298 { echo "$as_me:$LINENO: result: $SED" >&5
7299echo "${ECHO_T}$SED" >&6; }
7300else
7301 { echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6; }
7303fi
7304
7305
7306# Extract the first word of "tar", so it can be a program name with args.
7307set dummy tar; ac_word=$2
7308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310if test "${ac_cv_path_TAR+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 case $TAR in
7314 [\\/]* | ?:[\\/]*)
7315 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7316 ;;
7317 *)
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007324 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 +00007325 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330done
7331IFS=$as_save_IFS
7332
7333 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7334 ;;
7335esac
7336fi
7337TAR=$ac_cv_path_TAR
7338if test -n "$TAR"; then
7339 { echo "$as_me:$LINENO: result: $TAR" >&5
7340echo "${ECHO_T}$TAR" >&6; }
7341else
7342 { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
7344fi
7345
7346
7347# Extract the first word of "pwd", so it can be a program name with args.
7348set dummy pwd; ac_word=$2
7349{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7351if test "${ac_cv_path_BINPWD+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354 case $BINPWD in
7355 [\\/]* | ?:[\\/]*)
7356 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7357 ;;
7358 *)
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007365 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 +00007366 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7368 break 2
7369 fi
7370done
7371done
7372IFS=$as_save_IFS
7373
7374 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7375 ;;
7376esac
7377fi
7378BINPWD=$ac_cv_path_BINPWD
7379if test -n "$BINPWD"; then
7380 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7381echo "${ECHO_T}$BINPWD" >&6; }
7382else
7383 { echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6; }
7385fi
7386
7387
7388
7389# Extract the first word of "Graphviz", so it can be a program name with args.
7390set dummy Graphviz; ac_word=$2
7391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396 case $GRAPHVIZ in
7397 [\\/]* | ?:[\\/]*)
7398 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7399 ;;
7400 *)
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007407 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 +00007408 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414IFS=$as_save_IFS
7415
7416 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7417 ;;
7418esac
7419fi
7420GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7421if test -n "$GRAPHVIZ"; then
7422 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7423echo "${ECHO_T}$GRAPHVIZ" >&6; }
7424else
7425 { echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6; }
7427fi
7428
7429
7430if test "$GRAPHVIZ" != "echo Graphviz" ; then
7431
7432cat >>confdefs.h <<\_ACEOF
7433#define HAVE_GRAPHVIZ 1
7434_ACEOF
7435
Jeff Cohen28783c32007-01-12 18:22:38 +00007436 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007437 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7438 fi
7439
7440cat >>confdefs.h <<_ACEOF
7441#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7442_ACEOF
7443
7444fi
7445# Extract the first word of "dot", so it can be a program name with args.
7446set dummy dot; ac_word=$2
7447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449if test "${ac_cv_path_DOT+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452 case $DOT in
7453 [\\/]* | ?:[\\/]*)
7454 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7455 ;;
7456 *)
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007463 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 +00007464 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470IFS=$as_save_IFS
7471
7472 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7473 ;;
7474esac
7475fi
7476DOT=$ac_cv_path_DOT
7477if test -n "$DOT"; then
7478 { echo "$as_me:$LINENO: result: $DOT" >&5
7479echo "${ECHO_T}$DOT" >&6; }
7480else
7481 { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
7483fi
7484
7485
7486if test "$DOT" != "echo dot" ; then
7487
7488cat >>confdefs.h <<\_ACEOF
7489#define HAVE_DOT 1
7490_ACEOF
7491
Jeff Cohen28783c32007-01-12 18:22:38 +00007492 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007493 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7494 fi
7495
7496cat >>confdefs.h <<_ACEOF
7497#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7498_ACEOF
7499
7500fi
7501for ac_prog in gv gsview32
7502do
7503 # Extract the first word of "$ac_prog", so it can be a program name with args.
7504set dummy $ac_prog; ac_word=$2
7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507if test "${ac_cv_path_GV+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 case $GV in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7513 ;;
7514 *)
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007521 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 +00007522 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530 ;;
7531esac
7532fi
7533GV=$ac_cv_path_GV
7534if test -n "$GV"; then
7535 { echo "$as_me:$LINENO: result: $GV" >&5
7536echo "${ECHO_T}$GV" >&6; }
7537else
7538 { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
7540fi
7541
7542
7543 test -n "$GV" && break
7544done
7545test -n "$GV" || GV="echo gv"
7546
7547if test "$GV" != "echo gv" ; then
7548
7549cat >>confdefs.h <<\_ACEOF
7550#define HAVE_GV 1
7551_ACEOF
7552
Jeff Cohen28783c32007-01-12 18:22:38 +00007553 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007554 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7555 fi
7556
7557cat >>confdefs.h <<_ACEOF
7558#define LLVM_PATH_GV "$GV${EXEEXT}"
7559_ACEOF
7560
7561fi
7562# Extract the first word of "dotty", so it can be a program name with args.
7563set dummy dotty; ac_word=$2
7564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566if test "${ac_cv_path_DOTTY+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 case $DOTTY in
7570 [\\/]* | ?:[\\/]*)
7571 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7572 ;;
7573 *)
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575for as_dir in $PATH
7576do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007580 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 +00007581 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585done
7586done
7587IFS=$as_save_IFS
7588
7589 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7590 ;;
7591esac
7592fi
7593DOTTY=$ac_cv_path_DOTTY
7594if test -n "$DOTTY"; then
7595 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7596echo "${ECHO_T}$DOTTY" >&6; }
7597else
7598 { echo "$as_me:$LINENO: result: no" >&5
7599echo "${ECHO_T}no" >&6; }
7600fi
7601
7602
7603if test "$DOTTY" != "echo dotty" ; then
7604
7605cat >>confdefs.h <<\_ACEOF
7606#define HAVE_DOTTY 1
7607_ACEOF
7608
Jeff Cohen28783c32007-01-12 18:22:38 +00007609 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007610 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7611 fi
7612
7613cat >>confdefs.h <<_ACEOF
7614#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7615_ACEOF
7616
7617fi
7618
7619
7620# Extract the first word of "perl", so it can be a program name with args.
7621set dummy perl; ac_word=$2
7622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_PERL+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 case $PERL in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007638 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 +00007639 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645IFS=$as_save_IFS
7646
7647 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7648 ;;
7649esac
7650fi
7651PERL=$ac_cv_path_PERL
7652if test -n "$PERL"; then
7653 { echo "$as_me:$LINENO: result: $PERL" >&5
7654echo "${ECHO_T}$PERL" >&6; }
7655else
7656 { echo "$as_me:$LINENO: result: no" >&5
7657echo "${ECHO_T}no" >&6; }
7658fi
7659
7660
7661if test "$PERL" != "none"; then
7662 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7663echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7664 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7665 { echo "$as_me:$LINENO: result: yes" >&5
7666echo "${ECHO_T}yes" >&6; }
7667 else
7668 PERL=none
7669 { echo "$as_me:$LINENO: result: not found" >&5
7670echo "${ECHO_T}not found" >&6; }
7671 fi
7672fi
7673
7674
7675if test x"$PERL" = xnone; then
7676 HAVE_PERL=0
7677
Reid Spencer59807fa2007-05-17 18:11:03 +00007678 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7679echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7680 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007681else
7682 HAVE_PERL=1
7683
7684fi
7685
7686# Find a good install program. We prefer a C program (faster),
7687# so one script is as good as another. But avoid the broken or
7688# incompatible versions:
7689# SysV /etc/install, /usr/sbin/install
7690# SunOS /usr/etc/install
7691# IRIX /sbin/install
7692# AIX /bin/install
7693# AmigaOS /C/install, which installs bootblocks on floppy discs
7694# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7695# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7696# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7697# OS/2's system install, which has a completely different semantic
7698# ./install, which can be erroneously created by make from ./install.sh.
7699{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7700echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7701if test -z "$INSTALL"; then
7702if test "${ac_cv_path_install+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708 IFS=$as_save_IFS
7709 test -z "$as_dir" && as_dir=.
7710 # Account for people who put trailing slashes in PATH elements.
7711case $as_dir/ in
7712 ./ | .// | /cC/* | \
7713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7714 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7715 /usr/ucb/* ) ;;
7716 *)
7717 # OSF1 and SCO ODT 3.0 have their own names for install.
7718 # Don't use installbsd from OSF since it installs stuff as root
7719 # by default.
7720 for ac_prog in ginstall scoinst install; do
7721 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007722 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 +00007723 if test $ac_prog = install &&
7724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7725 # AIX install. It has an incompatible calling convention.
7726 :
7727 elif test $ac_prog = install &&
7728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7729 # program-specific install script used by HP pwplus--don't use.
7730 :
7731 else
7732 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7733 break 3
7734 fi
7735 fi
7736 done
7737 done
7738 ;;
7739esac
7740done
7741IFS=$as_save_IFS
7742
7743
7744fi
7745 if test "${ac_cv_path_install+set}" = set; then
7746 INSTALL=$ac_cv_path_install
7747 else
7748 # As a last resort, use the slow shell script. Don't cache a
7749 # value for INSTALL within a source directory, because that will
7750 # break other packages using the cache if that directory is
7751 # removed, or if the value is a relative name.
7752 INSTALL=$ac_install_sh
7753 fi
7754fi
7755{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7756echo "${ECHO_T}$INSTALL" >&6; }
7757
7758# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7759# It thinks the first close brace ends the variable substitution.
7760test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7761
7762test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7763
7764test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7765
7766
7767# Extract the first word of "bzip2", so it can be a program name with args.
7768set dummy bzip2; ac_word=$2
7769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771if test "${ac_cv_path_BZIP2+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 case $BZIP2 in
7775 [\\/]* | ?:[\\/]*)
7776 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7777 ;;
7778 *)
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007785 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 +00007786 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790done
7791done
7792IFS=$as_save_IFS
7793
Reid Spencera773bd52006-08-04 18:18:08 +00007794 ;;
7795esac
7796fi
7797BZIP2=$ac_cv_path_BZIP2
7798if test -n "$BZIP2"; then
7799 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7800echo "${ECHO_T}$BZIP2" >&6; }
7801else
7802 { echo "$as_me:$LINENO: result: no" >&5
7803echo "${ECHO_T}no" >&6; }
7804fi
7805
7806
7807# Extract the first word of "doxygen", so it can be a program name with args.
7808set dummy doxygen; ac_word=$2
7809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811if test "${ac_cv_path_DOXYGEN+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814 case $DOXYGEN in
7815 [\\/]* | ?:[\\/]*)
7816 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7817 ;;
7818 *)
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007825 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 +00007826 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831done
7832IFS=$as_save_IFS
7833
Reid Spencera773bd52006-08-04 18:18:08 +00007834 ;;
7835esac
7836fi
7837DOXYGEN=$ac_cv_path_DOXYGEN
7838if test -n "$DOXYGEN"; then
7839 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7840echo "${ECHO_T}$DOXYGEN" >&6; }
7841else
7842 { echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6; }
7844fi
7845
7846
Reid Spencera773bd52006-08-04 18:18:08 +00007847# Extract the first word of "groff", so it can be a program name with args.
7848set dummy groff; ac_word=$2
7849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851if test "${ac_cv_path_GROFF+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 case $GROFF in
7855 [\\/]* | ?:[\\/]*)
7856 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7857 ;;
7858 *)
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007865 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 +00007866 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870done
7871done
7872IFS=$as_save_IFS
7873
Reid Spencera773bd52006-08-04 18:18:08 +00007874 ;;
7875esac
7876fi
7877GROFF=$ac_cv_path_GROFF
7878if test -n "$GROFF"; then
7879 { echo "$as_me:$LINENO: result: $GROFF" >&5
7880echo "${ECHO_T}$GROFF" >&6; }
7881else
7882 { echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6; }
7884fi
7885
7886
7887# Extract the first word of "gzip", so it can be a program name with args.
7888set dummy gzip; ac_word=$2
7889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891if test "${ac_cv_path_GZIP+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 case $GZIP in
7895 [\\/]* | ?:[\\/]*)
7896 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7897 ;;
7898 *)
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007905 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 +00007906 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912IFS=$as_save_IFS
7913
Reid Spencera773bd52006-08-04 18:18:08 +00007914 ;;
7915esac
7916fi
7917GZIP=$ac_cv_path_GZIP
7918if test -n "$GZIP"; then
7919 { echo "$as_me:$LINENO: result: $GZIP" >&5
7920echo "${ECHO_T}$GZIP" >&6; }
7921else
7922 { echo "$as_me:$LINENO: result: no" >&5
7923echo "${ECHO_T}no" >&6; }
7924fi
7925
7926
7927# Extract the first word of "pod2html", so it can be a program name with args.
7928set dummy pod2html; ac_word=$2
7929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931if test "${ac_cv_path_POD2HTML+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933else
7934 case $POD2HTML in
7935 [\\/]* | ?:[\\/]*)
7936 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007945 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 +00007946 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951done
7952IFS=$as_save_IFS
7953
Reid Spencera773bd52006-08-04 18:18:08 +00007954 ;;
7955esac
7956fi
7957POD2HTML=$ac_cv_path_POD2HTML
7958if test -n "$POD2HTML"; then
7959 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7960echo "${ECHO_T}$POD2HTML" >&6; }
7961else
7962 { echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6; }
7964fi
7965
7966
7967# Extract the first word of "pod2man", so it can be a program name with args.
7968set dummy pod2man; ac_word=$2
7969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971if test "${ac_cv_path_POD2MAN+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 case $POD2MAN in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007985 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 +00007986 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990done
7991done
7992IFS=$as_save_IFS
7993
Reid Spencera773bd52006-08-04 18:18:08 +00007994 ;;
7995esac
7996fi
7997POD2MAN=$ac_cv_path_POD2MAN
7998if test -n "$POD2MAN"; then
7999 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8000echo "${ECHO_T}$POD2MAN" >&6; }
8001else
8002 { echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6; }
8004fi
8005
8006
8007# Extract the first word of "runtest", so it can be a program name with args.
8008set dummy runtest; ac_word=$2
8009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8011if test "${ac_cv_path_RUNTEST+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8013else
8014 case $RUNTEST in
8015 [\\/]* | ?:[\\/]*)
8016 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8017 ;;
8018 *)
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020for as_dir in $PATH
8021do
8022 IFS=$as_save_IFS
8023 test -z "$as_dir" && as_dir=.
8024 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008025 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 +00008026 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8028 break 2
8029 fi
8030done
8031done
8032IFS=$as_save_IFS
8033
Reid Spencera773bd52006-08-04 18:18:08 +00008034 ;;
8035esac
8036fi
8037RUNTEST=$ac_cv_path_RUNTEST
8038if test -n "$RUNTEST"; then
8039 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8040echo "${ECHO_T}$RUNTEST" >&6; }
8041else
8042 { echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6; }
8044fi
8045
8046
8047
8048no_itcl=true
8049{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8050echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8051
8052# Check whether --with-tclinclude was given.
8053if test "${with_tclinclude+set}" = set; then
8054 withval=$with_tclinclude; with_tclinclude=${withval}
8055else
8056 with_tclinclude=''
8057fi
8058
8059if test "${ac_cv_path_tclsh+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061else
8062
8063if test x"${with_tclinclude}" != x ; then
8064 if test -f ${with_tclinclude}/tclsh ; then
8065 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8066 elif test -f ${with_tclinclude}/src/tclsh ; then
8067 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8068 else
8069 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8070echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8071 { (exit 1); exit 1; }; }
8072 fi
8073fi
8074
8075if test x"${ac_cv_path_tclsh}" = x ; then
8076 { echo "$as_me:$LINENO: result: none" >&5
8077echo "${ECHO_T}none" >&6; }
8078 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
8079do
8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
8081set dummy $ac_prog; ac_word=$2
8082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8084if test "${ac_cv_path_TCLSH+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086else
8087 case $TCLSH in
8088 [\\/]* | ?:[\\/]*)
8089 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8090 ;;
8091 *)
8092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8093for as_dir in $PATH
8094do
8095 IFS=$as_save_IFS
8096 test -z "$as_dir" && as_dir=.
8097 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008098 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 +00008099 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 break 2
8102 fi
8103done
8104done
8105IFS=$as_save_IFS
8106
8107 ;;
8108esac
8109fi
8110TCLSH=$ac_cv_path_TCLSH
8111if test -n "$TCLSH"; then
8112 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8113echo "${ECHO_T}$TCLSH" >&6; }
8114else
8115 { echo "$as_me:$LINENO: result: no" >&5
8116echo "${ECHO_T}no" >&6; }
8117fi
8118
8119
8120 test -n "$TCLSH" && break
8121done
8122
8123 if test x"${TCLSH}" = x ; then
8124 ac_cv_path_tclsh='';
8125 else
8126 ac_cv_path_tclsh="${TCLSH}";
8127 fi
8128else
8129 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8130echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8131 TCLSH="${ac_cv_path_tclsh}"
8132
8133fi
8134
8135fi
8136
8137# Extract the first word of "zip", so it can be a program name with args.
8138set dummy zip; ac_word=$2
8139{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141if test "${ac_cv_path_ZIP+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 case $ZIP in
8145 [\\/]* | ?:[\\/]*)
8146 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8147 ;;
8148 *)
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150for as_dir in $PATH
8151do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008155 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 +00008156 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160done
8161done
8162IFS=$as_save_IFS
8163
Reid Spencera773bd52006-08-04 18:18:08 +00008164 ;;
8165esac
8166fi
8167ZIP=$ac_cv_path_ZIP
8168if test -n "$ZIP"; then
8169 { echo "$as_me:$LINENO: result: $ZIP" >&5
8170echo "${ECHO_T}$ZIP" >&6; }
8171else
8172 { echo "$as_me:$LINENO: result: no" >&5
8173echo "${ECHO_T}no" >&6; }
8174fi
8175
8176
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008177for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008178do
8179 # Extract the first word of "$ac_prog", so it can be a program name with args.
8180set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008181{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8183if test "${ac_cv_path_OCAMLC+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 case $OCAMLC in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8189 ;;
8190 *)
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192for as_dir in $PATH
8193do
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008197 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 +00008198 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8201 fi
8202done
8203done
8204IFS=$as_save_IFS
8205
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008206 ;;
8207esac
8208fi
8209OCAMLC=$ac_cv_path_OCAMLC
8210if test -n "$OCAMLC"; then
8211 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8212echo "${ECHO_T}$OCAMLC" >&6; }
8213else
8214 { echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6; }
8216fi
8217
8218
Gordon Henriksene7072162008-03-07 18:20:01 +00008219 test -n "$OCAMLC" && break
8220done
8221
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008222for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008223do
8224 # Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8228if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8230else
8231 case $OCAMLOPT in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8234 ;;
8235 *)
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008242 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 +00008243 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8246 fi
8247done
8248done
8249IFS=$as_save_IFS
8250
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008251 ;;
8252esac
8253fi
8254OCAMLOPT=$ac_cv_path_OCAMLOPT
8255if test -n "$OCAMLOPT"; then
8256 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8257echo "${ECHO_T}$OCAMLOPT" >&6; }
8258else
8259 { echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6; }
8261fi
8262
8263
Gordon Henriksene7072162008-03-07 18:20:01 +00008264 test -n "$OCAMLOPT" && break
8265done
8266
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008267for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008268do
8269 # Extract the first word of "$ac_prog", so it can be a program name with args.
8270set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8273if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276 case $OCAMLDEP in
8277 [\\/]* | ?:[\\/]*)
8278 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8279 ;;
8280 *)
8281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
8286 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008287 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 +00008288 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 break 2
8291 fi
8292done
8293done
8294IFS=$as_save_IFS
8295
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008296 ;;
8297esac
8298fi
8299OCAMLDEP=$ac_cv_path_OCAMLDEP
8300if test -n "$OCAMLDEP"; then
8301 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8302echo "${ECHO_T}$OCAMLDEP" >&6; }
8303else
8304 { echo "$as_me:$LINENO: result: no" >&5
8305echo "${ECHO_T}no" >&6; }
8306fi
8307
8308
Gordon Henriksene7072162008-03-07 18:20:01 +00008309 test -n "$OCAMLDEP" && break
8310done
8311
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008312for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008313do
8314 # Extract the first word of "$ac_prog", so it can be a program name with args.
8315set dummy $ac_prog; ac_word=$2
8316{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8318if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321 case $OCAMLDOC in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8324 ;;
8325 *)
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008333 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338done
8339IFS=$as_save_IFS
8340
8341 ;;
8342esac
8343fi
8344OCAMLDOC=$ac_cv_path_OCAMLDOC
8345if test -n "$OCAMLDOC"; then
8346 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8347echo "${ECHO_T}$OCAMLDOC" >&6; }
8348else
8349 { echo "$as_me:$LINENO: result: no" >&5
8350echo "${ECHO_T}no" >&6; }
8351fi
8352
8353
8354 test -n "$OCAMLDOC" && break
8355done
8356
Torok Edwincc499a42008-10-22 09:56:27 +00008357for ac_prog in gas as
8358do
8359 # Extract the first word of "$ac_prog", so it can be a program name with args.
8360set dummy $ac_prog; ac_word=$2
8361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8363if test "${ac_cv_path_GAS+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366 case $GAS in
8367 [\\/]* | ?:[\\/]*)
8368 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8369 ;;
8370 *)
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
8376 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008378 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 break 2
8381 fi
8382done
8383done
8384IFS=$as_save_IFS
8385
8386 ;;
8387esac
8388fi
8389GAS=$ac_cv_path_GAS
8390if test -n "$GAS"; then
8391 { echo "$as_me:$LINENO: result: $GAS" >&5
8392echo "${ECHO_T}$GAS" >&6; }
8393else
8394 { echo "$as_me:$LINENO: result: no" >&5
8395echo "${ECHO_T}no" >&6; }
8396fi
8397
8398
8399 test -n "$GAS" && break
8400done
8401
Reid Spencera773bd52006-08-04 18:18:08 +00008402
8403{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8404echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8405if test "${llvm_cv_link_use_r+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8407else
8408 ac_ext=c
8409ac_cpp='$CPP $CPPFLAGS'
8410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8412ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413
8414 oldcflags="$CFLAGS"
8415 CFLAGS="$CFLAGS -Wl,-R."
8416 cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h. */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h. */
8422
8423int
8424main ()
8425{
8426int main() { return 0; }
8427 ;
8428 return 0;
8429}
8430_ACEOF
8431rm -f conftest.$ac_objext conftest$ac_exeext
8432if { (ac_try="$ac_link"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_link") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest$ac_exeext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008465 llvm_cv_link_use_r=yes
8466else
8467 echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 llvm_cv_link_use_r=no
8471fi
8472
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008473rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008474 conftest$ac_exeext conftest.$ac_ext
8475 CFLAGS="$oldcflags"
8476 ac_ext=c
8477ac_cpp='$CPP $CPPFLAGS'
8478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481
8482
8483fi
8484{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8485echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8486if test "$llvm_cv_link_use_r" = yes ; then
8487
8488cat >>confdefs.h <<\_ACEOF
8489#define HAVE_LINK_R 1
8490_ACEOF
8491
8492 fi
8493
8494
8495
8496
8497{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8498echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8499if test "${ac_cv_c_const+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 cat >conftest.$ac_ext <<_ACEOF
8503/* confdefs.h. */
8504_ACEOF
8505cat confdefs.h >>conftest.$ac_ext
8506cat >>conftest.$ac_ext <<_ACEOF
8507/* end confdefs.h. */
8508
8509int
8510main ()
8511{
8512/* FIXME: Include the comments suggested by Paul. */
8513#ifndef __cplusplus
8514 /* Ultrix mips cc rejects this. */
8515 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008516 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008517 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008518 char const *const *ccp;
8519 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008520 /* NEC SVR4.0.2 mips cc rejects this. */
8521 struct point {int x, y;};
8522 static struct point const zero = {0,0};
8523 /* AIX XL C 1.02.0.0 rejects this.
8524 It does not let you subtract one const X* pointer from another in
8525 an arm of an if-expression whose if-part is not a constant
8526 expression */
8527 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008528 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008529 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008530 ++ccp;
8531 p = (char**) ccp;
8532 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008533 { /* SCO 3.2v4 cc rejects this. */
8534 char *t;
8535 char const *s = 0 ? (char *) 0 : (char const *) 0;
8536
8537 *t++ = 0;
8538 if (s) return 0;
8539 }
8540 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8541 int x[] = {25, 17};
8542 const int *foo = &x[0];
8543 ++foo;
8544 }
8545 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8546 typedef const int *iptr;
8547 iptr p = 0;
8548 ++p;
8549 }
8550 { /* AIX XL C 1.02.0.0 rejects this saying
8551 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8552 struct s { int j; const int *ap[3]; };
8553 struct s *b; b->j = 5;
8554 }
8555 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8556 const int foo = 10;
8557 if (!foo) return 0;
8558 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008559 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008560#endif
8561
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566rm -f conftest.$ac_objext
8567if { (ac_try="$ac_compile"
8568case "(($ac_try" in
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8571esac
8572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008579 (exit $ac_status); } &&
8580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8581 { (case "(($ac_try" in
8582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8583 *) ac_try_echo=$ac_try;;
8584esac
8585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8586 (eval "$ac_try") 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_try") 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008600 ac_cv_c_const=yes
8601else
8602 echo "$as_me: failed program was:" >&5
8603sed 's/^/| /' conftest.$ac_ext >&5
8604
8605 ac_cv_c_const=no
8606fi
8607
8608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8609fi
8610{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8611echo "${ECHO_T}$ac_cv_c_const" >&6; }
8612if test $ac_cv_c_const = no; then
8613
8614cat >>confdefs.h <<\_ACEOF
8615#define const
8616_ACEOF
8617
8618fi
8619
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008620
8621
8622
8623
8624
8625ac_header_dirent=no
8626for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8627 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008628{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8629echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632else
8633 cat >conftest.$ac_ext <<_ACEOF
8634/* confdefs.h. */
8635_ACEOF
8636cat confdefs.h >>conftest.$ac_ext
8637cat >>conftest.$ac_ext <<_ACEOF
8638/* end confdefs.h. */
8639#include <sys/types.h>
8640#include <$ac_hdr>
8641
8642int
8643main ()
8644{
8645if ((DIR *) 0)
8646return 0;
8647 ;
8648 return 0;
8649}
8650_ACEOF
8651rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008652if { (ac_try="$ac_compile"
8653case "(($ac_try" in
8654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655 *) ac_try_echo=$ac_try;;
8656esac
8657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008664 (exit $ac_status); } &&
8665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8669esac
8670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_try") 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008685 eval "$as_ac_Header=yes"
8686else
8687 echo "$as_me: failed program was:" >&5
8688sed 's/^/| /' conftest.$ac_ext >&5
8689
Reid Spencera773bd52006-08-04 18:18:08 +00008690 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008691fi
Reid Spencera773bd52006-08-04 18:18:08 +00008692
8693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008694fi
Reid Spencera773bd52006-08-04 18:18:08 +00008695ac_res=`eval echo '${'$as_ac_Header'}'`
8696 { echo "$as_me:$LINENO: result: $ac_res" >&5
8697echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698if test `eval echo '${'$as_ac_Header'}'` = yes; then
8699 cat >>confdefs.h <<_ACEOF
8700#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8701_ACEOF
8702
8703ac_header_dirent=$ac_hdr; break
8704fi
8705
8706done
8707# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8708if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008709 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8710echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711if test "${ac_cv_search_opendir+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008715cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
8721
Reid Spencera773bd52006-08-04 18:18:08 +00008722/* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008725#ifdef __cplusplus
8726extern "C"
8727#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008728char opendir ();
8729int
8730main ()
8731{
Reid Spencera773bd52006-08-04 18:18:08 +00008732return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008733 ;
8734 return 0;
8735}
8736_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008737for ac_lib in '' dir; do
8738 if test -z "$ac_lib"; then
8739 ac_res="none required"
8740 else
8741 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008743 fi
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745if { (ac_try="$ac_link"
8746case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8749esac
8750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008752 ac_status=$?
8753 grep -v '^ *+' conftest.er1 >conftest.err
8754 rm -f conftest.er1
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008757 (exit $ac_status); } &&
8758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759 { (case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_try") 2>&5
8765 ac_status=$?
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8772esac
8773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8775 ac_status=$?
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008778 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779else
8780 echo "$as_me: failed program was:" >&5
8781sed 's/^/| /' conftest.$ac_ext >&5
8782
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008783
8784fi
8785
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008786rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008787 conftest$ac_exeext
8788 if test "${ac_cv_search_opendir+set}" = set; then
8789 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008790fi
John Criswell7a73b802003-06-30 21:59:07 +00008791done
Reid Spencera773bd52006-08-04 18:18:08 +00008792if test "${ac_cv_search_opendir+set}" = set; then
8793 :
8794else
8795 ac_cv_search_opendir=no
8796fi
8797rm conftest.$ac_ext
8798LIBS=$ac_func_search_save_LIBS
8799fi
8800{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8801echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8802ac_res=$ac_cv_search_opendir
8803if test "$ac_res" != no; then
8804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008805
Reid Spencera773bd52006-08-04 18:18:08 +00008806fi
8807
8808else
8809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8810echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8811if test "${ac_cv_search_opendir+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813else
8814 ac_func_search_save_LIBS=$LIBS
8815cat >conftest.$ac_ext <<_ACEOF
8816/* confdefs.h. */
8817_ACEOF
8818cat confdefs.h >>conftest.$ac_ext
8819cat >>conftest.$ac_ext <<_ACEOF
8820/* end confdefs.h. */
8821
8822/* Override any GCC internal prototype to avoid an error.
8823 Use char because int might match the return type of a GCC
8824 builtin and then its argument prototype would still apply. */
8825#ifdef __cplusplus
8826extern "C"
8827#endif
8828char opendir ();
8829int
8830main ()
8831{
8832return opendir ();
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837for ac_lib in '' x; do
8838 if test -z "$ac_lib"; then
8839 ac_res="none required"
8840 else
8841 ac_res=-l$ac_lib
8842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8843 fi
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_link") 2>conftest.er1
8852 ac_status=$?
8853 grep -v '^ *+' conftest.er1 >conftest.err
8854 rm -f conftest.er1
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008857 (exit $ac_status); } &&
8858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8859 { (case "(($ac_try" in
8860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861 *) ac_try_echo=$ac_try;;
8862esac
8863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864 (eval "$ac_try") 2>&5
8865 ac_status=$?
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest$ac_exeext'
8869 { (case "(($ac_try" in
8870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871 *) ac_try_echo=$ac_try;;
8872esac
8873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874 (eval "$ac_try") 2>&5
8875 ac_status=$?
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008878 ac_cv_search_opendir=$ac_res
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
8883
8884fi
8885
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008886rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008887 conftest$ac_exeext
8888 if test "${ac_cv_search_opendir+set}" = set; then
8889 break
8890fi
8891done
8892if test "${ac_cv_search_opendir+set}" = set; then
8893 :
8894else
8895 ac_cv_search_opendir=no
8896fi
8897rm conftest.$ac_ext
8898LIBS=$ac_func_search_save_LIBS
8899fi
8900{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8901echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8902ac_res=$ac_cv_search_opendir
8903if test "$ac_res" != no; then
8904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8905
8906fi
8907
8908fi
John Criswell7a73b802003-06-30 21:59:07 +00008909
8910
8911for ac_header in dlfcn.h
8912do
8913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008918 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008919fi
Reid Spencera773bd52006-08-04 18:18:08 +00008920ac_res=`eval echo '${'$as_ac_Header'}'`
8921 { echo "$as_me:$LINENO: result: $ac_res" >&5
8922echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008923else
Brian Gaeke0a621332004-09-08 20:38:05 +00008924 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008925{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8926echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008927cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008928/* confdefs.h. */
8929_ACEOF
8930cat confdefs.h >>conftest.$ac_ext
8931cat >>conftest.$ac_ext <<_ACEOF
8932/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008933$ac_includes_default
8934#include <$ac_header>
8935_ACEOF
8936rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008949 (exit $ac_status); } &&
8950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8951 { (case "(($ac_try" in
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8954esac
8955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest.$ac_objext'
8961 { (case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_try") 2>&5
8967 ac_status=$?
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008970 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008971else
8972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008973sed 's/^/| /' conftest.$ac_ext >&5
8974
Reid Spencera773bd52006-08-04 18:18:08 +00008975 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008976fi
Reid Spencera773bd52006-08-04 18:18:08 +00008977
8978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8980echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008981
8982# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008983{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008985cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008986/* confdefs.h. */
8987_ACEOF
8988cat confdefs.h >>conftest.$ac_ext
8989cat >>conftest.$ac_ext <<_ACEOF
8990/* end confdefs.h. */
8991#include <$ac_header>
8992_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008993if { (ac_try="$ac_cpp conftest.$ac_ext"
8994case "(($ac_try" in
8995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8996 *) ac_try_echo=$ac_try;;
8997esac
8998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009005 (exit $ac_status); } >/dev/null; then
9006 if test -s conftest.err; then
9007 ac_cpp_err=$ac_c_preproc_warn_flag
9008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9009 else
9010 ac_cpp_err=
9011 fi
9012else
9013 ac_cpp_err=yes
9014fi
9015if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009016 ac_header_preproc=yes
9017else
9018 echo "$as_me: failed program was:" >&5
9019sed 's/^/| /' conftest.$ac_ext >&5
9020
9021 ac_header_preproc=no
9022fi
Reid Spencera773bd52006-08-04 18:18:08 +00009023
Brian Gaeke0a621332004-09-08 20:38:05 +00009024rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009025{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009027
9028# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009029case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9030 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9032echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9034echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9035 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009036 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009037 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9039echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9041echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9043echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9045echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9047echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9049echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009050 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009051## ----------------------------------- ##
9052## Report this to llvmbugs@cs.uiuc.edu ##
9053## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009054_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009055 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009056 ;;
9057esac
Reid Spencera773bd52006-08-04 18:18:08 +00009058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009063 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009064fi
Reid Spencera773bd52006-08-04 18:18:08 +00009065ac_res=`eval echo '${'$as_ac_Header'}'`
9066 { echo "$as_me:$LINENO: result: $ac_res" >&5
9067echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009068
9069fi
John Criswell7a73b802003-06-30 21:59:07 +00009070if test `eval echo '${'$as_ac_Header'}'` = yes; then
9071 cat >>confdefs.h <<_ACEOF
9072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9073_ACEOF
9074
9075fi
9076
9077done
9078
Reid Spencera773bd52006-08-04 18:18:08 +00009079# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009080if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009081 enableval=$enable_ltdl_install;
9082fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009083
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009085
9086
9087if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009088 INSTALL_LTDL_TRUE=
9089 INSTALL_LTDL_FALSE='#'
9090else
9091 INSTALL_LTDL_TRUE='#'
9092 INSTALL_LTDL_FALSE=
9093fi
9094
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009095
9096
9097if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009098 CONVENIENCE_LTDL_TRUE=
9099 CONVENIENCE_LTDL_FALSE='#'
9100else
9101 CONVENIENCE_LTDL_TRUE='#'
9102 CONVENIENCE_LTDL_FALSE=
9103fi
9104
9105
Reid Spencera773bd52006-08-04 18:18:08 +00009106{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9107echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009108library_names_spec=
9109libname_spec='lib$name'
9110soname_spec=
9111shrext_cmds=".so"
9112postinstall_cmds=
9113postuninstall_cmds=
9114finish_cmds=
9115finish_eval=
9116shlibpath_var=
9117shlibpath_overrides_runpath=unknown
9118version_type=none
9119dynamic_linker="$host_os ld.so"
9120sys_lib_dlsearch_path_spec="/lib /usr/lib"
9121if test "$GCC" = yes; then
9122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9124 # if the path contains ";" then we assume it to be the separator
9125 # otherwise default to the standard path separator (i.e. ":") - it is
9126 # assumed that no part of a normal pathname contains ";" but that should
9127 # okay in the real world where ";" in dirpaths is itself problematic.
9128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9129 else
9130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9131 fi
9132else
9133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9134fi
9135need_lib_prefix=unknown
9136hardcode_into_libs=no
9137
9138# when you set need_version to no, make sure it does not cause -set_version
9139# flags to be left without arguments
9140need_version=unknown
9141
9142case $host_os in
9143aix3*)
9144 version_type=linux
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9146 shlibpath_var=LIBPATH
9147
9148 # AIX 3 has no versioning support, so we append a major version to the name.
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 ;;
9151
9152aix4* | aix5*)
9153 version_type=linux
9154 need_lib_prefix=no
9155 need_version=no
9156 hardcode_into_libs=yes
9157 if test "$host_cpu" = ia64; then
9158 # AIX 5 supports IA64
9159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 else
9162 # With GCC up to 2.95.x, collect2 would create an import file
9163 # for dependence libraries. The import file would start with
9164 # the line `#! .'. This would cause the generated library to
9165 # depend on `.', always an invalid library. This was fixed in
9166 # development snapshots of GCC prior to 3.0.
9167 case $host_os in
9168 aix4 | aix4.[01] | aix4.[01].*)
9169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9170 echo ' yes '
9171 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9172 :
9173 else
9174 can_build_shared=no
9175 fi
9176 ;;
9177 esac
9178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9179 # soname into executable. Probably we can add versioning support to
9180 # collect2, so additional links can be useful in future.
9181 if test "$aix_use_runtimelinking" = yes; then
9182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9183 # instead of lib<name>.a to let people know that these are not
9184 # typical AIX shared libraries.
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 else
9187 # We preserve .a as extension for shared libraries through AIX4.2
9188 # and later when we are not doing run time linking.
9189 library_names_spec='${libname}${release}.a $libname.a'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 fi
9192 shlibpath_var=LIBPATH
9193 fi
9194 ;;
9195
9196amigaos*)
9197 library_names_spec='$libname.ixlibrary $libname.a'
9198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9199 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'
9200 ;;
9201
9202beos*)
9203 library_names_spec='${libname}${shared_ext}'
9204 dynamic_linker="$host_os ld.so"
9205 shlibpath_var=LIBRARY_PATH
9206 ;;
9207
9208bsdi[45]*)
9209 version_type=linux
9210 need_version=no
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9214 shlibpath_var=LD_LIBRARY_PATH
9215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9217 # the default ld.so.conf also contains /usr/contrib/lib and
9218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9219 # libtool to hard-code these into programs
9220 ;;
9221
9222cygwin* | mingw* | pw32*)
9223 version_type=windows
9224 shrext_cmds=".dll"
9225 need_version=no
9226 need_lib_prefix=no
9227
9228 case $GCC,$host_os in
9229 yes,cygwin* | yes,mingw* | yes,pw32*)
9230 library_names_spec='$libname.dll.a'
9231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9232 postinstall_cmds='base_file=`basename \${file}`~
9233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9234 dldir=$destdir/`dirname \$dlpath`~
9235 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009236 $install_prog $dir/$dlname \$dldir/$dlname~
9237 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9239 dlpath=$dir/\$dldll~
9240 $rm \$dlpath'
9241 shlibpath_overrides_runpath=yes
9242
9243 case $host_os in
9244 cygwin*)
9245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9246 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9247 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9248 ;;
9249 mingw*)
9250 # MinGW DLLs use traditional 'lib' prefix
9251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9253 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9254 # It is most probably a Windows format PATH printed by
9255 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9256 # path with ; separators, and with drive letters. We can handle the
9257 # drive letters (cygwin fileutils understands them), so leave them,
9258 # especially as we might pass files found there to a mingw objdump,
9259 # which wouldn't understand a cygwinified path. Ahh.
9260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9261 else
9262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9263 fi
9264 ;;
9265 pw32*)
9266 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009267 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 +00009268 ;;
9269 esac
9270 ;;
9271
9272 *)
9273 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9274 ;;
9275 esac
9276 dynamic_linker='Win32 ld.exe'
9277 # FIXME: first we should search . and the directory the executable is in
9278 shlibpath_var=PATH
9279 ;;
9280
9281darwin* | rhapsody*)
9282 dynamic_linker="$host_os dyld"
9283 version_type=darwin
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9287 soname_spec='${libname}${release}${major}$shared_ext'
9288 shlibpath_overrides_runpath=yes
9289 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009290 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009291 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9292 if test "$GCC" = yes; then
9293 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"`
9294 else
9295 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9296 fi
9297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9298 ;;
9299
9300dgux*)
9301 version_type=linux
9302 need_lib_prefix=no
9303 need_version=no
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 ;;
9308
9309freebsd1*)
9310 dynamic_linker=no
9311 ;;
9312
9313kfreebsd*-gnu)
9314 version_type=linux
9315 need_lib_prefix=no
9316 need_version=no
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=no
9321 hardcode_into_libs=yes
9322 dynamic_linker='GNU ld.so'
9323 ;;
9324
Reid Spencera773bd52006-08-04 18:18:08 +00009325freebsd* | dragonfly*)
9326 # DragonFly does not have aout. When/if they implement a new
9327 # versioning mechanism, adjust this.
9328 if test -x /usr/bin/objformat; then
9329 objformat=`/usr/bin/objformat`
9330 else
9331 case $host_os in
9332 freebsd[123]*) objformat=aout ;;
9333 *) objformat=elf ;;
9334 esac
9335 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009336 version_type=freebsd-$objformat
9337 case $version_type in
9338 freebsd-elf*)
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9340 need_version=no
9341 need_lib_prefix=no
9342 ;;
9343 freebsd-*)
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9345 need_version=yes
9346 ;;
9347 esac
9348 shlibpath_var=LD_LIBRARY_PATH
9349 case $host_os in
9350 freebsd2*)
9351 shlibpath_overrides_runpath=yes
9352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009353 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354 shlibpath_overrides_runpath=yes
9355 hardcode_into_libs=yes
9356 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359 shlibpath_overrides_runpath=no
9360 hardcode_into_libs=yes
9361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009362 freebsd*) # from 4.6 on
9363 shlibpath_overrides_runpath=yes
9364 hardcode_into_libs=yes
9365 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366 esac
9367 ;;
9368
9369gnu*)
9370 version_type=linux
9371 need_lib_prefix=no
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 hardcode_into_libs=yes
9377 ;;
9378
9379hpux9* | hpux10* | hpux11*)
9380 # Give a soname corresponding to the major version so that dld.sl refuses to
9381 # link against other versions.
9382 version_type=sunos
9383 need_lib_prefix=no
9384 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009385 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386 ia64*)
9387 shrext_cmds='.so'
9388 hardcode_into_libs=yes
9389 dynamic_linker="$host_os dld.so"
9390 shlibpath_var=LD_LIBRARY_PATH
9391 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393 soname_spec='${libname}${release}${shared_ext}$major'
9394 if test "X$HPUX_IA64_MODE" = X32; then
9395 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9396 else
9397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9398 fi
9399 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9400 ;;
9401 hppa*64*)
9402 shrext_cmds='.sl'
9403 hardcode_into_libs=yes
9404 dynamic_linker="$host_os dld.sl"
9405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 soname_spec='${libname}${release}${shared_ext}$major'
9409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9411 ;;
9412 *)
9413 shrext_cmds='.sl'
9414 dynamic_linker="$host_os dld.sl"
9415 shlibpath_var=SHLIB_PATH
9416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 ;;
9420 esac
9421 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9422 postinstall_cmds='chmod 555 $lib'
9423 ;;
9424
Reid Spencera773bd52006-08-04 18:18:08 +00009425interix3*)
9426 version_type=linux
9427 need_lib_prefix=no
9428 need_version=no
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9430 soname_spec='${libname}${release}${shared_ext}$major'
9431 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 shlibpath_overrides_runpath=no
9434 hardcode_into_libs=yes
9435 ;;
9436
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437irix5* | irix6* | nonstopux*)
9438 case $host_os in
9439 nonstopux*) version_type=nonstopux ;;
9440 *)
9441 if test "$lt_cv_prog_gnu_ld" = yes; then
9442 version_type=linux
9443 else
9444 version_type=irix
9445 fi ;;
9446 esac
9447 need_lib_prefix=no
9448 need_version=no
9449 soname_spec='${libname}${release}${shared_ext}$major'
9450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9451 case $host_os in
9452 irix5* | nonstopux*)
9453 libsuff= shlibsuff=
9454 ;;
9455 *)
9456 case $LD in # libtool.m4 will add one of these switches to LD
9457 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9458 libsuff= shlibsuff= libmagic=32-bit;;
9459 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9460 libsuff=32 shlibsuff=N32 libmagic=N32;;
9461 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9462 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9463 *) libsuff= shlibsuff= libmagic=never-match;;
9464 esac
9465 ;;
9466 esac
9467 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9468 shlibpath_overrides_runpath=no
9469 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9470 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9471 hardcode_into_libs=yes
9472 ;;
9473
9474# No shared lib support for Linux oldld, aout, or coff.
9475linux*oldld* | linux*aout* | linux*coff*)
9476 dynamic_linker=no
9477 ;;
9478
9479# This must be Linux ELF.
9480linux*)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9487 shlibpath_var=LD_LIBRARY_PATH
9488 shlibpath_overrides_runpath=no
9489 # This implies no fast_install, which is unacceptable.
9490 # Some rework will be needed to allow for fast_install
9491 # before this can be enabled.
9492 hardcode_into_libs=yes
9493
9494 # Append ld.so.conf contents to the search path
9495 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009496 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 +00009497 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9498 fi
9499
9500 # We used to test for /lib/ld.so.1 and disable shared libraries on
9501 # powerpc, because MkLinux only supported shared libraries with the
9502 # GNU dynamic linker. Since this was broken with cross compilers,
9503 # most powerpc-linux boxes support dynamic linking these days and
9504 # people can always --disable-shared, the test was removed, and we
9505 # assume the GNU/Linux dynamic linker is in use.
9506 dynamic_linker='GNU/Linux ld.so'
9507 ;;
9508
9509knetbsd*-gnu)
9510 version_type=linux
9511 need_lib_prefix=no
9512 need_version=no
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 shlibpath_var=LD_LIBRARY_PATH
9516 shlibpath_overrides_runpath=no
9517 hardcode_into_libs=yes
9518 dynamic_linker='GNU ld.so'
9519 ;;
9520
9521netbsd*)
9522 version_type=sunos
9523 need_lib_prefix=no
9524 need_version=no
9525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9528 dynamic_linker='NetBSD (a.out) ld.so'
9529 else
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 dynamic_linker='NetBSD ld.elf_so'
9533 fi
9534 shlibpath_var=LD_LIBRARY_PATH
9535 shlibpath_overrides_runpath=yes
9536 hardcode_into_libs=yes
9537 ;;
9538
9539newsos6)
9540 version_type=linux
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 shlibpath_var=LD_LIBRARY_PATH
9543 shlibpath_overrides_runpath=yes
9544 ;;
9545
9546nto-qnx*)
9547 version_type=linux
9548 need_lib_prefix=no
9549 need_version=no
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 soname_spec='${libname}${release}${shared_ext}$major'
9552 shlibpath_var=LD_LIBRARY_PATH
9553 shlibpath_overrides_runpath=yes
9554 ;;
9555
9556openbsd*)
9557 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009558 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009560 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9561 case $host_os in
9562 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9563 *) need_version=no ;;
9564 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 case $host_os in
9570 openbsd2.[89] | openbsd2.[89].*)
9571 shlibpath_overrides_runpath=no
9572 ;;
9573 *)
9574 shlibpath_overrides_runpath=yes
9575 ;;
9576 esac
9577 else
9578 shlibpath_overrides_runpath=yes
9579 fi
9580 ;;
9581
9582os2*)
9583 libname_spec='$name'
9584 shrext_cmds=".dll"
9585 need_lib_prefix=no
9586 library_names_spec='$libname${shared_ext} $libname.a'
9587 dynamic_linker='OS/2 ld.exe'
9588 shlibpath_var=LIBPATH
9589 ;;
9590
9591osf3* | osf4* | osf5*)
9592 version_type=osf
9593 need_lib_prefix=no
9594 need_version=no
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597 shlibpath_var=LD_LIBRARY_PATH
9598 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9599 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9600 ;;
9601
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602solaris*)
9603 version_type=linux
9604 need_lib_prefix=no
9605 need_version=no
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9609 shlibpath_overrides_runpath=yes
9610 hardcode_into_libs=yes
9611 # ldd complains unless libraries are executable
9612 postinstall_cmds='chmod +x $lib'
9613 ;;
9614
9615sunos4*)
9616 version_type=sunos
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 shlibpath_overrides_runpath=yes
9621 if test "$with_gnu_ld" = yes; then
9622 need_lib_prefix=no
9623 fi
9624 need_version=yes
9625 ;;
9626
Reid Spencera773bd52006-08-04 18:18:08 +00009627sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009628 version_type=linux
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 soname_spec='${libname}${release}${shared_ext}$major'
9631 shlibpath_var=LD_LIBRARY_PATH
9632 case $host_vendor in
9633 sni)
9634 shlibpath_overrides_runpath=no
9635 need_lib_prefix=no
9636 export_dynamic_flag_spec='${wl}-Blargedynsym'
9637 runpath_var=LD_RUN_PATH
9638 ;;
9639 siemens)
9640 need_lib_prefix=no
9641 ;;
9642 motorola)
9643 need_lib_prefix=no
9644 need_version=no
9645 shlibpath_overrides_runpath=no
9646 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9647 ;;
9648 esac
9649 ;;
9650
9651sysv4*MP*)
9652 if test -d /usr/nec ;then
9653 version_type=linux
9654 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9655 soname_spec='$libname${shared_ext}.$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 fi
9658 ;;
9659
Reid Spencera773bd52006-08-04 18:18:08 +00009660sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9661 version_type=freebsd-elf
9662 need_lib_prefix=no
9663 need_version=no
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 hardcode_into_libs=yes
9668 if test "$with_gnu_ld" = yes; then
9669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9670 shlibpath_overrides_runpath=no
9671 else
9672 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9673 shlibpath_overrides_runpath=yes
9674 case $host_os in
9675 sco3.2v5*)
9676 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9677 ;;
9678 esac
9679 fi
9680 sys_lib_dlsearch_path_spec='/usr/lib'
9681 ;;
9682
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009683uts4*)
9684 version_type=linux
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 soname_spec='${libname}${release}${shared_ext}$major'
9687 shlibpath_var=LD_LIBRARY_PATH
9688 ;;
9689
9690*)
9691 dynamic_linker=no
9692 ;;
9693esac
Reid Spencera773bd52006-08-04 18:18:08 +00009694{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9695echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009696test "$dynamic_linker" = no && can_build_shared=no
9697
Reid Spencera773bd52006-08-04 18:18:08 +00009698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9699if test "$GCC" = yes; then
9700 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9701fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009702
Reid Spencera773bd52006-08-04 18:18:08 +00009703
9704{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9705echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009706if test "${libltdl_cv_shlibext+set}" = set; then
9707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708else
9709
9710module=yes
9711eval libltdl_cv_shlibext=$shrext_cmds
9712
9713fi
Reid Spencera773bd52006-08-04 18:18:08 +00009714{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9715echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716if test -n "$libltdl_cv_shlibext"; then
9717
9718cat >>confdefs.h <<_ACEOF
9719#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9720_ACEOF
9721
9722fi
9723
9724
Reid Spencera773bd52006-08-04 18:18:08 +00009725{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9726echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727if test "${libltdl_cv_shlibpath_var+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729else
9730 libltdl_cv_shlibpath_var="$shlibpath_var"
9731fi
Reid Spencera773bd52006-08-04 18:18:08 +00009732{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9733echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009734if test -n "$libltdl_cv_shlibpath_var"; then
9735
9736cat >>confdefs.h <<_ACEOF
9737#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9738_ACEOF
9739
9740fi
9741
9742
Reid Spencera773bd52006-08-04 18:18:08 +00009743{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9744echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745if test "${libltdl_cv_sys_search_path+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747else
9748 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9749fi
Reid Spencera773bd52006-08-04 18:18:08 +00009750{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9751echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752if test -n "$libltdl_cv_sys_search_path"; then
9753 sys_search_path=
9754 for dir in $libltdl_cv_sys_search_path; do
9755 if test -z "$sys_search_path"; then
9756 sys_search_path="$dir"
9757 else
9758 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9759 fi
9760 done
9761
9762cat >>confdefs.h <<_ACEOF
9763#define LTDL_SYSSEARCHPATH "$sys_search_path"
9764_ACEOF
9765
9766fi
9767
Reid Spencera773bd52006-08-04 18:18:08 +00009768{ echo "$as_me:$LINENO: checking for objdir" >&5
9769echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770if test "${libltdl_cv_objdir+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772else
9773 libltdl_cv_objdir="$objdir"
9774 if test -n "$objdir"; then
9775 :
9776 else
9777 rm -f .libs 2>/dev/null
9778 mkdir .libs 2>/dev/null
9779 if test -d .libs; then
9780 libltdl_cv_objdir=.libs
9781 else
9782 # MS-DOS does not allow filenames that begin with a dot.
9783 libltdl_cv_objdir=_libs
9784 fi
9785 rmdir .libs 2>/dev/null
9786 fi
9787
9788fi
Reid Spencera773bd52006-08-04 18:18:08 +00009789{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9790echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791
9792cat >>confdefs.h <<_ACEOF
9793#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9794_ACEOF
9795
9796
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797
9798
9799
9800
9801# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009802{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9803echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806else
9807
9808# These are sane defaults that work on at least a few old systems.
9809# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9810
9811# Character class describing NM global symbol codes.
9812symcode='[BCDEGRST]'
9813
9814# Regexp to match symbols that can be accessed directly from C.
9815sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9816
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817# Transform an extracted symbol line into a proper C declaration
9818lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9819
9820# Transform an extracted symbol line into symbol name and symbol address
9821lt_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'"
9822
9823# Define system-specific variables.
9824case $host_os in
9825aix*)
9826 symcode='[BCDT]'
9827 ;;
9828cygwin* | mingw* | pw32*)
9829 symcode='[ABCDGISTW]'
9830 ;;
9831hpux*) # Its linker distinguishes data from code symbols
9832 if test "$host_cpu" = ia64; then
9833 symcode='[ABCDEGRST]'
9834 fi
9835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9836 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'"
9837 ;;
9838linux*)
9839 if test "$host_cpu" = ia64; then
9840 symcode='[ABCDGIRSTW]'
9841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9842 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'"
9843 fi
9844 ;;
9845irix* | nonstopux*)
9846 symcode='[BCDEGRST]'
9847 ;;
9848osf*)
9849 symcode='[BCDEGQRST]'
9850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009851solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 symcode='[BDRT]'
9853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009854sco3.2v5*)
9855 symcode='[DT]'
9856 ;;
9857sysv4.2uw2*)
9858 symcode='[DT]'
9859 ;;
9860sysv5* | sco5v6* | unixware* | OpenUNIX*)
9861 symcode='[ABDT]'
9862 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009863sysv4)
9864 symcode='[DFNSTU]'
9865 ;;
9866esac
9867
9868# Handle CRLF in mingw tool chain
9869opt_cr=
9870case $build_os in
9871mingw*)
9872 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9873 ;;
9874esac
9875
9876# If we're using GNU nm, then use its standard symbol codes.
9877case `$NM -V 2>&1` in
9878*GNU* | *'with BFD'*)
9879 symcode='[ABCDGIRSTW]' ;;
9880esac
9881
9882# Try without a prefix undercore, then with it.
9883for ac_symprfx in "" "_"; do
9884
Reid Spencera773bd52006-08-04 18:18:08 +00009885 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9886 symxfrm="\\1 $ac_symprfx\\2 \\2"
9887
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009889 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 +00009890
9891 # Check to see that the pipe works correctly.
9892 pipe_works=no
9893
9894 rm -f conftest*
9895 cat > conftest.$ac_ext <<EOF
9896#ifdef __cplusplus
9897extern "C" {
9898#endif
9899char nm_test_var;
9900void nm_test_func(){}
9901#ifdef __cplusplus
9902}
9903#endif
9904int main(){nm_test_var='a';nm_test_func();return(0);}
9905EOF
9906
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; then
9912 # Now try to grab the symbols.
9913 nlist=conftest.nm
9914 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9915 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && test -s "$nlist"; then
9919 # Try sorting and uniquifying the output.
9920 if sort "$nlist" | uniq > "$nlist"T; then
9921 mv -f "$nlist"T "$nlist"
9922 else
9923 rm -f "$nlist"T
9924 fi
9925
9926 # Make sure that we snagged all the symbols we need.
9927 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9928 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9929 cat <<EOF > conftest.$ac_ext
9930#ifdef __cplusplus
9931extern "C" {
9932#endif
9933
9934EOF
9935 # Now generate the symbol file.
9936 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9937
9938 cat <<EOF >> conftest.$ac_ext
9939#if defined (__STDC__) && __STDC__
9940# define lt_ptr_t void *
9941#else
9942# define lt_ptr_t char *
9943# define const
9944#endif
9945
9946/* The mapping between symbol names and symbols. */
9947const struct {
9948 const char *name;
9949 lt_ptr_t address;
9950}
9951lt_preloaded_symbols[] =
9952{
9953EOF
9954 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9955 cat <<\EOF >> conftest.$ac_ext
9956 {0, (lt_ptr_t) 0}
9957};
9958
9959#ifdef __cplusplus
9960}
9961#endif
9962EOF
9963 # Now try linking the two files.
9964 mv conftest.$ac_objext conftstm.$ac_objext
9965 lt_save_LIBS="$LIBS"
9966 lt_save_CFLAGS="$CFLAGS"
9967 LIBS="conftstm.$ac_objext"
9968 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>&5
9971 ac_status=$?
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9974 pipe_works=yes
9975 fi
9976 LIBS="$lt_save_LIBS"
9977 CFLAGS="$lt_save_CFLAGS"
9978 else
9979 echo "cannot find nm_test_func in $nlist" >&5
9980 fi
9981 else
9982 echo "cannot find nm_test_var in $nlist" >&5
9983 fi
9984 else
9985 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9986 fi
9987 else
9988 echo "$progname: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9990 fi
9991 rm -f conftest* conftst*
9992
9993 # Do not use the global_symbol_pipe unless it works.
9994 if test "$pipe_works" = yes; then
9995 break
9996 else
9997 lt_cv_sys_global_symbol_pipe=
9998 fi
9999done
10000
10001fi
10002
10003if test -z "$lt_cv_sys_global_symbol_pipe"; then
10004 lt_cv_sys_global_symbol_to_cdecl=
10005fi
10006if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010007 { echo "$as_me:$LINENO: result: failed" >&5
10008echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009else
Reid Spencera773bd52006-08-04 18:18:08 +000010010 { echo "$as_me:$LINENO: result: ok" >&5
10011echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012fi
10013
10014
Reid Spencera773bd52006-08-04 18:18:08 +000010015{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10016echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019else
10020 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10021 libltdl_cv_preloaded_symbols=yes
10022 else
10023 libltdl_cv_preloaded_symbols=no
10024 fi
10025
10026fi
Reid Spencera773bd52006-08-04 18:18:08 +000010027{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10028echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10030
10031cat >>confdefs.h <<\_ACEOF
10032#define HAVE_PRELOADED_SYMBOLS 1
10033_ACEOF
10034
10035fi
10036
10037LIBADD_DL=
10038
10039ac_ext=c
10040ac_cpp='$CPP $CPPFLAGS'
10041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10043ac_compiler_gnu=$ac_cv_c_compiler_gnu
10044
10045
Reid Spencera773bd52006-08-04 18:18:08 +000010046{ echo "$as_me:$LINENO: checking for shl_load" >&5
10047echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048if test "${ac_cv_func_shl_load+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051 cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h. */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h. */
10057/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059#define shl_load innocuous_shl_load
10060
10061/* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char shl_load (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10065
10066#ifdef __STDC__
10067# include <limits.h>
10068#else
10069# include <assert.h>
10070#endif
10071
10072#undef shl_load
10073
Reid Spencera773bd52006-08-04 18:18:08 +000010074/* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077#ifdef __cplusplus
10078extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080char shl_load ();
10081/* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010084#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086#endif
10087
10088int
10089main ()
10090{
Reid Spencera773bd52006-08-04 18:18:08 +000010091return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010097if { (ac_try="$ac_link"
10098case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; } &&
10120 { ac_try='test -s conftest$ac_exeext'
10121 { (case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
10125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_try") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010130 ac_cv_func_shl_load=yes
10131else
10132 echo "$as_me: failed program was:" >&5
10133sed 's/^/| /' conftest.$ac_ext >&5
10134
Reid Spencera773bd52006-08-04 18:18:08 +000010135 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136fi
Reid Spencera773bd52006-08-04 18:18:08 +000010137
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010138rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139 conftest$ac_exeext conftest.$ac_ext
10140fi
Reid Spencera773bd52006-08-04 18:18:08 +000010141{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10142echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143if test $ac_cv_func_shl_load = yes; then
10144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_SHL_LOAD 1
10147_ACEOF
10148
10149else
Reid Spencera773bd52006-08-04 18:18:08 +000010150 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10151echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010152if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10154else
10155 ac_check_lib_save_LIBS=$LIBS
10156LIBS="-ldld $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 shl_load ();
10171int
10172main ()
10173{
Reid Spencera773bd52006-08-04 18:18:08 +000010174return shl_load ();
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 Lattnerf9eb2d82009-01-22 05:17:59 +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_dld_shl_load=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_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219fi
Reid Spencera773bd52006-08-04 18:18:08 +000010220
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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_dld_shl_load" >&5
10226echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227if test $ac_cv_lib_dld_shl_load = yes; then
10228
10229cat >>confdefs.h <<\_ACEOF
10230#define HAVE_SHL_LOAD 1
10231_ACEOF
10232
10233 LIBADD_DL="$LIBADD_DL -ldld"
10234else
Reid Spencera773bd52006-08-04 18:18:08 +000010235 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10236echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239else
10240 ac_check_lib_save_LIBS=$LIBS
10241LIBS="-ldl $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 dlopen ();
10256int
10257main ()
10258{
Reid Spencera773bd52006-08-04 18:18:08 +000010259return dlopen ();
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 Lattnerf9eb2d82009-01-22 05:17:59 +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_dl_dlopen=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_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304fi
Reid Spencera773bd52006-08-04 18:18:08 +000010305
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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_dl_dlopen" >&5
10311echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312if test $ac_cv_lib_dl_dlopen = yes; then
10313
10314cat >>confdefs.h <<\_ACEOF
10315#define HAVE_LIBDL 1
10316_ACEOF
10317
10318 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10319else
10320 cat >conftest.$ac_ext <<_ACEOF
10321/* confdefs.h. */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h. */
10326#if HAVE_DLFCN_H
10327# include <dlfcn.h>
10328#endif
10329
10330int
10331main ()
10332{
10333dlopen(0, 0);
10334 ;
10335 return 0;
10336}
10337_ACEOF
10338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010339if { (ac_try="$ac_link"
10340case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010346 ac_status=$?
10347 grep -v '^ *+' conftest.er1 >conftest.err
10348 rm -f conftest.er1
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010351 (exit $ac_status); } &&
10352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10353 { (case "(($ac_try" in
10354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10355 *) ac_try_echo=$ac_try;;
10356esac
10357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10358 (eval "$ac_try") 2>&5
10359 ac_status=$?
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); }; } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10366esac
10367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_try") 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372
10373cat >>confdefs.h <<\_ACEOF
10374#define HAVE_LIBDL 1
10375_ACEOF
10376 libltdl_cv_func_dlopen="yes"
10377else
10378 echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
Reid Spencera773bd52006-08-04 18:18:08 +000010381 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10382echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386 ac_check_lib_save_LIBS=$LIBS
10387LIBS="-lsvld $LIBS"
10388cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h. */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h. */
10394
Reid Spencera773bd52006-08-04 18:18:08 +000010395/* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398#ifdef __cplusplus
10399extern "C"
10400#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401char dlopen ();
10402int
10403main ()
10404{
Reid Spencera773bd52006-08-04 18:18:08 +000010405return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406 ;
10407 return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010411if { (ac_try="$ac_link"
10412case "(($ac_try" in
10413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10414 *) ac_try_echo=$ac_try;;
10415esac
10416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10417 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010423 (exit $ac_status); } &&
10424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428esac
10429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10431 ac_status=$?
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; } &&
10434 { ac_try='test -s conftest$ac_exeext'
10435 { (case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10438esac
10439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_try") 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010444 ac_cv_lib_svld_dlopen=yes
10445else
10446 echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
Reid Spencera773bd52006-08-04 18:18:08 +000010449 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450fi
Reid Spencera773bd52006-08-04 18:18:08 +000010451
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010452rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453 conftest$ac_exeext conftest.$ac_ext
10454LIBS=$ac_check_lib_save_LIBS
10455fi
Reid Spencera773bd52006-08-04 18:18:08 +000010456{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10457echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458if test $ac_cv_lib_svld_dlopen = yes; then
10459
10460cat >>confdefs.h <<\_ACEOF
10461#define HAVE_LIBDL 1
10462_ACEOF
10463
10464 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10465else
Reid Spencera773bd52006-08-04 18:18:08 +000010466 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10467echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010468if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471 ac_check_lib_save_LIBS=$LIBS
10472LIBS="-ldld $LIBS"
10473cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h. */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h. */
10479
Reid Spencera773bd52006-08-04 18:18:08 +000010480/* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483#ifdef __cplusplus
10484extern "C"
10485#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486char dld_link ();
10487int
10488main ()
10489{
Reid Spencera773bd52006-08-04 18:18:08 +000010490return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 ;
10492 return 0;
10493}
10494_ACEOF
10495rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010496if { (ac_try="$ac_link"
10497case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500esac
10501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503 ac_status=$?
10504 grep -v '^ *+' conftest.er1 >conftest.err
10505 rm -f conftest.er1
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510 { (case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10513esac
10514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_try") 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523esac
10524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_try") 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010529 ac_cv_lib_dld_dld_link=yes
10530else
10531 echo "$as_me: failed program was:" >&5
10532sed 's/^/| /' conftest.$ac_ext >&5
10533
Reid Spencera773bd52006-08-04 18:18:08 +000010534 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535fi
Reid Spencera773bd52006-08-04 18:18:08 +000010536
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010537rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 conftest$ac_exeext conftest.$ac_ext
10539LIBS=$ac_check_lib_save_LIBS
10540fi
Reid Spencera773bd52006-08-04 18:18:08 +000010541{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10542echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543if test $ac_cv_lib_dld_dld_link = yes; then
10544
10545cat >>confdefs.h <<\_ACEOF
10546#define HAVE_DLD 1
10547_ACEOF
10548
10549 LIBADD_DL="$LIBADD_DL -ldld"
10550else
Reid Spencera773bd52006-08-04 18:18:08 +000010551 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10552echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556 cat >conftest.$ac_ext <<_ACEOF
10557/* confdefs.h. */
10558_ACEOF
10559cat confdefs.h >>conftest.$ac_ext
10560cat >>conftest.$ac_ext <<_ACEOF
10561/* end confdefs.h. */
10562/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10564#define _dyld_func_lookup innocuous__dyld_func_lookup
10565
10566/* System header to define __stub macros and hopefully few prototypes,
10567 which can conflict with char _dyld_func_lookup (); below.
10568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10569 <limits.h> exists even on freestanding compilers. */
10570
10571#ifdef __STDC__
10572# include <limits.h>
10573#else
10574# include <assert.h>
10575#endif
10576
10577#undef _dyld_func_lookup
10578
Reid Spencera773bd52006-08-04 18:18:08 +000010579/* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582#ifdef __cplusplus
10583extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010584#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585char _dyld_func_lookup ();
10586/* The GNU C library defines this for functions which it implements
10587 to always fail with ENOSYS. Some functions are actually named
10588 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010589#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591#endif
10592
10593int
10594main ()
10595{
Reid Spencera773bd52006-08-04 18:18:08 +000010596return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597 ;
10598 return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010602if { (ac_try="$ac_link"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010614 (exit $ac_status); } &&
10615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10616 { (case "(($ac_try" in
10617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618 *) ac_try_echo=$ac_try;;
10619esac
10620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621 (eval "$ac_try") 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; } &&
10625 { ac_try='test -s conftest$ac_exeext'
10626 { (case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_try") 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635 ac_cv_func__dyld_func_lookup=yes
10636else
10637 echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
Reid Spencera773bd52006-08-04 18:18:08 +000010640 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010641fi
Reid Spencera773bd52006-08-04 18:18:08 +000010642
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010643rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010644 conftest$ac_exeext conftest.$ac_ext
10645fi
Reid Spencera773bd52006-08-04 18:18:08 +000010646{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10647echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648if test $ac_cv_func__dyld_func_lookup = yes; then
10649
10650cat >>confdefs.h <<\_ACEOF
10651#define HAVE_DYLD 1
10652_ACEOF
10653
10654fi
10655
10656
10657fi
10658
10659
10660fi
10661
10662
10663fi
Reid Spencera773bd52006-08-04 18:18:08 +000010664
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010665rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 conftest$ac_exeext conftest.$ac_ext
10667
10668fi
10669
10670
10671fi
10672
10673
10674fi
10675
10676
10677if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10678then
10679 lt_save_LIBS="$LIBS"
10680 LIBS="$LIBS $LIBADD_DL"
10681
10682for ac_func in dlerror
10683do
10684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689else
10690 cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h. */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h. */
10696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10698#define $ac_func innocuous_$ac_func
10699
10700/* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char $ac_func (); below.
10702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703 <limits.h> exists even on freestanding compilers. */
10704
10705#ifdef __STDC__
10706# include <limits.h>
10707#else
10708# include <assert.h>
10709#endif
10710
10711#undef $ac_func
10712
Reid Spencera773bd52006-08-04 18:18:08 +000010713/* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010716#ifdef __cplusplus
10717extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719char $ac_func ();
10720/* The GNU C library defines this for functions which it implements
10721 to always fail with ENOSYS. Some functions are actually named
10722 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010723#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725#endif
10726
10727int
10728main ()
10729{
Reid Spencera773bd52006-08-04 18:18:08 +000010730return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731 ;
10732 return 0;
10733}
10734_ACEOF
10735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010736if { (ac_try="$ac_link"
10737case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10740esac
10741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010743 ac_status=$?
10744 grep -v '^ *+' conftest.er1 >conftest.err
10745 rm -f conftest.er1
10746 cat conftest.err >&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010748 (exit $ac_status); } &&
10749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10750 { (case "(($ac_try" in
10751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10752 *) ac_try_echo=$ac_try;;
10753esac
10754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10755 (eval "$ac_try") 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763esac
10764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769 eval "$as_ac_var=yes"
10770else
10771 echo "$as_me: failed program was:" >&5
10772sed 's/^/| /' conftest.$ac_ext >&5
10773
Reid Spencera773bd52006-08-04 18:18:08 +000010774 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775fi
Reid Spencera773bd52006-08-04 18:18:08 +000010776
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010778 conftest$ac_exeext conftest.$ac_ext
10779fi
Reid Spencera773bd52006-08-04 18:18:08 +000010780ac_res=`eval echo '${'$as_ac_var'}'`
10781 { echo "$as_me:$LINENO: result: $ac_res" >&5
10782echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783if test `eval echo '${'$as_ac_var'}'` = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10786_ACEOF
10787
10788fi
10789done
10790
10791 LIBS="$lt_save_LIBS"
10792fi
10793ac_ext=c
10794ac_cpp='$CPP $CPPFLAGS'
10795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10797ac_compiler_gnu=$ac_cv_c_compiler_gnu
10798
10799
10800
Reid Spencera773bd52006-08-04 18:18:08 +000010801{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10802echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10805else
10806 ac_cv_sys_symbol_underscore=no
10807 cat > conftest.$ac_ext <<EOF
10808void nm_test_func(){}
10809int main(){nm_test_func;return 0;}
10810EOF
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; then
10816 # Now try to grab the symbols.
10817 ac_nlist=conftest.nm
10818 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10819 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10820 ac_status=$?
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } && test -s "$ac_nlist"; then
10823 # See whether the symbols have a leading underscore.
10824 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10825 ac_cv_sys_symbol_underscore=yes
10826 else
10827 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10828 :
10829 else
10830 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10831 fi
10832 fi
10833 else
10834 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10835 fi
10836 else
10837 echo "configure: failed program was:" >&5
10838 cat conftest.c >&5
10839 fi
10840 rm -rf conftest*
10841
10842fi
Reid Spencera773bd52006-08-04 18:18:08 +000010843{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10844echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845
10846
10847if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10848 if test x"$libltdl_cv_func_dlopen" = xyes ||
10849 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010850 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10851echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852if test "${libltdl_cv_need_uscore+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854else
10855 libltdl_cv_need_uscore=unknown
10856 save_LIBS="$LIBS"
10857 LIBS="$LIBS $LIBADD_DL"
10858 if test "$cross_compiling" = yes; then :
10859 libltdl_cv_need_uscore=cross
10860else
10861 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10862 lt_status=$lt_dlunknown
10863 cat > conftest.$ac_ext <<EOF
Nick Lewyckye792b1d2009-02-03 07:10:30 +000010864#line 10864 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010865#include "confdefs.h"
10866
10867#if HAVE_DLFCN_H
10868#include <dlfcn.h>
10869#endif
10870
10871#include <stdio.h>
10872
10873#ifdef RTLD_GLOBAL
10874# define LT_DLGLOBAL RTLD_GLOBAL
10875#else
10876# ifdef DL_GLOBAL
10877# define LT_DLGLOBAL DL_GLOBAL
10878# else
10879# define LT_DLGLOBAL 0
10880# endif
10881#endif
10882
10883/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10884 find out it does not work in some platform. */
10885#ifndef LT_DLLAZY_OR_NOW
10886# ifdef RTLD_LAZY
10887# define LT_DLLAZY_OR_NOW RTLD_LAZY
10888# else
10889# ifdef DL_LAZY
10890# define LT_DLLAZY_OR_NOW DL_LAZY
10891# else
10892# ifdef RTLD_NOW
10893# define LT_DLLAZY_OR_NOW RTLD_NOW
10894# else
10895# ifdef DL_NOW
10896# define LT_DLLAZY_OR_NOW DL_NOW
10897# else
10898# define LT_DLLAZY_OR_NOW 0
10899# endif
10900# endif
10901# endif
10902# endif
10903#endif
10904
10905#ifdef __cplusplus
10906extern "C" void exit (int);
10907#endif
10908
10909void fnord() { int i=42;}
10910int main ()
10911{
10912 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10913 int status = $lt_dlunknown;
10914
10915 if (self)
10916 {
10917 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10918 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10919 /* dlclose (self); */
10920 }
Reid Spencera773bd52006-08-04 18:18:08 +000010921 else
10922 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923
10924 exit (status);
10925}
10926EOF
10927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10928 (eval $ac_link) 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010932 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933 lt_status=$?
10934 case x$lt_status in
10935 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10936 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010937 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 esac
10939 else :
10940 # compilation failed
10941
10942 fi
10943fi
10944rm -fr conftest*
10945
10946 LIBS="$save_LIBS"
10947
10948fi
Reid Spencera773bd52006-08-04 18:18:08 +000010949{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10950echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951 fi
10952fi
10953
10954if test x"$libltdl_cv_need_uscore" = xyes; then
10955
10956cat >>confdefs.h <<\_ACEOF
10957#define NEED_USCORE 1
10958_ACEOF
10959
10960fi
10961
10962
Reid Spencera773bd52006-08-04 18:18:08 +000010963{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10964echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010965if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10967else
10968 # PORTME does your system automatically load deplibs for dlopen?
10969 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10970 # For now, we just catch OSes we know something about -- in the
10971 # future, we'll try test this programmatically.
10972 libltdl_cv_sys_dlopen_deplibs=unknown
10973 case "$host_os" in
10974 aix3*|aix4.1.*|aix4.2.*)
10975 # Unknown whether this is true for these versions of AIX, but
10976 # we want this `case' here to explicitly catch those versions.
10977 libltdl_cv_sys_dlopen_deplibs=unknown
10978 ;;
10979 aix[45]*)
10980 libltdl_cv_sys_dlopen_deplibs=yes
10981 ;;
10982 darwin*)
10983 # Assuming the user has installed a libdl from somewhere, this is true
10984 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10985 libltdl_cv_sys_dlopen_deplibs=yes
10986 ;;
10987 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10988 # GNU and its variants, using gnu ld.so (Glibc)
10989 libltdl_cv_sys_dlopen_deplibs=yes
10990 ;;
10991 hpux10*|hpux11*)
10992 libltdl_cv_sys_dlopen_deplibs=yes
10993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010994 interix*)
10995 libltdl_cv_sys_dlopen_deplibs=yes
10996 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997 irix[12345]*|irix6.[01]*)
10998 # Catch all versions of IRIX before 6.2, and indicate that we don't
10999 # know how it worked for any of those versions.
11000 libltdl_cv_sys_dlopen_deplibs=unknown
11001 ;;
11002 irix*)
11003 # The case above catches anything before 6.2, and it's known that
11004 # at 6.2 and later dlopen does load deplibs.
11005 libltdl_cv_sys_dlopen_deplibs=yes
11006 ;;
11007 netbsd*)
11008 libltdl_cv_sys_dlopen_deplibs=yes
11009 ;;
11010 openbsd*)
11011 libltdl_cv_sys_dlopen_deplibs=yes
11012 ;;
11013 osf[1234]*)
11014 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11015 # it did *not* use an RPATH in a shared library to find objects the
11016 # library depends on, so we explictly say `no'.
11017 libltdl_cv_sys_dlopen_deplibs=no
11018 ;;
11019 osf5.0|osf5.0a|osf5.1)
11020 # dlopen *does* load deplibs and with the right loader patch applied
11021 # it even uses RPATH in a shared library to search for shared objects
11022 # that the library depends on, but there's no easy way to know if that
11023 # patch is installed. Since this is the case, all we can really
11024 # say is unknown -- it depends on the patch being installed. If
11025 # it is, this changes to `yes'. Without it, it would be `no'.
11026 libltdl_cv_sys_dlopen_deplibs=unknown
11027 ;;
11028 osf*)
11029 # the two cases above should catch all versions of osf <= 5.1. Read
11030 # the comments above for what we know about them.
11031 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11032 # is used to find them so we can finally say `yes'.
11033 libltdl_cv_sys_dlopen_deplibs=yes
11034 ;;
11035 solaris*)
11036 libltdl_cv_sys_dlopen_deplibs=yes
11037 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11039 libltdl_cv_sys_dlopen_deplibs=yes
11040 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011041 esac
11042
11043fi
Reid Spencera773bd52006-08-04 18:18:08 +000011044{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11045echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011046if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11047
11048cat >>confdefs.h <<\_ACEOF
11049#define LTDL_DLOPEN_DEPLIBS 1
11050_ACEOF
11051
11052fi
11053
11054
11055for ac_header in argz.h
11056do
11057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011058if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063fi
Reid Spencera773bd52006-08-04 18:18:08 +000011064ac_res=`eval echo '${'$as_ac_Header'}'`
11065 { echo "$as_me:$LINENO: result: $ac_res" >&5
11066echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011067else
11068 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011069{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11070echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071cat >conftest.$ac_ext <<_ACEOF
11072/* confdefs.h. */
11073_ACEOF
11074cat confdefs.h >>conftest.$ac_ext
11075cat >>conftest.$ac_ext <<_ACEOF
11076/* end confdefs.h. */
11077$ac_includes_default
11078#include <$ac_header>
11079_ACEOF
11080rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011081if { (ac_try="$ac_compile"
11082case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085esac
11086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try='test -s conftest.$ac_objext'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114 ac_header_compiler=yes
11115else
11116 echo "$as_me: failed program was:" >&5
11117sed 's/^/| /' conftest.$ac_ext >&5
11118
Reid Spencera773bd52006-08-04 18:18:08 +000011119 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120fi
Reid Spencera773bd52006-08-04 18:18:08 +000011121
11122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11124echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125
11126# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011127{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */
11135#include <$ac_header>
11136_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011137if { (ac_try="$ac_cpp conftest.$ac_ext"
11138case "(($ac_try" in
11139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11141esac
11142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011144 ac_status=$?
11145 grep -v '^ *+' conftest.er1 >conftest.err
11146 rm -f conftest.er1
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011149 (exit $ac_status); } >/dev/null; then
11150 if test -s conftest.err; then
11151 ac_cpp_err=$ac_c_preproc_warn_flag
11152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11153 else
11154 ac_cpp_err=
11155 fi
11156else
11157 ac_cpp_err=yes
11158fi
11159if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160 ac_header_preproc=yes
11161else
11162 echo "$as_me: failed program was:" >&5
11163sed 's/^/| /' conftest.$ac_ext >&5
11164
11165 ac_header_preproc=no
11166fi
Reid Spencera773bd52006-08-04 18:18:08 +000011167
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011168rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011169{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11170echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171
11172# So? What about this header?
11173case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11174 yes:no: )
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11179 ac_header_preproc=yes
11180 ;;
11181 no:yes:* )
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11185echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11189echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011194 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195## ----------------------------------- ##
11196## Report this to llvmbugs@cs.uiuc.edu ##
11197## ----------------------------------- ##
11198_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011199 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011200 ;;
11201esac
Reid Spencera773bd52006-08-04 18:18:08 +000011202{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205 echo $ECHO_N "(cached) $ECHO_C" >&6
11206else
11207 eval "$as_ac_Header=\$ac_header_preproc"
11208fi
Reid Spencera773bd52006-08-04 18:18:08 +000011209ac_res=`eval echo '${'$as_ac_Header'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212
11213fi
11214if test `eval echo '${'$as_ac_Header'}'` = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11217_ACEOF
11218
11219fi
11220
11221done
11222
11223
Reid Spencera773bd52006-08-04 18:18:08 +000011224{ echo "$as_me:$LINENO: checking for error_t" >&5
11225echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011226if test "${ac_cv_type_error_t+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228else
11229 cat >conftest.$ac_ext <<_ACEOF
11230/* confdefs.h. */
11231_ACEOF
11232cat confdefs.h >>conftest.$ac_ext
11233cat >>conftest.$ac_ext <<_ACEOF
11234/* end confdefs.h. */
11235#if HAVE_ARGZ_H
11236# include <argz.h>
11237#endif
11238
Reid Spencera773bd52006-08-04 18:18:08 +000011239typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240int
11241main ()
11242{
Reid Spencera773bd52006-08-04 18:18:08 +000011243if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011244 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011245if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246 return 0;
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011252if { (ac_try="$ac_compile"
11253case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011264 (exit $ac_status); } &&
11265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
11276 { (case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279esac
11280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_try") 2>&5
11282 ac_status=$?
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285 ac_cv_type_error_t=yes
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
Reid Spencera773bd52006-08-04 18:18:08 +000011290 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291fi
Reid Spencera773bd52006-08-04 18:18:08 +000011292
11293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294fi
Reid Spencera773bd52006-08-04 18:18:08 +000011295{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11296echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297if test $ac_cv_type_error_t = yes; then
11298
11299cat >>confdefs.h <<_ACEOF
11300#define HAVE_ERROR_T 1
11301_ACEOF
11302
11303
11304else
11305
11306cat >>confdefs.h <<\_ACEOF
11307#define error_t int
11308_ACEOF
11309
11310fi
11311
11312
11313
11314
11315
11316
11317
11318for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11319do
11320as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011321{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11323if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325else
11326 cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11334#define $ac_func innocuous_$ac_func
11335
11336/* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char $ac_func (); below.
11338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11339 <limits.h> exists even on freestanding compilers. */
11340
11341#ifdef __STDC__
11342# include <limits.h>
11343#else
11344# include <assert.h>
11345#endif
11346
11347#undef $ac_func
11348
Reid Spencera773bd52006-08-04 18:18:08 +000011349/* Override any GCC internal prototype to avoid an error.
11350 Use char because int might match the return type of a GCC
11351 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352#ifdef __cplusplus
11353extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355char $ac_func ();
11356/* The GNU C library defines this for functions which it implements
11357 to always fail with ENOSYS. Some functions are actually named
11358 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011359#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011360choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361#endif
11362
11363int
11364main ()
11365{
Reid Spencera773bd52006-08-04 18:18:08 +000011366return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 ;
11368 return 0;
11369}
11370_ACEOF
11371rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011372if { (ac_try="$ac_link"
11373case "(($ac_try" in
11374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11375 *) ac_try_echo=$ac_try;;
11376esac
11377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11378 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 ac_status=$?
11380 grep -v '^ *+' conftest.er1 >conftest.err
11381 rm -f conftest.er1
11382 cat conftest.err >&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011384 (exit $ac_status); } &&
11385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11386 { (case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389esac
11390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_try") 2>&5
11392 ac_status=$?
11393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394 (exit $ac_status); }; } &&
11395 { ac_try='test -s conftest$ac_exeext'
11396 { (case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_try") 2>&5
11402 ac_status=$?
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405 eval "$as_ac_var=yes"
11406else
11407 echo "$as_me: failed program was:" >&5
11408sed 's/^/| /' conftest.$ac_ext >&5
11409
Reid Spencera773bd52006-08-04 18:18:08 +000011410 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411fi
Reid Spencera773bd52006-08-04 18:18:08 +000011412
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011413rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011414 conftest$ac_exeext conftest.$ac_ext
11415fi
Reid Spencera773bd52006-08-04 18:18:08 +000011416ac_res=`eval echo '${'$as_ac_var'}'`
11417 { echo "$as_me:$LINENO: result: $ac_res" >&5
11418echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419if test `eval echo '${'$as_ac_var'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11422_ACEOF
11423
11424fi
11425done
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11455 stdio.h unistd.h
11456do
11457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462 echo $ECHO_N "(cached) $ECHO_C" >&6
11463fi
Reid Spencera773bd52006-08-04 18:18:08 +000011464ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467else
11468 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011469{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477$ac_includes_default
11478#include <$ac_header>
11479_ACEOF
11480rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011481if { (ac_try="$ac_compile"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011493 (exit $ac_status); } &&
11494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
11505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
11511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 ac_header_compiler=yes
11515else
11516 echo "$as_me: failed program was:" >&5
11517sed 's/^/| /' conftest.$ac_ext >&5
11518
Reid Spencera773bd52006-08-04 18:18:08 +000011519 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520fi
Reid Spencera773bd52006-08-04 18:18:08 +000011521
11522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11524echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525
11526# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011527{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11528echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529cat >conftest.$ac_ext <<_ACEOF
11530/* confdefs.h. */
11531_ACEOF
11532cat confdefs.h >>conftest.$ac_ext
11533cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */
11535#include <$ac_header>
11536_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011537if { (ac_try="$ac_cpp conftest.$ac_ext"
11538case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011549 (exit $ac_status); } >/dev/null; then
11550 if test -s conftest.err; then
11551 ac_cpp_err=$ac_c_preproc_warn_flag
11552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11553 else
11554 ac_cpp_err=
11555 fi
11556else
11557 ac_cpp_err=yes
11558fi
11559if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 ac_header_preproc=yes
11561else
11562 echo "$as_me: failed program was:" >&5
11563sed 's/^/| /' conftest.$ac_ext >&5
11564
11565 ac_header_preproc=no
11566fi
Reid Spencera773bd52006-08-04 18:18:08 +000011567
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011568rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011569{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571
11572# So? What about this header?
11573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11574 yes:no: )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11580 ;;
11581 no:yes:* )
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011594 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595## ----------------------------------- ##
11596## Report this to llvmbugs@cs.uiuc.edu ##
11597## ----------------------------------- ##
11598_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011599 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600 ;;
11601esac
Reid Spencera773bd52006-08-04 18:18:08 +000011602{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606else
11607 eval "$as_ac_Header=\$ac_header_preproc"
11608fi
Reid Spencera773bd52006-08-04 18:18:08 +000011609ac_res=`eval echo '${'$as_ac_Header'}'`
11610 { echo "$as_me:$LINENO: result: $ac_res" >&5
11611echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612
11613fi
11614if test `eval echo '${'$as_ac_Header'}'` = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11617_ACEOF
11618
11619fi
11620
11621done
11622
11623
11624
11625
11626
11627for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11628do
11629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635fi
Reid Spencera773bd52006-08-04 18:18:08 +000011636ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639else
11640 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011641{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11642echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649$ac_includes_default
11650#include <$ac_header>
11651_ACEOF
11652rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011653if { (ac_try="$ac_compile"
11654case "(($ac_try" in
11655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11657esac
11658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660 ac_status=$?
11661 grep -v '^ *+' conftest.er1 >conftest.err
11662 rm -f conftest.er1
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011665 (exit $ac_status); } &&
11666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667 { (case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670esac
11671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_try") 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (case "(($ac_try" in
11678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11680esac
11681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_try") 2>&5
11683 ac_status=$?
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686 ac_header_compiler=yes
11687else
11688 echo "$as_me: failed program was:" >&5
11689sed 's/^/| /' conftest.$ac_ext >&5
11690
Reid Spencera773bd52006-08-04 18:18:08 +000011691 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692fi
Reid Spencera773bd52006-08-04 18:18:08 +000011693
11694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11696echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697
11698# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011699{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701cat >conftest.$ac_ext <<_ACEOF
11702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h. */
11707#include <$ac_header>
11708_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011709if { (ac_try="$ac_cpp conftest.$ac_ext"
11710case "(($ac_try" in
11711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11712 *) ac_try_echo=$ac_try;;
11713esac
11714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011721 (exit $ac_status); } >/dev/null; then
11722 if test -s conftest.err; then
11723 ac_cpp_err=$ac_c_preproc_warn_flag
11724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725 else
11726 ac_cpp_err=
11727 fi
11728else
11729 ac_cpp_err=yes
11730fi
11731if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 ac_header_preproc=yes
11733else
11734 echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_header_preproc=no
11738fi
Reid Spencera773bd52006-08-04 18:18:08 +000011739
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011741{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11742echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743
11744# So? What about this header?
11745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11746 yes:no: )
11747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11751 ac_header_preproc=yes
11752 ;;
11753 no:yes:* )
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011766 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011767## ----------------------------------- ##
11768## Report this to llvmbugs@cs.uiuc.edu ##
11769## ----------------------------------- ##
11770_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011771 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772 ;;
11773esac
Reid Spencera773bd52006-08-04 18:18:08 +000011774{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777 echo $ECHO_N "(cached) $ECHO_C" >&6
11778else
11779 eval "$as_ac_Header=\$ac_header_preproc"
11780fi
Reid Spencera773bd52006-08-04 18:18:08 +000011781ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784
11785fi
11786if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11789_ACEOF
11790
11791fi
11792
11793done
11794
11795
11796
11797for ac_header in string.h strings.h
11798do
11799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011800if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805fi
Reid Spencera773bd52006-08-04 18:18:08 +000011806ac_res=`eval echo '${'$as_ac_Header'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809else
11810 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011811{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813cat >conftest.$ac_ext <<_ACEOF
11814/* confdefs.h. */
11815_ACEOF
11816cat confdefs.h >>conftest.$ac_ext
11817cat >>conftest.$ac_ext <<_ACEOF
11818/* end confdefs.h. */
11819$ac_includes_default
11820#include <$ac_header>
11821_ACEOF
11822rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011823if { (ac_try="$ac_compile"
11824case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840esac
11841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_try") 2>&5
11843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest.$ac_objext'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 ac_header_compiler=yes
11857else
11858 echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
Reid Spencera773bd52006-08-04 18:18:08 +000011861 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862fi
Reid Spencera773bd52006-08-04 18:18:08 +000011863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11866echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867
11868# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011869{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011871cat >conftest.$ac_ext <<_ACEOF
11872/* confdefs.h. */
11873_ACEOF
11874cat confdefs.h >>conftest.$ac_ext
11875cat >>conftest.$ac_ext <<_ACEOF
11876/* end confdefs.h. */
11877#include <$ac_header>
11878_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011879if { (ac_try="$ac_cpp conftest.$ac_ext"
11880case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883esac
11884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886 ac_status=$?
11887 grep -v '^ *+' conftest.er1 >conftest.err
11888 rm -f conftest.er1
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011891 (exit $ac_status); } >/dev/null; then
11892 if test -s conftest.err; then
11893 ac_cpp_err=$ac_c_preproc_warn_flag
11894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11895 else
11896 ac_cpp_err=
11897 fi
11898else
11899 ac_cpp_err=yes
11900fi
11901if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011902 ac_header_preproc=yes
11903else
11904 echo "$as_me: failed program was:" >&5
11905sed 's/^/| /' conftest.$ac_ext >&5
11906
11907 ac_header_preproc=no
11908fi
Reid Spencera773bd52006-08-04 18:18:08 +000011909
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011911{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11912echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913
11914# So? What about this header?
11915case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11916 yes:no: )
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11920echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11921 ac_header_preproc=yes
11922 ;;
11923 no:yes:* )
11924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11929echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11931echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11935echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011936 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011937## ----------------------------------- ##
11938## Report this to llvmbugs@cs.uiuc.edu ##
11939## ----------------------------------- ##
11940_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011941 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942 ;;
11943esac
Reid Spencera773bd52006-08-04 18:18:08 +000011944{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 echo $ECHO_N "(cached) $ECHO_C" >&6
11948else
11949 eval "$as_ac_Header=\$ac_header_preproc"
11950fi
Reid Spencera773bd52006-08-04 18:18:08 +000011951ac_res=`eval echo '${'$as_ac_Header'}'`
11952 { echo "$as_me:$LINENO: result: $ac_res" >&5
11953echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954
11955fi
11956if test `eval echo '${'$as_ac_Header'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959_ACEOF
11960 break
11961fi
11962
11963done
11964
11965
11966
11967
11968for ac_func in strchr index
11969do
11970as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011971{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11972echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974 echo $ECHO_N "(cached) $ECHO_C" >&6
11975else
11976 cat >conftest.$ac_ext <<_ACEOF
11977/* confdefs.h. */
11978_ACEOF
11979cat confdefs.h >>conftest.$ac_ext
11980cat >>conftest.$ac_ext <<_ACEOF
11981/* end confdefs.h. */
11982/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984#define $ac_func innocuous_$ac_func
11985
11986/* System header to define __stub macros and hopefully few prototypes,
11987 which can conflict with char $ac_func (); below.
11988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989 <limits.h> exists even on freestanding compilers. */
11990
11991#ifdef __STDC__
11992# include <limits.h>
11993#else
11994# include <assert.h>
11995#endif
11996
11997#undef $ac_func
11998
Reid Spencera773bd52006-08-04 18:18:08 +000011999/* Override any GCC internal prototype to avoid an error.
12000 Use char because int might match the return type of a GCC
12001 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012002#ifdef __cplusplus
12003extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005char $ac_func ();
12006/* The GNU C library defines this for functions which it implements
12007 to always fail with ENOSYS. Some functions are actually named
12008 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012009#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011#endif
12012
12013int
12014main ()
12015{
Reid Spencera773bd52006-08-04 18:18:08 +000012016return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017 ;
12018 return 0;
12019}
12020_ACEOF
12021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012022if { (ac_try="$ac_link"
12023case "(($ac_try" in
12024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025 *) ac_try_echo=$ac_try;;
12026esac
12027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012029 ac_status=$?
12030 grep -v '^ *+' conftest.er1 >conftest.err
12031 rm -f conftest.er1
12032 cat conftest.err >&5
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012034 (exit $ac_status); } &&
12035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12036 { (case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
12040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_try") 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest$ac_exeext'
12046 { (case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_try") 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 eval "$as_ac_var=yes"
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
Reid Spencera773bd52006-08-04 18:18:08 +000012060 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061fi
Reid Spencera773bd52006-08-04 18:18:08 +000012062
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012063rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064 conftest$ac_exeext conftest.$ac_ext
12065fi
Reid Spencera773bd52006-08-04 18:18:08 +000012066ac_res=`eval echo '${'$as_ac_var'}'`
12067 { echo "$as_me:$LINENO: result: $ac_res" >&5
12068echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069if test `eval echo '${'$as_ac_var'}'` = yes; then
12070 cat >>confdefs.h <<_ACEOF
12071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12072_ACEOF
12073 break
12074fi
12075done
12076
12077
12078
12079for ac_func in strrchr rindex
12080do
12081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012082{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086else
12087 cat >conftest.$ac_ext <<_ACEOF
12088/* confdefs.h. */
12089_ACEOF
12090cat confdefs.h >>conftest.$ac_ext
12091cat >>conftest.$ac_ext <<_ACEOF
12092/* end confdefs.h. */
12093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12095#define $ac_func innocuous_$ac_func
12096
12097/* System header to define __stub macros and hopefully few prototypes,
12098 which can conflict with char $ac_func (); below.
12099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12100 <limits.h> exists even on freestanding compilers. */
12101
12102#ifdef __STDC__
12103# include <limits.h>
12104#else
12105# include <assert.h>
12106#endif
12107
12108#undef $ac_func
12109
Reid Spencera773bd52006-08-04 18:18:08 +000012110/* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113#ifdef __cplusplus
12114extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116char $ac_func ();
12117/* The GNU C library defines this for functions which it implements
12118 to always fail with ENOSYS. Some functions are actually named
12119 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012120#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122#endif
12123
12124int
12125main ()
12126{
Reid Spencera773bd52006-08-04 18:18:08 +000012127return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128 ;
12129 return 0;
12130}
12131_ACEOF
12132rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012133if { (ac_try="$ac_link"
12134case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137esac
12138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012145 (exit $ac_status); } &&
12146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12150esac
12151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12153 ac_status=$?
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; } &&
12156 { ac_try='test -s conftest$ac_exeext'
12157 { (case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12160esac
12161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_try") 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166 eval "$as_ac_var=yes"
12167else
12168 echo "$as_me: failed program was:" >&5
12169sed 's/^/| /' conftest.$ac_ext >&5
12170
Reid Spencera773bd52006-08-04 18:18:08 +000012171 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172fi
Reid Spencera773bd52006-08-04 18:18:08 +000012173
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012174rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012175 conftest$ac_exeext conftest.$ac_ext
12176fi
Reid Spencera773bd52006-08-04 18:18:08 +000012177ac_res=`eval echo '${'$as_ac_var'}'`
12178 { echo "$as_me:$LINENO: result: $ac_res" >&5
12179echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180if test `eval echo '${'$as_ac_var'}'` = yes; then
12181 cat >>confdefs.h <<_ACEOF
12182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12183_ACEOF
12184 break
12185fi
12186done
12187
12188
12189
12190for ac_func in memcpy bcopy
12191do
12192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012193{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12195if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012196 echo $ECHO_N "(cached) $ECHO_C" >&6
12197else
12198 cat >conftest.$ac_ext <<_ACEOF
12199/* confdefs.h. */
12200_ACEOF
12201cat confdefs.h >>conftest.$ac_ext
12202cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */
12204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12206#define $ac_func innocuous_$ac_func
12207
12208/* System header to define __stub macros and hopefully few prototypes,
12209 which can conflict with char $ac_func (); below.
12210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12211 <limits.h> exists even on freestanding compilers. */
12212
12213#ifdef __STDC__
12214# include <limits.h>
12215#else
12216# include <assert.h>
12217#endif
12218
12219#undef $ac_func
12220
Reid Spencera773bd52006-08-04 18:18:08 +000012221/* Override any GCC internal prototype to avoid an error.
12222 Use char because int might match the return type of a GCC
12223 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224#ifdef __cplusplus
12225extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012226#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227char $ac_func ();
12228/* The GNU C library defines this for functions which it implements
12229 to always fail with ENOSYS. Some functions are actually named
12230 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012231#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233#endif
12234
12235int
12236main ()
12237{
Reid Spencera773bd52006-08-04 18:18:08 +000012238return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012239 ;
12240 return 0;
12241}
12242_ACEOF
12243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012244if { (ac_try="$ac_link"
12245case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248esac
12249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012256 (exit $ac_status); } &&
12257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (case "(($ac_try" in
12269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12270 *) ac_try_echo=$ac_try;;
12271esac
12272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12273 (eval "$ac_try") 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012277 eval "$as_ac_var=yes"
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
Reid Spencera773bd52006-08-04 18:18:08 +000012282 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283fi
Reid Spencera773bd52006-08-04 18:18:08 +000012284
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286 conftest$ac_exeext conftest.$ac_ext
12287fi
Reid Spencera773bd52006-08-04 18:18:08 +000012288ac_res=`eval echo '${'$as_ac_var'}'`
12289 { echo "$as_me:$LINENO: result: $ac_res" >&5
12290echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291if test `eval echo '${'$as_ac_var'}'` = yes; then
12292 cat >>confdefs.h <<_ACEOF
12293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12294_ACEOF
12295 break
12296fi
12297done
12298
12299
12300
12301for ac_func in memmove strcmp
12302do
12303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012304{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12306if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308else
12309 cat >conftest.$ac_ext <<_ACEOF
12310/* confdefs.h. */
12311_ACEOF
12312cat confdefs.h >>conftest.$ac_ext
12313cat >>conftest.$ac_ext <<_ACEOF
12314/* end confdefs.h. */
12315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12317#define $ac_func innocuous_$ac_func
12318
12319/* System header to define __stub macros and hopefully few prototypes,
12320 which can conflict with char $ac_func (); below.
12321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12322 <limits.h> exists even on freestanding compilers. */
12323
12324#ifdef __STDC__
12325# include <limits.h>
12326#else
12327# include <assert.h>
12328#endif
12329
12330#undef $ac_func
12331
Reid Spencera773bd52006-08-04 18:18:08 +000012332/* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335#ifdef __cplusplus
12336extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338char $ac_func ();
12339/* The GNU C library defines this for functions which it implements
12340 to always fail with ENOSYS. Some functions are actually named
12341 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012342#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344#endif
12345
12346int
12347main ()
12348{
Reid Spencera773bd52006-08-04 18:18:08 +000012349return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012355if { (ac_try="$ac_link"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12369 { (case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_try") 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; } &&
12378 { ac_try='test -s conftest$ac_exeext'
12379 { (case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382esac
12383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_try") 2>&5
12385 ac_status=$?
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 eval "$as_ac_var=yes"
12389else
12390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
12392
Reid Spencera773bd52006-08-04 18:18:08 +000012393 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394fi
Reid Spencera773bd52006-08-04 18:18:08 +000012395
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012396rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012397 conftest$ac_exeext conftest.$ac_ext
12398fi
Reid Spencera773bd52006-08-04 18:18:08 +000012399ac_res=`eval echo '${'$as_ac_var'}'`
12400 { echo "$as_me:$LINENO: result: $ac_res" >&5
12401echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402if test `eval echo '${'$as_ac_var'}'` = yes; then
12403 cat >>confdefs.h <<_ACEOF
12404#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12405_ACEOF
12406
12407fi
12408done
12409
12410
12411
12412
12413for ac_func in closedir opendir readdir
12414do
12415as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012416{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12417echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12418if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 echo $ECHO_N "(cached) $ECHO_C" >&6
12420else
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12429#define $ac_func innocuous_$ac_func
12430
12431/* System header to define __stub macros and hopefully few prototypes,
12432 which can conflict with char $ac_func (); below.
12433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12434 <limits.h> exists even on freestanding compilers. */
12435
12436#ifdef __STDC__
12437# include <limits.h>
12438#else
12439# include <assert.h>
12440#endif
12441
12442#undef $ac_func
12443
Reid Spencera773bd52006-08-04 18:18:08 +000012444/* Override any GCC internal prototype to avoid an error.
12445 Use char because int might match the return type of a GCC
12446 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447#ifdef __cplusplus
12448extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450char $ac_func ();
12451/* The GNU C library defines this for functions which it implements
12452 to always fail with ENOSYS. Some functions are actually named
12453 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012454#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456#endif
12457
12458int
12459main ()
12460{
Reid Spencera773bd52006-08-04 18:18:08 +000012461return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012462 ;
12463 return 0;
12464}
12465_ACEOF
12466rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012467if { (ac_try="$ac_link"
12468case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12471esac
12472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012474 ac_status=$?
12475 grep -v '^ *+' conftest.er1 >conftest.err
12476 rm -f conftest.er1
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012479 (exit $ac_status); } &&
12480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12481 { (case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484esac
12485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_try") 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; } &&
12490 { ac_try='test -s conftest$ac_exeext'
12491 { (case "(($ac_try" in
12492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493 *) ac_try_echo=$ac_try;;
12494esac
12495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12496 (eval "$ac_try") 2>&5
12497 ac_status=$?
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012500 eval "$as_ac_var=yes"
12501else
12502 echo "$as_me: failed program was:" >&5
12503sed 's/^/| /' conftest.$ac_ext >&5
12504
Reid Spencera773bd52006-08-04 18:18:08 +000012505 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012506fi
Reid Spencera773bd52006-08-04 18:18:08 +000012507
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012508rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509 conftest$ac_exeext conftest.$ac_ext
12510fi
Reid Spencera773bd52006-08-04 18:18:08 +000012511ac_res=`eval echo '${'$as_ac_var'}'`
12512 { echo "$as_me:$LINENO: result: $ac_res" >&5
12513echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514if test `eval echo '${'$as_ac_var'}'` = yes; then
12515 cat >>confdefs.h <<_ACEOF
12516#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12517_ACEOF
12518
12519fi
12520done
12521
12522
Reid Spencera773bd52006-08-04 18:18:08 +000012523# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012524if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012525 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526 case $enableval in
12527 yes) enable_shared=yes ;;
12528 no) enable_shared=no ;;
12529 *)
12530 enable_shared=no
12531 # Look at the argument we got. We use all the common list separators.
12532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12533 for pkg in $enableval; do
12534 IFS="$lt_save_ifs"
12535 if test "X$pkg" = "X$p"; then
12536 enable_shared=yes
12537 fi
12538 done
12539 IFS="$lt_save_ifs"
12540 ;;
12541 esac
12542else
12543 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012544fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545
Reid Spencera773bd52006-08-04 18:18:08 +000012546
12547# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012548if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012549 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550 case $enableval in
12551 yes) enable_static=yes ;;
12552 no) enable_static=no ;;
12553 *)
12554 enable_static=no
12555 # Look at the argument we got. We use all the common list separators.
12556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12557 for pkg in $enableval; do
12558 IFS="$lt_save_ifs"
12559 if test "X$pkg" = "X$p"; then
12560 enable_static=yes
12561 fi
12562 done
12563 IFS="$lt_save_ifs"
12564 ;;
12565 esac
12566else
12567 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012568fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012569
Reid Spencera773bd52006-08-04 18:18:08 +000012570
12571# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012573 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012574 case $enableval in
12575 yes) enable_fast_install=yes ;;
12576 no) enable_fast_install=no ;;
12577 *)
12578 enable_fast_install=no
12579 # Look at the argument we got. We use all the common list separators.
12580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12581 for pkg in $enableval; do
12582 IFS="$lt_save_ifs"
12583 if test "X$pkg" = "X$p"; then
12584 enable_fast_install=yes
12585 fi
12586 done
12587 IFS="$lt_save_ifs"
12588 ;;
12589 esac
12590else
12591 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012592fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012593
Reid Spencera773bd52006-08-04 18:18:08 +000012594
12595{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12596echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597if test "${lt_cv_path_SED+set}" = set; then
12598 echo $ECHO_N "(cached) $ECHO_C" >&6
12599else
12600 # Loop through the user's path and test for sed and gsed.
12601# Then use that list of sed's as ones to test for truncation.
12602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603for as_dir in $PATH
12604do
12605 IFS=$as_save_IFS
12606 test -z "$as_dir" && as_dir=.
12607 for lt_ac_prog in sed gsed; do
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12610 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12611 fi
12612 done
12613 done
12614done
12615lt_ac_max=0
12616lt_ac_count=0
12617# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12618# along with /bin/sed that truncates output.
12619for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012620 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621 cat /dev/null > conftest.in
12622 lt_ac_count=0
12623 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12624 # Check for GNU sed and select it if it is found.
12625 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12626 lt_cv_path_SED=$lt_ac_sed
12627 break
12628 fi
12629 while true; do
12630 cat conftest.in conftest.in >conftest.tmp
12631 mv conftest.tmp conftest.in
12632 cp conftest.in conftest.nl
12633 echo >>conftest.nl
12634 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12635 cmp -s conftest.out conftest.nl || break
12636 # 10000 chars as input seems more than enough
12637 test $lt_ac_count -gt 10 && break
12638 lt_ac_count=`expr $lt_ac_count + 1`
12639 if test $lt_ac_count -gt $lt_ac_max; then
12640 lt_ac_max=$lt_ac_count
12641 lt_cv_path_SED=$lt_ac_sed
12642 fi
12643 done
12644done
12645
12646fi
12647
12648SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012649{ echo "$as_me:$LINENO: result: $SED" >&5
12650echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012651
12652
Reid Spencera773bd52006-08-04 18:18:08 +000012653# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012654if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012656else
12657 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012658fi
12659
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012660ac_prog=ld
12661if test "$GCC" = yes; then
12662 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012663 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12664echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665 case $host in
12666 *-*-mingw*)
12667 # gcc leaves a trailing carriage return which upsets mingw
12668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 *)
12670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12671 esac
12672 case $ac_prog in
12673 # Accept absolute paths.
12674 [\\/]* | ?:[\\/]*)
12675 re_direlt='/[^/][^/]*/\.\./'
12676 # Canonicalize the pathname of ld
12677 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12678 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12679 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12680 done
12681 test -z "$LD" && LD="$ac_prog"
12682 ;;
12683 "")
12684 # If it fails, then pretend we aren't using GCC.
12685 ac_prog=ld
12686 ;;
12687 *)
12688 # If it is relative, then search for the first ld in PATH.
12689 with_gnu_ld=unknown
12690 ;;
12691 esac
12692elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012693 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12694echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695else
Reid Spencera773bd52006-08-04 18:18:08 +000012696 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12697echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012698fi
12699if test "${lt_cv_path_LD+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701else
12702 if test -z "$LD"; then
12703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12704 for ac_dir in $PATH; do
12705 IFS="$lt_save_ifs"
12706 test -z "$ac_dir" && ac_dir=.
12707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12708 lt_cv_path_LD="$ac_dir/$ac_prog"
12709 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012710 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012711 # Break only if it was the GNU/non-GNU ld that we prefer.
12712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12713 *GNU* | *'with BFD'*)
12714 test "$with_gnu_ld" != no && break
12715 ;;
12716 *)
12717 test "$with_gnu_ld" != yes && break
12718 ;;
12719 esac
12720 fi
12721 done
12722 IFS="$lt_save_ifs"
12723else
12724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12725fi
12726fi
12727
12728LD="$lt_cv_path_LD"
12729if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012730 { echo "$as_me:$LINENO: result: $LD" >&5
12731echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012732else
Reid Spencera773bd52006-08-04 18:18:08 +000012733 { echo "$as_me:$LINENO: result: no" >&5
12734echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012735fi
12736test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12737echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12738 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012739{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12740echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012741if test "${lt_cv_prog_gnu_ld+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12743else
Reid Spencera773bd52006-08-04 18:18:08 +000012744 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012745case `$LD -v 2>&1 </dev/null` in
12746*GNU* | *'with BFD'*)
12747 lt_cv_prog_gnu_ld=yes
12748 ;;
12749*)
12750 lt_cv_prog_gnu_ld=no
12751 ;;
12752esac
12753fi
Reid Spencera773bd52006-08-04 18:18:08 +000012754{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12755echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012756with_gnu_ld=$lt_cv_prog_gnu_ld
12757
12758
Reid Spencera773bd52006-08-04 18:18:08 +000012759{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12760echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012761if test "${lt_cv_ld_reload_flag+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763else
12764 lt_cv_ld_reload_flag='-r'
12765fi
Reid Spencera773bd52006-08-04 18:18:08 +000012766{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12767echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012768reload_flag=$lt_cv_ld_reload_flag
12769case $reload_flag in
12770"" | " "*) ;;
12771*) reload_flag=" $reload_flag" ;;
12772esac
12773reload_cmds='$LD$reload_flag -o $output$reload_objs'
12774case $host_os in
12775 darwin*)
12776 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012777 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778 else
12779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12780 fi
12781 ;;
12782esac
12783
Reid Spencera773bd52006-08-04 18:18:08 +000012784{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12785echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012786if test "${lt_cv_deplibs_check_method+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789 lt_cv_file_magic_cmd='$MAGIC_CMD'
12790lt_cv_file_magic_test_file=
12791lt_cv_deplibs_check_method='unknown'
12792# Need to set the preceding variable on all platforms that support
12793# interlibrary dependencies.
12794# 'none' -- dependencies not supported.
12795# `unknown' -- same as none, but documents that we really don't know.
12796# 'pass_all' -- all dependencies passed with no checks.
12797# 'test_compile' -- check by making test program.
12798# 'file_magic [[regex]]' -- check by looking for files in library path
12799# which responds to the $file_magic_cmd with a given extended regex.
12800# If you have `file' or equivalent on your system and you're not sure
12801# whether `pass_all' will *always* work, you probably want this one.
12802
12803case $host_os in
12804aix4* | aix5*)
12805 lt_cv_deplibs_check_method=pass_all
12806 ;;
12807
12808beos*)
12809 lt_cv_deplibs_check_method=pass_all
12810 ;;
12811
12812bsdi[45]*)
12813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12814 lt_cv_file_magic_cmd='/usr/bin/file -L'
12815 lt_cv_file_magic_test_file=/shlib/libc.so
12816 ;;
12817
12818cygwin*)
12819 # func_win32_libid is a shell function defined in ltmain.sh
12820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12821 lt_cv_file_magic_cmd='func_win32_libid'
12822 ;;
12823
12824mingw* | pw32*)
12825 # Base MSYS/MinGW do not provide the 'file' command needed by
12826 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12828 lt_cv_file_magic_cmd='$OBJDUMP -f'
12829 ;;
12830
12831darwin* | rhapsody*)
12832 lt_cv_deplibs_check_method=pass_all
12833 ;;
12834
Reid Spencera773bd52006-08-04 18:18:08 +000012835freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12837 case $host_cpu in
12838 i*86 )
12839 # Not sure whether the presence of OpenBSD here was a mistake.
12840 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012841 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 +000012842 lt_cv_file_magic_cmd=/usr/bin/file
12843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12844 ;;
12845 esac
12846 else
12847 lt_cv_deplibs_check_method=pass_all
12848 fi
12849 ;;
12850
12851gnu*)
12852 lt_cv_deplibs_check_method=pass_all
12853 ;;
12854
12855hpux10.20* | hpux11*)
12856 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012857 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012858 ia64*)
12859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12861 ;;
12862 hppa*64*)
12863 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]'
12864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12865 ;;
12866 *)
12867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12869 ;;
12870 esac
12871 ;;
12872
Reid Spencera773bd52006-08-04 18:18:08 +000012873interix3*)
12874 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12876 ;;
12877
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012878irix5* | irix6* | nonstopux*)
12879 case $LD in
12880 *-32|*"-32 ") libmagic=32-bit;;
12881 *-n32|*"-n32 ") libmagic=N32;;
12882 *-64|*"-64 ") libmagic=64-bit;;
12883 *) libmagic=never-match;;
12884 esac
12885 lt_cv_deplibs_check_method=pass_all
12886 ;;
12887
12888# This must be Linux ELF.
12889linux*)
12890 lt_cv_deplibs_check_method=pass_all
12891 ;;
12892
12893netbsd*)
12894 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12896 else
12897 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12898 fi
12899 ;;
12900
12901newos6*)
12902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12903 lt_cv_file_magic_cmd=/usr/bin/file
12904 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12905 ;;
12906
12907nto-qnx*)
12908 lt_cv_deplibs_check_method=unknown
12909 ;;
12910
12911openbsd*)
12912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12913 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12914 else
12915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12916 fi
12917 ;;
12918
12919osf3* | osf4* | osf5*)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
12922
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012923solaris*)
12924 lt_cv_deplibs_check_method=pass_all
12925 ;;
12926
Reid Spencera773bd52006-08-04 18:18:08 +000012927sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012928 case $host_vendor in
12929 motorola)
12930 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]'
12931 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12932 ;;
12933 ncr)
12934 lt_cv_deplibs_check_method=pass_all
12935 ;;
12936 sequent)
12937 lt_cv_file_magic_cmd='/bin/file'
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12939 ;;
12940 sni)
12941 lt_cv_file_magic_cmd='/bin/file'
12942 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12943 lt_cv_file_magic_test_file=/lib/libc.so
12944 ;;
12945 siemens)
12946 lt_cv_deplibs_check_method=pass_all
12947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012948 pc)
12949 lt_cv_deplibs_check_method=pass_all
12950 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012951 esac
12952 ;;
12953
Reid Spencera773bd52006-08-04 18:18:08 +000012954sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012955 lt_cv_deplibs_check_method=pass_all
12956 ;;
12957esac
12958
12959fi
Reid Spencera773bd52006-08-04 18:18:08 +000012960{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12961echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012962file_magic_cmd=$lt_cv_file_magic_cmd
12963deplibs_check_method=$lt_cv_deplibs_check_method
12964test -z "$deplibs_check_method" && deplibs_check_method=unknown
12965
12966
12967
12968# If no C compiler was specified, use CC.
12969LTCC=${LTCC-"$CC"}
12970
Reid Spencera773bd52006-08-04 18:18:08 +000012971# If no C compiler flags were specified, use CFLAGS.
12972LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12973
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012974# Allow CC to be a program name with arguments.
12975compiler=$CC
12976
Reid Spencera773bd52006-08-04 18:18:08 +000012977# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012978if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012979 enableval=$enable_libtool_lock;
12980fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012981
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012982test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12983
12984# Some flags need to be propagated to the compiler or linker for good
12985# libtool support.
12986case $host in
12987ia64-*-hpux*)
12988 # Find out which ABI we are using.
12989 echo 'int i;' > conftest.$ac_ext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; then
12995 case `/usr/bin/file conftest.$ac_objext` in
12996 *ELF-32*)
12997 HPUX_IA64_MODE="32"
12998 ;;
12999 *ELF-64*)
13000 HPUX_IA64_MODE="64"
13001 ;;
13002 esac
13003 fi
13004 rm -rf conftest*
13005 ;;
13006*-*-irix6*)
13007 # Find out which ABI we are using.
Nick Lewyckye792b1d2009-02-03 07:10:30 +000013008 echo '#line 13008 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13010 (eval $ac_compile) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; then
13014 if test "$lt_cv_prog_gnu_ld" = yes; then
13015 case `/usr/bin/file conftest.$ac_objext` in
13016 *32-bit*)
13017 LD="${LD-ld} -melf32bsmip"
13018 ;;
13019 *N32*)
13020 LD="${LD-ld} -melf32bmipn32"
13021 ;;
13022 *64-bit*)
13023 LD="${LD-ld} -melf64bmip"
13024 ;;
13025 esac
13026 else
13027 case `/usr/bin/file conftest.$ac_objext` in
13028 *32-bit*)
13029 LD="${LD-ld} -32"
13030 ;;
13031 *N32*)
13032 LD="${LD-ld} -n32"
13033 ;;
13034 *64-bit*)
13035 LD="${LD-ld} -64"
13036 ;;
13037 esac
13038 fi
13039 fi
13040 rm -rf conftest*
13041 ;;
13042
13043x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13044 # Find out which ABI we are using.
13045 echo 'int i;' > conftest.$ac_ext
13046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13047 (eval $ac_compile) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013051 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013052 *32-bit*)
13053 case $host in
13054 x86_64-*linux*)
13055 LD="${LD-ld} -m elf_i386"
13056 ;;
13057 ppc64-*linux*|powerpc64-*linux*)
13058 LD="${LD-ld} -m elf32ppclinux"
13059 ;;
13060 s390x-*linux*)
13061 LD="${LD-ld} -m elf_s390"
13062 ;;
13063 sparc64-*linux*)
13064 LD="${LD-ld} -m elf32_sparc"
13065 ;;
13066 esac
13067 ;;
13068 *64-bit*)
13069 case $host in
13070 x86_64-*linux*)
13071 LD="${LD-ld} -m elf_x86_64"
13072 ;;
13073 ppc*-*linux*|powerpc*-*linux*)
13074 LD="${LD-ld} -m elf64ppc"
13075 ;;
13076 s390*-*linux*)
13077 LD="${LD-ld} -m elf64_s390"
13078 ;;
13079 sparc*-*linux*)
13080 LD="${LD-ld} -m elf64_sparc"
13081 ;;
13082 esac
13083 ;;
13084 esac
13085 fi
13086 rm -rf conftest*
13087 ;;
13088
13089*-*-sco3.2v5*)
13090 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13091 SAVE_CFLAGS="$CFLAGS"
13092 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013093 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13094echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013095if test "${lt_cv_cc_needs_belf+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 ac_ext=c
13099ac_cpp='$CPP $CPPFLAGS'
13100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13102ac_compiler_gnu=$ac_cv_c_compiler_gnu
13103
13104 cat >conftest.$ac_ext <<_ACEOF
13105/* confdefs.h. */
13106_ACEOF
13107cat confdefs.h >>conftest.$ac_ext
13108cat >>conftest.$ac_ext <<_ACEOF
13109/* end confdefs.h. */
13110
Reid Spencera773bd52006-08-04 18:18:08 +000013111int
13112main ()
13113{
13114
13115 ;
13116 return 0;
13117}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013118_ACEOF
13119rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013120if { (ac_try="$ac_link"
13121case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13124esac
13125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013132 (exit $ac_status); } &&
13133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13134 { (case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_try") 2>&5
13140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; } &&
13143 { ac_try='test -s conftest$ac_exeext'
13144 { (case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147esac
13148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_try") 2>&5
13150 ac_status=$?
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013153 lt_cv_cc_needs_belf=yes
13154else
13155 echo "$as_me: failed program was:" >&5
13156sed 's/^/| /' conftest.$ac_ext >&5
13157
Reid Spencera773bd52006-08-04 18:18:08 +000013158 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013159fi
Reid Spencera773bd52006-08-04 18:18:08 +000013160
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013161rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013162 conftest$ac_exeext conftest.$ac_ext
13163 ac_ext=c
13164ac_cpp='$CPP $CPPFLAGS'
13165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168
13169fi
Reid Spencera773bd52006-08-04 18:18:08 +000013170{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13171echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013172 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13173 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13174 CFLAGS="$SAVE_CFLAGS"
13175 fi
13176 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013177sparc*-*solaris*)
13178 # Find out which ABI we are using.
13179 echo 'int i;' > conftest.$ac_ext
13180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13181 (eval $ac_compile) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; then
13185 case `/usr/bin/file conftest.o` in
13186 *64-bit*)
13187 case $lt_cv_prog_gnu_ld in
13188 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13189 *) LD="${LD-ld} -64" ;;
13190 esac
13191 ;;
13192 esac
13193 fi
13194 rm -rf conftest*
13195 ;;
13196
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013197
13198esac
13199
13200need_locks="$enable_libtool_lock"
13201
13202
Reid Spencer2706f8c2004-09-19 23:53:36 +000013203
13204
13205if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13206 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13207 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013208 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013209ac_cpp='$CXXCPP $CPPFLAGS'
13210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013213{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13214echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013215if test -z "$CXXCPP"; then
13216 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218else
John Criswell47fdd832003-07-14 16:52:07 +000013219 # Double quotes because CXXCPP needs to be expanded
13220 for CXXCPP in "$CXX -E" "/lib/cpp"
13221 do
13222 ac_preproc_ok=false
13223for ac_cxx_preproc_warn_flag in '' yes
13224do
13225 # Use a header file that comes with gcc, so configuring glibc
13226 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13228 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013229 # On the NeXT, cc -E runs the code through the compiler's parser,
13230 # not just through cpp. "Syntax error" is here to catch this case.
13231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013232/* confdefs.h. */
13233_ACEOF
13234cat confdefs.h >>conftest.$ac_ext
13235cat >>conftest.$ac_ext <<_ACEOF
13236/* end confdefs.h. */
13237#ifdef __STDC__
13238# include <limits.h>
13239#else
13240# include <assert.h>
13241#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013242 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013243_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013244if { (ac_try="$ac_cpp conftest.$ac_ext"
13245case "(($ac_try" in
13246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13247 *) ac_try_echo=$ac_try;;
13248esac
13249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013251 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013252 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013253 rm -f conftest.er1
13254 cat conftest.err >&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013256 (exit $ac_status); } >/dev/null; then
13257 if test -s conftest.err; then
13258 ac_cpp_err=$ac_cxx_preproc_warn_flag
13259 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13260 else
13261 ac_cpp_err=
13262 fi
13263else
13264 ac_cpp_err=yes
13265fi
13266if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013267 :
13268else
13269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013270sed 's/^/| /' conftest.$ac_ext >&5
13271
John Criswell47fdd832003-07-14 16:52:07 +000013272 # Broken: fails on valid input.
13273continue
13274fi
Reid Spencera773bd52006-08-04 18:18:08 +000013275
John Criswell47fdd832003-07-14 16:52:07 +000013276rm -f conftest.err conftest.$ac_ext
13277
Reid Spencera773bd52006-08-04 18:18:08 +000013278 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013279 # can be detected and how.
13280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013286#include <ac_nonexistent.h>
13287_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013288if { (ac_try="$ac_cpp conftest.$ac_ext"
13289case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13292esac
13293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013295 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013296 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013300 (exit $ac_status); } >/dev/null; then
13301 if test -s conftest.err; then
13302 ac_cpp_err=$ac_cxx_preproc_warn_flag
13303 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13304 else
13305 ac_cpp_err=
13306 fi
13307else
13308 ac_cpp_err=yes
13309fi
13310if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013311 # Broken: success on invalid input.
13312continue
13313else
13314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013315sed 's/^/| /' conftest.$ac_ext >&5
13316
John Criswell47fdd832003-07-14 16:52:07 +000013317 # Passes both tests.
13318ac_preproc_ok=:
13319break
13320fi
Reid Spencera773bd52006-08-04 18:18:08 +000013321
John Criswell47fdd832003-07-14 16:52:07 +000013322rm -f conftest.err conftest.$ac_ext
13323
13324done
13325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13326rm -f conftest.err conftest.$ac_ext
13327if $ac_preproc_ok; then
13328 break
John Criswell7a73b802003-06-30 21:59:07 +000013329fi
13330
John Criswell47fdd832003-07-14 16:52:07 +000013331 done
13332 ac_cv_prog_CXXCPP=$CXXCPP
13333
13334fi
13335 CXXCPP=$ac_cv_prog_CXXCPP
13336else
13337 ac_cv_prog_CXXCPP=$CXXCPP
13338fi
Reid Spencera773bd52006-08-04 18:18:08 +000013339{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13340echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013341ac_preproc_ok=false
13342for ac_cxx_preproc_warn_flag in '' yes
13343do
13344 # Use a header file that comes with gcc, so configuring glibc
13345 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13347 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013348 # On the NeXT, cc -E runs the code through the compiler's parser,
13349 # not just through cpp. "Syntax error" is here to catch this case.
13350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013351/* confdefs.h. */
13352_ACEOF
13353cat confdefs.h >>conftest.$ac_ext
13354cat >>conftest.$ac_ext <<_ACEOF
13355/* end confdefs.h. */
13356#ifdef __STDC__
13357# include <limits.h>
13358#else
13359# include <assert.h>
13360#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013361 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013362_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013363if { (ac_try="$ac_cpp conftest.$ac_ext"
13364case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013370 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013371 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013372 rm -f conftest.er1
13373 cat conftest.err >&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013375 (exit $ac_status); } >/dev/null; then
13376 if test -s conftest.err; then
13377 ac_cpp_err=$ac_cxx_preproc_warn_flag
13378 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13379 else
13380 ac_cpp_err=
13381 fi
13382else
13383 ac_cpp_err=yes
13384fi
13385if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013386 :
13387else
13388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013389sed 's/^/| /' conftest.$ac_ext >&5
13390
John Criswell47fdd832003-07-14 16:52:07 +000013391 # Broken: fails on valid input.
13392continue
13393fi
Reid Spencera773bd52006-08-04 18:18:08 +000013394
John Criswell47fdd832003-07-14 16:52:07 +000013395rm -f conftest.err conftest.$ac_ext
13396
Reid Spencera773bd52006-08-04 18:18:08 +000013397 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013398 # can be detected and how.
13399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013405#include <ac_nonexistent.h>
13406_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013407if { (ac_try="$ac_cpp conftest.$ac_ext"
13408case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013414 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013415 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013416 rm -f conftest.er1
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013419 (exit $ac_status); } >/dev/null; then
13420 if test -s conftest.err; then
13421 ac_cpp_err=$ac_cxx_preproc_warn_flag
13422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13423 else
13424 ac_cpp_err=
13425 fi
13426else
13427 ac_cpp_err=yes
13428fi
13429if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013430 # Broken: success on invalid input.
13431continue
13432else
13433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013434sed 's/^/| /' conftest.$ac_ext >&5
13435
John Criswell47fdd832003-07-14 16:52:07 +000013436 # Passes both tests.
13437ac_preproc_ok=:
13438break
13439fi
Reid Spencera773bd52006-08-04 18:18:08 +000013440
John Criswell47fdd832003-07-14 16:52:07 +000013441rm -f conftest.err conftest.$ac_ext
13442
13443done
13444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13445rm -f conftest.err conftest.$ac_ext
13446if $ac_preproc_ok; then
13447 :
13448else
John Criswell0c38eaf2003-09-10 15:17:25 +000013449 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13450See \`config.log' for more details." >&5
13451echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13452See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013453 { (exit 1); exit 1; }; }
13454fi
13455
Reid Spencera773bd52006-08-04 18:18:08 +000013456ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013457ac_cpp='$CXXCPP $CPPFLAGS'
13458ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13459ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13460ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13461
Reid Spencer2706f8c2004-09-19 23:53:36 +000013462fi
13463
John Criswell47fdd832003-07-14 16:52:07 +000013464
13465ac_ext=f
13466ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13467ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13469if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013470 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 +000013471 do
13472 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13473set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013476if test "${ac_cv_prog_F77+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479 if test -n "$F77"; then
13480 ac_cv_prog_F77="$F77" # Let the user override the test.
13481else
13482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $PATH
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
13487 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013488 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 +000013489 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13491 break 2
13492 fi
13493done
13494done
Reid Spencera773bd52006-08-04 18:18:08 +000013495IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013496
13497fi
13498fi
13499F77=$ac_cv_prog_F77
13500if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013501 { echo "$as_me:$LINENO: result: $F77" >&5
13502echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013503else
Reid Spencera773bd52006-08-04 18:18:08 +000013504 { echo "$as_me:$LINENO: result: no" >&5
13505echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013506fi
13507
Reid Spencera773bd52006-08-04 18:18:08 +000013508
John Criswell47fdd832003-07-14 16:52:07 +000013509 test -n "$F77" && break
13510 done
13511fi
13512if test -z "$F77"; then
13513 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013514 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 +000013515do
13516 # Extract the first word of "$ac_prog", so it can be a program name with args.
13517set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013520if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13522else
13523 if test -n "$ac_ct_F77"; then
13524 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13525else
13526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13527for as_dir in $PATH
13528do
13529 IFS=$as_save_IFS
13530 test -z "$as_dir" && as_dir=.
13531 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013532 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 +000013533 ac_cv_prog_ac_ct_F77="$ac_prog"
13534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13535 break 2
13536 fi
13537done
13538done
Reid Spencera773bd52006-08-04 18:18:08 +000013539IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013540
13541fi
13542fi
13543ac_ct_F77=$ac_cv_prog_ac_ct_F77
13544if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013545 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13546echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013547else
Reid Spencera773bd52006-08-04 18:18:08 +000013548 { echo "$as_me:$LINENO: result: no" >&5
13549echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013550fi
13551
Reid Spencera773bd52006-08-04 18:18:08 +000013552
John Criswell47fdd832003-07-14 16:52:07 +000013553 test -n "$ac_ct_F77" && break
13554done
13555
Reid Spencera773bd52006-08-04 18:18:08 +000013556 if test "x$ac_ct_F77" = x; then
13557 F77=""
13558 else
13559 case $cross_compiling:$ac_tool_warned in
13560yes:)
13561{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13562whose name does not start with the host triplet. If you think this
13563configuration is useful to you, please write to autoconf@gnu.org." >&5
13564echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13565whose name does not start with the host triplet. If you think this
13566configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13567ac_tool_warned=yes ;;
13568esac
13569 F77=$ac_ct_F77
13570 fi
John Criswell47fdd832003-07-14 16:52:07 +000013571fi
13572
13573
13574# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013575echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013576ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013577{ (ac_try="$ac_compiler --version >&5"
13578case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581esac
13582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013584 ac_status=$?
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013587{ (ac_try="$ac_compiler -v >&5"
13588case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
13592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013597{ (ac_try="$ac_compiler -V >&5"
13598case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13601esac
13602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013607rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013608
13609# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013610# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013611ac_save_ext=$ac_ext
13612ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013613{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13614echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013615if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13616 echo $ECHO_N "(cached) $ECHO_C" >&6
13617else
13618 cat >conftest.$ac_ext <<_ACEOF
13619 program main
13620#ifndef __GNUC__
13621 choke me
13622#endif
13623
13624 end
13625_ACEOF
13626rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013627if { (ac_try="$ac_compile"
13628case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
13632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013634 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013639 (exit $ac_status); } &&
13640 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13641 { (case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13644esac
13645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_try") 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; } &&
13650 { ac_try='test -s conftest.$ac_objext'
13651 { (case "(($ac_try" in
13652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 *) ac_try_echo=$ac_try;;
13654esac
13655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_try") 2>&5
13657 ac_status=$?
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013660 ac_compiler_gnu=yes
13661else
13662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013663sed 's/^/| /' conftest.$ac_ext >&5
13664
Reid Spencera773bd52006-08-04 18:18:08 +000013665 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013666fi
Reid Spencera773bd52006-08-04 18:18:08 +000013667
13668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013669ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13670
13671fi
Reid Spencera773bd52006-08-04 18:18:08 +000013672{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13673echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013674ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013675ac_test_FFLAGS=${FFLAGS+set}
13676ac_save_FFLAGS=$FFLAGS
13677FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013678{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13679echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013680if test "${ac_cv_prog_f77_g+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682else
13683 FFLAGS=-g
13684cat >conftest.$ac_ext <<_ACEOF
13685 program main
13686
13687 end
13688_ACEOF
13689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013690if { (ac_try="$ac_compile"
13691case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694esac
13695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013702 (exit $ac_status); } &&
13703 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13707esac
13708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13717esac
13718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_try") 2>&5
13720 ac_status=$?
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013723 ac_cv_prog_f77_g=yes
13724else
13725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013726sed 's/^/| /' conftest.$ac_ext >&5
13727
Reid Spencera773bd52006-08-04 18:18:08 +000013728 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013729fi
Reid Spencera773bd52006-08-04 18:18:08 +000013730
13731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013732
13733fi
Reid Spencera773bd52006-08-04 18:18:08 +000013734{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13735echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013736if test "$ac_test_FFLAGS" = set; then
13737 FFLAGS=$ac_save_FFLAGS
13738elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013740 FFLAGS="-g -O2"
13741 else
13742 FFLAGS="-g"
13743 fi
13744else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013745 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013746 FFLAGS="-O2"
13747 else
13748 FFLAGS=
13749 fi
13750fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013751
13752G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013753ac_ext=c
13754ac_cpp='$CPP $CPPFLAGS'
13755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13757ac_compiler_gnu=$ac_cv_c_compiler_gnu
13758
13759
13760
13761# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13762
13763# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013764{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13765echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013766if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768else
13769 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013770 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013771
13772 case $build_os in
13773 msdosdjgpp*)
13774 # On DJGPP, this test can blow up pretty badly due to problems in libc
13775 # (any single argument exceeding 2000 bytes causes a buffer overrun
13776 # during glob expansion). Even if it were fixed, the result of this
13777 # check would be larger than it should be.
13778 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13779 ;;
13780
13781 gnu*)
13782 # Under GNU Hurd, this test is not required because there is
13783 # no limit to the length of command line arguments.
13784 # Libtool will interpret -1 as no limit whatsoever
13785 lt_cv_sys_max_cmd_len=-1;
13786 ;;
13787
13788 cygwin* | mingw*)
13789 # On Win9x/ME, this test blows up -- it succeeds, but takes
13790 # about 5 minutes as the teststring grows exponentially.
13791 # Worse, since 9x/ME are not pre-emptively multitasking,
13792 # you end up with a "frozen" computer, even though with patience
13793 # the test eventually succeeds (with a max line length of 256k).
13794 # Instead, let's just punt: use the minimum linelength reported by
13795 # all of the supported platforms: 8192 (on NT/2K/XP).
13796 lt_cv_sys_max_cmd_len=8192;
13797 ;;
13798
Reid Spencer2706f8c2004-09-19 23:53:36 +000013799 amigaos*)
13800 # On AmigaOS with pdksh, this test takes hours, literally.
13801 # So we just punt and use a minimum line length of 8192.
13802 lt_cv_sys_max_cmd_len=8192;
13803 ;;
13804
Reid Spencera773bd52006-08-04 18:18:08 +000013805 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013806 # This has been around since 386BSD, at least. Likely further.
13807 if test -x /sbin/sysctl; then
13808 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13809 elif test -x /usr/sbin/sysctl; then
13810 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13811 else
Reid Spencera773bd52006-08-04 18:18:08 +000013812 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013813 fi
13814 # And add a safety zone
13815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013817 ;;
13818
Reid Spencera773bd52006-08-04 18:18:08 +000013819 interix*)
13820 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13821 lt_cv_sys_max_cmd_len=196608
13822 ;;
13823
13824 osf*)
13825 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13826 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13827 # nice to cause kernel panics so lets avoid the loop below.
13828 # First set a reasonable default.
13829 lt_cv_sys_max_cmd_len=16384
13830 #
13831 if test -x /sbin/sysconfig; then
13832 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13833 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13834 esac
13835 fi
13836 ;;
13837 sco3.2v5*)
13838 lt_cv_sys_max_cmd_len=102400
13839 ;;
13840 sysv5* | sco5v6* | sysv4.2uw2*)
13841 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13842 if test -n "$kargmax"; then
13843 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13844 else
13845 lt_cv_sys_max_cmd_len=32768
13846 fi
13847 ;;
13848 *)
John Criswell47fdd832003-07-14 16:52:07 +000013849 # If test is not a shell built-in, we'll probably end up computing a
13850 # maximum length that is only half of the actual maximum length, but
13851 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13853 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13854 = "XX$teststring") >/dev/null 2>&1 &&
13855 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013856 lt_cv_sys_max_cmd_len=$new_result &&
13857 test $i != 17 # 1/2 MB should be enough
13858 do
13859 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013861 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013862 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013863 # Add a significant safety factor because C++ compilers can tack on massive
13864 # amounts of additional arguments before passing them to the linker.
13865 # It appears as though 1/2 is a usable value.
13866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13867 ;;
13868 esac
13869
13870fi
13871
13872if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013873 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13874echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013875else
Reid Spencera773bd52006-08-04 18:18:08 +000013876 { echo "$as_me:$LINENO: result: none" >&5
13877echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013878fi
13879
13880
13881
13882
13883# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013884{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13885echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013886if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888else
13889
13890# These are sane defaults that work on at least a few old systems.
13891# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13892
13893# Character class describing NM global symbol codes.
13894symcode='[BCDEGRST]'
13895
13896# Regexp to match symbols that can be accessed directly from C.
13897sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13898
John Criswell47fdd832003-07-14 16:52:07 +000013899# Transform an extracted symbol line into a proper C declaration
13900lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13901
13902# Transform an extracted symbol line into symbol name and symbol address
13903lt_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'"
13904
13905# Define system-specific variables.
13906case $host_os in
13907aix*)
13908 symcode='[BCDT]'
13909 ;;
13910cygwin* | mingw* | pw32*)
13911 symcode='[ABCDGISTW]'
13912 ;;
13913hpux*) # Its linker distinguishes data from code symbols
13914 if test "$host_cpu" = ia64; then
13915 symcode='[ABCDEGRST]'
13916 fi
13917 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13918 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'"
13919 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013920linux*)
13921 if test "$host_cpu" = ia64; then
13922 symcode='[ABCDGIRSTW]'
13923 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13924 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'"
13925 fi
13926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013927irix* | nonstopux*)
13928 symcode='[BCDEGRST]'
13929 ;;
13930osf*)
13931 symcode='[BCDEGQRST]'
13932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013933solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013934 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013935 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013936sco3.2v5*)
13937 symcode='[DT]'
13938 ;;
13939sysv4.2uw2*)
13940 symcode='[DT]'
13941 ;;
13942sysv5* | sco5v6* | unixware* | OpenUNIX*)
13943 symcode='[ABDT]'
13944 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013945sysv4)
13946 symcode='[DFNSTU]'
13947 ;;
13948esac
13949
13950# Handle CRLF in mingw tool chain
13951opt_cr=
13952case $build_os in
13953mingw*)
13954 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13955 ;;
13956esac
13957
13958# If we're using GNU nm, then use its standard symbol codes.
13959case `$NM -V 2>&1` in
13960*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013961 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013962esac
13963
13964# Try without a prefix undercore, then with it.
13965for ac_symprfx in "" "_"; do
13966
Reid Spencera773bd52006-08-04 18:18:08 +000013967 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13968 symxfrm="\\1 $ac_symprfx\\2 \\2"
13969
John Criswell47fdd832003-07-14 16:52:07 +000013970 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013971 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 +000013972
13973 # Check to see that the pipe works correctly.
13974 pipe_works=no
13975
13976 rm -f conftest*
13977 cat > conftest.$ac_ext <<EOF
13978#ifdef __cplusplus
13979extern "C" {
13980#endif
13981char nm_test_var;
13982void nm_test_func(){}
13983#ifdef __cplusplus
13984}
13985#endif
13986int main(){nm_test_var='a';nm_test_func();return(0);}
13987EOF
13988
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; then
13994 # Now try to grab the symbols.
13995 nlist=conftest.nm
13996 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13997 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13998 ac_status=$?
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } && test -s "$nlist"; then
14001 # Try sorting and uniquifying the output.
14002 if sort "$nlist" | uniq > "$nlist"T; then
14003 mv -f "$nlist"T "$nlist"
14004 else
14005 rm -f "$nlist"T
14006 fi
14007
14008 # Make sure that we snagged all the symbols we need.
14009 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14010 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14011 cat <<EOF > conftest.$ac_ext
14012#ifdef __cplusplus
14013extern "C" {
14014#endif
14015
14016EOF
14017 # Now generate the symbol file.
14018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14019
14020 cat <<EOF >> conftest.$ac_ext
14021#if defined (__STDC__) && __STDC__
14022# define lt_ptr_t void *
14023#else
14024# define lt_ptr_t char *
14025# define const
14026#endif
14027
14028/* The mapping between symbol names and symbols. */
14029const struct {
14030 const char *name;
14031 lt_ptr_t address;
14032}
14033lt_preloaded_symbols[] =
14034{
14035EOF
14036 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14037 cat <<\EOF >> conftest.$ac_ext
14038 {0, (lt_ptr_t) 0}
14039};
14040
14041#ifdef __cplusplus
14042}
14043#endif
14044EOF
14045 # Now try linking the two files.
14046 mv conftest.$ac_objext conftstm.$ac_objext
14047 lt_save_LIBS="$LIBS"
14048 lt_save_CFLAGS="$CFLAGS"
14049 LIBS="conftstm.$ac_objext"
14050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14052 (eval $ac_link) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14056 pipe_works=yes
14057 fi
14058 LIBS="$lt_save_LIBS"
14059 CFLAGS="$lt_save_CFLAGS"
14060 else
14061 echo "cannot find nm_test_func in $nlist" >&5
14062 fi
14063 else
14064 echo "cannot find nm_test_var in $nlist" >&5
14065 fi
14066 else
14067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14068 fi
14069 else
14070 echo "$progname: failed program was:" >&5
14071 cat conftest.$ac_ext >&5
14072 fi
14073 rm -f conftest* conftst*
14074
14075 # Do not use the global_symbol_pipe unless it works.
14076 if test "$pipe_works" = yes; then
14077 break
14078 else
14079 lt_cv_sys_global_symbol_pipe=
14080 fi
14081done
14082
14083fi
14084
14085if test -z "$lt_cv_sys_global_symbol_pipe"; then
14086 lt_cv_sys_global_symbol_to_cdecl=
14087fi
14088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014089 { echo "$as_me:$LINENO: result: failed" >&5
14090echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014091else
Reid Spencera773bd52006-08-04 18:18:08 +000014092 { echo "$as_me:$LINENO: result: ok" >&5
14093echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014094fi
14095
Reid Spencera773bd52006-08-04 18:18:08 +000014096{ echo "$as_me:$LINENO: checking for objdir" >&5
14097echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014098if test "${lt_cv_objdir+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14100else
14101 rm -f .libs 2>/dev/null
14102mkdir .libs 2>/dev/null
14103if test -d .libs; then
14104 lt_cv_objdir=.libs
14105else
14106 # MS-DOS does not allow filenames that begin with a dot.
14107 lt_cv_objdir=_libs
14108fi
14109rmdir .libs 2>/dev/null
14110fi
Reid Spencera773bd52006-08-04 18:18:08 +000014111{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14112echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014113objdir=$lt_cv_objdir
14114
14115
14116
14117
14118
14119case $host_os in
14120aix3*)
14121 # AIX sometimes has problems with the GCC collect2 program. For some
14122 # reason, if we set the COLLECT_NAMES environment variable, the problems
14123 # vanish in a puff of smoke.
14124 if test "X${COLLECT_NAMES+set}" != Xset; then
14125 COLLECT_NAMES=
14126 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014127 fi
14128 ;;
14129esac
14130
John Criswell47fdd832003-07-14 16:52:07 +000014131# Sed substitution that helps us do robust quoting. It backslashifies
14132# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014133Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014134sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14135
14136# Same as above, but do not quote variable references.
14137double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14138
14139# Sed substitution to delay expansion of an escaped shell variable in a
14140# double_quote_subst'ed string.
14141delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14142
14143# Sed substitution to avoid accidental globbing in evaled expressions
14144no_glob_subst='s/\*/\\\*/g'
14145
14146# Constants:
14147rm="rm -f"
14148
14149# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014150default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014151can_build_shared=yes
14152
Reid Spencera773bd52006-08-04 18:18:08 +000014153# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014154# which needs '.lib').
14155libext=a
14156ltmain="$ac_aux_dir/ltmain.sh"
14157ofile="$default_ofile"
14158with_gnu_ld="$lt_cv_prog_gnu_ld"
14159
14160if test -n "$ac_tool_prefix"; then
14161 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14162set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014165if test "${ac_cv_prog_AR+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14167else
14168 if test -n "$AR"; then
14169 ac_cv_prog_AR="$AR" # Let the user override the test.
14170else
14171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14172for as_dir in $PATH
14173do
14174 IFS=$as_save_IFS
14175 test -z "$as_dir" && as_dir=.
14176 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014177 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 +000014178 ac_cv_prog_AR="${ac_tool_prefix}ar"
14179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14180 break 2
14181 fi
14182done
14183done
Reid Spencera773bd52006-08-04 18:18:08 +000014184IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014185
14186fi
14187fi
14188AR=$ac_cv_prog_AR
14189if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014190 { echo "$as_me:$LINENO: result: $AR" >&5
14191echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014192else
Reid Spencera773bd52006-08-04 18:18:08 +000014193 { echo "$as_me:$LINENO: result: no" >&5
14194echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014195fi
14196
Reid Spencera773bd52006-08-04 18:18:08 +000014197
John Criswell47fdd832003-07-14 16:52:07 +000014198fi
14199if test -z "$ac_cv_prog_AR"; then
14200 ac_ct_AR=$AR
14201 # Extract the first word of "ar", so it can be a program name with args.
14202set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014203{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014205if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14207else
14208 if test -n "$ac_ct_AR"; then
14209 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14210else
14211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212for as_dir in $PATH
14213do
14214 IFS=$as_save_IFS
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014217 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 +000014218 ac_cv_prog_ac_ct_AR="ar"
14219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14220 break 2
14221 fi
14222done
14223done
Reid Spencera773bd52006-08-04 18:18:08 +000014224IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014225
John Criswell47fdd832003-07-14 16:52:07 +000014226fi
14227fi
14228ac_ct_AR=$ac_cv_prog_ac_ct_AR
14229if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014230 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14231echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014232else
Reid Spencera773bd52006-08-04 18:18:08 +000014233 { echo "$as_me:$LINENO: result: no" >&5
14234echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014235fi
14236
Reid Spencera773bd52006-08-04 18:18:08 +000014237 if test "x$ac_ct_AR" = x; then
14238 AR="false"
14239 else
14240 case $cross_compiling:$ac_tool_warned in
14241yes:)
14242{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14243whose name does not start with the host triplet. If you think this
14244configuration is useful to you, please write to autoconf@gnu.org." >&5
14245echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14246whose name does not start with the host triplet. If you think this
14247configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14248ac_tool_warned=yes ;;
14249esac
14250 AR=$ac_ct_AR
14251 fi
John Criswell47fdd832003-07-14 16:52:07 +000014252else
14253 AR="$ac_cv_prog_AR"
14254fi
14255
John Criswell7a73b802003-06-30 21:59:07 +000014256if test -n "$ac_tool_prefix"; then
14257 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14258set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014261if test "${ac_cv_prog_RANLIB+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263else
14264 if test -n "$RANLIB"; then
14265 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14266else
14267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14268for as_dir in $PATH
14269do
14270 IFS=$as_save_IFS
14271 test -z "$as_dir" && as_dir=.
14272 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014273 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 +000014274 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14276 break 2
14277 fi
14278done
14279done
Reid Spencera773bd52006-08-04 18:18:08 +000014280IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014281
14282fi
14283fi
14284RANLIB=$ac_cv_prog_RANLIB
14285if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014286 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14287echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014288else
Reid Spencera773bd52006-08-04 18:18:08 +000014289 { echo "$as_me:$LINENO: result: no" >&5
14290echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014291fi
14292
Reid Spencera773bd52006-08-04 18:18:08 +000014293
John Criswell7a73b802003-06-30 21:59:07 +000014294fi
14295if test -z "$ac_cv_prog_RANLIB"; then
14296 ac_ct_RANLIB=$RANLIB
14297 # Extract the first word of "ranlib", so it can be a program name with args.
14298set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014299{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14300echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014301if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14302 echo $ECHO_N "(cached) $ECHO_C" >&6
14303else
14304 if test -n "$ac_ct_RANLIB"; then
14305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14306else
14307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308for as_dir in $PATH
14309do
14310 IFS=$as_save_IFS
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014313 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 +000014314 ac_cv_prog_ac_ct_RANLIB="ranlib"
14315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14316 break 2
14317 fi
14318done
14319done
Reid Spencera773bd52006-08-04 18:18:08 +000014320IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014321
John Criswell7a73b802003-06-30 21:59:07 +000014322fi
14323fi
14324ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14325if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014326 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14327echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014328else
Reid Spencera773bd52006-08-04 18:18:08 +000014329 { echo "$as_me:$LINENO: result: no" >&5
14330echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014331fi
14332
Reid Spencera773bd52006-08-04 18:18:08 +000014333 if test "x$ac_ct_RANLIB" = x; then
14334 RANLIB=":"
14335 else
14336 case $cross_compiling:$ac_tool_warned in
14337yes:)
14338{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14339whose name does not start with the host triplet. If you think this
14340configuration is useful to you, please write to autoconf@gnu.org." >&5
14341echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14342whose name does not start with the host triplet. If you think this
14343configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14344ac_tool_warned=yes ;;
14345esac
14346 RANLIB=$ac_ct_RANLIB
14347 fi
John Criswell7a73b802003-06-30 21:59:07 +000014348else
14349 RANLIB="$ac_cv_prog_RANLIB"
14350fi
14351
14352if test -n "$ac_tool_prefix"; then
14353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14354set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014357if test "${ac_cv_prog_STRIP+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14359else
14360 if test -n "$STRIP"; then
14361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14362else
14363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14364for as_dir in $PATH
14365do
14366 IFS=$as_save_IFS
14367 test -z "$as_dir" && as_dir=.
14368 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014369 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 +000014370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14372 break 2
14373 fi
14374done
14375done
Reid Spencera773bd52006-08-04 18:18:08 +000014376IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014377
14378fi
14379fi
14380STRIP=$ac_cv_prog_STRIP
14381if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014382 { echo "$as_me:$LINENO: result: $STRIP" >&5
14383echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014384else
Reid Spencera773bd52006-08-04 18:18:08 +000014385 { echo "$as_me:$LINENO: result: no" >&5
14386echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014387fi
14388
Reid Spencera773bd52006-08-04 18:18:08 +000014389
John Criswell7a73b802003-06-30 21:59:07 +000014390fi
14391if test -z "$ac_cv_prog_STRIP"; then
14392 ac_ct_STRIP=$STRIP
14393 # Extract the first word of "strip", so it can be a program name with args.
14394set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014397if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
14399else
14400 if test -n "$ac_ct_STRIP"; then
14401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14402else
14403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14404for as_dir in $PATH
14405do
14406 IFS=$as_save_IFS
14407 test -z "$as_dir" && as_dir=.
14408 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014409 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 +000014410 ac_cv_prog_ac_ct_STRIP="strip"
14411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14412 break 2
14413 fi
14414done
14415done
Reid Spencera773bd52006-08-04 18:18:08 +000014416IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014417
John Criswell7a73b802003-06-30 21:59:07 +000014418fi
14419fi
14420ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14421if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014422 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14423echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014424else
Reid Spencera773bd52006-08-04 18:18:08 +000014425 { echo "$as_me:$LINENO: result: no" >&5
14426echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014427fi
14428
Reid Spencera773bd52006-08-04 18:18:08 +000014429 if test "x$ac_ct_STRIP" = x; then
14430 STRIP=":"
14431 else
14432 case $cross_compiling:$ac_tool_warned in
14433yes:)
14434{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14435whose name does not start with the host triplet. If you think this
14436configuration is useful to you, please write to autoconf@gnu.org." >&5
14437echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14438whose name does not start with the host triplet. If you think this
14439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14440ac_tool_warned=yes ;;
14441esac
14442 STRIP=$ac_ct_STRIP
14443 fi
John Criswell7a73b802003-06-30 21:59:07 +000014444else
14445 STRIP="$ac_cv_prog_STRIP"
14446fi
14447
14448
John Criswell7a73b802003-06-30 21:59:07 +000014449old_CC="$CC"
14450old_CFLAGS="$CFLAGS"
14451
14452# Set sane defaults for various variables
14453test -z "$AR" && AR=ar
14454test -z "$AR_FLAGS" && AR_FLAGS=cru
14455test -z "$AS" && AS=as
14456test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014457test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014458test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014459test -z "$DLLTOOL" && DLLTOOL=dlltool
14460test -z "$LD" && LD=ld
14461test -z "$LN_S" && LN_S="ln -s"
14462test -z "$MAGIC_CMD" && MAGIC_CMD=file
14463test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014464test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014465test -z "$OBJDUMP" && OBJDUMP=objdump
14466test -z "$RANLIB" && RANLIB=:
14467test -z "$STRIP" && STRIP=:
14468test -z "$ac_objext" && ac_objext=o
14469
John Criswell7a73b802003-06-30 21:59:07 +000014470# Determine commands to create old-style static archives.
14471old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14472old_postinstall_cmds='chmod 644 $oldlib'
14473old_postuninstall_cmds=
14474
14475if test -n "$RANLIB"; then
14476 case $host_os in
14477 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014479 ;;
14480 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014482 ;;
14483 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014484 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014485fi
14486
Reid Spencera773bd52006-08-04 18:18:08 +000014487for cc_temp in $compiler""; do
14488 case $cc_temp in
14489 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14490 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14491 \-*) ;;
14492 *) break;;
14493 esac
14494done
14495cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14496
Reid Spencer2706f8c2004-09-19 23:53:36 +000014497
John Criswell47fdd832003-07-14 16:52:07 +000014498# Only perform the check for file, if the check method requires it
14499case $deplibs_check_method in
14500file_magic*)
14501 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014502 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14503echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014504if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014506else
John Criswell47fdd832003-07-14 16:52:07 +000014507 case $MAGIC_CMD in
14508[\\/*] | ?:[\\/]*)
14509 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14510 ;;
14511*)
14512 lt_save_MAGIC_CMD="$MAGIC_CMD"
14513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14514 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14515 for ac_dir in $ac_dummy; do
14516 IFS="$lt_save_ifs"
14517 test -z "$ac_dir" && ac_dir=.
14518 if test -f $ac_dir/${ac_tool_prefix}file; then
14519 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14520 if test -n "$file_magic_test_file"; then
14521 case $deplibs_check_method in
14522 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014523 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14526 $EGREP "$file_magic_regex" > /dev/null; then
14527 :
14528 else
14529 cat <<EOF 1>&2
14530
14531*** Warning: the command libtool uses to detect shared libraries,
14532*** $file_magic_cmd, produces output that libtool cannot recognize.
14533*** The result is that libtool may fail to recognize shared libraries
14534*** as such. This will affect the creation of libtool libraries that
14535*** depend on shared libraries, but programs linked with such libtool
14536*** libraries will work regardless of this problem. Nevertheless, you
14537*** may want to report the problem to your system manager and/or to
14538*** bug-libtool@gnu.org
14539
14540EOF
14541 fi ;;
14542 esac
14543 fi
14544 break
14545 fi
14546 done
14547 IFS="$lt_save_ifs"
14548 MAGIC_CMD="$lt_save_MAGIC_CMD"
14549 ;;
14550esac
John Criswell7a73b802003-06-30 21:59:07 +000014551fi
John Criswell7a73b802003-06-30 21:59:07 +000014552
John Criswell47fdd832003-07-14 16:52:07 +000014553MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14554if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014555 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14556echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014557else
Reid Spencera773bd52006-08-04 18:18:08 +000014558 { echo "$as_me:$LINENO: result: no" >&5
14559echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014560fi
John Criswell7a73b802003-06-30 21:59:07 +000014561
John Criswell47fdd832003-07-14 16:52:07 +000014562if test -z "$lt_cv_path_MAGIC_CMD"; then
14563 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014564 { echo "$as_me:$LINENO: checking for file" >&5
14565echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014566if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568else
14569 case $MAGIC_CMD in
14570[\\/*] | ?:[\\/]*)
14571 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14572 ;;
14573*)
14574 lt_save_MAGIC_CMD="$MAGIC_CMD"
14575 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14576 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14577 for ac_dir in $ac_dummy; do
14578 IFS="$lt_save_ifs"
14579 test -z "$ac_dir" && ac_dir=.
14580 if test -f $ac_dir/file; then
14581 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14582 if test -n "$file_magic_test_file"; then
14583 case $deplibs_check_method in
14584 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014585 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014586 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14588 $EGREP "$file_magic_regex" > /dev/null; then
14589 :
14590 else
14591 cat <<EOF 1>&2
14592
14593*** Warning: the command libtool uses to detect shared libraries,
14594*** $file_magic_cmd, produces output that libtool cannot recognize.
14595*** The result is that libtool may fail to recognize shared libraries
14596*** as such. This will affect the creation of libtool libraries that
14597*** depend on shared libraries, but programs linked with such libtool
14598*** libraries will work regardless of this problem. Nevertheless, you
14599*** may want to report the problem to your system manager and/or to
14600*** bug-libtool@gnu.org
14601
14602EOF
14603 fi ;;
14604 esac
14605 fi
14606 break
14607 fi
14608 done
14609 IFS="$lt_save_ifs"
14610 MAGIC_CMD="$lt_save_MAGIC_CMD"
14611 ;;
14612esac
14613fi
14614
14615MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14616if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014617 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14618echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014619else
Reid Spencera773bd52006-08-04 18:18:08 +000014620 { echo "$as_me:$LINENO: result: no" >&5
14621echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014622fi
14623
14624 else
14625 MAGIC_CMD=:
14626 fi
14627fi
14628
14629 fi
14630 ;;
14631esac
14632
Reid Spencer17795972004-11-18 09:47:37 +000014633enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014634enable_win32_dll=no
14635
Reid Spencera773bd52006-08-04 18:18:08 +000014636# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014637if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014638 enableval=$enable_libtool_lock;
14639fi
John Criswell47fdd832003-07-14 16:52:07 +000014640
John Criswell47fdd832003-07-14 16:52:07 +000014641test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14642
John Criswell7a73b802003-06-30 21:59:07 +000014643
Reid Spencera773bd52006-08-04 18:18:08 +000014644# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014645if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014646 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014647else
14648 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014649fi
14650
John Criswell7a73b802003-06-30 21:59:07 +000014651test -z "$pic_mode" && pic_mode=default
14652
John Criswell47fdd832003-07-14 16:52:07 +000014653# Use C for the default configuration in the libtool script
14654tagname=
14655lt_save_CC="$CC"
14656ac_ext=c
14657ac_cpp='$CPP $CPPFLAGS'
14658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14660ac_compiler_gnu=$ac_cv_c_compiler_gnu
14661
14662
14663# Source file extension for C test sources.
14664ac_ext=c
14665
14666# Object file extension for compiled C test sources.
14667objext=o
14668objext=$objext
14669
14670# Code to be used in simple compile tests
14671lt_simple_compile_test_code="int some_variable = 0;\n"
14672
14673# Code to be used in simple link tests
14674lt_simple_link_test_code='int main(){return(0);}\n'
14675
14676
14677# If no C compiler was specified, use CC.
14678LTCC=${LTCC-"$CC"}
14679
Reid Spencera773bd52006-08-04 18:18:08 +000014680# If no C compiler flags were specified, use CFLAGS.
14681LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14682
John Criswell47fdd832003-07-14 16:52:07 +000014683# Allow CC to be a program name with arguments.
14684compiler=$CC
14685
14686
Reid Spencera773bd52006-08-04 18:18:08 +000014687# save warnings/boilerplate of simple test code
14688ac_outfile=conftest.$ac_objext
14689printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14690eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14691_lt_compiler_boilerplate=`cat conftest.err`
14692$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014693
Reid Spencera773bd52006-08-04 18:18:08 +000014694ac_outfile=conftest.$ac_objext
14695printf "$lt_simple_link_test_code" >conftest.$ac_ext
14696eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14697_lt_linker_boilerplate=`cat conftest.err`
14698$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014699
14700
John Criswell47fdd832003-07-14 16:52:07 +000014701
14702lt_prog_compiler_no_builtin_flag=
14703
14704if test "$GCC" = yes; then
14705 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14706
Reid Spencer2706f8c2004-09-19 23:53:36 +000014707
Reid Spencera773bd52006-08-04 18:18:08 +000014708{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014710if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712else
14713 lt_cv_prog_compiler_rtti_exceptions=no
14714 ac_outfile=conftest.$ac_objext
14715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="-fno-rtti -fno-exceptions"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000014726 (eval echo "\"\$as_me:14726: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014727 (eval "$lt_compile" 2>conftest.err)
14728 ac_status=$?
14729 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000014730 echo "$as_me:14730: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014733 # So say no if there are warnings other than the usual output.
14734 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014737 lt_cv_prog_compiler_rtti_exceptions=yes
14738 fi
14739 fi
14740 $rm conftest*
14741
14742fi
Reid Spencera773bd52006-08-04 18:18:08 +000014743{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14744echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014745
14746if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14747 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14748else
14749 :
14750fi
14751
14752fi
14753
14754lt_prog_compiler_wl=
14755lt_prog_compiler_pic=
14756lt_prog_compiler_static=
14757
Reid Spencera773bd52006-08-04 18:18:08 +000014758{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14759echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014760
14761 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014762 lt_prog_compiler_wl='-Wl,'
14763 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014764
14765 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014766 aix*)
14767 # All AIX code is PIC.
14768 if test "$host_cpu" = ia64; then
14769 # AIX 5 now supports IA64 processor
14770 lt_prog_compiler_static='-Bstatic'
14771 fi
John Criswell7a73b802003-06-30 21:59:07 +000014772 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014773
John Criswell7a73b802003-06-30 21:59:07 +000014774 amigaos*)
14775 # FIXME: we need at least 68020 code to build shared libraries, but
14776 # adding the `-m68020' flag to GCC prevents building anything better,
14777 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014778 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014780
14781 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014782 # PIC is the default for these OSes.
14783 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014784
14785 mingw* | pw32* | os2*)
14786 # This hack is so that the source file can tell whether it is being
14787 # built for inclusion in a dll (and should export symbols for example).
14788 lt_prog_compiler_pic='-DDLL_EXPORT'
14789 ;;
14790
John Criswell7a73b802003-06-30 21:59:07 +000014791 darwin* | rhapsody*)
14792 # PIC is the default on this platform
14793 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014794 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014795 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014796
Reid Spencera773bd52006-08-04 18:18:08 +000014797 interix3*)
14798 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14799 # Instead, we relocate shared libraries at runtime.
14800 ;;
14801
John Criswell47fdd832003-07-14 16:52:07 +000014802 msdosdjgpp*)
14803 # Just because we use GCC doesn't mean we suddenly get shared libraries
14804 # on systems that don't support them.
14805 lt_prog_compiler_can_build_shared=no
14806 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014807 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014808
John Criswell7a73b802003-06-30 21:59:07 +000014809 sysv4*MP*)
14810 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014811 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014812 fi
14813 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014814
14815 hpux*)
14816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14817 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014818 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014819 hppa*64*|ia64*)
14820 # +Z the default
14821 ;;
14822 *)
14823 lt_prog_compiler_pic='-fPIC'
14824 ;;
14825 esac
14826 ;;
14827
John Criswell7a73b802003-06-30 21:59:07 +000014828 *)
John Criswell47fdd832003-07-14 16:52:07 +000014829 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014830 ;;
14831 esac
14832 else
John Criswell47fdd832003-07-14 16:52:07 +000014833 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014834 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014835 aix*)
14836 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014837 if test "$host_cpu" = ia64; then
14838 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014839 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014840 else
John Criswell47fdd832003-07-14 16:52:07 +000014841 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014842 fi
14843 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014844 darwin*)
14845 # PIC is the default on this platform
14846 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014847 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014848 xlc*)
14849 lt_prog_compiler_pic='-qnocommon'
14850 lt_prog_compiler_wl='-Wl,'
14851 ;;
14852 esac
14853 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014854
John Criswell47fdd832003-07-14 16:52:07 +000014855 mingw* | pw32* | os2*)
14856 # This hack is so that the source file can tell whether it is being
14857 # built for inclusion in a dll (and should export symbols for example).
14858 lt_prog_compiler_pic='-DDLL_EXPORT'
14859 ;;
14860
John Criswell7a73b802003-06-30 21:59:07 +000014861 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014862 lt_prog_compiler_wl='-Wl,'
14863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14864 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014865 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014866 hppa*64*|ia64*)
14867 # +Z the default
14868 ;;
14869 *)
14870 lt_prog_compiler_pic='+Z'
14871 ;;
14872 esac
14873 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14874 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014875 ;;
14876
John Criswell47fdd832003-07-14 16:52:07 +000014877 irix5* | irix6* | nonstopux*)
14878 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014879 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014880 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014881 ;;
14882
14883 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014884 lt_prog_compiler_pic='-KPIC'
14885 lt_prog_compiler_static='-Bstatic'
14886 ;;
14887
14888 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014889 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014890 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014891 lt_prog_compiler_wl='-Wl,'
14892 lt_prog_compiler_pic='-KPIC'
14893 lt_prog_compiler_static='-static'
14894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014895 pgcc* | pgf77* | pgf90* | pgf95*)
14896 # Portland Group compilers (*not* the Pentium gcc compiler,
14897 # which looks to be a dead project)
14898 lt_prog_compiler_wl='-Wl,'
14899 lt_prog_compiler_pic='-fpic'
14900 lt_prog_compiler_static='-Bstatic'
14901 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014902 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014903 lt_prog_compiler_wl='-Wl,'
14904 # All Alpha code is PIC.
14905 lt_prog_compiler_static='-non_shared'
14906 ;;
14907 esac
John Criswell7a73b802003-06-30 21:59:07 +000014908 ;;
14909
14910 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014911 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014912 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014913 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014914 ;;
14915
John Criswell7a73b802003-06-30 21:59:07 +000014916 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014917 lt_prog_compiler_pic='-KPIC'
14918 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014919 case $cc_basename in
14920 f77* | f90* | f95*)
14921 lt_prog_compiler_wl='-Qoption ld ';;
14922 *)
14923 lt_prog_compiler_wl='-Wl,';;
14924 esac
John Criswell7a73b802003-06-30 21:59:07 +000014925 ;;
14926
14927 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014928 lt_prog_compiler_wl='-Qoption ld '
14929 lt_prog_compiler_pic='-PIC'
14930 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014931 ;;
14932
Reid Spencera773bd52006-08-04 18:18:08 +000014933 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014934 lt_prog_compiler_wl='-Wl,'
14935 lt_prog_compiler_pic='-KPIC'
14936 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014937 ;;
14938
14939 sysv4*MP*)
14940 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014941 lt_prog_compiler_pic='-Kconform_pic'
14942 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014943 fi
14944 ;;
14945
Reid Spencera773bd52006-08-04 18:18:08 +000014946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14947 lt_prog_compiler_wl='-Wl,'
14948 lt_prog_compiler_pic='-KPIC'
14949 lt_prog_compiler_static='-Bstatic'
14950 ;;
14951
14952 unicos*)
14953 lt_prog_compiler_wl='-Wl,'
14954 lt_prog_compiler_can_build_shared=no
14955 ;;
14956
John Criswell47fdd832003-07-14 16:52:07 +000014957 uts4*)
14958 lt_prog_compiler_pic='-pic'
14959 lt_prog_compiler_static='-Bstatic'
14960 ;;
14961
John Criswell7a73b802003-06-30 21:59:07 +000014962 *)
John Criswell47fdd832003-07-14 16:52:07 +000014963 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014964 ;;
14965 esac
14966 fi
14967
Reid Spencera773bd52006-08-04 18:18:08 +000014968{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14969echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014970
John Criswell47fdd832003-07-14 16:52:07 +000014971#
14972# Check to make sure the PIC flag actually works.
14973#
14974if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014975
Reid Spencera773bd52006-08-04 18:18:08 +000014976{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14977echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014978if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
John Criswell47fdd832003-07-14 16:52:07 +000014981 lt_prog_compiler_pic_works=no
14982 ac_outfile=conftest.$ac_objext
14983 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14984 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14985 # Insert the option either (1) after the last *FLAGS variable, or
14986 # (2) before a word containing "conftest.", or (3) at the end.
14987 # Note that $ac_compile itself does not contain backslashes and begins
14988 # with a dollar sign (not a hyphen), so the echo should work correctly.
14989 # The option is referenced via a variable to avoid confusing sed.
14990 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14993 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000014994 (eval echo "\"\$as_me:14994: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014995 (eval "$lt_compile" 2>conftest.err)
14996 ac_status=$?
14997 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000014998 echo "$as_me:14998: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014999 if (exit $ac_status) && test -s "$ac_outfile"; then
15000 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015001 # So say no if there are warnings other than the usual output.
15002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15003 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15004 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015005 lt_prog_compiler_pic_works=yes
15006 fi
15007 fi
15008 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015009
John Criswell47fdd832003-07-14 16:52:07 +000015010fi
Reid Spencera773bd52006-08-04 18:18:08 +000015011{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15012echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015013
John Criswell47fdd832003-07-14 16:52:07 +000015014if test x"$lt_prog_compiler_pic_works" = xyes; then
15015 case $lt_prog_compiler_pic in
15016 "" | " "*) ;;
15017 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15018 esac
John Criswell7a73b802003-06-30 21:59:07 +000015019else
John Criswell47fdd832003-07-14 16:52:07 +000015020 lt_prog_compiler_pic=
15021 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015022fi
15023
John Criswell7a73b802003-06-30 21:59:07 +000015024fi
Reid Spencera773bd52006-08-04 18:18:08 +000015025case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015026 # For platforms which do not support PIC, -DPIC is meaningless:
15027 *djgpp*)
15028 lt_prog_compiler_pic=
15029 ;;
15030 *)
15031 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15032 ;;
15033esac
John Criswell7a73b802003-06-30 21:59:07 +000015034
Reid Spencera773bd52006-08-04 18:18:08 +000015035#
15036# Check to make sure the static flag actually works.
15037#
15038wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15039{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15040echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15041if test "${lt_prog_compiler_static_works+set}" = set; then
15042 echo $ECHO_N "(cached) $ECHO_C" >&6
15043else
15044 lt_prog_compiler_static_works=no
15045 save_LDFLAGS="$LDFLAGS"
15046 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15047 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15049 # The linker can only warn and ignore the option if not recognized
15050 # So say no if there are warnings
15051 if test -s conftest.err; then
15052 # Append any errors to the config.log.
15053 cat conftest.err 1>&5
15054 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15056 if diff conftest.exp conftest.er2 >/dev/null; then
15057 lt_prog_compiler_static_works=yes
15058 fi
15059 else
15060 lt_prog_compiler_static_works=yes
15061 fi
15062 fi
15063 $rm conftest*
15064 LDFLAGS="$save_LDFLAGS"
15065
15066fi
15067{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15068echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15069
15070if test x"$lt_prog_compiler_static_works" = xyes; then
15071 :
15072else
15073 lt_prog_compiler_static=
15074fi
15075
15076
15077{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15078echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015079if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081else
John Criswell47fdd832003-07-14 16:52:07 +000015082 lt_cv_prog_compiler_c_o=no
15083 $rm -r conftest 2>/dev/null
15084 mkdir conftest
15085 cd conftest
15086 mkdir out
15087 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015088
John Criswell47fdd832003-07-14 16:52:07 +000015089 lt_compiler_flag="-o out/conftest2.$ac_objext"
15090 # Insert the option either (1) after the last *FLAGS variable, or
15091 # (2) before a word containing "conftest.", or (3) at the end.
15092 # Note that $ac_compile itself does not contain backslashes and begins
15093 # with a dollar sign (not a hyphen), so the echo should work correctly.
15094 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015095 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015096 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15097 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000015098 (eval echo "\"\$as_me:15098: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015099 (eval "$lt_compile" 2>out/conftest.err)
15100 ac_status=$?
15101 cat out/conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000015102 echo "$as_me:15102: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015103 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15104 then
15105 # The compiler can only warn and ignore the option if not recognized
15106 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015107 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15108 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15109 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015110 lt_cv_prog_compiler_c_o=yes
15111 fi
15112 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015113 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015114 $rm conftest*
15115 # SGI C++ compiler will create directory out/ii_files/ for
15116 # template instantiation
15117 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15118 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015119 cd ..
15120 rmdir conftest
15121 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015122
15123fi
Reid Spencera773bd52006-08-04 18:18:08 +000015124{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15125echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015126
John Criswell7a73b802003-06-30 21:59:07 +000015127
John Criswell7a73b802003-06-30 21:59:07 +000015128hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015129if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015130 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015131 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15132echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015133 hard_links=yes
15134 $rm conftest*
15135 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15136 touch conftest.a
15137 ln conftest.a conftest.b 2>&5 || hard_links=no
15138 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015139 { echo "$as_me:$LINENO: result: $hard_links" >&5
15140echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015141 if test "$hard_links" = no; then
15142 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15143echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15144 need_locks=warn
15145 fi
15146else
15147 need_locks=no
15148fi
John Criswell7a73b802003-06-30 21:59:07 +000015149
Reid Spencera773bd52006-08-04 18:18:08 +000015150{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15151echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015152
15153 runpath_var=
15154 allow_undefined_flag=
15155 enable_shared_with_static_runtimes=no
15156 archive_cmds=
15157 archive_expsym_cmds=
15158 old_archive_From_new_cmds=
15159 old_archive_from_expsyms_cmds=
15160 export_dynamic_flag_spec=
15161 whole_archive_flag_spec=
15162 thread_safe_flag_spec=
15163 hardcode_libdir_flag_spec=
15164 hardcode_libdir_flag_spec_ld=
15165 hardcode_libdir_separator=
15166 hardcode_direct=no
15167 hardcode_minus_L=no
15168 hardcode_shlibpath_var=unsupported
15169 link_all_deplibs=unknown
15170 hardcode_automatic=no
15171 module_cmds=
15172 module_expsym_cmds=
15173 always_export_symbols=no
15174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15175 # include_expsyms should be a list of space-separated symbols to be *always*
15176 # included in the symbol list
15177 include_expsyms=
15178 # exclude_expsyms can be an extended regexp of symbols to exclude
15179 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15180 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15181 # as well as any symbol that contains `d'.
15182 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15183 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15184 # platforms (ab)use it in PIC code, but their linkers get confused if
15185 # the symbol is explicitly referenced. Since portable code cannot
15186 # rely on this symbol name, it's probably fine to never include it in
15187 # preloaded symbol tables.
15188 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015189 # Just being paranoid about ensuring that cc_basename is set.
15190 for cc_temp in $compiler""; do
15191 case $cc_temp in
15192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15194 \-*) ;;
15195 *) break;;
15196 esac
15197done
15198cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015199
15200 case $host_os in
15201 cygwin* | mingw* | pw32*)
15202 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15203 # When not using gcc, we currently assume that we are using
15204 # Microsoft Visual C++.
15205 if test "$GCC" != yes; then
15206 with_gnu_ld=no
15207 fi
15208 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015209 interix*)
15210 # we just hope/assume this is gcc and not c89 (= MSVC++)
15211 with_gnu_ld=yes
15212 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015213 openbsd*)
15214 with_gnu_ld=no
15215 ;;
15216 esac
15217
15218 ld_shlibs=yes
15219 if test "$with_gnu_ld" = yes; then
15220 # If archive_cmds runs LD, not CC, wlarc should be empty
15221 wlarc='${wl}'
15222
Reid Spencera773bd52006-08-04 18:18:08 +000015223 # Set some defaults for GNU ld with shared library support. These
15224 # are reset later if shared libraries are not supported. Putting them
15225 # here allows them to be overridden if necessary.
15226 runpath_var=LD_RUN_PATH
15227 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15228 export_dynamic_flag_spec='${wl}--export-dynamic'
15229 # ancient GNU ld didn't support --whole-archive et. al.
15230 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15231 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15232 else
15233 whole_archive_flag_spec=
15234 fi
15235 supports_anon_versioning=no
15236 case `$LD -v 2>/dev/null` in
15237 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15238 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15239 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15240 *\ 2.11.*) ;; # other 2.11 versions
15241 *) supports_anon_versioning=yes ;;
15242 esac
15243
John Criswell47fdd832003-07-14 16:52:07 +000015244 # See if GNU ld supports shared libraries.
15245 case $host_os in
15246 aix3* | aix4* | aix5*)
15247 # On AIX/PPC, the GNU linker is very broken
15248 if test "$host_cpu" != ia64; then
15249 ld_shlibs=no
15250 cat <<EOF 1>&2
15251
15252*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15253*** to be unable to reliably create shared libraries on AIX.
15254*** Therefore, libtool is disabling shared libraries support. If you
15255*** really care for shared libraries, you may want to modify your PATH
15256*** so that a non-GNU linker is found, and then restart.
15257
15258EOF
15259 fi
15260 ;;
15261
15262 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015263 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 +000015264 hardcode_libdir_flag_spec='-L$libdir'
15265 hardcode_minus_L=yes
15266
15267 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15268 # that the semantics of dynamic libraries on AmigaOS, at least up
15269 # to version 4, is to share data among multiple programs linked
15270 # with the same dynamic library. Since this doesn't match the
15271 # behavior of shared libraries on other platforms, we can't use
15272 # them.
15273 ld_shlibs=no
15274 ;;
15275
15276 beos*)
15277 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15278 allow_undefined_flag=unsupported
15279 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15280 # support --undefined. This deserves some investigation. FIXME
15281 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15282 else
15283 ld_shlibs=no
15284 fi
15285 ;;
15286
15287 cygwin* | mingw* | pw32*)
15288 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15289 # as there is no search path for DLLs.
15290 hardcode_libdir_flag_spec='-L$libdir'
15291 allow_undefined_flag=unsupported
15292 always_export_symbols=no
15293 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015294 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 +000015295
15296 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015297 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 +000015298 # If the export-symbols file already is a .def file (1st line
15299 # is EXPORTS), use it as is; otherwise, prepend...
15300 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15301 cp $export_symbols $output_objdir/$soname.def;
15302 else
15303 echo EXPORTS > $output_objdir/$soname.def;
15304 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015305 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015306 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15307 else
15308 ld_shlibs=no
15309 fi
15310 ;;
15311
15312 interix3*)
15313 hardcode_direct=no
15314 hardcode_shlibpath_var=no
15315 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15316 export_dynamic_flag_spec='${wl}-E'
15317 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15318 # Instead, shared libraries are loaded at an image base (0x10000000 by
15319 # default) and relocated if they conflict, which is a slow very memory
15320 # consuming and fragmenting process. To avoid this, we pick a random,
15321 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15322 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15324 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'
15325 ;;
15326
15327 linux*)
15328 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15329 tmp_addflag=
15330 case $cc_basename,$host_cpu in
15331 pgcc*) # Portland Group C compiler
15332 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'
15333 tmp_addflag=' $pic_flag'
15334 ;;
15335 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15336 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'
15337 tmp_addflag=' $pic_flag -Mnomain' ;;
15338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15339 tmp_addflag=' -i_dynamic' ;;
15340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15341 tmp_addflag=' -i_dynamic -nofor_main' ;;
15342 ifc* | ifort*) # Intel Fortran compiler
15343 tmp_addflag=' -nofor_main' ;;
15344 esac
15345 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15346
15347 if test $supports_anon_versioning = yes; then
15348 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15349 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15350 $echo "local: *; };" >> $output_objdir/$libname.ver~
15351 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15352 fi
John Criswell47fdd832003-07-14 16:52:07 +000015353 else
15354 ld_shlibs=no
15355 fi
15356 ;;
15357
15358 netbsd*)
15359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15361 wlarc=
15362 else
15363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15365 fi
15366 ;;
15367
Reid Spencera773bd52006-08-04 18:18:08 +000015368 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15370 ld_shlibs=no
15371 cat <<EOF 1>&2
15372
15373*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15374*** create shared libraries on Solaris systems. Therefore, libtool
15375*** is disabling shared libraries support. We urge you to upgrade GNU
15376*** binutils to release 2.9.1 or newer. Another option is to modify
15377*** your PATH or compiler configuration so that the native linker is
15378*** used, and then restart.
15379
15380EOF
15381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15384 else
15385 ld_shlibs=no
15386 fi
15387 ;;
15388
Reid Spencera773bd52006-08-04 18:18:08 +000015389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15390 case `$LD -v 2>&1` in
15391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15392 ld_shlibs=no
15393 cat <<_LT_EOF 1>&2
15394
15395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15396*** reliably create shared libraries on SCO systems. Therefore, libtool
15397*** is disabling shared libraries support. We urge you to upgrade GNU
15398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15399*** your PATH or compiler configuration so that the native linker is
15400*** used, and then restart.
15401
15402_LT_EOF
15403 ;;
15404 *)
15405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15406 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15409 else
15410 ld_shlibs=no
15411 fi
15412 ;;
15413 esac
15414 ;;
15415
John Criswell47fdd832003-07-14 16:52:07 +000015416 sunos4*)
15417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15418 wlarc=
15419 hardcode_direct=yes
15420 hardcode_shlibpath_var=no
15421 ;;
15422
15423 *)
15424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15426 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15427 else
15428 ld_shlibs=no
15429 fi
15430 ;;
15431 esac
15432
Reid Spencera773bd52006-08-04 18:18:08 +000015433 if test "$ld_shlibs" = no; then
15434 runpath_var=
15435 hardcode_libdir_flag_spec=
15436 export_dynamic_flag_spec=
15437 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015438 fi
15439 else
15440 # PORTME fill in a description of your system's linker (not GNU ld)
15441 case $host_os in
15442 aix3*)
15443 allow_undefined_flag=unsupported
15444 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015445 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 +000015446 # Note: this linker hardcodes the directories in LIBPATH if there
15447 # are no directories specified by -L.
15448 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015450 # Neither direct hardcoding nor static linking is supported with a
15451 # broken collect2.
15452 hardcode_direct=unsupported
15453 fi
15454 ;;
15455
15456 aix4* | aix5*)
15457 if test "$host_cpu" = ia64; then
15458 # On IA64, the linker does run time linking by default, so we don't
15459 # have to do anything special.
15460 aix_use_runtimelinking=no
15461 exp_sym_flag='-Bexport'
15462 no_entry_flag=""
15463 else
15464 # If we're using GNU nm, then we don't want the "-C" option.
15465 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15466 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15467 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'
15468 else
15469 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'
15470 fi
15471 aix_use_runtimelinking=no
15472
15473 # Test if we are trying to use run time linking or normal
15474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15475 # need to do runtime linking.
15476 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15477 for ld_flag in $LDFLAGS; do
15478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15479 aix_use_runtimelinking=yes
15480 break
15481 fi
15482 done
Reid Spencera773bd52006-08-04 18:18:08 +000015483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015484 esac
15485
15486 exp_sym_flag='-bexport'
15487 no_entry_flag='-bnoentry'
15488 fi
15489
15490 # When large executables or shared objects are built, AIX ld can
15491 # have problems creating the table of contents. If linking a library
15492 # or program results in "error TOC overflow" add -mminimal-toc to
15493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15495
15496 archive_cmds=''
15497 hardcode_direct=yes
15498 hardcode_libdir_separator=':'
15499 link_all_deplibs=yes
15500
15501 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015502 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015503 # We only want to do this on AIX 4.2 and lower, the check
15504 # below for broken collect2 doesn't work under 4.3+
15505 collect2name=`${CC} -print-prog-name=collect2`
15506 if test -f "$collect2name" && \
15507 strings "$collect2name" | grep resolve_lib_name >/dev/null
15508 then
15509 # We have reworked collect2
15510 hardcode_direct=yes
15511 else
15512 # We have old collect2
15513 hardcode_direct=unsupported
15514 # It fails to find uninstalled libraries when the uninstalled
15515 # path is not listed in the libpath. Setting hardcode_minus_L
15516 # to unsupported forces relinking
15517 hardcode_minus_L=yes
15518 hardcode_libdir_flag_spec='-L$libdir'
15519 hardcode_libdir_separator=
15520 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015522 esac
15523 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015524 if test "$aix_use_runtimelinking" = yes; then
15525 shared_flag="$shared_flag "'${wl}-G'
15526 fi
John Criswell47fdd832003-07-14 16:52:07 +000015527 else
15528 # not using gcc
15529 if test "$host_cpu" = ia64; then
15530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15531 # chokes on -Wl,-G. The following line is correct:
15532 shared_flag='-G'
15533 else
Reid Spencera773bd52006-08-04 18:18:08 +000015534 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015535 shared_flag='${wl}-G'
15536 else
15537 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015538 fi
John Criswell47fdd832003-07-14 16:52:07 +000015539 fi
15540 fi
15541
15542 # It seems that -bexpall does not export symbols beginning with
15543 # underscore (_), so it is better to generate a list of symbols to export.
15544 always_export_symbols=yes
15545 if test "$aix_use_runtimelinking" = yes; then
15546 # Warning - without using the other runtime loading flags (-brtl),
15547 # -berok will link without error, but may produce a broken library.
15548 allow_undefined_flag='-berok'
15549 # Determine the default libpath from the value encoded in an empty executable.
15550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015551/* confdefs.h. */
15552_ACEOF
15553cat confdefs.h >>conftest.$ac_ext
15554cat >>conftest.$ac_ext <<_ACEOF
15555/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015556
John Criswell7a73b802003-06-30 21:59:07 +000015557int
15558main ()
15559{
John Criswell47fdd832003-07-14 16:52:07 +000015560
John Criswell7a73b802003-06-30 21:59:07 +000015561 ;
15562 return 0;
15563}
15564_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015565rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015566if { (ac_try="$ac_link"
15567case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15570esac
15571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015578 (exit $ac_status); } &&
15579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580 { (case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583esac
15584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_try") 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest$ac_exeext'
15590 { (case "(($ac_try" in
15591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592 *) ac_try_echo=$ac_try;;
15593esac
15594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595 (eval "$ac_try") 2>&5
15596 ac_status=$?
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015599
John Criswell47fdd832003-07-14 16:52:07 +000015600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15601}'`
15602# Check for a 64-bit object if we didn't find anything.
15603if 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; }
15604}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015605else
15606 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015607sed 's/^/| /' conftest.$ac_ext >&5
15608
Reid Spencera773bd52006-08-04 18:18:08 +000015609
John Criswell7a73b802003-06-30 21:59:07 +000015610fi
Reid Spencera773bd52006-08-04 18:18:08 +000015611
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015612rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015613 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015615
John Criswell47fdd832003-07-14 16:52:07 +000015616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015617 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 +000015618 else
15619 if test "$host_cpu" = ia64; then
15620 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15621 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015622 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 +000015623 else
15624 # Determine the default libpath from the value encoded in an empty executable.
15625 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015626/* confdefs.h. */
15627_ACEOF
15628cat confdefs.h >>conftest.$ac_ext
15629cat >>conftest.$ac_ext <<_ACEOF
15630/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015631
John Criswell47fdd832003-07-14 16:52:07 +000015632int
15633main ()
15634{
John Criswell7a73b802003-06-30 21:59:07 +000015635
John Criswell47fdd832003-07-14 16:52:07 +000015636 ;
15637 return 0;
15638}
15639_ACEOF
15640rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015641if { (ac_try="$ac_link"
15642case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015648 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015649 grep -v '^ *+' conftest.er1 >conftest.err
15650 rm -f conftest.er1
15651 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658esac
15659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15661 ac_status=$?
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest$ac_exeext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15668esac
15669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15671 ac_status=$?
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015674
John Criswell47fdd832003-07-14 16:52:07 +000015675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15676}'`
15677# Check for a 64-bit object if we didn't find anything.
15678if 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; }
15679}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015680else
John Criswell47fdd832003-07-14 16:52:07 +000015681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015682sed 's/^/| /' conftest.$ac_ext >&5
15683
Reid Spencera773bd52006-08-04 18:18:08 +000015684
John Criswell47fdd832003-07-14 16:52:07 +000015685fi
Reid Spencera773bd52006-08-04 18:18:08 +000015686
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015688 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015689if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015690
John Criswell47fdd832003-07-14 16:52:07 +000015691 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15692 # Warning - without using the other run time loading flags,
15693 # -berok will link without error, but may produce a broken library.
15694 no_undefined_flag=' ${wl}-bernotok'
15695 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015696 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015697 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015698 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015699 # This is similar to how AIX traditionally builds its shared libraries.
15700 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 +000015701 fi
15702 fi
John Criswell7a73b802003-06-30 21:59:07 +000015703 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015704
15705 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015706 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 +000015707 hardcode_libdir_flag_spec='-L$libdir'
15708 hardcode_minus_L=yes
15709 # see comment about different semantics on the GNU ld section
15710 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015711 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015712
Reid Spencer2706f8c2004-09-19 23:53:36 +000015713 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015714 export_dynamic_flag_spec=-rdynamic
15715 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015716
John Criswell47fdd832003-07-14 16:52:07 +000015717 cygwin* | mingw* | pw32*)
15718 # When not using gcc, we currently assume that we are using
15719 # Microsoft Visual C++.
15720 # hardcode_libdir_flag_spec is actually meaningless, as there is
15721 # no search path for DLLs.
15722 hardcode_libdir_flag_spec=' '
15723 allow_undefined_flag=unsupported
15724 # Tell ltmain to make .lib files, not .a files.
15725 libext=lib
15726 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015727 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015728 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015729 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015730 # The linker will automatically build a .lib file if we build a DLL.
15731 old_archive_From_new_cmds='true'
15732 # FIXME: Should let the user specify the lib program.
15733 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15734 fix_srcfile_path='`cygpath -w "$srcfile"`'
15735 enable_shared_with_static_runtimes=yes
15736 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015737
John Criswell47fdd832003-07-14 16:52:07 +000015738 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015739 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015740 rhapsody* | darwin1.[012])
15741 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15742 ;;
15743 *) # Darwin 1.3 on
15744 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15745 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15746 else
15747 case ${MACOSX_DEPLOYMENT_TARGET} in
15748 10.[012])
15749 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15750 ;;
15751 10.*)
15752 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15753 ;;
15754 esac
15755 fi
15756 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015757 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015758 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015759 hardcode_direct=no
15760 hardcode_automatic=yes
15761 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015762 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015763 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015764 if test "$GCC" = yes ; then
15765 output_verbose_link_cmd='echo'
15766 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15767 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015768 # 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 +000015769 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}'
15770 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 +000015771 else
Reid Spencera773bd52006-08-04 18:18:08 +000015772 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015773 xlc*)
15774 output_verbose_link_cmd='echo'
15775 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15776 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015777 # 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 +000015778 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}'
15779 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 +000015780 ;;
15781 *)
15782 ld_shlibs=no
15783 ;;
15784 esac
John Criswell7a73b802003-06-30 21:59:07 +000015785 fi
John Criswell47fdd832003-07-14 16:52:07 +000015786 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015787
John Criswell47fdd832003-07-14 16:52:07 +000015788 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015790 hardcode_libdir_flag_spec='-L$libdir'
15791 hardcode_shlibpath_var=no
15792 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015793
John Criswell47fdd832003-07-14 16:52:07 +000015794 freebsd1*)
15795 ld_shlibs=no
15796 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015797
John Criswell47fdd832003-07-14 16:52:07 +000015798 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15799 # support. Future versions do this automatically, but an explicit c++rt0.o
15800 # does not break anything, and helps significantly (at the cost of a little
15801 # extra space).
15802 freebsd2.2*)
15803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15804 hardcode_libdir_flag_spec='-R$libdir'
15805 hardcode_direct=yes
15806 hardcode_shlibpath_var=no
15807 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015808
John Criswell47fdd832003-07-14 16:52:07 +000015809 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15810 freebsd2*)
15811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15812 hardcode_direct=yes
15813 hardcode_minus_L=yes
15814 hardcode_shlibpath_var=no
15815 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015816
John Criswell47fdd832003-07-14 16:52:07 +000015817 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015818 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015819 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15820 hardcode_libdir_flag_spec='-R$libdir'
15821 hardcode_direct=yes
15822 hardcode_shlibpath_var=no
15823 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015824
John Criswell47fdd832003-07-14 16:52:07 +000015825 hpux9*)
15826 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015827 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 +000015828 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015829 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 +000015830 fi
15831 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15832 hardcode_libdir_separator=:
15833 hardcode_direct=yes
15834
15835 # hardcode_minus_L: Not really in the search PATH,
15836 # but as the default location of the library.
15837 hardcode_minus_L=yes
15838 export_dynamic_flag_spec='${wl}-E'
15839 ;;
15840
Reid Spencera773bd52006-08-04 18:18:08 +000015841 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015842 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015843 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15844 else
15845 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15846 fi
15847 if test "$with_gnu_ld" = no; then
15848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15849 hardcode_libdir_separator=:
15850
15851 hardcode_direct=yes
15852 export_dynamic_flag_spec='${wl}-E'
15853
15854 # hardcode_minus_L: Not really in the search PATH,
15855 # but as the default location of the library.
15856 hardcode_minus_L=yes
15857 fi
15858 ;;
15859
15860 hpux11*)
15861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15862 case $host_cpu in
15863 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015864 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015866 ia64*)
15867 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15868 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015869 *)
15870 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15871 ;;
15872 esac
15873 else
Reid Spencera773bd52006-08-04 18:18:08 +000015874 case $host_cpu in
15875 hppa*64*)
15876 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15877 ;;
15878 ia64*)
15879 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015880 ;;
15881 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015882 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 +000015883 ;;
15884 esac
15885 fi
15886 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15888 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015889
Reid Spencera773bd52006-08-04 18:18:08 +000015890 case $host_cpu in
15891 hppa*64*|ia64*)
15892 hardcode_libdir_flag_spec_ld='+b $libdir'
15893 hardcode_direct=no
15894 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015895 ;;
15896 *)
John Criswell47fdd832003-07-14 16:52:07 +000015897 hardcode_direct=yes
15898 export_dynamic_flag_spec='${wl}-E'
15899
15900 # hardcode_minus_L: Not really in the search PATH,
15901 # but as the default location of the library.
15902 hardcode_minus_L=yes
15903 ;;
15904 esac
15905 fi
15906 ;;
15907
15908 irix5* | irix6* | nonstopux*)
15909 if test "$GCC" = yes; then
15910 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'
15911 else
15912 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'
15913 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15914 fi
15915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator=:
15917 link_all_deplibs=yes
15918 ;;
15919
15920 netbsd*)
15921 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15923 else
15924 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15925 fi
15926 hardcode_libdir_flag_spec='-R$libdir'
15927 hardcode_direct=yes
15928 hardcode_shlibpath_var=no
15929 ;;
15930
15931 newsos6)
15932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15933 hardcode_direct=yes
15934 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15935 hardcode_libdir_separator=:
15936 hardcode_shlibpath_var=no
15937 ;;
15938
15939 openbsd*)
15940 hardcode_direct=yes
15941 hardcode_shlibpath_var=no
15942 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15943 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015944 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 +000015945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15946 export_dynamic_flag_spec='${wl}-E'
15947 else
15948 case $host_os in
15949 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15951 hardcode_libdir_flag_spec='-R$libdir'
15952 ;;
15953 *)
15954 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15956 ;;
15957 esac
15958 fi
15959 ;;
15960
15961 os2*)
15962 hardcode_libdir_flag_spec='-L$libdir'
15963 hardcode_minus_L=yes
15964 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015965 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 +000015966 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15967 ;;
15968
15969 osf3*)
15970 if test "$GCC" = yes; then
15971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15972 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'
15973 else
15974 allow_undefined_flag=' -expect_unresolved \*'
15975 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'
15976 fi
15977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator=:
15979 ;;
15980
15981 osf4* | osf5*) # as osf3* with the addition of -msym flag
15982 if test "$GCC" = yes; then
15983 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15984 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'
15985 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15986 else
15987 allow_undefined_flag=' -expect_unresolved \*'
15988 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 +000015989 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 +000015990 $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 +000015991
John Criswell47fdd832003-07-14 16:52:07 +000015992 # Both c and cxx compiler support -rpath directly
15993 hardcode_libdir_flag_spec='-rpath $libdir'
15994 fi
15995 hardcode_libdir_separator=:
15996 ;;
15997
John Criswell47fdd832003-07-14 16:52:07 +000015998 solaris*)
15999 no_undefined_flag=' -z text'
16000 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016001 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016002 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016003 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16004 $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 +000016005 else
Reid Spencera773bd52006-08-04 18:18:08 +000016006 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016007 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016008 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16009 $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 +000016010 fi
16011 hardcode_libdir_flag_spec='-R$libdir'
16012 hardcode_shlibpath_var=no
16013 case $host_os in
16014 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016015 *)
16016 # The compiler driver will combine linker options so we
16017 # cannot just pass the convience library names through
16018 # without $wl, iff we do not link with $LD.
16019 # Luckily, gcc supports the same syntax we need for Sun Studio.
16020 # Supported since Solaris 2.6 (maybe 2.5.1?)
16021 case $wlarc in
16022 '')
16023 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16024 *)
16025 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' ;;
16026 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016027 esac
16028 link_all_deplibs=yes
16029 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016030
John Criswell47fdd832003-07-14 16:52:07 +000016031 sunos4*)
16032 if test "x$host_vendor" = xsequent; then
16033 # Use $CC to link under sequent, because it throws in some extra .o
16034 # files that make .init and .fini sections work.
16035 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16036 else
16037 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16038 fi
16039 hardcode_libdir_flag_spec='-L$libdir'
16040 hardcode_direct=yes
16041 hardcode_minus_L=yes
16042 hardcode_shlibpath_var=no
16043 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016044
John Criswell47fdd832003-07-14 16:52:07 +000016045 sysv4)
16046 case $host_vendor in
16047 sni)
16048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16049 hardcode_direct=yes # is this really true???
16050 ;;
16051 siemens)
16052 ## LD is ld it makes a PLAMLIB
16053 ## CC just makes a GrossModule.
16054 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16055 reload_cmds='$CC -r -o $output$reload_objs'
16056 hardcode_direct=no
16057 ;;
16058 motorola)
16059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16060 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16061 ;;
16062 esac
16063 runpath_var='LD_RUN_PATH'
16064 hardcode_shlibpath_var=no
16065 ;;
16066
16067 sysv4.3*)
16068 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_shlibpath_var=no
16070 export_dynamic_flag_spec='-Bexport'
16071 ;;
16072
16073 sysv4*MP*)
16074 if test -d /usr/nec; then
16075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_shlibpath_var=no
16077 runpath_var=LD_RUN_PATH
16078 hardcode_runpath_var=yes
16079 ld_shlibs=yes
16080 fi
16081 ;;
16082
Reid Spencera773bd52006-08-04 18:18:08 +000016083 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16084 no_undefined_flag='${wl}-z,text'
16085 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016086 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016087 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016088
John Criswell47fdd832003-07-14 16:52:07 +000016089 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016090 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 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 +000016092 else
Reid Spencera773bd52006-08-04 18:18:08 +000016093 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16094 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 +000016095 fi
John Criswell47fdd832003-07-14 16:52:07 +000016096 ;;
16097
Reid Spencera773bd52006-08-04 18:18:08 +000016098 sysv5* | sco3.2v5* | sco5v6*)
16099 # Note: We can NOT use -z defs as we might desire, because we do not
16100 # link with -lc, and that would cause any symbols used from libc to
16101 # always be unresolved, which means just about no library would
16102 # ever link correctly. If we're not using GNU ld we use -z text
16103 # though, which does catch some bad symbols but isn't as heavy-handed
16104 # as -z defs.
16105 no_undefined_flag='${wl}-z,text'
16106 allow_undefined_flag='${wl}-z,nodefs'
16107 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016108 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016109 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16110 hardcode_libdir_separator=':'
16111 link_all_deplibs=yes
16112 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016113 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016114
16115 if test "$GCC" = yes; then
16116 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16117 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 else
16119 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16120 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 fi
John Criswell47fdd832003-07-14 16:52:07 +000016122 ;;
16123
16124 uts4*)
16125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16126 hardcode_libdir_flag_spec='-L$libdir'
16127 hardcode_shlibpath_var=no
16128 ;;
16129
16130 *)
16131 ld_shlibs=no
16132 ;;
16133 esac
16134 fi
16135
Reid Spencera773bd52006-08-04 18:18:08 +000016136{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16137echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016138test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016139
John Criswell47fdd832003-07-14 16:52:07 +000016140#
16141# Do we need to explicitly link libc?
16142#
16143case "x$archive_cmds_need_lc" in
16144x|xyes)
16145 # Assume -lc should be added
16146 archive_cmds_need_lc=yes
16147
16148 if test "$enable_shared" = yes && test "$GCC" = yes; then
16149 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016150 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016151 # FIXME: we may have to deal with multi-command sequences.
16152 ;;
16153 '$CC '*)
16154 # Test whether the compiler implicitly links with -lc since on some
16155 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16156 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016157 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16158echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016159 $rm conftest*
16160 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16161
16162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16163 (eval $ac_compile) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); } 2>conftest.err; then
16167 soname=conftest
16168 lib=conftest
16169 libobjs=conftest.$ac_objext
16170 deplibs=
16171 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016172 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016173 compiler_flags=-v
16174 linker_flags=-v
16175 verstring=
16176 output_objdir=.
16177 libname=conftest
16178 lt_save_allow_undefined_flag=$allow_undefined_flag
16179 allow_undefined_flag=
16180 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16181 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }
16185 then
16186 archive_cmds_need_lc=no
16187 else
16188 archive_cmds_need_lc=yes
16189 fi
16190 allow_undefined_flag=$lt_save_allow_undefined_flag
16191 else
16192 cat conftest.err 1>&5
16193 fi
16194 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016195 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16196echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016197 ;;
16198 esac
16199 fi
16200 ;;
16201esac
16202
Reid Spencera773bd52006-08-04 18:18:08 +000016203{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16204echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016205library_names_spec=
16206libname_spec='lib$name'
16207soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016208shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016209postinstall_cmds=
16210postuninstall_cmds=
16211finish_cmds=
16212finish_eval=
16213shlibpath_var=
16214shlibpath_overrides_runpath=unknown
16215version_type=none
16216dynamic_linker="$host_os ld.so"
16217sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016218if test "$GCC" = yes; then
16219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16220 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16221 # if the path contains ";" then we assume it to be the separator
16222 # otherwise default to the standard path separator (i.e. ":") - it is
16223 # assumed that no part of a normal pathname contains ";" but that should
16224 # okay in the real world where ";" in dirpaths is itself problematic.
16225 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16226 else
16227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16228 fi
16229else
16230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16231fi
16232need_lib_prefix=unknown
16233hardcode_into_libs=no
16234
16235# when you set need_version to no, make sure it does not cause -set_version
16236# flags to be left without arguments
16237need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016238
16239case $host_os in
16240aix3*)
16241 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016243 shlibpath_var=LIBPATH
16244
John Criswell47fdd832003-07-14 16:52:07 +000016245 # AIX 3 has no versioning support, so we append a major version to the name.
16246 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016247 ;;
16248
16249aix4* | aix5*)
16250 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016251 need_lib_prefix=no
16252 need_version=no
16253 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016254 if test "$host_cpu" = ia64; then
16255 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016256 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016257 shlibpath_var=LD_LIBRARY_PATH
16258 else
16259 # With GCC up to 2.95.x, collect2 would create an import file
16260 # for dependence libraries. The import file would start with
16261 # the line `#! .'. This would cause the generated library to
16262 # depend on `.', always an invalid library. This was fixed in
16263 # development snapshots of GCC prior to 3.0.
16264 case $host_os in
16265 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016266 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16267 echo ' yes '
16268 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16269 :
16270 else
16271 can_build_shared=no
16272 fi
16273 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016274 esac
John Criswell47fdd832003-07-14 16:52:07 +000016275 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16276 # soname into executable. Probably we can add versioning support to
16277 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016278 if test "$aix_use_runtimelinking" = yes; then
16279 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16280 # instead of lib<name>.a to let people know that these are not
16281 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016283 else
16284 # We preserve .a as extension for shared libraries through AIX4.2
16285 # and later when we are not doing run time linking.
16286 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016287 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016288 fi
16289 shlibpath_var=LIBPATH
16290 fi
16291 ;;
16292
16293amigaos*)
16294 library_names_spec='$libname.ixlibrary $libname.a'
16295 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016296 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 +000016297 ;;
16298
16299beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016300 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016301 dynamic_linker="$host_os ld.so"
16302 shlibpath_var=LIBRARY_PATH
16303 ;;
16304
Reid Spencer2706f8c2004-09-19 23:53:36 +000016305bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016306 version_type=linux
16307 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016314 # the default ld.so.conf also contains /usr/contrib/lib and
16315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16316 # libtool to hard-code these into programs
16317 ;;
16318
16319cygwin* | mingw* | pw32*)
16320 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016321 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016322 need_version=no
16323 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016324
John Criswell7a73b802003-06-30 21:59:07 +000016325 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016326 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016327 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016328 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016329 postinstall_cmds='base_file=`basename \${file}`~
16330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16331 dldir=$destdir/`dirname \$dlpath`~
16332 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016333 $install_prog $dir/$dlname \$dldir/$dlname~
16334 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016335 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16336 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016337 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016338 shlibpath_overrides_runpath=yes
16339
16340 case $host_os in
16341 cygwin*)
16342 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16343 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 +000016344 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016345 ;;
16346 mingw*)
16347 # MinGW DLLs use traditional 'lib' prefix
16348 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16349 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16350 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16351 # It is most probably a Windows format PATH printed by
16352 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16353 # path with ; separators, and with drive letters. We can handle the
16354 # drive letters (cygwin fileutils understands them), so leave them,
16355 # especially as we might pass files found there to a mingw objdump,
16356 # which wouldn't understand a cygwinified path. Ahh.
16357 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16358 else
16359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16360 fi
16361 ;;
16362 pw32*)
16363 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016364 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 +000016365 ;;
16366 esac
John Criswell7a73b802003-06-30 21:59:07 +000016367 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016368
John Criswell7a73b802003-06-30 21:59:07 +000016369 *)
John Criswell47fdd832003-07-14 16:52:07 +000016370 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016371 ;;
16372 esac
16373 dynamic_linker='Win32 ld.exe'
16374 # FIXME: first we should search . and the directory the executable is in
16375 shlibpath_var=PATH
16376 ;;
16377
16378darwin* | rhapsody*)
16379 dynamic_linker="$host_os dyld"
16380 version_type=darwin
16381 need_lib_prefix=no
16382 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016383 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016384 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016385 shlibpath_overrides_runpath=yes
16386 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016387 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016388 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016389 if test "$GCC" = yes; then
16390 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"`
16391 else
16392 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016393 fi
16394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16395 ;;
16396
16397dgux*)
16398 version_type=linux
16399 need_lib_prefix=no
16400 need_version=no
16401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16402 soname_spec='${libname}${release}${shared_ext}$major'
16403 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016404 ;;
16405
16406freebsd1*)
16407 dynamic_linker=no
16408 ;;
16409
Reid Spencer2706f8c2004-09-19 23:53:36 +000016410kfreebsd*-gnu)
16411 version_type=linux
16412 need_lib_prefix=no
16413 need_version=no
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
16416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=no
16418 hardcode_into_libs=yes
16419 dynamic_linker='GNU ld.so'
16420 ;;
16421
Reid Spencera773bd52006-08-04 18:18:08 +000016422freebsd* | dragonfly*)
16423 # DragonFly does not have aout. When/if they implement a new
16424 # versioning mechanism, adjust this.
16425 if test -x /usr/bin/objformat; then
16426 objformat=`/usr/bin/objformat`
16427 else
16428 case $host_os in
16429 freebsd[123]*) objformat=aout ;;
16430 *) objformat=elf ;;
16431 esac
16432 fi
John Criswell7a73b802003-06-30 21:59:07 +000016433 version_type=freebsd-$objformat
16434 case $version_type in
16435 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016437 need_version=no
16438 need_lib_prefix=no
16439 ;;
16440 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016441 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016442 need_version=yes
16443 ;;
16444 esac
16445 shlibpath_var=LD_LIBRARY_PATH
16446 case $host_os in
16447 freebsd2*)
16448 shlibpath_overrides_runpath=yes
16449 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016450 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016451 shlibpath_overrides_runpath=yes
16452 hardcode_into_libs=yes
16453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016456 shlibpath_overrides_runpath=no
16457 hardcode_into_libs=yes
16458 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016459 freebsd*) # from 4.6 on
16460 shlibpath_overrides_runpath=yes
16461 hardcode_into_libs=yes
16462 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016463 esac
16464 ;;
16465
16466gnu*)
16467 version_type=linux
16468 need_lib_prefix=no
16469 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016472 shlibpath_var=LD_LIBRARY_PATH
16473 hardcode_into_libs=yes
16474 ;;
16475
16476hpux9* | hpux10* | hpux11*)
16477 # Give a soname corresponding to the major version so that dld.sl refuses to
16478 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016479 version_type=sunos
16480 need_lib_prefix=no
16481 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016482 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016483 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016484 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016485 hardcode_into_libs=yes
16486 dynamic_linker="$host_os dld.so"
16487 shlibpath_var=LD_LIBRARY_PATH
16488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 if test "X$HPUX_IA64_MODE" = X32; then
16492 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16493 else
16494 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16495 fi
16496 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16497 ;;
16498 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016499 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016500 hardcode_into_libs=yes
16501 dynamic_linker="$host_os dld.sl"
16502 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16503 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16505 soname_spec='${libname}${release}${shared_ext}$major'
16506 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16507 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16508 ;;
16509 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016510 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016511 dynamic_linker="$host_os dld.sl"
16512 shlibpath_var=SHLIB_PATH
16513 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 ;;
16517 esac
John Criswell7a73b802003-06-30 21:59:07 +000016518 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16519 postinstall_cmds='chmod 555 $lib'
16520 ;;
16521
Reid Spencera773bd52006-08-04 18:18:08 +000016522interix3*)
16523 version_type=linux
16524 need_lib_prefix=no
16525 need_version=no
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16527 soname_spec='${libname}${release}${shared_ext}$major'
16528 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=no
16531 hardcode_into_libs=yes
16532 ;;
16533
John Criswell47fdd832003-07-14 16:52:07 +000016534irix5* | irix6* | nonstopux*)
16535 case $host_os in
16536 nonstopux*) version_type=nonstopux ;;
16537 *)
16538 if test "$lt_cv_prog_gnu_ld" = yes; then
16539 version_type=linux
16540 else
16541 version_type=irix
16542 fi ;;
16543 esac
John Criswell7a73b802003-06-30 21:59:07 +000016544 need_lib_prefix=no
16545 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016546 soname_spec='${libname}${release}${shared_ext}$major'
16547 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 +000016548 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016549 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016550 libsuff= shlibsuff=
16551 ;;
16552 *)
16553 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016554 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16555 libsuff= shlibsuff= libmagic=32-bit;;
16556 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16557 libsuff=32 shlibsuff=N32 libmagic=N32;;
16558 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16559 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016560 *) libsuff= shlibsuff= libmagic=never-match;;
16561 esac
16562 ;;
16563 esac
16564 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16565 shlibpath_overrides_runpath=no
16566 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16567 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016568 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016569 ;;
16570
16571# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016572linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016573 dynamic_linker=no
16574 ;;
16575
16576# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016577linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=no
16586 # This implies no fast_install, which is unacceptable.
16587 # Some rework will be needed to allow for fast_install
16588 # before this can be enabled.
16589 hardcode_into_libs=yes
16590
Reid Spencer2706f8c2004-09-19 23:53:36 +000016591 # Append ld.so.conf contents to the search path
16592 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016593 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 +000016594 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16595 fi
16596
John Criswell7a73b802003-06-30 21:59:07 +000016597 # We used to test for /lib/ld.so.1 and disable shared libraries on
16598 # powerpc, because MkLinux only supported shared libraries with the
16599 # GNU dynamic linker. Since this was broken with cross compilers,
16600 # most powerpc-linux boxes support dynamic linking these days and
16601 # people can always --disable-shared, the test was removed, and we
16602 # assume the GNU/Linux dynamic linker is in use.
16603 dynamic_linker='GNU/Linux ld.so'
16604 ;;
16605
Reid Spencer2706f8c2004-09-19 23:53:36 +000016606knetbsd*-gnu)
16607 version_type=linux
16608 need_lib_prefix=no
16609 need_version=no
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 shlibpath_overrides_runpath=no
16614 hardcode_into_libs=yes
16615 dynamic_linker='GNU ld.so'
16616 ;;
16617
John Criswell7a73b802003-06-30 21:59:07 +000016618netbsd*)
16619 version_type=sunos
16620 need_lib_prefix=no
16621 need_version=no
16622 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16625 dynamic_linker='NetBSD (a.out) ld.so'
16626 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016628 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016629 dynamic_linker='NetBSD ld.elf_so'
16630 fi
16631 shlibpath_var=LD_LIBRARY_PATH
16632 shlibpath_overrides_runpath=yes
16633 hardcode_into_libs=yes
16634 ;;
16635
16636newsos6)
16637 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 shlibpath_overrides_runpath=yes
16641 ;;
16642
Reid Spencer2706f8c2004-09-19 23:53:36 +000016643nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016644 version_type=linux
16645 need_lib_prefix=no
16646 need_version=no
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016649 shlibpath_var=LD_LIBRARY_PATH
16650 shlibpath_overrides_runpath=yes
16651 ;;
16652
16653openbsd*)
16654 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016655 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016656 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16658 case $host_os in
16659 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16660 *) need_version=no ;;
16661 esac
John Criswell47fdd832003-07-14 16:52:07 +000016662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16664 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016665 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 +000016666 case $host_os in
16667 openbsd2.[89] | openbsd2.[89].*)
16668 shlibpath_overrides_runpath=no
16669 ;;
16670 *)
16671 shlibpath_overrides_runpath=yes
16672 ;;
16673 esac
John Criswell7a73b802003-06-30 21:59:07 +000016674 else
16675 shlibpath_overrides_runpath=yes
16676 fi
John Criswell7a73b802003-06-30 21:59:07 +000016677 ;;
16678
16679os2*)
16680 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016681 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016682 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016683 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016684 dynamic_linker='OS/2 ld.exe'
16685 shlibpath_var=LIBPATH
16686 ;;
16687
16688osf3* | osf4* | osf5*)
16689 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016690 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016691 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016692 soname_spec='${libname}${release}${shared_ext}$major'
16693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016694 shlibpath_var=LD_LIBRARY_PATH
16695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16697 ;;
16698
John Criswell7a73b802003-06-30 21:59:07 +000016699solaris*)
16700 version_type=linux
16701 need_lib_prefix=no
16702 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes
16707 hardcode_into_libs=yes
16708 # ldd complains unless libraries are executable
16709 postinstall_cmds='chmod +x $lib'
16710 ;;
16711
16712sunos4*)
16713 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 shlibpath_overrides_runpath=yes
16718 if test "$with_gnu_ld" = yes; then
16719 need_lib_prefix=no
16720 fi
16721 need_version=yes
16722 ;;
16723
Reid Spencera773bd52006-08-04 18:18:08 +000016724sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016725 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016728 shlibpath_var=LD_LIBRARY_PATH
16729 case $host_vendor in
16730 sni)
16731 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016732 need_lib_prefix=no
16733 export_dynamic_flag_spec='${wl}-Blargedynsym'
16734 runpath_var=LD_RUN_PATH
16735 ;;
16736 siemens)
16737 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016738 ;;
16739 motorola)
16740 need_lib_prefix=no
16741 need_version=no
16742 shlibpath_overrides_runpath=no
16743 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16744 ;;
16745 esac
16746 ;;
16747
John Criswell7a73b802003-06-30 21:59:07 +000016748sysv4*MP*)
16749 if test -d /usr/nec ;then
16750 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016751 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16752 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016753 shlibpath_var=LD_LIBRARY_PATH
16754 fi
16755 ;;
16756
Reid Spencera773bd52006-08-04 18:18:08 +000016757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16758 version_type=freebsd-elf
16759 need_lib_prefix=no
16760 need_version=no
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 shlibpath_var=LD_LIBRARY_PATH
16764 hardcode_into_libs=yes
16765 if test "$with_gnu_ld" = yes; then
16766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16767 shlibpath_overrides_runpath=no
16768 else
16769 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16770 shlibpath_overrides_runpath=yes
16771 case $host_os in
16772 sco3.2v5*)
16773 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16774 ;;
16775 esac
16776 fi
16777 sys_lib_dlsearch_path_spec='/usr/lib'
16778 ;;
16779
John Criswell47fdd832003-07-14 16:52:07 +000016780uts4*)
16781 version_type=linux
16782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 shlibpath_var=LD_LIBRARY_PATH
16785 ;;
16786
John Criswell7a73b802003-06-30 21:59:07 +000016787*)
16788 dynamic_linker=no
16789 ;;
16790esac
Reid Spencera773bd52006-08-04 18:18:08 +000016791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16792echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016793test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016794
Reid Spencera773bd52006-08-04 18:18:08 +000016795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16796if test "$GCC" = yes; then
16797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798fi
16799
16800{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16801echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016802hardcode_action=
16803if test -n "$hardcode_libdir_flag_spec" || \
16804 test -n "$runpath_var" || \
16805 test "X$hardcode_automatic" = "Xyes" ; then
16806
16807 # We can hardcode non-existant directories.
16808 if test "$hardcode_direct" != no &&
16809 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16810 # have to relink, otherwise we might link with an installed library
16811 # when we should be linking with a yet-to-be-installed one
16812 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16813 test "$hardcode_minus_L" != no; then
16814 # Linking always hardcodes the temporary library directory.
16815 hardcode_action=relink
16816 else
16817 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16818 hardcode_action=immediate
16819 fi
16820else
16821 # We cannot hardcode anything, or else we can only hardcode existing
16822 # directories.
16823 hardcode_action=unsupported
16824fi
Reid Spencera773bd52006-08-04 18:18:08 +000016825{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16826echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016827
16828if test "$hardcode_action" = relink; then
16829 # Fast installation is not supported
16830 enable_fast_install=no
16831elif test "$shlibpath_overrides_runpath" = yes ||
16832 test "$enable_shared" = no; then
16833 # Fast installation is not necessary
16834 enable_fast_install=needless
16835fi
16836
16837striplib=
16838old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016839{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16840echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016841if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16842 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16843 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016844 { echo "$as_me:$LINENO: result: yes" >&5
16845echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846else
16847# FIXME - insert some real tests, host_os isn't really good enough
16848 case $host_os in
16849 darwin*)
16850 if test -n "$STRIP" ; then
16851 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016852 { echo "$as_me:$LINENO: result: yes" >&5
16853echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854 else
Reid Spencera773bd52006-08-04 18:18:08 +000016855 { echo "$as_me:$LINENO: result: no" >&5
16856echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016857fi
16858 ;;
16859 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016860 { echo "$as_me:$LINENO: result: no" >&5
16861echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016862 ;;
16863 esac
16864fi
16865
John Criswell7a73b802003-06-30 21:59:07 +000016866if test "x$enable_dlopen" != xyes; then
16867 enable_dlopen=unknown
16868 enable_dlopen_self=unknown
16869 enable_dlopen_self_static=unknown
16870else
16871 lt_cv_dlopen=no
16872 lt_cv_dlopen_libs=
16873
16874 case $host_os in
16875 beos*)
16876 lt_cv_dlopen="load_add_on"
16877 lt_cv_dlopen_libs=
16878 lt_cv_dlopen_self=yes
16879 ;;
16880
John Criswell47fdd832003-07-14 16:52:07 +000016881 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016882 lt_cv_dlopen="LoadLibrary"
16883 lt_cv_dlopen_libs=
16884 ;;
16885
John Criswell47fdd832003-07-14 16:52:07 +000016886 cygwin*)
16887 lt_cv_dlopen="dlopen"
16888 lt_cv_dlopen_libs=
16889 ;;
16890
16891 darwin*)
16892 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016893 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16894echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016895if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16896 echo $ECHO_N "(cached) $ECHO_C" >&6
16897else
16898 ac_check_lib_save_LIBS=$LIBS
16899LIBS="-ldl $LIBS"
16900cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016901/* confdefs.h. */
16902_ACEOF
16903cat confdefs.h >>conftest.$ac_ext
16904cat >>conftest.$ac_ext <<_ACEOF
16905/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016906
Reid Spencera773bd52006-08-04 18:18:08 +000016907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016910#ifdef __cplusplus
16911extern "C"
16912#endif
John Criswell47fdd832003-07-14 16:52:07 +000016913char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016914int
16915main ()
16916{
Reid Spencera773bd52006-08-04 18:18:08 +000016917return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016918 ;
16919 return 0;
16920}
16921_ACEOF
16922rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016923if { (ac_try="$ac_link"
16924case "(($ac_try" in
16925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926 *) ac_try_echo=$ac_try;;
16927esac
16928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016931 grep -v '^ *+' conftest.er1 >conftest.err
16932 rm -f conftest.er1
16933 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016935 (exit $ac_status); } &&
16936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16937 { (case "(($ac_try" in
16938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939 *) ac_try_echo=$ac_try;;
16940esac
16941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942 (eval "$ac_try") 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; } &&
16946 { ac_try='test -s conftest$ac_exeext'
16947 { (case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950esac
16951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_try") 2>&5
16953 ac_status=$?
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016956 ac_cv_lib_dl_dlopen=yes
16957else
16958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016959sed 's/^/| /' conftest.$ac_ext >&5
16960
Reid Spencera773bd52006-08-04 18:18:08 +000016961 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016962fi
Reid Spencera773bd52006-08-04 18:18:08 +000016963
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016964rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016966LIBS=$ac_check_lib_save_LIBS
16967fi
Reid Spencera773bd52006-08-04 18:18:08 +000016968{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16969echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016970if test $ac_cv_lib_dl_dlopen = yes; then
16971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16972else
16973
16974 lt_cv_dlopen="dyld"
16975 lt_cv_dlopen_libs=
16976 lt_cv_dlopen_self=yes
16977
16978fi
16979
16980 ;;
16981
John Criswell7a73b802003-06-30 21:59:07 +000016982 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016983 { echo "$as_me:$LINENO: checking for shl_load" >&5
16984echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016985if test "${ac_cv_func_shl_load+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016989/* confdefs.h. */
16990_ACEOF
16991cat confdefs.h >>conftest.$ac_ext
16992cat >>conftest.$ac_ext <<_ACEOF
16993/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016994/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16996#define shl_load innocuous_shl_load
16997
John Criswell7a73b802003-06-30 21:59:07 +000016998/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016999 which can conflict with char shl_load (); below.
17000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17001 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017002
John Criswell0c38eaf2003-09-10 15:17:25 +000017003#ifdef __STDC__
17004# include <limits.h>
17005#else
17006# include <assert.h>
17007#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017008
17009#undef shl_load
17010
Reid Spencera773bd52006-08-04 18:18:08 +000017011/* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017014#ifdef __cplusplus
17015extern "C"
17016#endif
John Criswell7a73b802003-06-30 21:59:07 +000017017char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017018/* The GNU C library defines this for functions which it implements
17019 to always fail with ENOSYS. Some functions are actually named
17020 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017021#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017022choke me
John Criswell7a73b802003-06-30 21:59:07 +000017023#endif
17024
John Criswell0c38eaf2003-09-10 15:17:25 +000017025int
17026main ()
17027{
Reid Spencera773bd52006-08-04 18:18:08 +000017028return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017034if { (ac_try="$ac_link"
17035case "(($ac_try" in
17036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17037 *) ac_try_echo=$ac_try;;
17038esac
17039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17040 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017046 (exit $ac_status); } &&
17047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17051esac
17052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (case "(($ac_try" in
17059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17061esac
17062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_try") 2>&5
17064 ac_status=$?
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017067 ac_cv_func_shl_load=yes
17068else
17069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017070sed 's/^/| /' conftest.$ac_ext >&5
17071
Reid Spencera773bd52006-08-04 18:18:08 +000017072 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017073fi
Reid Spencera773bd52006-08-04 18:18:08 +000017074
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017075rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017077fi
Reid Spencera773bd52006-08-04 18:18:08 +000017078{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17079echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017080if test $ac_cv_func_shl_load = yes; then
17081 lt_cv_dlopen="shl_load"
17082else
Reid Spencera773bd52006-08-04 18:18:08 +000017083 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17084echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017085if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17087else
17088 ac_check_lib_save_LIBS=$LIBS
17089LIBS="-ldld $LIBS"
17090cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017091/* confdefs.h. */
17092_ACEOF
17093cat confdefs.h >>conftest.$ac_ext
17094cat >>conftest.$ac_ext <<_ACEOF
17095/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017096
Reid Spencera773bd52006-08-04 18:18:08 +000017097/* Override any GCC internal prototype to avoid an error.
17098 Use char because int might match the return type of a GCC
17099 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017100#ifdef __cplusplus
17101extern "C"
17102#endif
John Criswell7a73b802003-06-30 21:59:07 +000017103char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017104int
17105main ()
17106{
Reid Spencera773bd52006-08-04 18:18:08 +000017107return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017108 ;
17109 return 0;
17110}
17111_ACEOF
17112rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017113if { (ac_try="$ac_link"
17114case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117esac
17118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017125 (exit $ac_status); } &&
17126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17127 { (case "(($ac_try" in
17128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17129 *) ac_try_echo=$ac_try;;
17130esac
17131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17132 (eval "$ac_try") 2>&5
17133 ac_status=$?
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try='test -s conftest$ac_exeext'
17137 { (case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_try") 2>&5
17143 ac_status=$?
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017146 ac_cv_lib_dld_shl_load=yes
17147else
17148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017149sed 's/^/| /' conftest.$ac_ext >&5
17150
Reid Spencera773bd52006-08-04 18:18:08 +000017151 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017152fi
Reid Spencera773bd52006-08-04 18:18:08 +000017153
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017154rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017155 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017156LIBS=$ac_check_lib_save_LIBS
17157fi
Reid Spencera773bd52006-08-04 18:18:08 +000017158{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17159echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017160if test $ac_cv_lib_dld_shl_load = yes; then
17161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17162else
Reid Spencera773bd52006-08-04 18:18:08 +000017163 { echo "$as_me:$LINENO: checking for dlopen" >&5
17164echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017165if test "${ac_cv_func_dlopen+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17167else
17168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017169/* confdefs.h. */
17170_ACEOF
17171cat confdefs.h >>conftest.$ac_ext
17172cat >>conftest.$ac_ext <<_ACEOF
17173/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017174/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17176#define dlopen innocuous_dlopen
17177
John Criswell7a73b802003-06-30 21:59:07 +000017178/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017179 which can conflict with char dlopen (); below.
17180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17181 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017182
John Criswell0c38eaf2003-09-10 15:17:25 +000017183#ifdef __STDC__
17184# include <limits.h>
17185#else
17186# include <assert.h>
17187#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017188
17189#undef dlopen
17190
Reid Spencera773bd52006-08-04 18:18:08 +000017191/* Override any GCC internal prototype to avoid an error.
17192 Use char because int might match the return type of a GCC
17193 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017194#ifdef __cplusplus
17195extern "C"
17196#endif
John Criswell7a73b802003-06-30 21:59:07 +000017197char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017198/* The GNU C library defines this for functions which it implements
17199 to always fail with ENOSYS. Some functions are actually named
17200 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017201#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017202choke me
John Criswell7a73b802003-06-30 21:59:07 +000017203#endif
17204
John Criswell0c38eaf2003-09-10 15:17:25 +000017205int
17206main ()
17207{
Reid Spencera773bd52006-08-04 18:18:08 +000017208return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017209 ;
17210 return 0;
17211}
17212_ACEOF
17213rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017214if { (ac_try="$ac_link"
17215case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218esac
17219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017222 grep -v '^ *+' conftest.er1 >conftest.err
17223 rm -f conftest.er1
17224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017226 (exit $ac_status); } &&
17227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17228 { (case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17231esac
17232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_try") 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest$ac_exeext'
17238 { (case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241esac
17242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_try") 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017247 ac_cv_func_dlopen=yes
17248else
17249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017250sed 's/^/| /' conftest.$ac_ext >&5
17251
Reid Spencera773bd52006-08-04 18:18:08 +000017252 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017253fi
Reid Spencera773bd52006-08-04 18:18:08 +000017254
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017255rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017256 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017257fi
Reid Spencera773bd52006-08-04 18:18:08 +000017258{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17259echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017260if test $ac_cv_func_dlopen = yes; then
17261 lt_cv_dlopen="dlopen"
17262else
Reid Spencera773bd52006-08-04 18:18:08 +000017263 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17264echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017265if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267else
17268 ac_check_lib_save_LIBS=$LIBS
17269LIBS="-ldl $LIBS"
17270cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017271/* confdefs.h. */
17272_ACEOF
17273cat confdefs.h >>conftest.$ac_ext
17274cat >>conftest.$ac_ext <<_ACEOF
17275/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017276
Reid Spencera773bd52006-08-04 18:18:08 +000017277/* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017280#ifdef __cplusplus
17281extern "C"
17282#endif
John Criswell7a73b802003-06-30 21:59:07 +000017283char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017284int
17285main ()
17286{
Reid Spencera773bd52006-08-04 18:18:08 +000017287return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017293if { (ac_try="$ac_link"
17294case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17297esac
17298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017305 (exit $ac_status); } &&
17306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17307 { (case "(($ac_try" in
17308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17309 *) ac_try_echo=$ac_try;;
17310esac
17311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17312 (eval "$ac_try") 2>&5
17313 ac_status=$?
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); }; } &&
17316 { ac_try='test -s conftest$ac_exeext'
17317 { (case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320esac
17321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_try") 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017326 ac_cv_lib_dl_dlopen=yes
17327else
17328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017329sed 's/^/| /' conftest.$ac_ext >&5
17330
Reid Spencera773bd52006-08-04 18:18:08 +000017331 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017332fi
Reid Spencera773bd52006-08-04 18:18:08 +000017333
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017334rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017335 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017336LIBS=$ac_check_lib_save_LIBS
17337fi
Reid Spencera773bd52006-08-04 18:18:08 +000017338{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17339echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017340if test $ac_cv_lib_dl_dlopen = yes; then
17341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17342else
Reid Spencera773bd52006-08-04 18:18:08 +000017343 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17344echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017345if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347else
17348 ac_check_lib_save_LIBS=$LIBS
17349LIBS="-lsvld $LIBS"
17350cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017356
Reid Spencera773bd52006-08-04 18:18:08 +000017357/* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017360#ifdef __cplusplus
17361extern "C"
17362#endif
John Criswell7a73b802003-06-30 21:59:07 +000017363char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017364int
17365main ()
17366{
Reid Spencera773bd52006-08-04 18:18:08 +000017367return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017368 ;
17369 return 0;
17370}
17371_ACEOF
17372rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017373if { (ac_try="$ac_link"
17374case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17377esac
17378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017381 grep -v '^ *+' conftest.er1 >conftest.err
17382 rm -f conftest.er1
17383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017385 (exit $ac_status); } &&
17386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17390esac
17391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400esac
17401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17403 ac_status=$?
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017406 ac_cv_lib_svld_dlopen=yes
17407else
17408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017409sed 's/^/| /' conftest.$ac_ext >&5
17410
Reid Spencera773bd52006-08-04 18:18:08 +000017411 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017412fi
Reid Spencera773bd52006-08-04 18:18:08 +000017413
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017414rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017415 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017416LIBS=$ac_check_lib_save_LIBS
17417fi
Reid Spencera773bd52006-08-04 18:18:08 +000017418{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17419echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017420if test $ac_cv_lib_svld_dlopen = yes; then
17421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17422else
Reid Spencera773bd52006-08-04 18:18:08 +000017423 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17424echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017425if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17426 echo $ECHO_N "(cached) $ECHO_C" >&6
17427else
17428 ac_check_lib_save_LIBS=$LIBS
17429LIBS="-ldld $LIBS"
17430cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017436
Reid Spencera773bd52006-08-04 18:18:08 +000017437/* Override any GCC internal prototype to avoid an error.
17438 Use char because int might match the return type of a GCC
17439 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017440#ifdef __cplusplus
17441extern "C"
17442#endif
John Criswell7a73b802003-06-30 21:59:07 +000017443char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017444int
17445main ()
17446{
Reid Spencera773bd52006-08-04 18:18:08 +000017447return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017448 ;
17449 return 0;
17450}
17451_ACEOF
17452rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017453if { (ac_try="$ac_link"
17454case "(($ac_try" in
17455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456 *) ac_try_echo=$ac_try;;
17457esac
17458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17467 { (case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17470esac
17471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_try") 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
17477 { (case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17480esac
17481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_try") 2>&5
17483 ac_status=$?
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017486 ac_cv_lib_dld_dld_link=yes
17487else
17488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017489sed 's/^/| /' conftest.$ac_ext >&5
17490
Reid Spencera773bd52006-08-04 18:18:08 +000017491 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017492fi
Reid Spencera773bd52006-08-04 18:18:08 +000017493
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017494rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017495 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017496LIBS=$ac_check_lib_save_LIBS
17497fi
Reid Spencera773bd52006-08-04 18:18:08 +000017498{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17499echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017500if test $ac_cv_lib_dld_dld_link = yes; then
17501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17502fi
17503
17504
17505fi
17506
17507
17508fi
17509
17510
17511fi
17512
17513
17514fi
17515
17516
17517fi
17518
17519 ;;
17520 esac
17521
17522 if test "x$lt_cv_dlopen" != xno; then
17523 enable_dlopen=yes
17524 else
17525 enable_dlopen=no
17526 fi
17527
17528 case $lt_cv_dlopen in
17529 dlopen)
17530 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017532
17533 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017535
17536 save_LIBS="$LIBS"
17537 LIBS="$lt_cv_dlopen_libs $LIBS"
17538
Reid Spencera773bd52006-08-04 18:18:08 +000017539 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17540echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017541if test "${lt_cv_dlopen_self+set}" = set; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17543else
17544 if test "$cross_compiling" = yes; then :
17545 lt_cv_dlopen_self=cross
17546else
John Criswell47fdd832003-07-14 16:52:07 +000017547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017548 lt_status=$lt_dlunknown
17549 cat > conftest.$ac_ext <<EOF
Nick Lewyckye792b1d2009-02-03 07:10:30 +000017550#line 17550 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017551#include "confdefs.h"
17552
17553#if HAVE_DLFCN_H
17554#include <dlfcn.h>
17555#endif
17556
17557#include <stdio.h>
17558
17559#ifdef RTLD_GLOBAL
17560# define LT_DLGLOBAL RTLD_GLOBAL
17561#else
17562# ifdef DL_GLOBAL
17563# define LT_DLGLOBAL DL_GLOBAL
17564# else
17565# define LT_DLGLOBAL 0
17566# endif
17567#endif
17568
17569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17570 find out it does not work in some platform. */
17571#ifndef LT_DLLAZY_OR_NOW
17572# ifdef RTLD_LAZY
17573# define LT_DLLAZY_OR_NOW RTLD_LAZY
17574# else
17575# ifdef DL_LAZY
17576# define LT_DLLAZY_OR_NOW DL_LAZY
17577# else
17578# ifdef RTLD_NOW
17579# define LT_DLLAZY_OR_NOW RTLD_NOW
17580# else
17581# ifdef DL_NOW
17582# define LT_DLLAZY_OR_NOW DL_NOW
17583# else
17584# define LT_DLLAZY_OR_NOW 0
17585# endif
17586# endif
17587# endif
17588# endif
17589#endif
17590
17591#ifdef __cplusplus
17592extern "C" void exit (int);
17593#endif
17594
17595void fnord() { int i=42;}
17596int main ()
17597{
17598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17599 int status = $lt_dlunknown;
17600
17601 if (self)
17602 {
17603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17605 /* dlclose (self); */
17606 }
Reid Spencera773bd52006-08-04 18:18:08 +000017607 else
17608 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017609
17610 exit (status);
17611}
17612EOF
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>&5
17615 ac_status=$?
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017618 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017619 lt_status=$?
17620 case x$lt_status in
17621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017624 esac
17625 else :
17626 # compilation failed
17627 lt_cv_dlopen_self=no
17628 fi
17629fi
17630rm -fr conftest*
17631
17632
17633fi
Reid Spencera773bd52006-08-04 18:18:08 +000017634{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17635echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017636
17637 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17639 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17640echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017641if test "${lt_cv_dlopen_self_static+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
17643else
17644 if test "$cross_compiling" = yes; then :
17645 lt_cv_dlopen_self_static=cross
17646else
John Criswell47fdd832003-07-14 16:52:07 +000017647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017648 lt_status=$lt_dlunknown
17649 cat > conftest.$ac_ext <<EOF
Nick Lewyckye792b1d2009-02-03 07:10:30 +000017650#line 17650 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017651#include "confdefs.h"
17652
17653#if HAVE_DLFCN_H
17654#include <dlfcn.h>
17655#endif
17656
17657#include <stdio.h>
17658
17659#ifdef RTLD_GLOBAL
17660# define LT_DLGLOBAL RTLD_GLOBAL
17661#else
17662# ifdef DL_GLOBAL
17663# define LT_DLGLOBAL DL_GLOBAL
17664# else
17665# define LT_DLGLOBAL 0
17666# endif
17667#endif
17668
17669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17670 find out it does not work in some platform. */
17671#ifndef LT_DLLAZY_OR_NOW
17672# ifdef RTLD_LAZY
17673# define LT_DLLAZY_OR_NOW RTLD_LAZY
17674# else
17675# ifdef DL_LAZY
17676# define LT_DLLAZY_OR_NOW DL_LAZY
17677# else
17678# ifdef RTLD_NOW
17679# define LT_DLLAZY_OR_NOW RTLD_NOW
17680# else
17681# ifdef DL_NOW
17682# define LT_DLLAZY_OR_NOW DL_NOW
17683# else
17684# define LT_DLLAZY_OR_NOW 0
17685# endif
17686# endif
17687# endif
17688# endif
17689#endif
17690
17691#ifdef __cplusplus
17692extern "C" void exit (int);
17693#endif
17694
17695void fnord() { int i=42;}
17696int main ()
17697{
17698 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17699 int status = $lt_dlunknown;
17700
17701 if (self)
17702 {
17703 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17704 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17705 /* dlclose (self); */
17706 }
Reid Spencera773bd52006-08-04 18:18:08 +000017707 else
17708 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017709
17710 exit (status);
17711}
17712EOF
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714 (eval $ac_link) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017718 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017719 lt_status=$?
17720 case x$lt_status in
17721 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17722 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017723 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017724 esac
17725 else :
17726 # compilation failed
17727 lt_cv_dlopen_self_static=no
17728 fi
17729fi
17730rm -fr conftest*
17731
17732
17733fi
Reid Spencera773bd52006-08-04 18:18:08 +000017734{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17735echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017736 fi
17737
17738 CPPFLAGS="$save_CPPFLAGS"
17739 LDFLAGS="$save_LDFLAGS"
17740 LIBS="$save_LIBS"
17741 ;;
17742 esac
17743
17744 case $lt_cv_dlopen_self in
17745 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17746 *) enable_dlopen_self=unknown ;;
17747 esac
17748
17749 case $lt_cv_dlopen_self_static in
17750 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17751 *) enable_dlopen_self_static=unknown ;;
17752 esac
17753fi
17754
17755
Reid Spencera773bd52006-08-04 18:18:08 +000017756# Report which library types will actually be built
17757{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17758echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17759{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17760echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017761
Reid Spencera773bd52006-08-04 18:18:08 +000017762{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17763echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017764test "$can_build_shared" = "no" && enable_shared=no
17765
17766# On AIX, shared libraries and static libraries use the same namespace, and
17767# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017768case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017769aix3*)
17770 test "$enable_shared" = yes && enable_static=no
17771 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017772 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017773 postinstall_cmds='$RANLIB $lib'
17774 fi
17775 ;;
17776
Reid Spencer2706f8c2004-09-19 23:53:36 +000017777aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017778 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17779 test "$enable_shared" = yes && enable_static=no
17780 fi
John Criswell7a73b802003-06-30 21:59:07 +000017781 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017782esac
Reid Spencera773bd52006-08-04 18:18:08 +000017783{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17784echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017785
Reid Spencera773bd52006-08-04 18:18:08 +000017786{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17787echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017788# Make sure either enable_shared or enable_static is yes.
17789test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017790{ echo "$as_me:$LINENO: result: $enable_static" >&5
17791echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017792
17793# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017794# libtool distribution, otherwise you forgot to ship ltmain.sh
17795# with your package, and you will get complaints that there are
17796# no rules to generate ltmain.sh.
17797if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017798 # See if we are running on zsh, and set the options which allow our commands through
17799 # without removal of \ escapes.
17800 if test -n "${ZSH_VERSION+set}" ; then
17801 setopt NO_GLOB_SUBST
17802 fi
John Criswell7a73b802003-06-30 21:59:07 +000017803 # Now quote all the things that may contain metacharacters while being
17804 # careful not to overquote the AC_SUBSTed values. We take copies of the
17805 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017806 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 +000017807 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017808 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17809 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17810 deplibs_check_method reload_flag reload_cmds need_locks \
17811 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17812 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017814 old_postinstall_cmds old_postuninstall_cmds \
17815 compiler \
17816 CC \
17817 LD \
17818 lt_prog_compiler_wl \
17819 lt_prog_compiler_pic \
17820 lt_prog_compiler_static \
17821 lt_prog_compiler_no_builtin_flag \
17822 export_dynamic_flag_spec \
17823 thread_safe_flag_spec \
17824 whole_archive_flag_spec \
17825 enable_shared_with_static_runtimes \
17826 old_archive_cmds \
17827 old_archive_from_new_cmds \
17828 predep_objects \
17829 postdep_objects \
17830 predeps \
17831 postdeps \
17832 compiler_lib_search_path \
17833 archive_cmds \
17834 archive_expsym_cmds \
17835 postinstall_cmds \
17836 postuninstall_cmds \
17837 old_archive_from_expsyms_cmds \
17838 allow_undefined_flag \
17839 no_undefined_flag \
17840 export_symbols_cmds \
17841 hardcode_libdir_flag_spec \
17842 hardcode_libdir_flag_spec_ld \
17843 hardcode_libdir_separator \
17844 hardcode_automatic \
17845 module_cmds \
17846 module_expsym_cmds \
17847 lt_cv_prog_compiler_c_o \
17848 exclude_expsyms \
17849 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017850
17851 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017852 old_archive_cmds | \
17853 old_archive_from_new_cmds | \
17854 archive_cmds | \
17855 archive_expsym_cmds | \
17856 module_cmds | \
17857 module_expsym_cmds | \
17858 old_archive_from_expsyms_cmds | \
17859 export_symbols_cmds | \
17860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017861 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017862 old_postinstall_cmds | old_postuninstall_cmds | \
17863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017864 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017865 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 +000017866 ;;
17867 *)
17868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17869 ;;
17870 esac
17871 done
17872
John Criswell47fdd832003-07-14 16:52:07 +000017873 case $lt_echo in
17874 *'\$0 --fallback-echo"')
17875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17876 ;;
17877 esac
17878
17879cfgfile="${ofile}T"
17880 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17881 $rm -f "$cfgfile"
17882 { echo "$as_me:$LINENO: creating $ofile" >&5
17883echo "$as_me: creating $ofile" >&6;}
17884
17885 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017886#! $SHELL
17887
John Criswell47fdd832003-07-14 16:52:07 +000017888# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017889# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17890# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17891#
John Criswell47fdd832003-07-14 16:52:07 +000017892# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17893# Free Software Foundation, Inc.
17894#
17895# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017896# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17897#
17898# This program is free software; you can redistribute it and/or modify
17899# it under the terms of the GNU General Public License as published by
17900# the Free Software Foundation; either version 2 of the License, or
17901# (at your option) any later version.
17902#
17903# This program is distributed in the hope that it will be useful, but
17904# WITHOUT ANY WARRANTY; without even the implied warranty of
17905# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17906# General Public License for more details.
17907#
17908# You should have received a copy of the GNU General Public License
17909# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017910# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017911#
17912# As a special exception to the GNU General Public License, if you
17913# distribute this file as part of a program that contains a
17914# configuration script generated by Autoconf, you may include it under
17915# the same distribution terms that you use for the rest of that program.
17916
John Criswell47fdd832003-07-14 16:52:07 +000017917# A sed program that does not truncate output.
17918SED=$lt_SED
17919
John Criswell7a73b802003-06-30 21:59:07 +000017920# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017921Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017922
17923# The HP-UX ksh and POSIX shell print the target directory to stdout
17924# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017925(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017926
John Criswell47fdd832003-07-14 16:52:07 +000017927# The names of the tagged configurations supported by this script.
17928available_tags=
17929
John Criswell7a73b802003-06-30 21:59:07 +000017930# ### BEGIN LIBTOOL CONFIG
17931
17932# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17933
17934# Shell to use when invoking shell scripts.
17935SHELL=$lt_SHELL
17936
17937# Whether or not to build shared libraries.
17938build_libtool_libs=$enable_shared
17939
17940# Whether or not to build static libraries.
17941build_old_libs=$enable_static
17942
17943# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017944build_libtool_need_lc=$archive_cmds_need_lc
17945
17946# Whether or not to disallow shared libs when runtime libs are static
17947allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017948
17949# Whether or not to optimize for fast installation.
17950fast_install=$enable_fast_install
17951
17952# The host system.
17953host_alias=$host_alias
17954host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017955host_os=$host_os
17956
17957# The build system.
17958build_alias=$build_alias
17959build=$build
17960build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017961
17962# An echo program that does not interpret backslashes.
17963echo=$lt_echo
17964
17965# The archiver.
17966AR=$lt_AR
17967AR_FLAGS=$lt_AR_FLAGS
17968
John Criswell47fdd832003-07-14 16:52:07 +000017969# A C compiler.
17970LTCC=$lt_LTCC
17971
Reid Spencera773bd52006-08-04 18:18:08 +000017972# LTCC compiler flags.
17973LTCFLAGS=$lt_LTCFLAGS
17974
John Criswell47fdd832003-07-14 16:52:07 +000017975# A language-specific compiler.
17976CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017977
17978# Is the compiler the GNU C compiler?
17979with_gcc=$GCC
17980
John Criswell47fdd832003-07-14 16:52:07 +000017981# An ERE matcher.
17982EGREP=$lt_EGREP
17983
John Criswell7a73b802003-06-30 21:59:07 +000017984# The linker used to build libraries.
17985LD=$lt_LD
17986
17987# Whether we need hard or soft links.
17988LN_S=$lt_LN_S
17989
17990# A BSD-compatible nm program.
17991NM=$lt_NM
17992
17993# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017994STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017995
17996# Used to examine libraries when file_magic_cmd begins "file"
17997MAGIC_CMD=$MAGIC_CMD
17998
17999# Used on cygwin: DLL creation program.
18000DLLTOOL="$DLLTOOL"
18001
18002# Used on cygwin: object dumper.
18003OBJDUMP="$OBJDUMP"
18004
18005# Used on cygwin: assembler.
18006AS="$AS"
18007
18008# The name of the directory that contains temporary libtool files.
18009objdir=$objdir
18010
18011# How to create reloadable object files.
18012reload_flag=$lt_reload_flag
18013reload_cmds=$lt_reload_cmds
18014
18015# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018016wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018017
18018# Object file suffix (normally "o").
18019objext="$ac_objext"
18020
18021# Old archive suffix (normally "a").
18022libext="$libext"
18023
John Criswell47fdd832003-07-14 16:52:07 +000018024# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018025shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018026
John Criswell7a73b802003-06-30 21:59:07 +000018027# Executable file suffix (normally "").
18028exeext="$exeext"
18029
18030# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018031pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018032pic_mode=$pic_mode
18033
John Criswell47fdd832003-07-14 16:52:07 +000018034# What is the maximum length of a command?
18035max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018036
John Criswell47fdd832003-07-14 16:52:07 +000018037# Does compiler simultaneously support -c and -o options?
18038compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018039
Reid Spencera773bd52006-08-04 18:18:08 +000018040# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018041need_locks=$lt_need_locks
18042
18043# Do we need the lib prefix for modules?
18044need_lib_prefix=$need_lib_prefix
18045
18046# Do we need a version for libraries?
18047need_version=$need_version
18048
18049# Whether dlopen is supported.
18050dlopen_support=$enable_dlopen
18051
18052# Whether dlopen of programs is supported.
18053dlopen_self=$enable_dlopen_self
18054
18055# Whether dlopen of statically linked programs is supported.
18056dlopen_self_static=$enable_dlopen_self_static
18057
18058# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018059link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018060
18061# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018062no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018063
18064# Compiler flag to allow reflexive dlopens.
18065export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18066
18067# Compiler flag to generate shared objects directly from archives.
18068whole_archive_flag_spec=$lt_whole_archive_flag_spec
18069
18070# Compiler flag to generate thread-safe objects.
18071thread_safe_flag_spec=$lt_thread_safe_flag_spec
18072
18073# Library versioning type.
18074version_type=$version_type
18075
18076# Format of library name prefix.
18077libname_spec=$lt_libname_spec
18078
18079# List of archive names. First name is the real one, the rest are links.
18080# The last name is the one that the linker finds with -lNAME.
18081library_names_spec=$lt_library_names_spec
18082
18083# The coded name of the library, if different from the real name.
18084soname_spec=$lt_soname_spec
18085
18086# Commands used to build and install an old-style archive.
18087RANLIB=$lt_RANLIB
18088old_archive_cmds=$lt_old_archive_cmds
18089old_postinstall_cmds=$lt_old_postinstall_cmds
18090old_postuninstall_cmds=$lt_old_postuninstall_cmds
18091
18092# Create an old-style archive from a shared archive.
18093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18094
18095# Create a temporary old-style archive to link instead of a shared archive.
18096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18097
18098# Commands used to build and install a shared archive.
18099archive_cmds=$lt_archive_cmds
18100archive_expsym_cmds=$lt_archive_expsym_cmds
18101postinstall_cmds=$lt_postinstall_cmds
18102postuninstall_cmds=$lt_postuninstall_cmds
18103
John Criswell47fdd832003-07-14 16:52:07 +000018104# Commands used to build a loadable module (assumed same as above if empty)
18105module_cmds=$lt_module_cmds
18106module_expsym_cmds=$lt_module_expsym_cmds
18107
John Criswell7a73b802003-06-30 21:59:07 +000018108# Commands to strip libraries.
18109old_striplib=$lt_old_striplib
18110striplib=$lt_striplib
18111
John Criswell47fdd832003-07-14 16:52:07 +000018112# Dependencies to place before the objects being linked to create a
18113# shared library.
18114predep_objects=$lt_predep_objects
18115
18116# Dependencies to place after the objects being linked to create a
18117# shared library.
18118postdep_objects=$lt_postdep_objects
18119
18120# Dependencies to place before the objects being linked to create a
18121# shared library.
18122predeps=$lt_predeps
18123
18124# Dependencies to place after the objects being linked to create a
18125# shared library.
18126postdeps=$lt_postdeps
18127
18128# The library search path used internally by the compiler when linking
18129# a shared library.
18130compiler_lib_search_path=$lt_compiler_lib_search_path
18131
John Criswell7a73b802003-06-30 21:59:07 +000018132# Method to check whether dependent libraries are shared objects.
18133deplibs_check_method=$lt_deplibs_check_method
18134
18135# Command to use when deplibs_check_method == file_magic.
18136file_magic_cmd=$lt_file_magic_cmd
18137
18138# Flag that allows shared libraries with undefined symbols to be built.
18139allow_undefined_flag=$lt_allow_undefined_flag
18140
18141# Flag that forces no undefined symbols.
18142no_undefined_flag=$lt_no_undefined_flag
18143
18144# Commands used to finish a libtool library installation in a directory.
18145finish_cmds=$lt_finish_cmds
18146
18147# Same as above, but a single script fragment to be evaled but not shown.
18148finish_eval=$lt_finish_eval
18149
18150# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018152
18153# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018155
18156# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018158
18159# This is the shared library runtime path variable.
18160runpath_var=$runpath_var
18161
18162# This is the shared library path variable.
18163shlibpath_var=$shlibpath_var
18164
18165# Is shlibpath searched before the hard-coded library search path?
18166shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18167
18168# How to hardcode a shared library path into an executable.
18169hardcode_action=$hardcode_action
18170
18171# Whether we should hardcode library paths into libraries.
18172hardcode_into_libs=$hardcode_into_libs
18173
18174# Flag to hardcode \$libdir into a binary during linking.
18175# This must work even if \$libdir does not exist.
18176hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18177
John Criswell47fdd832003-07-14 16:52:07 +000018178# If ld is used when linking, flag to hardcode \$libdir into
18179# a binary during linking. This must work even if \$libdir does
18180# not exist.
18181hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18182
John Criswell7a73b802003-06-30 21:59:07 +000018183# Whether we need a single -rpath flag with a separated argument.
18184hardcode_libdir_separator=$lt_hardcode_libdir_separator
18185
John Criswell47fdd832003-07-14 16:52:07 +000018186# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018187# resulting binary.
18188hardcode_direct=$hardcode_direct
18189
18190# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18191# resulting binary.
18192hardcode_minus_L=$hardcode_minus_L
18193
18194# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18195# the resulting binary.
18196hardcode_shlibpath_var=$hardcode_shlibpath_var
18197
John Criswell47fdd832003-07-14 16:52:07 +000018198# Set to yes if building a shared library automatically hardcodes DIR into the library
18199# and all subsequent libraries and executables linked against it.
18200hardcode_automatic=$hardcode_automatic
18201
John Criswell7a73b802003-06-30 21:59:07 +000018202# Variables whose values should be saved in libtool wrapper scripts and
18203# restored at relink time.
18204variables_saved_for_relink="$variables_saved_for_relink"
18205
18206# Whether libtool must link a program against all its dependency libraries.
18207link_all_deplibs=$link_all_deplibs
18208
18209# Compile-time system search path for libraries
18210sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18211
18212# Run-time system search path for libraries
18213sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18214
18215# Fix the shell variable \$srcfile for the compiler.
18216fix_srcfile_path="$fix_srcfile_path"
18217
18218# Set to yes if exported symbols are required.
18219always_export_symbols=$always_export_symbols
18220
18221# The commands to list exported symbols.
18222export_symbols_cmds=$lt_export_symbols_cmds
18223
18224# The commands to extract the exported symbol list from a shared archive.
18225extract_expsyms_cmds=$lt_extract_expsyms_cmds
18226
18227# Symbols that should not be listed in the preloaded symbols.
18228exclude_expsyms=$lt_exclude_expsyms
18229
18230# Symbols that must always be exported.
18231include_expsyms=$lt_include_expsyms
18232
18233# ### END LIBTOOL CONFIG
18234
18235__EOF__
18236
John Criswell47fdd832003-07-14 16:52:07 +000018237
John Criswell7a73b802003-06-30 21:59:07 +000018238 case $host_os in
18239 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018240 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018241
18242# AIX sometimes has problems with the GCC collect2 program. For some
18243# reason, if we set the COLLECT_NAMES environment variable, the problems
18244# vanish in a puff of smoke.
18245if test "X${COLLECT_NAMES+set}" != Xset; then
18246 COLLECT_NAMES=
18247 export COLLECT_NAMES
18248fi
18249EOF
18250 ;;
18251 esac
18252
John Criswell7a73b802003-06-30 21:59:07 +000018253 # We use sed instead of cat because bash on DJGPP gets confused if
18254 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18255 # text mode, it properly converts lines to CR/LF. This bash problem
18256 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018257 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018258
John Criswell47fdd832003-07-14 16:52:07 +000018259 mv -f "$cfgfile" "$ofile" || \
18260 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018261 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018262
18263else
18264 # If there is no Makefile yet, we rely on a make rule to execute
18265 # `config.status --recheck' to rerun these tests and create the
18266 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18268 if test -f "$ltmain_in"; then
18269 test -f Makefile && make "$ltmain"
18270 fi
John Criswell7a73b802003-06-30 21:59:07 +000018271fi
John Criswell7a73b802003-06-30 21:59:07 +000018272
18273
John Criswell47fdd832003-07-14 16:52:07 +000018274ac_ext=c
18275ac_cpp='$CPP $CPPFLAGS'
18276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18278ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279
18280CC="$lt_save_CC"
18281
18282
Reid Spencera773bd52006-08-04 18:18:08 +000018283# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018284if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018285 withval=$with_tags; tagnames="$withval"
18286fi
18287
John Criswell47fdd832003-07-14 16:52:07 +000018288
18289if test -f "$ltmain" && test -n "$tagnames"; then
18290 if test ! -f "${ofile}"; then
18291 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18292echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18293 fi
18294
18295 if test -z "$LTCC"; then
18296 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18297 if test -z "$LTCC"; then
18298 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18299echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18300 else
18301 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18302echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18303 fi
18304 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018305 if test -z "$LTCFLAGS"; then
18306 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18307 fi
John Criswell47fdd832003-07-14 16:52:07 +000018308
18309 # Extract list of available tagged configurations in $ofile.
18310 # Note that this assumes the entire list is on one line.
18311 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18312
18313 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18314 for tagname in $tagnames; do
18315 IFS="$lt_save_ifs"
18316 # Check whether tagname contains only valid characters
18317 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18318 "") ;;
18319 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18320echo "$as_me: error: invalid tag name: $tagname" >&2;}
18321 { (exit 1); exit 1; }; }
18322 ;;
18323 esac
18324
18325 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18326 then
18327 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18328echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18329 { (exit 1); exit 1; }; }
18330 fi
18331
18332 # Update the list of available tags.
18333 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018334 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018335
18336 case $tagname in
18337 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018338 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18339 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18340 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018341 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018342ac_cpp='$CXXCPP $CPPFLAGS'
18343ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18344ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18345ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18346
18347
18348
18349
18350archive_cmds_need_lc_CXX=no
18351allow_undefined_flag_CXX=
18352always_export_symbols_CXX=no
18353archive_expsym_cmds_CXX=
18354export_dynamic_flag_spec_CXX=
18355hardcode_direct_CXX=no
18356hardcode_libdir_flag_spec_CXX=
18357hardcode_libdir_flag_spec_ld_CXX=
18358hardcode_libdir_separator_CXX=
18359hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018360hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018361hardcode_automatic_CXX=no
18362module_cmds_CXX=
18363module_expsym_cmds_CXX=
18364link_all_deplibs_CXX=unknown
18365old_archive_cmds_CXX=$old_archive_cmds
18366no_undefined_flag_CXX=
18367whole_archive_flag_spec_CXX=
18368enable_shared_with_static_runtimes_CXX=no
18369
18370# Dependencies to place before and after the object being linked:
18371predep_objects_CXX=
18372postdep_objects_CXX=
18373predeps_CXX=
18374postdeps_CXX=
18375compiler_lib_search_path_CXX=
18376
18377# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018378ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018379
18380# Object file extension for compiled C++ test sources.
18381objext=o
18382objext_CXX=$objext
18383
18384# Code to be used in simple compile tests
18385lt_simple_compile_test_code="int some_variable = 0;\n"
18386
18387# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018388lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018389
18390# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18391
18392# If no C compiler was specified, use CC.
18393LTCC=${LTCC-"$CC"}
18394
Reid Spencera773bd52006-08-04 18:18:08 +000018395# If no C compiler flags were specified, use CFLAGS.
18396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18397
John Criswell47fdd832003-07-14 16:52:07 +000018398# Allow CC to be a program name with arguments.
18399compiler=$CC
18400
18401
Reid Spencera773bd52006-08-04 18:18:08 +000018402# save warnings/boilerplate of simple test code
18403ac_outfile=conftest.$ac_objext
18404printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18405eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18406_lt_compiler_boilerplate=`cat conftest.err`
18407$rm conftest*
18408
18409ac_outfile=conftest.$ac_objext
18410printf "$lt_simple_link_test_code" >conftest.$ac_ext
18411eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18412_lt_linker_boilerplate=`cat conftest.err`
18413$rm conftest*
18414
18415
John Criswell47fdd832003-07-14 16:52:07 +000018416# Allow CC to be a program name with arguments.
18417lt_save_CC=$CC
18418lt_save_LD=$LD
18419lt_save_GCC=$GCC
18420GCC=$GXX
18421lt_save_with_gnu_ld=$with_gnu_ld
18422lt_save_path_LD=$lt_cv_path_LD
18423if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18424 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18425else
Reid Spencera773bd52006-08-04 18:18:08 +000018426 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018427fi
18428if test -n "${lt_cv_path_LDCXX+set}"; then
18429 lt_cv_path_LD=$lt_cv_path_LDCXX
18430else
Reid Spencera773bd52006-08-04 18:18:08 +000018431 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018432fi
18433test -z "${LDCXX+set}" || LD=$LDCXX
18434CC=${CXX-"c++"}
18435compiler=$CC
18436compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018437for cc_temp in $compiler""; do
18438 case $cc_temp in
18439 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18440 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18441 \-*) ;;
18442 *) break;;
18443 esac
18444done
18445cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18446
John Criswell47fdd832003-07-14 16:52:07 +000018447
18448# We don't want -fno-exception wen compiling C++ code, so set the
18449# no_builtin_flag separately
18450if test "$GXX" = yes; then
18451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18452else
18453 lt_prog_compiler_no_builtin_flag_CXX=
18454fi
18455
18456if test "$GXX" = yes; then
18457 # Set up default GNU C++ configuration
18458
18459
Reid Spencera773bd52006-08-04 18:18:08 +000018460# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018461if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018462 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018463else
18464 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018465fi
18466
John Criswell47fdd832003-07-14 16:52:07 +000018467ac_prog=ld
18468if test "$GCC" = yes; then
18469 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018470 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18471echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018472 case $host in
18473 *-*-mingw*)
18474 # gcc leaves a trailing carriage return which upsets mingw
18475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18476 *)
18477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18478 esac
18479 case $ac_prog in
18480 # Accept absolute paths.
18481 [\\/]* | ?:[\\/]*)
18482 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018483 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018484 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18486 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18487 done
18488 test -z "$LD" && LD="$ac_prog"
18489 ;;
18490 "")
18491 # If it fails, then pretend we aren't using GCC.
18492 ac_prog=ld
18493 ;;
18494 *)
18495 # If it is relative, then search for the first ld in PATH.
18496 with_gnu_ld=unknown
18497 ;;
18498 esac
18499elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018500 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18501echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018502else
Reid Spencera773bd52006-08-04 18:18:08 +000018503 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18504echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018505fi
18506if test "${lt_cv_path_LD+set}" = set; then
18507 echo $ECHO_N "(cached) $ECHO_C" >&6
18508else
18509 if test -z "$LD"; then
18510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18511 for ac_dir in $PATH; do
18512 IFS="$lt_save_ifs"
18513 test -z "$ac_dir" && ac_dir=.
18514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18515 lt_cv_path_LD="$ac_dir/$ac_prog"
18516 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018517 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018518 # Break only if it was the GNU/non-GNU ld that we prefer.
18519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18520 *GNU* | *'with BFD'*)
18521 test "$with_gnu_ld" != no && break
18522 ;;
18523 *)
18524 test "$with_gnu_ld" != yes && break
18525 ;;
18526 esac
18527 fi
18528 done
18529 IFS="$lt_save_ifs"
18530else
18531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18532fi
18533fi
18534
18535LD="$lt_cv_path_LD"
18536if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018537 { echo "$as_me:$LINENO: result: $LD" >&5
18538echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018539else
Reid Spencera773bd52006-08-04 18:18:08 +000018540 { echo "$as_me:$LINENO: result: no" >&5
18541echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018542fi
18543test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18544echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18545 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018546{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18547echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018548if test "${lt_cv_prog_gnu_ld+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550else
Reid Spencera773bd52006-08-04 18:18:08 +000018551 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018552case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018553*GNU* | *'with BFD'*)
18554 lt_cv_prog_gnu_ld=yes
18555 ;;
18556*)
18557 lt_cv_prog_gnu_ld=no
18558 ;;
18559esac
18560fi
Reid Spencera773bd52006-08-04 18:18:08 +000018561{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18562echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018563with_gnu_ld=$lt_cv_prog_gnu_ld
18564
18565
18566
18567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18568 # archiving commands below assume that GNU ld is being used.
18569 if test "$with_gnu_ld" = yes; then
18570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18571 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'
18572
18573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18575
18576 # If archive_cmds runs LD, not CC, wlarc should be empty
18577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18578 # investigate it a little bit more. (MM)
18579 wlarc='${wl}'
18580
18581 # ancient GNU ld didn't support --whole-archive et. al.
18582 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18583 grep 'no-whole-archive' > /dev/null; then
18584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18585 else
18586 whole_archive_flag_spec_CXX=
18587 fi
18588 else
18589 with_gnu_ld=no
18590 wlarc=
18591
18592 # A generic and very simple default shared library creation
18593 # command for GNU C++ for the case where it uses the native
18594 # linker, instead of GNU ld. If possible, this setting should
18595 # overridden to take advantage of the native linker features on
18596 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018598 fi
18599
18600 # Commands to make compiler produce verbose output that lists
18601 # what "hidden" libraries, object files and flags are used when
18602 # linking a shared library.
18603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18604
18605else
18606 GXX=no
18607 with_gnu_ld=no
18608 wlarc=
18609fi
18610
18611# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018612{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018614ld_shlibs_CXX=yes
18615case $host_os in
18616 aix3*)
18617 # FIXME: insert proper C++ library support
18618 ld_shlibs_CXX=no
18619 ;;
18620 aix4* | aix5*)
18621 if test "$host_cpu" = ia64; then
18622 # On IA64, the linker does run time linking by default, so we don't
18623 # have to do anything special.
18624 aix_use_runtimelinking=no
18625 exp_sym_flag='-Bexport'
18626 no_entry_flag=""
18627 else
18628 aix_use_runtimelinking=no
18629
18630 # Test if we are trying to use run time linking or normal
18631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18632 # need to do runtime linking.
18633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18634 for ld_flag in $LDFLAGS; do
18635 case $ld_flag in
18636 *-brtl*)
18637 aix_use_runtimelinking=yes
18638 break
18639 ;;
18640 esac
18641 done
Reid Spencera773bd52006-08-04 18:18:08 +000018642 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018643 esac
18644
18645 exp_sym_flag='-bexport'
18646 no_entry_flag='-bnoentry'
18647 fi
18648
18649 # When large executables or shared objects are built, AIX ld can
18650 # have problems creating the table of contents. If linking a library
18651 # or program results in "error TOC overflow" add -mminimal-toc to
18652 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18653 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18654
18655 archive_cmds_CXX=''
18656 hardcode_direct_CXX=yes
18657 hardcode_libdir_separator_CXX=':'
18658 link_all_deplibs_CXX=yes
18659
18660 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018661 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018662 # We only want to do this on AIX 4.2 and lower, the check
18663 # below for broken collect2 doesn't work under 4.3+
18664 collect2name=`${CC} -print-prog-name=collect2`
18665 if test -f "$collect2name" && \
18666 strings "$collect2name" | grep resolve_lib_name >/dev/null
18667 then
18668 # We have reworked collect2
18669 hardcode_direct_CXX=yes
18670 else
18671 # We have old collect2
18672 hardcode_direct_CXX=unsupported
18673 # It fails to find uninstalled libraries when the uninstalled
18674 # path is not listed in the libpath. Setting hardcode_minus_L
18675 # to unsupported forces relinking
18676 hardcode_minus_L_CXX=yes
18677 hardcode_libdir_flag_spec_CXX='-L$libdir'
18678 hardcode_libdir_separator_CXX=
18679 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018681 esac
18682 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018683 if test "$aix_use_runtimelinking" = yes; then
18684 shared_flag="$shared_flag "'${wl}-G'
18685 fi
John Criswell47fdd832003-07-14 16:52:07 +000018686 else
18687 # not using gcc
18688 if test "$host_cpu" = ia64; then
18689 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18690 # chokes on -Wl,-G. The following line is correct:
18691 shared_flag='-G'
18692 else
18693 if test "$aix_use_runtimelinking" = yes; then
18694 shared_flag='${wl}-G'
18695 else
18696 shared_flag='${wl}-bM:SRE'
18697 fi
18698 fi
18699 fi
18700
18701 # It seems that -bexpall does not export symbols beginning with
18702 # underscore (_), so it is better to generate a list of symbols to export.
18703 always_export_symbols_CXX=yes
18704 if test "$aix_use_runtimelinking" = yes; then
18705 # Warning - without using the other runtime loading flags (-brtl),
18706 # -berok will link without error, but may produce a broken library.
18707 allow_undefined_flag_CXX='-berok'
18708 # Determine the default libpath from the value encoded in an empty executable.
18709 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018715
John Criswell47fdd832003-07-14 16:52:07 +000018716int
18717main ()
18718{
18719
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018725if { (ac_try="$ac_link"
18726case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018737 (exit $ac_status); } &&
18738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18742esac
18743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; } &&
18748 { ac_try='test -s conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752esac
18753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018758
18759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18760}'`
18761# Check for a 64-bit object if we didn't find anything.
18762if 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; }
18763}'`; fi
18764else
18765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018766sed 's/^/| /' conftest.$ac_ext >&5
18767
Reid Spencera773bd52006-08-04 18:18:08 +000018768
John Criswell47fdd832003-07-14 16:52:07 +000018769fi
Reid Spencera773bd52006-08-04 18:18:08 +000018770
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018772 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018773if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18774
18775 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18776
Reid Spencera773bd52006-08-04 18:18:08 +000018777 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 +000018778 else
18779 if test "$host_cpu" = ia64; then
18780 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18781 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018782 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 +000018783 else
18784 # Determine the default libpath from the value encoded in an empty executable.
18785 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018786/* confdefs.h. */
18787_ACEOF
18788cat confdefs.h >>conftest.$ac_ext
18789cat >>conftest.$ac_ext <<_ACEOF
18790/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018791
John Criswell47fdd832003-07-14 16:52:07 +000018792int
18793main ()
18794{
18795
18796 ;
18797 return 0;
18798}
18799_ACEOF
18800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018801if { (ac_try="$ac_link"
18802case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805esac
18806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018813 (exit $ac_status); } &&
18814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18818esac
18819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; } &&
18824 { ac_try='test -s conftest$ac_exeext'
18825 { (case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828esac
18829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_try") 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018834
18835aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18836}'`
18837# Check for a 64-bit object if we didn't find anything.
18838if 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; }
18839}'`; fi
18840else
18841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018842sed 's/^/| /' conftest.$ac_ext >&5
18843
Reid Spencera773bd52006-08-04 18:18:08 +000018844
John Criswell47fdd832003-07-14 16:52:07 +000018845fi
Reid Spencera773bd52006-08-04 18:18:08 +000018846
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018848 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018849if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18850
18851 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18852 # Warning - without using the other run time loading flags,
18853 # -berok will link without error, but may produce a broken library.
18854 no_undefined_flag_CXX=' ${wl}-bernotok'
18855 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018856 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018857 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018858 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018859 # This is similar to how AIX traditionally builds its shared libraries.
18860 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 +000018861 fi
18862 fi
18863 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018864
18865 beos*)
18866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18867 allow_undefined_flag_CXX=unsupported
18868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18869 # support --undefined. This deserves some investigation. FIXME
18870 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18871 else
18872 ld_shlibs_CXX=no
18873 fi
18874 ;;
18875
John Criswell47fdd832003-07-14 16:52:07 +000018876 chorus*)
18877 case $cc_basename in
18878 *)
18879 # FIXME: insert proper C++ library support
18880 ld_shlibs_CXX=no
18881 ;;
18882 esac
18883 ;;
18884
18885 cygwin* | mingw* | pw32*)
18886 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18887 # as there is no search path for DLLs.
18888 hardcode_libdir_flag_spec_CXX='-L$libdir'
18889 allow_undefined_flag_CXX=unsupported
18890 always_export_symbols_CXX=no
18891 enable_shared_with_static_runtimes_CXX=yes
18892
18893 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018894 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 +000018895 # If the export-symbols file already is a .def file (1st line
18896 # is EXPORTS), use it as is; otherwise, prepend...
18897 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18898 cp $export_symbols $output_objdir/$soname.def;
18899 else
18900 echo EXPORTS > $output_objdir/$soname.def;
18901 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018902 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018903 $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 +000018904 else
18905 ld_shlibs_CXX=no
18906 fi
18907 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018908 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018909 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018910 rhapsody* | darwin1.[012])
18911 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18912 ;;
18913 *) # Darwin 1.3 on
18914 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18915 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18916 else
18917 case ${MACOSX_DEPLOYMENT_TARGET} in
18918 10.[012])
18919 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18920 ;;
18921 10.*)
18922 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18923 ;;
18924 esac
18925 fi
18926 ;;
18927 esac
18928 archive_cmds_need_lc_CXX=no
18929 hardcode_direct_CXX=no
18930 hardcode_automatic_CXX=yes
18931 hardcode_shlibpath_var_CXX=unsupported
18932 whole_archive_flag_spec_CXX=''
18933 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018934
Reid Spencer2706f8c2004-09-19 23:53:36 +000018935 if test "$GXX" = yes ; then
18936 lt_int_apple_cc_single_mod=no
18937 output_verbose_link_cmd='echo'
18938 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18939 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018940 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018941 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018942 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 +000018943 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018944 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 +000018945 fi
18946 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018947 # 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 +000018948 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018949 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 +000018950 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018951 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 +000018952 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018953 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 +000018954 else
Reid Spencera773bd52006-08-04 18:18:08 +000018955 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018956 xlc*)
18957 output_verbose_link_cmd='echo'
18958 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'
18959 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018960 # 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 +000018961 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}'
18962 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 +000018963 ;;
18964 *)
18965 ld_shlibs_CXX=no
18966 ;;
18967 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018968 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018969 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018970
18971 dgux*)
18972 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018973 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018974 # FIXME: insert proper C++ library support
18975 ld_shlibs_CXX=no
18976 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018977 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018978 # Green Hills C++ Compiler
18979 # FIXME: insert proper C++ library support
18980 ld_shlibs_CXX=no
18981 ;;
18982 *)
18983 # FIXME: insert proper C++ library support
18984 ld_shlibs_CXX=no
18985 ;;
18986 esac
18987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018988 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018989 # C++ shared libraries reported to be fairly broken before switch to ELF
18990 ld_shlibs_CXX=no
18991 ;;
18992 freebsd-elf*)
18993 archive_cmds_need_lc_CXX=no
18994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018995 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018996 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18997 # conventions
18998 ld_shlibs_CXX=yes
18999 ;;
19000 gnu*)
19001 ;;
19002 hpux9*)
19003 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19004 hardcode_libdir_separator_CXX=:
19005 export_dynamic_flag_spec_CXX='${wl}-E'
19006 hardcode_direct_CXX=yes
19007 hardcode_minus_L_CXX=yes # Not in the search PATH,
19008 # but as the default
19009 # location of the library.
19010
19011 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019012 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019016 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019017 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 +000019018 # Commands to make compiler produce verbose output that lists
19019 # what "hidden" libraries, object files and flags are used when
19020 # linking a shared library.
19021 #
19022 # There doesn't appear to be a way to prevent this compiler from
19023 # explicitly linking system object files so we need to strip them
19024 # from the output so that they don't get included in the library
19025 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019026 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 +000019027 ;;
19028 *)
19029 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019030 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 +000019031 else
19032 # FIXME: insert proper C++ library support
19033 ld_shlibs_CXX=no
19034 fi
19035 ;;
19036 esac
19037 ;;
19038 hpux10*|hpux11*)
19039 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019040 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19041 hardcode_libdir_separator_CXX=:
19042
19043 case $host_cpu in
19044 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019045 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019046 ;;
19047 *)
John Criswell47fdd832003-07-14 16:52:07 +000019048 export_dynamic_flag_spec_CXX='${wl}-E'
19049 ;;
19050 esac
19051 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019052 case $host_cpu in
19053 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019054 hardcode_direct_CXX=no
19055 hardcode_shlibpath_var_CXX=no
19056 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019057 *)
19058 hardcode_direct_CXX=yes
19059 hardcode_minus_L_CXX=yes # Not in the search PATH,
19060 # but as the default
19061 # location of the library.
19062 ;;
19063 esac
19064
19065 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019066 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019067 # FIXME: insert proper C++ library support
19068 ld_shlibs_CXX=no
19069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019070 aCC*)
19071 case $host_cpu in
19072 hppa*64*)
19073 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 ;;
19075 ia64*)
19076 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 +000019077 ;;
19078 *)
19079 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19080 ;;
19081 esac
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 -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'
19091 ;;
19092 *)
19093 if test "$GXX" = yes; then
19094 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019095 case $host_cpu in
19096 hppa*64*)
19097 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19098 ;;
19099 ia64*)
19100 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 +000019101 ;;
19102 *)
19103 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'
19104 ;;
19105 esac
19106 fi
19107 else
19108 # FIXME: insert proper C++ library support
19109 ld_shlibs_CXX=no
19110 fi
19111 ;;
19112 esac
19113 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019114 interix3*)
19115 hardcode_direct_CXX=no
19116 hardcode_shlibpath_var_CXX=no
19117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19118 export_dynamic_flag_spec_CXX='${wl}-E'
19119 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19120 # Instead, shared libraries are loaded at an image base (0x10000000 by
19121 # default) and relocated if they conflict, which is a slow very memory
19122 # consuming and fragmenting process. To avoid this, we pick a random,
19123 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19124 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19125 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'
19126 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'
19127 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019128 irix5* | irix6*)
19129 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019130 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019131 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019132 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 +000019133
19134 # Archives containing C++ object files must be created using
19135 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19136 # necessary to make sure instantiated templates are included
19137 # in the archive.
19138 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19139 ;;
19140 *)
19141 if test "$GXX" = yes; then
19142 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019143 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 +000019144 else
19145 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'
19146 fi
19147 fi
19148 link_all_deplibs_CXX=yes
19149 ;;
19150 esac
19151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19152 hardcode_libdir_separator_CXX=:
19153 ;;
19154 linux*)
19155 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019156 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019157 # Kuck and Associates, Inc. (KAI) C++ Compiler
19158
19159 # KCC will only create a shared library if the output file
19160 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19161 # to its proper name (with version) after linking.
19162 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'
19163 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'
19164 # Commands to make compiler produce verbose output that lists
19165 # what "hidden" libraries, object files and flags are used when
19166 # linking a shared library.
19167 #
19168 # There doesn't appear to be a way to prevent this compiler from
19169 # explicitly linking system object files so we need to strip them
19170 # from the output so that they don't get included in the library
19171 # dependencies.
19172 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'
19173
19174 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19175 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19176
19177 # Archives containing C++ object files must be created using
19178 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19179 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19180 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019181 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019182 # Intel C++
19183 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019184 # version 8.0 and above of icpc choke on multiply defined symbols
19185 # if we add $predep_objects and $postdep_objects, however 7.1 and
19186 # earlier do not add the objects themselves.
19187 case `$CC -V 2>&1` in
19188 *"Version 7."*)
19189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19190 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'
19191 ;;
19192 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019193 tmp_idyn=
19194 case $host_cpu in
19195 ia64*) tmp_idyn=' -i_dynamic';;
19196 esac
19197 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19198 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 +000019199 ;;
19200 esac
John Criswell47fdd832003-07-14 16:52:07 +000019201 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019202 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19203 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19204 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19205 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019206 pgCC*)
19207 # Portland Group C++ compiler
19208 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19209 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'
19210
19211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213 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'
19214 ;;
19215 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019216 # Compaq C++
19217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 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'
19219
19220 runpath_var=LD_RUN_PATH
19221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222 hardcode_libdir_separator_CXX=:
19223
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19227 #
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19231 # dependencies.
19232 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'
19233 ;;
19234 esac
19235 ;;
19236 lynxos*)
19237 # FIXME: insert proper C++ library support
19238 ld_shlibs_CXX=no
19239 ;;
19240 m88k*)
19241 # FIXME: insert proper C++ library support
19242 ld_shlibs_CXX=no
19243 ;;
19244 mvs*)
19245 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019246 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019247 # FIXME: insert proper C++ library support
19248 ld_shlibs_CXX=no
19249 ;;
19250 *)
19251 # FIXME: insert proper C++ library support
19252 ld_shlibs_CXX=no
19253 ;;
19254 esac
19255 ;;
19256 netbsd*)
19257 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19258 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19259 wlarc=
19260 hardcode_libdir_flag_spec_CXX='-R$libdir'
19261 hardcode_direct_CXX=yes
19262 hardcode_shlibpath_var_CXX=no
19263 fi
19264 # Workaround some broken pre-1.5 toolchains
19265 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19266 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019267 openbsd2*)
19268 # C++ shared libraries are fairly broken
19269 ld_shlibs_CXX=no
19270 ;;
19271 openbsd*)
19272 hardcode_direct_CXX=yes
19273 hardcode_shlibpath_var_CXX=no
19274 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19275 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19277 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19278 export_dynamic_flag_spec_CXX='${wl}-E'
19279 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19280 fi
19281 output_verbose_link_cmd='echo'
19282 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019283 osf3*)
19284 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019285 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019286 # Kuck and Associates, Inc. (KAI) C++ Compiler
19287
19288 # KCC will only create a shared library if the output file
19289 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19290 # to its proper name (with version) after linking.
19291 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'
19292
19293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19294 hardcode_libdir_separator_CXX=:
19295
19296 # Archives containing C++ object files must be created using
19297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19299
19300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019301 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019302 # Rational C++ 2.4.1
19303 # FIXME: insert proper C++ library support
19304 ld_shlibs_CXX=no
19305 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019306 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019307 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019308 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 +000019309
19310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19311 hardcode_libdir_separator_CXX=:
19312
19313 # Commands to make compiler produce verbose output that lists
19314 # what "hidden" libraries, object files and flags are used when
19315 # linking a shared library.
19316 #
19317 # There doesn't appear to be a way to prevent this compiler from
19318 # explicitly linking system object files so we need to strip them
19319 # from the output so that they don't get included in the library
19320 # dependencies.
19321 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'
19322 ;;
19323 *)
19324 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19325 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019326 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 +000019327
19328 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19329 hardcode_libdir_separator_CXX=:
19330
19331 # Commands to make compiler produce verbose output that lists
19332 # what "hidden" libraries, object files and flags are used when
19333 # linking a shared library.
19334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19335
19336 else
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19339 fi
19340 ;;
19341 esac
19342 ;;
19343 osf4* | osf5*)
19344 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019345 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019346 # Kuck and Associates, Inc. (KAI) C++ Compiler
19347
19348 # KCC will only create a shared library if the output file
19349 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19350 # to its proper name (with version) after linking.
19351 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'
19352
19353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19354 hardcode_libdir_separator_CXX=:
19355
19356 # Archives containing C++ object files must be created using
19357 # the KAI C++ compiler.
19358 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19359 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019360 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019361 # Rational C++ 2.4.1
19362 # FIXME: insert proper C++ library support
19363 ld_shlibs_CXX=no
19364 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019365 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019366 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019367 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 +000019368 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19369 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019370 $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 +000019371 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019372
19373 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19374 hardcode_libdir_separator_CXX=:
19375
19376 # Commands to make compiler produce verbose output that lists
19377 # what "hidden" libraries, object files and flags are used when
19378 # linking a shared library.
19379 #
19380 # There doesn't appear to be a way to prevent this compiler from
19381 # explicitly linking system object files so we need to strip them
19382 # from the output so that they don't get included in the library
19383 # dependencies.
19384 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'
19385 ;;
19386 *)
19387 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19388 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019389 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 +000019390
19391 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19392 hardcode_libdir_separator_CXX=:
19393
19394 # Commands to make compiler produce verbose output that lists
19395 # what "hidden" libraries, object files and flags are used when
19396 # linking a shared library.
19397 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19398
19399 else
19400 # FIXME: insert proper C++ library support
19401 ld_shlibs_CXX=no
19402 fi
19403 ;;
19404 esac
19405 ;;
19406 psos*)
19407 # FIXME: insert proper C++ library support
19408 ld_shlibs_CXX=no
19409 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019410 sunos4*)
19411 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019412 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019413 # Sun C++ 4.x
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019417 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019418 # Lucid
19419 # FIXME: insert proper C++ library support
19420 ld_shlibs_CXX=no
19421 ;;
19422 *)
19423 # FIXME: insert proper C++ library support
19424 ld_shlibs_CXX=no
19425 ;;
19426 esac
19427 ;;
19428 solaris*)
19429 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019430 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019431 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019432 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019433 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019434 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 +000019435 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 +000019436 $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 +000019437
19438 hardcode_libdir_flag_spec_CXX='-R$libdir'
19439 hardcode_shlibpath_var_CXX=no
19440 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019441 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019442 *)
19443 # The C++ compiler is used as linker so we must use $wl
19444 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019445 # linker. We must also pass each convience library through
19446 # to the system linker between allextract/defaultextract.
19447 # The C++ compiler will combine linker options so we
19448 # cannot just pass the convience library names through
19449 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019450 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019451 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 +000019452 ;;
19453 esac
19454 link_all_deplibs_CXX=yes
19455
Reid Spencera773bd52006-08-04 18:18:08 +000019456 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019457
19458 # Archives containing C++ object files must be created using
19459 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19460 # necessary to make sure instantiated templates are included
19461 # in the archive.
19462 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19463 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019464 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019465 # Green Hills C++ Compiler
19466 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19467
19468 # The C++ compiler must be used to create the archive.
19469 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19470 ;;
19471 *)
19472 # GNU C++ compiler with Solaris linker
19473 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19474 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19475 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019476 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 +000019477 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19478 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19479
John Criswell47fdd832003-07-14 16:52:07 +000019480 # Commands to make compiler produce verbose output that lists
19481 # what "hidden" libraries, object files and flags are used when
19482 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019483 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019484 else
19485 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19486 # platform.
19487 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 +000019488 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19489 $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 +000019490
19491 # Commands to make compiler produce verbose output that lists
19492 # what "hidden" libraries, object files and flags are used when
19493 # linking a shared library.
19494 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19495 fi
19496
19497 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19498 fi
19499 ;;
19500 esac
19501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019502 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19503 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019504 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019505 hardcode_shlibpath_var_CXX=no
19506 runpath_var='LD_RUN_PATH'
19507
19508 case $cc_basename in
19509 CC*)
19510 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19511 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 ;;
19513 *)
19514 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19515 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516 ;;
19517 esac
19518 ;;
19519 sysv5* | sco3.2v5* | sco5v6*)
19520 # Note: We can NOT use -z defs as we might desire, because we do not
19521 # link with -lc, and that would cause any symbols used from libc to
19522 # always be unresolved, which means just about no library would
19523 # ever link correctly. If we're not using GNU ld we use -z text
19524 # though, which does catch some bad symbols but isn't as heavy-handed
19525 # as -z defs.
19526 # For security reasons, it is highly recommended that you always
19527 # use absolute paths for naming shared libraries, and exclude the
19528 # DT_RUNPATH tag from executables and libraries. But doing so
19529 # requires that you compile everything twice, which is a pain.
19530 # So that behaviour is only enabled if SCOABSPATH is set to a
19531 # non-empty value in the environment. Most likely only useful for
19532 # creating official distributions of packages.
19533 # This is a hack until libtool officially supports absolute path
19534 # names for shared libraries.
19535 no_undefined_flag_CXX='${wl}-z,text'
19536 allow_undefined_flag_CXX='${wl}-z,nodefs'
19537 archive_cmds_need_lc_CXX=no
19538 hardcode_shlibpath_var_CXX=no
19539 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19540 hardcode_libdir_separator_CXX=':'
19541 link_all_deplibs_CXX=yes
19542 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19543 runpath_var='LD_RUN_PATH'
19544
19545 case $cc_basename in
19546 CC*)
19547 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19548 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549 ;;
19550 *)
19551 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19552 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 ;;
19554 esac
John Criswell47fdd832003-07-14 16:52:07 +000019555 ;;
19556 tandem*)
19557 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019558 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019559 # NonStop-UX NCC 3.20
19560 # FIXME: insert proper C++ library support
19561 ld_shlibs_CXX=no
19562 ;;
19563 *)
19564 # FIXME: insert proper C++ library support
19565 ld_shlibs_CXX=no
19566 ;;
19567 esac
19568 ;;
19569 vxworks*)
19570 # FIXME: insert proper C++ library support
19571 ld_shlibs_CXX=no
19572 ;;
19573 *)
19574 # FIXME: insert proper C++ library support
19575 ld_shlibs_CXX=no
19576 ;;
19577esac
Reid Spencera773bd52006-08-04 18:18:08 +000019578{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19579echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019580test "$ld_shlibs_CXX" = no && can_build_shared=no
19581
19582GCC_CXX="$GXX"
19583LD_CXX="$LD"
19584
John Criswell47fdd832003-07-14 16:52:07 +000019585
19586cat > conftest.$ac_ext <<EOF
19587class Foo
19588{
19589public:
19590 Foo (void) { a = 0; }
19591private:
19592 int a;
19593};
19594EOF
19595
19596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19597 (eval $ac_compile) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; then
19601 # Parse the compiler output and extract the necessary
19602 # objects, libraries and library flags.
19603
19604 # Sentinel used to keep track of whether or not we are before
19605 # the conftest object file.
19606 pre_test_object_deps_done=no
19607
19608 # The `*' in the case matches for architectures that use `case' in
19609 # $output_verbose_cmd can trigger glob expansion during the loop
19610 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019611 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019612
19613 for p in `eval $output_verbose_link_cmd`; do
19614 case $p in
19615
19616 -L* | -R* | -l*)
19617 # Some compilers place space between "-{L,R}" and the path.
19618 # Remove the space.
19619 if test $p = "-L" \
19620 || test $p = "-R"; then
19621 prev=$p
19622 continue
19623 else
19624 prev=
19625 fi
19626
19627 if test "$pre_test_object_deps_done" = no; then
19628 case $p in
19629 -L* | -R*)
19630 # Internal compiler library paths should come after those
19631 # provided the user. The postdeps already come after the
19632 # user supplied libs so there is no need to process them.
19633 if test -z "$compiler_lib_search_path_CXX"; then
19634 compiler_lib_search_path_CXX="${prev}${p}"
19635 else
19636 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19637 fi
19638 ;;
19639 # The "-l" case would never come before the object being
19640 # linked, so don't bother handling this case.
19641 esac
19642 else
19643 if test -z "$postdeps_CXX"; then
19644 postdeps_CXX="${prev}${p}"
19645 else
19646 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19647 fi
19648 fi
19649 ;;
19650
19651 *.$objext)
19652 # This assumes that the test object file only shows up
19653 # once in the compiler output.
19654 if test "$p" = "conftest.$objext"; then
19655 pre_test_object_deps_done=yes
19656 continue
19657 fi
19658
19659 if test "$pre_test_object_deps_done" = no; then
19660 if test -z "$predep_objects_CXX"; then
19661 predep_objects_CXX="$p"
19662 else
19663 predep_objects_CXX="$predep_objects_CXX $p"
19664 fi
19665 else
19666 if test -z "$postdep_objects_CXX"; then
19667 postdep_objects_CXX="$p"
19668 else
19669 postdep_objects_CXX="$postdep_objects_CXX $p"
19670 fi
19671 fi
19672 ;;
19673
19674 *) ;; # Ignore the rest.
19675
19676 esac
19677 done
19678
19679 # Clean up.
19680 rm -f a.out a.exe
19681else
19682 echo "libtool.m4: error: problem compiling CXX test program"
19683fi
19684
19685$rm -f confest.$objext
19686
Reid Spencera773bd52006-08-04 18:18:08 +000019687# PORTME: override above test on systems where it is broken
19688case $host_os in
19689interix3*)
19690 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19691 # hack all around it, let's just trust "g++" to DTRT.
19692 predep_objects_CXX=
19693 postdep_objects_CXX=
19694 postdeps_CXX=
19695 ;;
19696
19697solaris*)
19698 case $cc_basename in
19699 CC*)
19700 # Adding this requires a known-good setup of shared libraries for
19701 # Sun compiler versions before 5.6, else PIC objects from an old
19702 # archive will be linked into the output, leading to subtle bugs.
19703 postdeps_CXX='-lCstd -lCrun'
19704 ;;
19705 esac
19706 ;;
19707esac
19708
19709
John Criswell47fdd832003-07-14 16:52:07 +000019710case " $postdeps_CXX " in
19711*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19712esac
19713
19714lt_prog_compiler_wl_CXX=
19715lt_prog_compiler_pic_CXX=
19716lt_prog_compiler_static_CXX=
19717
Reid Spencera773bd52006-08-04 18:18:08 +000019718{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19719echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019720
19721 # C++ specific cases for pic, static, wl, etc.
19722 if test "$GXX" = yes; then
19723 lt_prog_compiler_wl_CXX='-Wl,'
19724 lt_prog_compiler_static_CXX='-static'
19725
19726 case $host_os in
19727 aix*)
19728 # All AIX code is PIC.
19729 if test "$host_cpu" = ia64; then
19730 # AIX 5 now supports IA64 processor
19731 lt_prog_compiler_static_CXX='-Bstatic'
19732 fi
19733 ;;
19734 amigaos*)
19735 # FIXME: we need at least 68020 code to build shared libraries, but
19736 # adding the `-m68020' flag to GCC prevents building anything better,
19737 # like `-m68040'.
19738 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19739 ;;
19740 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19741 # PIC is the default for these OSes.
19742 ;;
19743 mingw* | os2* | pw32*)
19744 # This hack is so that the source file can tell whether it is being
19745 # built for inclusion in a dll (and should export symbols for example).
19746 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19747 ;;
19748 darwin* | rhapsody*)
19749 # PIC is the default on this platform
19750 # Common symbols not allowed in MH_DYLIB files
19751 lt_prog_compiler_pic_CXX='-fno-common'
19752 ;;
19753 *djgpp*)
19754 # DJGPP does not support shared libraries at all
19755 lt_prog_compiler_pic_CXX=
19756 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019757 interix3*)
19758 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19759 # Instead, we relocate shared libraries at runtime.
19760 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019761 sysv4*MP*)
19762 if test -d /usr/nec; then
19763 lt_prog_compiler_pic_CXX=-Kconform_pic
19764 fi
19765 ;;
19766 hpux*)
19767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19768 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019769 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019770 hppa*64*|ia64*)
19771 ;;
19772 *)
19773 lt_prog_compiler_pic_CXX='-fPIC'
19774 ;;
19775 esac
19776 ;;
19777 *)
19778 lt_prog_compiler_pic_CXX='-fPIC'
19779 ;;
19780 esac
19781 else
19782 case $host_os in
19783 aix4* | aix5*)
19784 # All AIX code is PIC.
19785 if test "$host_cpu" = ia64; then
19786 # AIX 5 now supports IA64 processor
19787 lt_prog_compiler_static_CXX='-Bstatic'
19788 else
19789 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19790 fi
19791 ;;
19792 chorus*)
19793 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019794 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019795 # Green Hills C++ Compiler
19796 # _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"
19797 ;;
19798 esac
19799 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019800 darwin*)
19801 # PIC is the default on this platform
19802 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019803 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019804 xlc*)
19805 lt_prog_compiler_pic_CXX='-qnocommon'
19806 lt_prog_compiler_wl_CXX='-Wl,'
19807 ;;
19808 esac
19809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019810 dgux*)
19811 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019812 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019813 lt_prog_compiler_pic_CXX='-KPIC'
19814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019815 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019816 # Green Hills C++ Compiler
19817 lt_prog_compiler_pic_CXX='-pic'
19818 ;;
19819 *)
19820 ;;
19821 esac
19822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019823 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019824 # FreeBSD uses GNU C++
19825 ;;
19826 hpux9* | hpux10* | hpux11*)
19827 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019828 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019829 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019830 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019831 if test "$host_cpu" != ia64; then
19832 lt_prog_compiler_pic_CXX='+Z'
19833 fi
19834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019835 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019836 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019837 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19838 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019839 hppa*64*|ia64*)
19840 # +Z the default
19841 ;;
19842 *)
19843 lt_prog_compiler_pic_CXX='+Z'
19844 ;;
19845 esac
19846 ;;
19847 *)
19848 ;;
19849 esac
19850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019851 interix*)
19852 # This is c89, which is MS Visual C++ (no shared libs)
19853 # Anyone wants to do a port?
19854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019855 irix5* | irix6* | nonstopux*)
19856 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019857 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019858 lt_prog_compiler_wl_CXX='-Wl,'
19859 lt_prog_compiler_static_CXX='-non_shared'
19860 # CC pic flag -KPIC is the default.
19861 ;;
19862 *)
19863 ;;
19864 esac
19865 ;;
19866 linux*)
19867 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019868 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019869 # KAI C++ Compiler
19870 lt_prog_compiler_wl_CXX='--backend -Wl,'
19871 lt_prog_compiler_pic_CXX='-fPIC'
19872 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019873 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019874 # Intel C++
19875 lt_prog_compiler_wl_CXX='-Wl,'
19876 lt_prog_compiler_pic_CXX='-KPIC'
19877 lt_prog_compiler_static_CXX='-static'
19878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019879 pgCC*)
19880 # Portland Group C++ compiler.
19881 lt_prog_compiler_wl_CXX='-Wl,'
19882 lt_prog_compiler_pic_CXX='-fpic'
19883 lt_prog_compiler_static_CXX='-Bstatic'
19884 ;;
19885 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019886 # Compaq C++
19887 # Make sure the PIC flag is empty. It appears that all Alpha
19888 # Linux and Compaq Tru64 Unix objects are PIC.
19889 lt_prog_compiler_pic_CXX=
19890 lt_prog_compiler_static_CXX='-non_shared'
19891 ;;
19892 *)
19893 ;;
19894 esac
19895 ;;
19896 lynxos*)
19897 ;;
19898 m88k*)
19899 ;;
19900 mvs*)
19901 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019902 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019903 lt_prog_compiler_pic_CXX='-W c,exportall'
19904 ;;
19905 *)
19906 ;;
19907 esac
19908 ;;
19909 netbsd*)
19910 ;;
19911 osf3* | osf4* | osf5*)
19912 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019913 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019914 lt_prog_compiler_wl_CXX='--backend -Wl,'
19915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019916 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019917 # Rational C++ 2.4.1
19918 lt_prog_compiler_pic_CXX='-pic'
19919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019920 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019921 # Digital/Compaq C++
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 # Make sure the PIC flag is empty. It appears that all Alpha
19924 # Linux and Compaq Tru64 Unix objects are PIC.
19925 lt_prog_compiler_pic_CXX=
19926 lt_prog_compiler_static_CXX='-non_shared'
19927 ;;
19928 *)
19929 ;;
19930 esac
19931 ;;
19932 psos*)
19933 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019934 solaris*)
19935 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019936 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019937 # Sun C++ 4.2, 5.x and Centerline C++
19938 lt_prog_compiler_pic_CXX='-KPIC'
19939 lt_prog_compiler_static_CXX='-Bstatic'
19940 lt_prog_compiler_wl_CXX='-Qoption ld '
19941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019942 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019943 # Green Hills C++ Compiler
19944 lt_prog_compiler_pic_CXX='-PIC'
19945 ;;
19946 *)
19947 ;;
19948 esac
19949 ;;
19950 sunos4*)
19951 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019952 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019953 # Sun C++ 4.x
19954 lt_prog_compiler_pic_CXX='-pic'
19955 lt_prog_compiler_static_CXX='-Bstatic'
19956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019957 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019958 # Lucid
19959 lt_prog_compiler_pic_CXX='-pic'
19960 ;;
19961 *)
19962 ;;
19963 esac
19964 ;;
19965 tandem*)
19966 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019967 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019968 # NonStop-UX NCC 3.20
19969 lt_prog_compiler_pic_CXX='-KPIC'
19970 ;;
19971 *)
19972 ;;
19973 esac
19974 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19976 case $cc_basename in
19977 CC*)
19978 lt_prog_compiler_wl_CXX='-Wl,'
19979 lt_prog_compiler_pic_CXX='-KPIC'
19980 lt_prog_compiler_static_CXX='-Bstatic'
19981 ;;
19982 esac
John Criswell47fdd832003-07-14 16:52:07 +000019983 ;;
19984 vxworks*)
19985 ;;
19986 *)
19987 lt_prog_compiler_can_build_shared_CXX=no
19988 ;;
19989 esac
19990 fi
19991
Reid Spencera773bd52006-08-04 18:18:08 +000019992{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19993echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019994
19995#
19996# Check to make sure the PIC flag actually works.
19997#
19998if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019999
Reid Spencera773bd52006-08-04 18:18:08 +000020000{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20001echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020002if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005 lt_prog_compiler_pic_works_CXX=no
20006 ac_outfile=conftest.$ac_objext
20007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20008 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20009 # Insert the option either (1) after the last *FLAGS variable, or
20010 # (2) before a word containing "conftest.", or (3) at the end.
20011 # Note that $ac_compile itself does not contain backslashes and begins
20012 # with a dollar sign (not a hyphen), so the echo should work correctly.
20013 # The option is referenced via a variable to avoid confusing sed.
20014 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20017 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000020018 (eval echo "\"\$as_me:20018: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020019 (eval "$lt_compile" 2>conftest.err)
20020 ac_status=$?
20021 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000020022 echo "$as_me:20022: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020023 if (exit $ac_status) && test -s "$ac_outfile"; then
20024 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020025 # So say no if there are warnings other than the usual output.
20026 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020029 lt_prog_compiler_pic_works_CXX=yes
20030 fi
20031 fi
20032 $rm conftest*
20033
20034fi
Reid Spencera773bd52006-08-04 18:18:08 +000020035{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20036echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020037
20038if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20039 case $lt_prog_compiler_pic_CXX in
20040 "" | " "*) ;;
20041 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20042 esac
20043else
20044 lt_prog_compiler_pic_CXX=
20045 lt_prog_compiler_can_build_shared_CXX=no
20046fi
20047
20048fi
Reid Spencera773bd52006-08-04 18:18:08 +000020049case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020050 # For platforms which do not support PIC, -DPIC is meaningless:
20051 *djgpp*)
20052 lt_prog_compiler_pic_CXX=
20053 ;;
20054 *)
20055 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20056 ;;
20057esac
20058
Reid Spencera773bd52006-08-04 18:18:08 +000020059#
20060# Check to make sure the static flag actually works.
20061#
20062wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20063{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20064echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20065if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20067else
20068 lt_prog_compiler_static_works_CXX=no
20069 save_LDFLAGS="$LDFLAGS"
20070 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20071 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20072 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20073 # The linker can only warn and ignore the option if not recognized
20074 # So say no if there are warnings
20075 if test -s conftest.err; then
20076 # Append any errors to the config.log.
20077 cat conftest.err 1>&5
20078 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20080 if diff conftest.exp conftest.er2 >/dev/null; then
20081 lt_prog_compiler_static_works_CXX=yes
20082 fi
20083 else
20084 lt_prog_compiler_static_works_CXX=yes
20085 fi
20086 fi
20087 $rm conftest*
20088 LDFLAGS="$save_LDFLAGS"
20089
20090fi
20091{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20092echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20093
20094if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20095 :
20096else
20097 lt_prog_compiler_static_CXX=
20098fi
20099
20100
20101{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20102echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020103if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106 lt_cv_prog_compiler_c_o_CXX=no
20107 $rm -r conftest 2>/dev/null
20108 mkdir conftest
20109 cd conftest
20110 mkdir out
20111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20112
John Criswell47fdd832003-07-14 16:52:07 +000020113 lt_compiler_flag="-o out/conftest2.$ac_objext"
20114 # Insert the option either (1) after the last *FLAGS variable, or
20115 # (2) before a word containing "conftest.", or (3) at the end.
20116 # Note that $ac_compile itself does not contain backslashes and begins
20117 # with a dollar sign (not a hyphen), so the echo should work correctly.
20118 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20121 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000020122 (eval echo "\"\$as_me:20122: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020123 (eval "$lt_compile" 2>out/conftest.err)
20124 ac_status=$?
20125 cat out/conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000020126 echo "$as_me:20126: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20128 then
20129 # The compiler can only warn and ignore the option if not recognized
20130 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020131 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020134 lt_cv_prog_compiler_c_o_CXX=yes
20135 fi
20136 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020137 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020138 $rm conftest*
20139 # SGI C++ compiler will create directory out/ii_files/ for
20140 # template instantiation
20141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20142 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020143 cd ..
20144 rmdir conftest
20145 $rm conftest*
20146
20147fi
Reid Spencera773bd52006-08-04 18:18:08 +000020148{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20149echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020150
20151
20152hard_links="nottested"
20153if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20154 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020155 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20156echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020157 hard_links=yes
20158 $rm conftest*
20159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20160 touch conftest.a
20161 ln conftest.a conftest.b 2>&5 || hard_links=no
20162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020163 { echo "$as_me:$LINENO: result: $hard_links" >&5
20164echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020165 if test "$hard_links" = no; then
20166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20167echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20168 need_locks=warn
20169 fi
20170else
20171 need_locks=no
20172fi
20173
Reid Spencera773bd52006-08-04 18:18:08 +000020174{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20175echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020176
20177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20178 case $host_os in
20179 aix4* | aix5*)
20180 # If we're using GNU nm, then we don't want the "-C" option.
20181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20183 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'
20184 else
20185 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'
20186 fi
20187 ;;
20188 pw32*)
20189 export_symbols_cmds_CXX="$ltdll_cmds"
20190 ;;
20191 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020192 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 +000020193 ;;
20194 *)
20195 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20196 ;;
20197 esac
20198
Reid Spencera773bd52006-08-04 18:18:08 +000020199{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20200echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020201test "$ld_shlibs_CXX" = no && can_build_shared=no
20202
John Criswell47fdd832003-07-14 16:52:07 +000020203#
20204# Do we need to explicitly link libc?
20205#
20206case "x$archive_cmds_need_lc_CXX" in
20207x|xyes)
20208 # Assume -lc should be added
20209 archive_cmds_need_lc_CXX=yes
20210
20211 if test "$enable_shared" = yes && test "$GCC" = yes; then
20212 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020213 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020214 # FIXME: we may have to deal with multi-command sequences.
20215 ;;
20216 '$CC '*)
20217 # Test whether the compiler implicitly links with -lc since on some
20218 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20219 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020220 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20221echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020222 $rm conftest*
20223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20224
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20227 ac_status=$?
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } 2>conftest.err; then
20230 soname=conftest
20231 lib=conftest
20232 libobjs=conftest.$ac_objext
20233 deplibs=
20234 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020235 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020236 compiler_flags=-v
20237 linker_flags=-v
20238 verstring=
20239 output_objdir=.
20240 libname=conftest
20241 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20242 allow_undefined_flag_CXX=
20243 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20244 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }
20248 then
20249 archive_cmds_need_lc_CXX=no
20250 else
20251 archive_cmds_need_lc_CXX=yes
20252 fi
20253 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20254 else
20255 cat conftest.err 1>&5
20256 fi
20257 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020258 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20259echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020260 ;;
20261 esac
20262 fi
20263 ;;
20264esac
20265
Reid Spencera773bd52006-08-04 18:18:08 +000020266{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20267echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020268library_names_spec=
20269libname_spec='lib$name'
20270soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020271shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020272postinstall_cmds=
20273postuninstall_cmds=
20274finish_cmds=
20275finish_eval=
20276shlibpath_var=
20277shlibpath_overrides_runpath=unknown
20278version_type=none
20279dynamic_linker="$host_os ld.so"
20280sys_lib_dlsearch_path_spec="/lib /usr/lib"
20281if test "$GCC" = yes; then
20282 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20283 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20284 # if the path contains ";" then we assume it to be the separator
20285 # otherwise default to the standard path separator (i.e. ":") - it is
20286 # assumed that no part of a normal pathname contains ";" but that should
20287 # okay in the real world where ";" in dirpaths is itself problematic.
20288 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20289 else
20290 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20291 fi
20292else
20293 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20294fi
20295need_lib_prefix=unknown
20296hardcode_into_libs=no
20297
20298# when you set need_version to no, make sure it does not cause -set_version
20299# flags to be left without arguments
20300need_version=unknown
20301
20302case $host_os in
20303aix3*)
20304 version_type=linux
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20306 shlibpath_var=LIBPATH
20307
20308 # AIX 3 has no versioning support, so we append a major version to the name.
20309 soname_spec='${libname}${release}${shared_ext}$major'
20310 ;;
20311
20312aix4* | aix5*)
20313 version_type=linux
20314 need_lib_prefix=no
20315 need_version=no
20316 hardcode_into_libs=yes
20317 if test "$host_cpu" = ia64; then
20318 # AIX 5 supports IA64
20319 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 else
20322 # With GCC up to 2.95.x, collect2 would create an import file
20323 # for dependence libraries. The import file would start with
20324 # the line `#! .'. This would cause the generated library to
20325 # depend on `.', always an invalid library. This was fixed in
20326 # development snapshots of GCC prior to 3.0.
20327 case $host_os in
20328 aix4 | aix4.[01] | aix4.[01].*)
20329 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20330 echo ' yes '
20331 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20332 :
20333 else
20334 can_build_shared=no
20335 fi
20336 ;;
20337 esac
20338 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20339 # soname into executable. Probably we can add versioning support to
20340 # collect2, so additional links can be useful in future.
20341 if test "$aix_use_runtimelinking" = yes; then
20342 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20343 # instead of lib<name>.a to let people know that these are not
20344 # typical AIX shared libraries.
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 else
20347 # We preserve .a as extension for shared libraries through AIX4.2
20348 # and later when we are not doing run time linking.
20349 library_names_spec='${libname}${release}.a $libname.a'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 fi
20352 shlibpath_var=LIBPATH
20353 fi
20354 ;;
20355
20356amigaos*)
20357 library_names_spec='$libname.ixlibrary $libname.a'
20358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020359 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 +000020360 ;;
20361
20362beos*)
20363 library_names_spec='${libname}${shared_ext}'
20364 dynamic_linker="$host_os ld.so"
20365 shlibpath_var=LIBRARY_PATH
20366 ;;
20367
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020369 version_type=linux
20370 need_version=no
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 soname_spec='${libname}${release}${shared_ext}$major'
20373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20377 # the default ld.so.conf also contains /usr/contrib/lib and
20378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20379 # libtool to hard-code these into programs
20380 ;;
20381
20382cygwin* | mingw* | pw32*)
20383 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020384 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020385 need_version=no
20386 need_lib_prefix=no
20387
20388 case $GCC,$host_os in
20389 yes,cygwin* | yes,mingw* | yes,pw32*)
20390 library_names_spec='$libname.dll.a'
20391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020392 postinstall_cmds='base_file=`basename \${file}`~
20393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20394 dldir=$destdir/`dirname \$dlpath`~
20395 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020396 $install_prog $dir/$dlname \$dldir/$dlname~
20397 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020398 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20399 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020400 $rm \$dlpath'
20401 shlibpath_overrides_runpath=yes
20402
20403 case $host_os in
20404 cygwin*)
20405 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20406 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 +000020407 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020408 ;;
20409 mingw*)
20410 # MinGW DLLs use traditional 'lib' prefix
20411 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20413 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20414 # It is most probably a Windows format PATH printed by
20415 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20416 # path with ; separators, and with drive letters. We can handle the
20417 # drive letters (cygwin fileutils understands them), so leave them,
20418 # especially as we might pass files found there to a mingw objdump,
20419 # which wouldn't understand a cygwinified path. Ahh.
20420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20421 else
20422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20423 fi
20424 ;;
20425 pw32*)
20426 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020427 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 +000020428 ;;
20429 esac
20430 ;;
20431
20432 *)
20433 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20434 ;;
20435 esac
20436 dynamic_linker='Win32 ld.exe'
20437 # FIXME: first we should search . and the directory the executable is in
20438 shlibpath_var=PATH
20439 ;;
20440
20441darwin* | rhapsody*)
20442 dynamic_linker="$host_os dyld"
20443 version_type=darwin
20444 need_lib_prefix=no
20445 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020446 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020447 soname_spec='${libname}${release}${major}$shared_ext'
20448 shlibpath_overrides_runpath=yes
20449 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020450 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020451 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020452 if test "$GCC" = yes; then
20453 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"`
20454 else
20455 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020456 fi
20457 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20458 ;;
20459
20460dgux*)
20461 version_type=linux
20462 need_lib_prefix=no
20463 need_version=no
20464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20465 soname_spec='${libname}${release}${shared_ext}$major'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 ;;
20468
20469freebsd1*)
20470 dynamic_linker=no
20471 ;;
20472
Reid Spencer2706f8c2004-09-19 23:53:36 +000020473kfreebsd*-gnu)
20474 version_type=linux
20475 need_lib_prefix=no
20476 need_version=no
20477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=no
20481 hardcode_into_libs=yes
20482 dynamic_linker='GNU ld.so'
20483 ;;
20484
Reid Spencera773bd52006-08-04 18:18:08 +000020485freebsd* | dragonfly*)
20486 # DragonFly does not have aout. When/if they implement a new
20487 # versioning mechanism, adjust this.
20488 if test -x /usr/bin/objformat; then
20489 objformat=`/usr/bin/objformat`
20490 else
20491 case $host_os in
20492 freebsd[123]*) objformat=aout ;;
20493 *) objformat=elf ;;
20494 esac
20495 fi
John Criswell47fdd832003-07-14 16:52:07 +000020496 version_type=freebsd-$objformat
20497 case $version_type in
20498 freebsd-elf*)
20499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20500 need_version=no
20501 need_lib_prefix=no
20502 ;;
20503 freebsd-*)
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20505 need_version=yes
20506 ;;
20507 esac
20508 shlibpath_var=LD_LIBRARY_PATH
20509 case $host_os in
20510 freebsd2*)
20511 shlibpath_overrides_runpath=yes
20512 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020513 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020514 shlibpath_overrides_runpath=yes
20515 hardcode_into_libs=yes
20516 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020519 shlibpath_overrides_runpath=no
20520 hardcode_into_libs=yes
20521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020522 freebsd*) # from 4.6 on
20523 shlibpath_overrides_runpath=yes
20524 hardcode_into_libs=yes
20525 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020526 esac
20527 ;;
20528
20529gnu*)
20530 version_type=linux
20531 need_lib_prefix=no
20532 need_version=no
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 hardcode_into_libs=yes
20537 ;;
20538
20539hpux9* | hpux10* | hpux11*)
20540 # Give a soname corresponding to the major version so that dld.sl refuses to
20541 # link against other versions.
20542 version_type=sunos
20543 need_lib_prefix=no
20544 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020545 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020546 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020547 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020548 hardcode_into_libs=yes
20549 dynamic_linker="$host_os dld.so"
20550 shlibpath_var=LD_LIBRARY_PATH
20551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553 soname_spec='${libname}${release}${shared_ext}$major'
20554 if test "X$HPUX_IA64_MODE" = X32; then
20555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20556 else
20557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20558 fi
20559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20560 ;;
20561 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020563 hardcode_into_libs=yes
20564 dynamic_linker="$host_os dld.sl"
20565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20568 soname_spec='${libname}${release}${shared_ext}$major'
20569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20571 ;;
20572 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020573 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020574 dynamic_linker="$host_os dld.sl"
20575 shlibpath_var=SHLIB_PATH
20576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578 soname_spec='${libname}${release}${shared_ext}$major'
20579 ;;
20580 esac
20581 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20582 postinstall_cmds='chmod 555 $lib'
20583 ;;
20584
Reid Spencera773bd52006-08-04 18:18:08 +000020585interix3*)
20586 version_type=linux
20587 need_lib_prefix=no
20588 need_version=no
20589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20590 soname_spec='${libname}${release}${shared_ext}$major'
20591 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20592 shlibpath_var=LD_LIBRARY_PATH
20593 shlibpath_overrides_runpath=no
20594 hardcode_into_libs=yes
20595 ;;
20596
John Criswell47fdd832003-07-14 16:52:07 +000020597irix5* | irix6* | nonstopux*)
20598 case $host_os in
20599 nonstopux*) version_type=nonstopux ;;
20600 *)
20601 if test "$lt_cv_prog_gnu_ld" = yes; then
20602 version_type=linux
20603 else
20604 version_type=irix
20605 fi ;;
20606 esac
20607 need_lib_prefix=no
20608 need_version=no
20609 soname_spec='${libname}${release}${shared_ext}$major'
20610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20611 case $host_os in
20612 irix5* | nonstopux*)
20613 libsuff= shlibsuff=
20614 ;;
20615 *)
20616 case $LD in # libtool.m4 will add one of these switches to LD
20617 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20618 libsuff= shlibsuff= libmagic=32-bit;;
20619 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20620 libsuff=32 shlibsuff=N32 libmagic=N32;;
20621 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20622 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20623 *) libsuff= shlibsuff= libmagic=never-match;;
20624 esac
20625 ;;
20626 esac
20627 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20628 shlibpath_overrides_runpath=no
20629 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20630 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20631 hardcode_into_libs=yes
20632 ;;
20633
20634# No shared lib support for Linux oldld, aout, or coff.
20635linux*oldld* | linux*aout* | linux*coff*)
20636 dynamic_linker=no
20637 ;;
20638
20639# This must be Linux ELF.
20640linux*)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20647 shlibpath_var=LD_LIBRARY_PATH
20648 shlibpath_overrides_runpath=no
20649 # This implies no fast_install, which is unacceptable.
20650 # Some rework will be needed to allow for fast_install
20651 # before this can be enabled.
20652 hardcode_into_libs=yes
20653
Reid Spencer2706f8c2004-09-19 23:53:36 +000020654 # Append ld.so.conf contents to the search path
20655 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020656 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 +000020657 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20658 fi
20659
John Criswell47fdd832003-07-14 16:52:07 +000020660 # We used to test for /lib/ld.so.1 and disable shared libraries on
20661 # powerpc, because MkLinux only supported shared libraries with the
20662 # GNU dynamic linker. Since this was broken with cross compilers,
20663 # most powerpc-linux boxes support dynamic linking these days and
20664 # people can always --disable-shared, the test was removed, and we
20665 # assume the GNU/Linux dynamic linker is in use.
20666 dynamic_linker='GNU/Linux ld.so'
20667 ;;
20668
Reid Spencer2706f8c2004-09-19 23:53:36 +000020669knetbsd*-gnu)
20670 version_type=linux
20671 need_lib_prefix=no
20672 need_version=no
20673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20674 soname_spec='${libname}${release}${shared_ext}$major'
20675 shlibpath_var=LD_LIBRARY_PATH
20676 shlibpath_overrides_runpath=no
20677 hardcode_into_libs=yes
20678 dynamic_linker='GNU ld.so'
20679 ;;
20680
John Criswell47fdd832003-07-14 16:52:07 +000020681netbsd*)
20682 version_type=sunos
20683 need_lib_prefix=no
20684 need_version=no
20685 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20688 dynamic_linker='NetBSD (a.out) ld.so'
20689 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020691 soname_spec='${libname}${release}${shared_ext}$major'
20692 dynamic_linker='NetBSD ld.elf_so'
20693 fi
20694 shlibpath_var=LD_LIBRARY_PATH
20695 shlibpath_overrides_runpath=yes
20696 hardcode_into_libs=yes
20697 ;;
20698
20699newsos6)
20700 version_type=linux
20701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20702 shlibpath_var=LD_LIBRARY_PATH
20703 shlibpath_overrides_runpath=yes
20704 ;;
20705
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020707 version_type=linux
20708 need_lib_prefix=no
20709 need_version=no
20710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20711 soname_spec='${libname}${release}${shared_ext}$major'
20712 shlibpath_var=LD_LIBRARY_PATH
20713 shlibpath_overrides_runpath=yes
20714 ;;
20715
20716openbsd*)
20717 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020718 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020719 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020720 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20721 case $host_os in
20722 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20723 *) need_version=no ;;
20724 esac
John Criswell47fdd832003-07-14 16:52:07 +000020725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20727 shlibpath_var=LD_LIBRARY_PATH
20728 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20729 case $host_os in
20730 openbsd2.[89] | openbsd2.[89].*)
20731 shlibpath_overrides_runpath=no
20732 ;;
20733 *)
20734 shlibpath_overrides_runpath=yes
20735 ;;
20736 esac
20737 else
20738 shlibpath_overrides_runpath=yes
20739 fi
20740 ;;
20741
20742os2*)
20743 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020744 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020745 need_lib_prefix=no
20746 library_names_spec='$libname${shared_ext} $libname.a'
20747 dynamic_linker='OS/2 ld.exe'
20748 shlibpath_var=LIBPATH
20749 ;;
20750
20751osf3* | osf4* | osf5*)
20752 version_type=osf
20753 need_lib_prefix=no
20754 need_version=no
20755 soname_spec='${libname}${release}${shared_ext}$major'
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 shlibpath_var=LD_LIBRARY_PATH
20758 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20759 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20760 ;;
20761
John Criswell47fdd832003-07-14 16:52:07 +000020762solaris*)
20763 version_type=linux
20764 need_lib_prefix=no
20765 need_version=no
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20767 soname_spec='${libname}${release}${shared_ext}$major'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 shlibpath_overrides_runpath=yes
20770 hardcode_into_libs=yes
20771 # ldd complains unless libraries are executable
20772 postinstall_cmds='chmod +x $lib'
20773 ;;
20774
20775sunos4*)
20776 version_type=sunos
20777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20779 shlibpath_var=LD_LIBRARY_PATH
20780 shlibpath_overrides_runpath=yes
20781 if test "$with_gnu_ld" = yes; then
20782 need_lib_prefix=no
20783 fi
20784 need_version=yes
20785 ;;
20786
Reid Spencera773bd52006-08-04 18:18:08 +000020787sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020788 version_type=linux
20789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20790 soname_spec='${libname}${release}${shared_ext}$major'
20791 shlibpath_var=LD_LIBRARY_PATH
20792 case $host_vendor in
20793 sni)
20794 shlibpath_overrides_runpath=no
20795 need_lib_prefix=no
20796 export_dynamic_flag_spec='${wl}-Blargedynsym'
20797 runpath_var=LD_RUN_PATH
20798 ;;
20799 siemens)
20800 need_lib_prefix=no
20801 ;;
20802 motorola)
20803 need_lib_prefix=no
20804 need_version=no
20805 shlibpath_overrides_runpath=no
20806 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20807 ;;
20808 esac
20809 ;;
20810
20811sysv4*MP*)
20812 if test -d /usr/nec ;then
20813 version_type=linux
20814 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20815 soname_spec='$libname${shared_ext}.$major'
20816 shlibpath_var=LD_LIBRARY_PATH
20817 fi
20818 ;;
20819
Reid Spencera773bd52006-08-04 18:18:08 +000020820sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20821 version_type=freebsd-elf
20822 need_lib_prefix=no
20823 need_version=no
20824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20825 soname_spec='${libname}${release}${shared_ext}$major'
20826 shlibpath_var=LD_LIBRARY_PATH
20827 hardcode_into_libs=yes
20828 if test "$with_gnu_ld" = yes; then
20829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20830 shlibpath_overrides_runpath=no
20831 else
20832 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20833 shlibpath_overrides_runpath=yes
20834 case $host_os in
20835 sco3.2v5*)
20836 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20837 ;;
20838 esac
20839 fi
20840 sys_lib_dlsearch_path_spec='/usr/lib'
20841 ;;
20842
John Criswell47fdd832003-07-14 16:52:07 +000020843uts4*)
20844 version_type=linux
20845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20846 soname_spec='${libname}${release}${shared_ext}$major'
20847 shlibpath_var=LD_LIBRARY_PATH
20848 ;;
20849
20850*)
20851 dynamic_linker=no
20852 ;;
20853esac
Reid Spencera773bd52006-08-04 18:18:08 +000020854{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20855echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020856test "$dynamic_linker" = no && can_build_shared=no
20857
Reid Spencera773bd52006-08-04 18:18:08 +000020858variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20859if test "$GCC" = yes; then
20860 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20861fi
20862
20863{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20864echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020865hardcode_action_CXX=
20866if test -n "$hardcode_libdir_flag_spec_CXX" || \
20867 test -n "$runpath_var_CXX" || \
20868 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20869
20870 # We can hardcode non-existant directories.
20871 if test "$hardcode_direct_CXX" != no &&
20872 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20873 # have to relink, otherwise we might link with an installed library
20874 # when we should be linking with a yet-to-be-installed one
20875 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20876 test "$hardcode_minus_L_CXX" != no; then
20877 # Linking always hardcodes the temporary library directory.
20878 hardcode_action_CXX=relink
20879 else
20880 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20881 hardcode_action_CXX=immediate
20882 fi
20883else
20884 # We cannot hardcode anything, or else we can only hardcode existing
20885 # directories.
20886 hardcode_action_CXX=unsupported
20887fi
Reid Spencera773bd52006-08-04 18:18:08 +000020888{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20889echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020890
20891if test "$hardcode_action_CXX" = relink; then
20892 # Fast installation is not supported
20893 enable_fast_install=no
20894elif test "$shlibpath_overrides_runpath" = yes ||
20895 test "$enable_shared" = no; then
20896 # Fast installation is not necessary
20897 enable_fast_install=needless
20898fi
20899
John Criswell47fdd832003-07-14 16:52:07 +000020900
20901# The else clause should only fire when bootstrapping the
20902# libtool distribution, otherwise you forgot to ship ltmain.sh
20903# with your package, and you will get complaints that there are
20904# no rules to generate ltmain.sh.
20905if test -f "$ltmain"; then
20906 # See if we are running on zsh, and set the options which allow our commands through
20907 # without removal of \ escapes.
20908 if test -n "${ZSH_VERSION+set}" ; then
20909 setopt NO_GLOB_SUBST
20910 fi
20911 # Now quote all the things that may contain metacharacters while being
20912 # careful not to overquote the AC_SUBSTed values. We take copies of the
20913 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020914 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 +000020915 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020916 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20917 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20918 deplibs_check_method reload_flag reload_cmds need_locks \
20919 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20920 lt_cv_sys_global_symbol_to_c_name_address \
20921 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20922 old_postinstall_cmds old_postuninstall_cmds \
20923 compiler_CXX \
20924 CC_CXX \
20925 LD_CXX \
20926 lt_prog_compiler_wl_CXX \
20927 lt_prog_compiler_pic_CXX \
20928 lt_prog_compiler_static_CXX \
20929 lt_prog_compiler_no_builtin_flag_CXX \
20930 export_dynamic_flag_spec_CXX \
20931 thread_safe_flag_spec_CXX \
20932 whole_archive_flag_spec_CXX \
20933 enable_shared_with_static_runtimes_CXX \
20934 old_archive_cmds_CXX \
20935 old_archive_from_new_cmds_CXX \
20936 predep_objects_CXX \
20937 postdep_objects_CXX \
20938 predeps_CXX \
20939 postdeps_CXX \
20940 compiler_lib_search_path_CXX \
20941 archive_cmds_CXX \
20942 archive_expsym_cmds_CXX \
20943 postinstall_cmds_CXX \
20944 postuninstall_cmds_CXX \
20945 old_archive_from_expsyms_cmds_CXX \
20946 allow_undefined_flag_CXX \
20947 no_undefined_flag_CXX \
20948 export_symbols_cmds_CXX \
20949 hardcode_libdir_flag_spec_CXX \
20950 hardcode_libdir_flag_spec_ld_CXX \
20951 hardcode_libdir_separator_CXX \
20952 hardcode_automatic_CXX \
20953 module_cmds_CXX \
20954 module_expsym_cmds_CXX \
20955 lt_cv_prog_compiler_c_o_CXX \
20956 exclude_expsyms_CXX \
20957 include_expsyms_CXX; do
20958
20959 case $var in
20960 old_archive_cmds_CXX | \
20961 old_archive_from_new_cmds_CXX | \
20962 archive_cmds_CXX | \
20963 archive_expsym_cmds_CXX | \
20964 module_cmds_CXX | \
20965 module_expsym_cmds_CXX | \
20966 old_archive_from_expsyms_cmds_CXX | \
20967 export_symbols_cmds_CXX | \
20968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20969 postinstall_cmds | postuninstall_cmds | \
20970 old_postinstall_cmds | old_postuninstall_cmds | \
20971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20972 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020973 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 +000020974 ;;
20975 *)
20976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20977 ;;
20978 esac
20979 done
20980
20981 case $lt_echo in
20982 *'\$0 --fallback-echo"')
20983 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20984 ;;
20985 esac
20986
20987cfgfile="$ofile"
20988
20989 cat <<__EOF__ >> "$cfgfile"
20990# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20991
20992# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20993
20994# Shell to use when invoking shell scripts.
20995SHELL=$lt_SHELL
20996
20997# Whether or not to build shared libraries.
20998build_libtool_libs=$enable_shared
20999
21000# Whether or not to build static libraries.
21001build_old_libs=$enable_static
21002
21003# Whether or not to add -lc for building shared libraries.
21004build_libtool_need_lc=$archive_cmds_need_lc_CXX
21005
21006# Whether or not to disallow shared libs when runtime libs are static
21007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21008
21009# Whether or not to optimize for fast installation.
21010fast_install=$enable_fast_install
21011
21012# The host system.
21013host_alias=$host_alias
21014host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021015host_os=$host_os
21016
21017# The build system.
21018build_alias=$build_alias
21019build=$build
21020build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021021
21022# An echo program that does not interpret backslashes.
21023echo=$lt_echo
21024
21025# The archiver.
21026AR=$lt_AR
21027AR_FLAGS=$lt_AR_FLAGS
21028
21029# A C compiler.
21030LTCC=$lt_LTCC
21031
Reid Spencera773bd52006-08-04 18:18:08 +000021032# LTCC compiler flags.
21033LTCFLAGS=$lt_LTCFLAGS
21034
John Criswell47fdd832003-07-14 16:52:07 +000021035# A language-specific compiler.
21036CC=$lt_compiler_CXX
21037
21038# Is the compiler the GNU C compiler?
21039with_gcc=$GCC_CXX
21040
21041# An ERE matcher.
21042EGREP=$lt_EGREP
21043
21044# The linker used to build libraries.
21045LD=$lt_LD_CXX
21046
21047# Whether we need hard or soft links.
21048LN_S=$lt_LN_S
21049
21050# A BSD-compatible nm program.
21051NM=$lt_NM
21052
21053# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021054STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021055
21056# Used to examine libraries when file_magic_cmd begins "file"
21057MAGIC_CMD=$MAGIC_CMD
21058
21059# Used on cygwin: DLL creation program.
21060DLLTOOL="$DLLTOOL"
21061
21062# Used on cygwin: object dumper.
21063OBJDUMP="$OBJDUMP"
21064
21065# Used on cygwin: assembler.
21066AS="$AS"
21067
21068# The name of the directory that contains temporary libtool files.
21069objdir=$objdir
21070
21071# How to create reloadable object files.
21072reload_flag=$lt_reload_flag
21073reload_cmds=$lt_reload_cmds
21074
21075# How to pass a linker flag through the compiler.
21076wl=$lt_lt_prog_compiler_wl_CXX
21077
21078# Object file suffix (normally "o").
21079objext="$ac_objext"
21080
21081# Old archive suffix (normally "a").
21082libext="$libext"
21083
21084# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021085shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021086
21087# Executable file suffix (normally "").
21088exeext="$exeext"
21089
21090# Additional compiler flags for building library objects.
21091pic_flag=$lt_lt_prog_compiler_pic_CXX
21092pic_mode=$pic_mode
21093
21094# What is the maximum length of a command?
21095max_cmd_len=$lt_cv_sys_max_cmd_len
21096
21097# Does compiler simultaneously support -c and -o options?
21098compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021101need_locks=$lt_need_locks
21102
21103# Do we need the lib prefix for modules?
21104need_lib_prefix=$need_lib_prefix
21105
21106# Do we need a version for libraries?
21107need_version=$need_version
21108
21109# Whether dlopen is supported.
21110dlopen_support=$enable_dlopen
21111
21112# Whether dlopen of programs is supported.
21113dlopen_self=$enable_dlopen_self
21114
21115# Whether dlopen of statically linked programs is supported.
21116dlopen_self_static=$enable_dlopen_self_static
21117
21118# Compiler flag to prevent dynamic linking.
21119link_static_flag=$lt_lt_prog_compiler_static_CXX
21120
21121# Compiler flag to turn off builtin functions.
21122no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21123
21124# Compiler flag to allow reflexive dlopens.
21125export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21126
21127# Compiler flag to generate shared objects directly from archives.
21128whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21129
21130# Compiler flag to generate thread-safe objects.
21131thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21132
21133# Library versioning type.
21134version_type=$version_type
21135
21136# Format of library name prefix.
21137libname_spec=$lt_libname_spec
21138
21139# List of archive names. First name is the real one, the rest are links.
21140# The last name is the one that the linker finds with -lNAME.
21141library_names_spec=$lt_library_names_spec
21142
21143# The coded name of the library, if different from the real name.
21144soname_spec=$lt_soname_spec
21145
21146# Commands used to build and install an old-style archive.
21147RANLIB=$lt_RANLIB
21148old_archive_cmds=$lt_old_archive_cmds_CXX
21149old_postinstall_cmds=$lt_old_postinstall_cmds
21150old_postuninstall_cmds=$lt_old_postuninstall_cmds
21151
21152# Create an old-style archive from a shared archive.
21153old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21154
21155# Create a temporary old-style archive to link instead of a shared archive.
21156old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21157
21158# Commands used to build and install a shared archive.
21159archive_cmds=$lt_archive_cmds_CXX
21160archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21161postinstall_cmds=$lt_postinstall_cmds
21162postuninstall_cmds=$lt_postuninstall_cmds
21163
21164# Commands used to build a loadable module (assumed same as above if empty)
21165module_cmds=$lt_module_cmds_CXX
21166module_expsym_cmds=$lt_module_expsym_cmds_CXX
21167
21168# Commands to strip libraries.
21169old_striplib=$lt_old_striplib
21170striplib=$lt_striplib
21171
21172# Dependencies to place before the objects being linked to create a
21173# shared library.
21174predep_objects=$lt_predep_objects_CXX
21175
21176# Dependencies to place after the objects being linked to create a
21177# shared library.
21178postdep_objects=$lt_postdep_objects_CXX
21179
21180# Dependencies to place before the objects being linked to create a
21181# shared library.
21182predeps=$lt_predeps_CXX
21183
21184# Dependencies to place after the objects being linked to create a
21185# shared library.
21186postdeps=$lt_postdeps_CXX
21187
21188# The library search path used internally by the compiler when linking
21189# a shared library.
21190compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21191
21192# Method to check whether dependent libraries are shared objects.
21193deplibs_check_method=$lt_deplibs_check_method
21194
21195# Command to use when deplibs_check_method == file_magic.
21196file_magic_cmd=$lt_file_magic_cmd
21197
21198# Flag that allows shared libraries with undefined symbols to be built.
21199allow_undefined_flag=$lt_allow_undefined_flag_CXX
21200
21201# Flag that forces no undefined symbols.
21202no_undefined_flag=$lt_no_undefined_flag_CXX
21203
21204# Commands used to finish a libtool library installation in a directory.
21205finish_cmds=$lt_finish_cmds
21206
21207# Same as above, but a single script fragment to be evaled but not shown.
21208finish_eval=$lt_finish_eval
21209
21210# Take the output of nm and produce a listing of raw symbols and C names.
21211global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21212
21213# Transform the output of nm in a proper C declaration
21214global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21215
21216# Transform the output of nm in a C name address pair
21217global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21218
21219# This is the shared library runtime path variable.
21220runpath_var=$runpath_var
21221
21222# This is the shared library path variable.
21223shlibpath_var=$shlibpath_var
21224
21225# Is shlibpath searched before the hard-coded library search path?
21226shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21227
21228# How to hardcode a shared library path into an executable.
21229hardcode_action=$hardcode_action_CXX
21230
21231# Whether we should hardcode library paths into libraries.
21232hardcode_into_libs=$hardcode_into_libs
21233
21234# Flag to hardcode \$libdir into a binary during linking.
21235# This must work even if \$libdir does not exist.
21236hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21237
21238# If ld is used when linking, flag to hardcode \$libdir into
21239# a binary during linking. This must work even if \$libdir does
21240# not exist.
21241hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21242
21243# Whether we need a single -rpath flag with a separated argument.
21244hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21245
21246# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21247# resulting binary.
21248hardcode_direct=$hardcode_direct_CXX
21249
21250# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21251# resulting binary.
21252hardcode_minus_L=$hardcode_minus_L_CXX
21253
21254# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21255# the resulting binary.
21256hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21257
21258# Set to yes if building a shared library automatically hardcodes DIR into the library
21259# and all subsequent libraries and executables linked against it.
21260hardcode_automatic=$hardcode_automatic_CXX
21261
21262# Variables whose values should be saved in libtool wrapper scripts and
21263# restored at relink time.
21264variables_saved_for_relink="$variables_saved_for_relink"
21265
21266# Whether libtool must link a program against all its dependency libraries.
21267link_all_deplibs=$link_all_deplibs_CXX
21268
21269# Compile-time system search path for libraries
21270sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21271
21272# Run-time system search path for libraries
21273sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21274
21275# Fix the shell variable \$srcfile for the compiler.
21276fix_srcfile_path="$fix_srcfile_path_CXX"
21277
21278# Set to yes if exported symbols are required.
21279always_export_symbols=$always_export_symbols_CXX
21280
21281# The commands to list exported symbols.
21282export_symbols_cmds=$lt_export_symbols_cmds_CXX
21283
21284# The commands to extract the exported symbol list from a shared archive.
21285extract_expsyms_cmds=$lt_extract_expsyms_cmds
21286
21287# Symbols that should not be listed in the preloaded symbols.
21288exclude_expsyms=$lt_exclude_expsyms_CXX
21289
21290# Symbols that must always be exported.
21291include_expsyms=$lt_include_expsyms_CXX
21292
21293# ### END LIBTOOL TAG CONFIG: $tagname
21294
21295__EOF__
21296
21297
21298else
21299 # If there is no Makefile yet, we rely on a make rule to execute
21300 # `config.status --recheck' to rerun these tests and create the
21301 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021302 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21303 if test -f "$ltmain_in"; then
21304 test -f Makefile && make "$ltmain"
21305 fi
John Criswell47fdd832003-07-14 16:52:07 +000021306fi
21307
21308
21309ac_ext=c
21310ac_cpp='$CPP $CPPFLAGS'
21311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21313ac_compiler_gnu=$ac_cv_c_compiler_gnu
21314
21315CC=$lt_save_CC
21316LDCXX=$LD
21317LD=$lt_save_LD
21318GCC=$lt_save_GCC
21319with_gnu_ldcxx=$with_gnu_ld
21320with_gnu_ld=$lt_save_with_gnu_ld
21321lt_cv_path_LDCXX=$lt_cv_path_LD
21322lt_cv_path_LD=$lt_save_path_LD
21323lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21324lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21325
21326 else
21327 tagname=""
21328 fi
21329 ;;
21330
21331 F77)
21332 if test -n "$F77" && test "X$F77" != "Xno"; then
21333
21334ac_ext=f
21335ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21336ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21338
21339
21340archive_cmds_need_lc_F77=no
21341allow_undefined_flag_F77=
21342always_export_symbols_F77=no
21343archive_expsym_cmds_F77=
21344export_dynamic_flag_spec_F77=
21345hardcode_direct_F77=no
21346hardcode_libdir_flag_spec_F77=
21347hardcode_libdir_flag_spec_ld_F77=
21348hardcode_libdir_separator_F77=
21349hardcode_minus_L_F77=no
21350hardcode_automatic_F77=no
21351module_cmds_F77=
21352module_expsym_cmds_F77=
21353link_all_deplibs_F77=unknown
21354old_archive_cmds_F77=$old_archive_cmds
21355no_undefined_flag_F77=
21356whole_archive_flag_spec_F77=
21357enable_shared_with_static_runtimes_F77=no
21358
21359# Source file extension for f77 test sources.
21360ac_ext=f
21361
21362# Object file extension for compiled f77 test sources.
21363objext=o
21364objext_F77=$objext
21365
21366# Code to be used in simple compile tests
21367lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21368
21369# Code to be used in simple link tests
21370lt_simple_link_test_code=" program t\n end\n"
21371
21372# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21373
21374# If no C compiler was specified, use CC.
21375LTCC=${LTCC-"$CC"}
21376
Reid Spencera773bd52006-08-04 18:18:08 +000021377# If no C compiler flags were specified, use CFLAGS.
21378LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21379
John Criswell47fdd832003-07-14 16:52:07 +000021380# Allow CC to be a program name with arguments.
21381compiler=$CC
21382
21383
Reid Spencera773bd52006-08-04 18:18:08 +000021384# save warnings/boilerplate of simple test code
21385ac_outfile=conftest.$ac_objext
21386printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21387eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21388_lt_compiler_boilerplate=`cat conftest.err`
21389$rm conftest*
21390
21391ac_outfile=conftest.$ac_objext
21392printf "$lt_simple_link_test_code" >conftest.$ac_ext
21393eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21394_lt_linker_boilerplate=`cat conftest.err`
21395$rm conftest*
21396
21397
John Criswell47fdd832003-07-14 16:52:07 +000021398# Allow CC to be a program name with arguments.
21399lt_save_CC="$CC"
21400CC=${F77-"f77"}
21401compiler=$CC
21402compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021403for cc_temp in $compiler""; do
21404 case $cc_temp in
21405 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21406 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21407 \-*) ;;
21408 *) break;;
21409 esac
21410done
21411cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021412
John Criswell47fdd832003-07-14 16:52:07 +000021413
Reid Spencera773bd52006-08-04 18:18:08 +000021414{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21415echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21416{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21417echo "${ECHO_T}$can_build_shared" >&6; }
21418
21419{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21420echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021421test "$can_build_shared" = "no" && enable_shared=no
21422
21423# On AIX, shared libraries and static libraries use the same namespace, and
21424# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021425case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021426aix3*)
21427 test "$enable_shared" = yes && enable_static=no
21428 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021430 postinstall_cmds='$RANLIB $lib'
21431 fi
21432 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021433aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021434 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21435 test "$enable_shared" = yes && enable_static=no
21436 fi
John Criswell47fdd832003-07-14 16:52:07 +000021437 ;;
21438esac
Reid Spencera773bd52006-08-04 18:18:08 +000021439{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21440echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021441
Reid Spencera773bd52006-08-04 18:18:08 +000021442{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21443echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021444# Make sure either enable_shared or enable_static is yes.
21445test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021446{ echo "$as_me:$LINENO: result: $enable_static" >&5
21447echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021448
21449GCC_F77="$G77"
21450LD_F77="$LD"
21451
21452lt_prog_compiler_wl_F77=
21453lt_prog_compiler_pic_F77=
21454lt_prog_compiler_static_F77=
21455
Reid Spencera773bd52006-08-04 18:18:08 +000021456{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21457echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021458
21459 if test "$GCC" = yes; then
21460 lt_prog_compiler_wl_F77='-Wl,'
21461 lt_prog_compiler_static_F77='-static'
21462
21463 case $host_os in
21464 aix*)
21465 # All AIX code is PIC.
21466 if test "$host_cpu" = ia64; then
21467 # AIX 5 now supports IA64 processor
21468 lt_prog_compiler_static_F77='-Bstatic'
21469 fi
21470 ;;
21471
21472 amigaos*)
21473 # FIXME: we need at least 68020 code to build shared libraries, but
21474 # adding the `-m68020' flag to GCC prevents building anything better,
21475 # like `-m68040'.
21476 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21477 ;;
21478
21479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21480 # PIC is the default for these OSes.
21481 ;;
21482
21483 mingw* | pw32* | os2*)
21484 # This hack is so that the source file can tell whether it is being
21485 # built for inclusion in a dll (and should export symbols for example).
21486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21487 ;;
21488
21489 darwin* | rhapsody*)
21490 # PIC is the default on this platform
21491 # Common symbols not allowed in MH_DYLIB files
21492 lt_prog_compiler_pic_F77='-fno-common'
21493 ;;
21494
Reid Spencera773bd52006-08-04 18:18:08 +000021495 interix3*)
21496 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21497 # Instead, we relocate shared libraries at runtime.
21498 ;;
21499
John Criswell47fdd832003-07-14 16:52:07 +000021500 msdosdjgpp*)
21501 # Just because we use GCC doesn't mean we suddenly get shared libraries
21502 # on systems that don't support them.
21503 lt_prog_compiler_can_build_shared_F77=no
21504 enable_shared=no
21505 ;;
21506
21507 sysv4*MP*)
21508 if test -d /usr/nec; then
21509 lt_prog_compiler_pic_F77=-Kconform_pic
21510 fi
21511 ;;
21512
21513 hpux*)
21514 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21515 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021516 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021517 hppa*64*|ia64*)
21518 # +Z the default
21519 ;;
21520 *)
21521 lt_prog_compiler_pic_F77='-fPIC'
21522 ;;
21523 esac
21524 ;;
21525
21526 *)
21527 lt_prog_compiler_pic_F77='-fPIC'
21528 ;;
21529 esac
21530 else
21531 # PORTME Check for flag to pass linker flags through the system compiler.
21532 case $host_os in
21533 aix*)
21534 lt_prog_compiler_wl_F77='-Wl,'
21535 if test "$host_cpu" = ia64; then
21536 # AIX 5 now supports IA64 processor
21537 lt_prog_compiler_static_F77='-Bstatic'
21538 else
21539 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21540 fi
21541 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021542 darwin*)
21543 # PIC is the default on this platform
21544 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021545 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021546 xlc*)
21547 lt_prog_compiler_pic_F77='-qnocommon'
21548 lt_prog_compiler_wl_F77='-Wl,'
21549 ;;
21550 esac
21551 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021552
21553 mingw* | pw32* | os2*)
21554 # This hack is so that the source file can tell whether it is being
21555 # built for inclusion in a dll (and should export symbols for example).
21556 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21557 ;;
21558
21559 hpux9* | hpux10* | hpux11*)
21560 lt_prog_compiler_wl_F77='-Wl,'
21561 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21562 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021563 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021564 hppa*64*|ia64*)
21565 # +Z the default
21566 ;;
21567 *)
21568 lt_prog_compiler_pic_F77='+Z'
21569 ;;
21570 esac
21571 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21572 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21573 ;;
21574
21575 irix5* | irix6* | nonstopux*)
21576 lt_prog_compiler_wl_F77='-Wl,'
21577 # PIC (with -KPIC) is the default.
21578 lt_prog_compiler_static_F77='-non_shared'
21579 ;;
21580
21581 newsos6)
21582 lt_prog_compiler_pic_F77='-KPIC'
21583 lt_prog_compiler_static_F77='-Bstatic'
21584 ;;
21585
21586 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021587 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021588 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021589 lt_prog_compiler_wl_F77='-Wl,'
21590 lt_prog_compiler_pic_F77='-KPIC'
21591 lt_prog_compiler_static_F77='-static'
21592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021593 pgcc* | pgf77* | pgf90* | pgf95*)
21594 # Portland Group compilers (*not* the Pentium gcc compiler,
21595 # which looks to be a dead project)
21596 lt_prog_compiler_wl_F77='-Wl,'
21597 lt_prog_compiler_pic_F77='-fpic'
21598 lt_prog_compiler_static_F77='-Bstatic'
21599 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021600 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021601 lt_prog_compiler_wl_F77='-Wl,'
21602 # All Alpha code is PIC.
21603 lt_prog_compiler_static_F77='-non_shared'
21604 ;;
21605 esac
21606 ;;
21607
21608 osf3* | osf4* | osf5*)
21609 lt_prog_compiler_wl_F77='-Wl,'
21610 # All OSF/1 code is PIC.
21611 lt_prog_compiler_static_F77='-non_shared'
21612 ;;
21613
John Criswell47fdd832003-07-14 16:52:07 +000021614 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021615 lt_prog_compiler_pic_F77='-KPIC'
21616 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021617 case $cc_basename in
21618 f77* | f90* | f95*)
21619 lt_prog_compiler_wl_F77='-Qoption ld ';;
21620 *)
21621 lt_prog_compiler_wl_F77='-Wl,';;
21622 esac
John Criswell47fdd832003-07-14 16:52:07 +000021623 ;;
21624
21625 sunos4*)
21626 lt_prog_compiler_wl_F77='-Qoption ld '
21627 lt_prog_compiler_pic_F77='-PIC'
21628 lt_prog_compiler_static_F77='-Bstatic'
21629 ;;
21630
Reid Spencera773bd52006-08-04 18:18:08 +000021631 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021632 lt_prog_compiler_wl_F77='-Wl,'
21633 lt_prog_compiler_pic_F77='-KPIC'
21634 lt_prog_compiler_static_F77='-Bstatic'
21635 ;;
21636
21637 sysv4*MP*)
21638 if test -d /usr/nec ;then
21639 lt_prog_compiler_pic_F77='-Kconform_pic'
21640 lt_prog_compiler_static_F77='-Bstatic'
21641 fi
21642 ;;
21643
Reid Spencera773bd52006-08-04 18:18:08 +000021644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21645 lt_prog_compiler_wl_F77='-Wl,'
21646 lt_prog_compiler_pic_F77='-KPIC'
21647 lt_prog_compiler_static_F77='-Bstatic'
21648 ;;
21649
21650 unicos*)
21651 lt_prog_compiler_wl_F77='-Wl,'
21652 lt_prog_compiler_can_build_shared_F77=no
21653 ;;
21654
John Criswell47fdd832003-07-14 16:52:07 +000021655 uts4*)
21656 lt_prog_compiler_pic_F77='-pic'
21657 lt_prog_compiler_static_F77='-Bstatic'
21658 ;;
21659
21660 *)
21661 lt_prog_compiler_can_build_shared_F77=no
21662 ;;
21663 esac
21664 fi
21665
Reid Spencera773bd52006-08-04 18:18:08 +000021666{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21667echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021668
21669#
21670# Check to make sure the PIC flag actually works.
21671#
21672if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021673
Reid Spencera773bd52006-08-04 18:18:08 +000021674{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21675echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021676if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678else
21679 lt_prog_compiler_pic_works_F77=no
21680 ac_outfile=conftest.$ac_objext
21681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21682 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21683 # Insert the option either (1) after the last *FLAGS variable, or
21684 # (2) before a word containing "conftest.", or (3) at the end.
21685 # Note that $ac_compile itself does not contain backslashes and begins
21686 # with a dollar sign (not a hyphen), so the echo should work correctly.
21687 # The option is referenced via a variable to avoid confusing sed.
21688 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21691 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000021692 (eval echo "\"\$as_me:21692: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021693 (eval "$lt_compile" 2>conftest.err)
21694 ac_status=$?
21695 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000021696 echo "$as_me:21696: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021697 if (exit $ac_status) && test -s "$ac_outfile"; then
21698 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021699 # So say no if there are warnings other than the usual output.
21700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021703 lt_prog_compiler_pic_works_F77=yes
21704 fi
21705 fi
21706 $rm conftest*
21707
21708fi
Reid Spencera773bd52006-08-04 18:18:08 +000021709{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21710echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021711
21712if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21713 case $lt_prog_compiler_pic_F77 in
21714 "" | " "*) ;;
21715 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21716 esac
21717else
21718 lt_prog_compiler_pic_F77=
21719 lt_prog_compiler_can_build_shared_F77=no
21720fi
21721
21722fi
Reid Spencera773bd52006-08-04 18:18:08 +000021723case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021724 # For platforms which do not support PIC, -DPIC is meaningless:
21725 *djgpp*)
21726 lt_prog_compiler_pic_F77=
21727 ;;
21728 *)
21729 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21730 ;;
21731esac
21732
Reid Spencera773bd52006-08-04 18:18:08 +000021733#
21734# Check to make sure the static flag actually works.
21735#
21736wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21737{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21738echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21739if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21740 echo $ECHO_N "(cached) $ECHO_C" >&6
21741else
21742 lt_prog_compiler_static_works_F77=no
21743 save_LDFLAGS="$LDFLAGS"
21744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21745 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21747 # The linker can only warn and ignore the option if not recognized
21748 # So say no if there are warnings
21749 if test -s conftest.err; then
21750 # Append any errors to the config.log.
21751 cat conftest.err 1>&5
21752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21754 if diff conftest.exp conftest.er2 >/dev/null; then
21755 lt_prog_compiler_static_works_F77=yes
21756 fi
21757 else
21758 lt_prog_compiler_static_works_F77=yes
21759 fi
21760 fi
21761 $rm conftest*
21762 LDFLAGS="$save_LDFLAGS"
21763
21764fi
21765{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21766echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21767
21768if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21769 :
21770else
21771 lt_prog_compiler_static_F77=
21772fi
21773
21774
21775{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21776echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021777if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780 lt_cv_prog_compiler_c_o_F77=no
21781 $rm -r conftest 2>/dev/null
21782 mkdir conftest
21783 cd conftest
21784 mkdir out
21785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21786
John Criswell47fdd832003-07-14 16:52:07 +000021787 lt_compiler_flag="-o out/conftest2.$ac_objext"
21788 # Insert the option either (1) after the last *FLAGS variable, or
21789 # (2) before a word containing "conftest.", or (3) at the end.
21790 # Note that $ac_compile itself does not contain backslashes and begins
21791 # with a dollar sign (not a hyphen), so the echo should work correctly.
21792 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21795 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000021796 (eval echo "\"\$as_me:21796: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021797 (eval "$lt_compile" 2>out/conftest.err)
21798 ac_status=$?
21799 cat out/conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000021800 echo "$as_me:21800: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21802 then
21803 # The compiler can only warn and ignore the option if not recognized
21804 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021808 lt_cv_prog_compiler_c_o_F77=yes
21809 fi
21810 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021811 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021812 $rm conftest*
21813 # SGI C++ compiler will create directory out/ii_files/ for
21814 # template instantiation
21815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21816 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021817 cd ..
21818 rmdir conftest
21819 $rm conftest*
21820
21821fi
Reid Spencera773bd52006-08-04 18:18:08 +000021822{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21823echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021824
21825
21826hard_links="nottested"
21827if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21828 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021829 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21830echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021831 hard_links=yes
21832 $rm conftest*
21833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21834 touch conftest.a
21835 ln conftest.a conftest.b 2>&5 || hard_links=no
21836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021837 { echo "$as_me:$LINENO: result: $hard_links" >&5
21838echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021839 if test "$hard_links" = no; then
21840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21841echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21842 need_locks=warn
21843 fi
21844else
21845 need_locks=no
21846fi
21847
Reid Spencera773bd52006-08-04 18:18:08 +000021848{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21849echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021850
21851 runpath_var=
21852 allow_undefined_flag_F77=
21853 enable_shared_with_static_runtimes_F77=no
21854 archive_cmds_F77=
21855 archive_expsym_cmds_F77=
21856 old_archive_From_new_cmds_F77=
21857 old_archive_from_expsyms_cmds_F77=
21858 export_dynamic_flag_spec_F77=
21859 whole_archive_flag_spec_F77=
21860 thread_safe_flag_spec_F77=
21861 hardcode_libdir_flag_spec_F77=
21862 hardcode_libdir_flag_spec_ld_F77=
21863 hardcode_libdir_separator_F77=
21864 hardcode_direct_F77=no
21865 hardcode_minus_L_F77=no
21866 hardcode_shlibpath_var_F77=unsupported
21867 link_all_deplibs_F77=unknown
21868 hardcode_automatic_F77=no
21869 module_cmds_F77=
21870 module_expsym_cmds_F77=
21871 always_export_symbols_F77=no
21872 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21873 # include_expsyms should be a list of space-separated symbols to be *always*
21874 # included in the symbol list
21875 include_expsyms_F77=
21876 # exclude_expsyms can be an extended regexp of symbols to exclude
21877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21879 # as well as any symbol that contains `d'.
21880 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21882 # platforms (ab)use it in PIC code, but their linkers get confused if
21883 # the symbol is explicitly referenced. Since portable code cannot
21884 # rely on this symbol name, it's probably fine to never include it in
21885 # preloaded symbol tables.
21886 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021887 # Just being paranoid about ensuring that cc_basename is set.
21888 for cc_temp in $compiler""; do
21889 case $cc_temp in
21890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21892 \-*) ;;
21893 *) break;;
21894 esac
21895done
21896cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021897
21898 case $host_os in
21899 cygwin* | mingw* | pw32*)
21900 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21901 # When not using gcc, we currently assume that we are using
21902 # Microsoft Visual C++.
21903 if test "$GCC" != yes; then
21904 with_gnu_ld=no
21905 fi
21906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021907 interix*)
21908 # we just hope/assume this is gcc and not c89 (= MSVC++)
21909 with_gnu_ld=yes
21910 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021911 openbsd*)
21912 with_gnu_ld=no
21913 ;;
21914 esac
21915
21916 ld_shlibs_F77=yes
21917 if test "$with_gnu_ld" = yes; then
21918 # If archive_cmds runs LD, not CC, wlarc should be empty
21919 wlarc='${wl}'
21920
Reid Spencera773bd52006-08-04 18:18:08 +000021921 # Set some defaults for GNU ld with shared library support. These
21922 # are reset later if shared libraries are not supported. Putting them
21923 # here allows them to be overridden if necessary.
21924 runpath_var=LD_RUN_PATH
21925 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21926 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21927 # ancient GNU ld didn't support --whole-archive et. al.
21928 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21929 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21930 else
21931 whole_archive_flag_spec_F77=
21932 fi
21933 supports_anon_versioning=no
21934 case `$LD -v 2>/dev/null` in
21935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21938 *\ 2.11.*) ;; # other 2.11 versions
21939 *) supports_anon_versioning=yes ;;
21940 esac
21941
John Criswell47fdd832003-07-14 16:52:07 +000021942 # See if GNU ld supports shared libraries.
21943 case $host_os in
21944 aix3* | aix4* | aix5*)
21945 # On AIX/PPC, the GNU linker is very broken
21946 if test "$host_cpu" != ia64; then
21947 ld_shlibs_F77=no
21948 cat <<EOF 1>&2
21949
21950*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21951*** to be unable to reliably create shared libraries on AIX.
21952*** Therefore, libtool is disabling shared libraries support. If you
21953*** really care for shared libraries, you may want to modify your PATH
21954*** so that a non-GNU linker is found, and then restart.
21955
21956EOF
21957 fi
21958 ;;
21959
21960 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021961 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 +000021962 hardcode_libdir_flag_spec_F77='-L$libdir'
21963 hardcode_minus_L_F77=yes
21964
21965 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21966 # that the semantics of dynamic libraries on AmigaOS, at least up
21967 # to version 4, is to share data among multiple programs linked
21968 # with the same dynamic library. Since this doesn't match the
21969 # behavior of shared libraries on other platforms, we can't use
21970 # them.
21971 ld_shlibs_F77=no
21972 ;;
21973
21974 beos*)
21975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21976 allow_undefined_flag_F77=unsupported
21977 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21978 # support --undefined. This deserves some investigation. FIXME
21979 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21980 else
21981 ld_shlibs_F77=no
21982 fi
21983 ;;
21984
21985 cygwin* | mingw* | pw32*)
21986 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21987 # as there is no search path for DLLs.
21988 hardcode_libdir_flag_spec_F77='-L$libdir'
21989 allow_undefined_flag_F77=unsupported
21990 always_export_symbols_F77=no
21991 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021992 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 +000021993
21994 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021995 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 +000021996 # If the export-symbols file already is a .def file (1st line
21997 # is EXPORTS), use it as is; otherwise, prepend...
21998 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21999 cp $export_symbols $output_objdir/$soname.def;
22000 else
22001 echo EXPORTS > $output_objdir/$soname.def;
22002 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022003 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022004 $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 +000022005 else
Reid Spencera773bd52006-08-04 18:18:08 +000022006 ld_shlibs_F77=no
22007 fi
22008 ;;
22009
22010 interix3*)
22011 hardcode_direct_F77=no
22012 hardcode_shlibpath_var_F77=no
22013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22014 export_dynamic_flag_spec_F77='${wl}-E'
22015 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22016 # Instead, shared libraries are loaded at an image base (0x10000000 by
22017 # default) and relocated if they conflict, which is a slow very memory
22018 # consuming and fragmenting process. To avoid this, we pick a random,
22019 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22020 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22021 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'
22022 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'
22023 ;;
22024
22025 linux*)
22026 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22027 tmp_addflag=
22028 case $cc_basename,$host_cpu in
22029 pgcc*) # Portland Group C compiler
22030 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'
22031 tmp_addflag=' $pic_flag'
22032 ;;
22033 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22034 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'
22035 tmp_addflag=' $pic_flag -Mnomain' ;;
22036 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22037 tmp_addflag=' -i_dynamic' ;;
22038 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22039 tmp_addflag=' -i_dynamic -nofor_main' ;;
22040 ifc* | ifort*) # Intel Fortran compiler
22041 tmp_addflag=' -nofor_main' ;;
22042 esac
22043 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22044
22045 if test $supports_anon_versioning = yes; then
22046 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22047 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22048 $echo "local: *; };" >> $output_objdir/$libname.ver~
22049 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22050 fi
22051 else
22052 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022053 fi
22054 ;;
22055
22056 netbsd*)
22057 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22058 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22059 wlarc=
22060 else
22061 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22062 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22063 fi
22064 ;;
22065
Reid Spencera773bd52006-08-04 18:18:08 +000022066 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022067 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22068 ld_shlibs_F77=no
22069 cat <<EOF 1>&2
22070
22071*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22072*** create shared libraries on Solaris systems. Therefore, libtool
22073*** is disabling shared libraries support. We urge you to upgrade GNU
22074*** binutils to release 2.9.1 or newer. Another option is to modify
22075*** your PATH or compiler configuration so that the native linker is
22076*** used, and then restart.
22077
22078EOF
22079 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22080 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22081 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22082 else
22083 ld_shlibs_F77=no
22084 fi
22085 ;;
22086
Reid Spencera773bd52006-08-04 18:18:08 +000022087 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22088 case `$LD -v 2>&1` in
22089 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22090 ld_shlibs_F77=no
22091 cat <<_LT_EOF 1>&2
22092
22093*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22094*** reliably create shared libraries on SCO systems. Therefore, libtool
22095*** is disabling shared libraries support. We urge you to upgrade GNU
22096*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22097*** your PATH or compiler configuration so that the native linker is
22098*** used, and then restart.
22099
22100_LT_EOF
22101 ;;
22102 *)
22103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22104 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22105 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22106 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22107 else
22108 ld_shlibs_F77=no
22109 fi
22110 ;;
22111 esac
22112 ;;
22113
John Criswell47fdd832003-07-14 16:52:07 +000022114 sunos4*)
22115 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22116 wlarc=
22117 hardcode_direct_F77=yes
22118 hardcode_shlibpath_var_F77=no
22119 ;;
22120
22121 *)
22122 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22123 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22124 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22125 else
22126 ld_shlibs_F77=no
22127 fi
22128 ;;
22129 esac
22130
Reid Spencera773bd52006-08-04 18:18:08 +000022131 if test "$ld_shlibs_F77" = no; then
22132 runpath_var=
22133 hardcode_libdir_flag_spec_F77=
22134 export_dynamic_flag_spec_F77=
22135 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022136 fi
22137 else
22138 # PORTME fill in a description of your system's linker (not GNU ld)
22139 case $host_os in
22140 aix3*)
22141 allow_undefined_flag_F77=unsupported
22142 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022143 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 +000022144 # Note: this linker hardcodes the directories in LIBPATH if there
22145 # are no directories specified by -L.
22146 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022147 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022148 # Neither direct hardcoding nor static linking is supported with a
22149 # broken collect2.
22150 hardcode_direct_F77=unsupported
22151 fi
22152 ;;
22153
22154 aix4* | aix5*)
22155 if test "$host_cpu" = ia64; then
22156 # On IA64, the linker does run time linking by default, so we don't
22157 # have to do anything special.
22158 aix_use_runtimelinking=no
22159 exp_sym_flag='-Bexport'
22160 no_entry_flag=""
22161 else
22162 # If we're using GNU nm, then we don't want the "-C" option.
22163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22164 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22165 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'
22166 else
22167 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'
22168 fi
22169 aix_use_runtimelinking=no
22170
22171 # Test if we are trying to use run time linking or normal
22172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22173 # need to do runtime linking.
22174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22175 for ld_flag in $LDFLAGS; do
22176 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22177 aix_use_runtimelinking=yes
22178 break
22179 fi
22180 done
Reid Spencera773bd52006-08-04 18:18:08 +000022181 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022182 esac
22183
22184 exp_sym_flag='-bexport'
22185 no_entry_flag='-bnoentry'
22186 fi
22187
22188 # When large executables or shared objects are built, AIX ld can
22189 # have problems creating the table of contents. If linking a library
22190 # or program results in "error TOC overflow" add -mminimal-toc to
22191 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22192 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22193
22194 archive_cmds_F77=''
22195 hardcode_direct_F77=yes
22196 hardcode_libdir_separator_F77=':'
22197 link_all_deplibs_F77=yes
22198
22199 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022200 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022201 # We only want to do this on AIX 4.2 and lower, the check
22202 # below for broken collect2 doesn't work under 4.3+
22203 collect2name=`${CC} -print-prog-name=collect2`
22204 if test -f "$collect2name" && \
22205 strings "$collect2name" | grep resolve_lib_name >/dev/null
22206 then
22207 # We have reworked collect2
22208 hardcode_direct_F77=yes
22209 else
22210 # We have old collect2
22211 hardcode_direct_F77=unsupported
22212 # It fails to find uninstalled libraries when the uninstalled
22213 # path is not listed in the libpath. Setting hardcode_minus_L
22214 # to unsupported forces relinking
22215 hardcode_minus_L_F77=yes
22216 hardcode_libdir_flag_spec_F77='-L$libdir'
22217 hardcode_libdir_separator_F77=
22218 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022220 esac
22221 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022222 if test "$aix_use_runtimelinking" = yes; then
22223 shared_flag="$shared_flag "'${wl}-G'
22224 fi
John Criswell47fdd832003-07-14 16:52:07 +000022225 else
22226 # not using gcc
22227 if test "$host_cpu" = ia64; then
22228 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22229 # chokes on -Wl,-G. The following line is correct:
22230 shared_flag='-G'
22231 else
Reid Spencera773bd52006-08-04 18:18:08 +000022232 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022233 shared_flag='${wl}-G'
22234 else
22235 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022236 fi
John Criswell47fdd832003-07-14 16:52:07 +000022237 fi
22238 fi
22239
22240 # It seems that -bexpall does not export symbols beginning with
22241 # underscore (_), so it is better to generate a list of symbols to export.
22242 always_export_symbols_F77=yes
22243 if test "$aix_use_runtimelinking" = yes; then
22244 # Warning - without using the other runtime loading flags (-brtl),
22245 # -berok will link without error, but may produce a broken library.
22246 allow_undefined_flag_F77='-berok'
22247 # Determine the default libpath from the value encoded in an empty executable.
22248 cat >conftest.$ac_ext <<_ACEOF
22249 program main
22250
22251 end
22252_ACEOF
22253rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022254if { (ac_try="$ac_link"
22255case "(($ac_try" in
22256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22257 *) ac_try_echo=$ac_try;;
22258esac
22259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22260 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022261 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022262 grep -v '^ *+' conftest.er1 >conftest.err
22263 rm -f conftest.er1
22264 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022266 (exit $ac_status); } &&
22267 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271esac
22272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest$ac_exeext'
22278 { (case "(($ac_try" in
22279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22280 *) ac_try_echo=$ac_try;;
22281esac
22282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22283 (eval "$ac_try") 2>&5
22284 ac_status=$?
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022287
22288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22289}'`
22290# Check for a 64-bit object if we didn't find anything.
22291if 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; }
22292}'`; fi
22293else
22294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022295sed 's/^/| /' conftest.$ac_ext >&5
22296
Reid Spencera773bd52006-08-04 18:18:08 +000022297
John Criswell47fdd832003-07-14 16:52:07 +000022298fi
Reid Spencera773bd52006-08-04 18:18:08 +000022299
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022300rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022301 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22303
22304 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022305 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 +000022306 else
22307 if test "$host_cpu" = ia64; then
22308 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22309 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022310 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 +000022311 else
22312 # Determine the default libpath from the value encoded in an empty executable.
22313 cat >conftest.$ac_ext <<_ACEOF
22314 program main
22315
22316 end
22317_ACEOF
22318rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022319if { (ac_try="$ac_link"
22320case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323esac
22324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022327 grep -v '^ *+' conftest.er1 >conftest.err
22328 rm -f conftest.er1
22329 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022331 (exit $ac_status); } &&
22332 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22333 { (case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22336esac
22337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_try") 2>&5
22339 ac_status=$?
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; } &&
22342 { ac_try='test -s conftest$ac_exeext'
22343 { (case "(($ac_try" in
22344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22345 *) ac_try_echo=$ac_try;;
22346esac
22347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22348 (eval "$ac_try") 2>&5
22349 ac_status=$?
22350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22351 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022352
22353aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22354}'`
22355# Check for a 64-bit object if we didn't find anything.
22356if 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; }
22357}'`; fi
22358else
22359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022360sed 's/^/| /' conftest.$ac_ext >&5
22361
Reid Spencera773bd52006-08-04 18:18:08 +000022362
John Criswell47fdd832003-07-14 16:52:07 +000022363fi
Reid Spencera773bd52006-08-04 18:18:08 +000022364
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022365rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022366 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22368
22369 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22370 # Warning - without using the other run time loading flags,
22371 # -berok will link without error, but may produce a broken library.
22372 no_undefined_flag_F77=' ${wl}-bernotok'
22373 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022374 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022375 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022376 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022377 # This is similar to how AIX traditionally builds its shared libraries.
22378 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 +000022379 fi
22380 fi
22381 ;;
22382
22383 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022384 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 +000022385 hardcode_libdir_flag_spec_F77='-L$libdir'
22386 hardcode_minus_L_F77=yes
22387 # see comment about different semantics on the GNU ld section
22388 ld_shlibs_F77=no
22389 ;;
22390
Reid Spencer2706f8c2004-09-19 23:53:36 +000022391 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022392 export_dynamic_flag_spec_F77=-rdynamic
22393 ;;
22394
22395 cygwin* | mingw* | pw32*)
22396 # When not using gcc, we currently assume that we are using
22397 # Microsoft Visual C++.
22398 # hardcode_libdir_flag_spec is actually meaningless, as there is
22399 # no search path for DLLs.
22400 hardcode_libdir_flag_spec_F77=' '
22401 allow_undefined_flag_F77=unsupported
22402 # Tell ltmain to make .lib files, not .a files.
22403 libext=lib
22404 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022405 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022406 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022407 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 +000022408 # The linker will automatically build a .lib file if we build a DLL.
22409 old_archive_From_new_cmds_F77='true'
22410 # FIXME: Should let the user specify the lib program.
22411 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022412 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022413 enable_shared_with_static_runtimes_F77=yes
22414 ;;
22415
22416 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022417 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 rhapsody* | darwin1.[012])
22419 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22420 ;;
22421 *) # Darwin 1.3 on
22422 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22423 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22424 else
22425 case ${MACOSX_DEPLOYMENT_TARGET} in
22426 10.[012])
22427 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22428 ;;
22429 10.*)
22430 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22431 ;;
22432 esac
22433 fi
22434 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022435 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022436 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022437 hardcode_direct_F77=no
22438 hardcode_automatic_F77=yes
22439 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022440 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022441 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 if test "$GCC" = yes ; then
22443 output_verbose_link_cmd='echo'
22444 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22445 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022446 # 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 +000022447 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}'
22448 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 +000022449 else
Reid Spencera773bd52006-08-04 18:18:08 +000022450 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451 xlc*)
22452 output_verbose_link_cmd='echo'
22453 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22454 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022455 # 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 +000022456 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}'
22457 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 +000022458 ;;
22459 *)
22460 ld_shlibs_F77=no
22461 ;;
22462 esac
John Criswell47fdd832003-07-14 16:52:07 +000022463 fi
22464 ;;
22465
22466 dgux*)
22467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468 hardcode_libdir_flag_spec_F77='-L$libdir'
22469 hardcode_shlibpath_var_F77=no
22470 ;;
22471
22472 freebsd1*)
22473 ld_shlibs_F77=no
22474 ;;
22475
22476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22477 # support. Future versions do this automatically, but an explicit c++rt0.o
22478 # does not break anything, and helps significantly (at the cost of a little
22479 # extra space).
22480 freebsd2.2*)
22481 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22482 hardcode_libdir_flag_spec_F77='-R$libdir'
22483 hardcode_direct_F77=yes
22484 hardcode_shlibpath_var_F77=no
22485 ;;
22486
22487 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22488 freebsd2*)
22489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22490 hardcode_direct_F77=yes
22491 hardcode_minus_L_F77=yes
22492 hardcode_shlibpath_var_F77=no
22493 ;;
22494
22495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022496 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022497 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22498 hardcode_libdir_flag_spec_F77='-R$libdir'
22499 hardcode_direct_F77=yes
22500 hardcode_shlibpath_var_F77=no
22501 ;;
22502
22503 hpux9*)
22504 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022505 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 +000022506 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022507 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 +000022508 fi
22509 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22510 hardcode_libdir_separator_F77=:
22511 hardcode_direct_F77=yes
22512
22513 # hardcode_minus_L: Not really in the search PATH,
22514 # but as the default location of the library.
22515 hardcode_minus_L_F77=yes
22516 export_dynamic_flag_spec_F77='${wl}-E'
22517 ;;
22518
Reid Spencera773bd52006-08-04 18:18:08 +000022519 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022521 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22522 else
22523 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22524 fi
22525 if test "$with_gnu_ld" = no; then
22526 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22527 hardcode_libdir_separator_F77=:
22528
22529 hardcode_direct_F77=yes
22530 export_dynamic_flag_spec_F77='${wl}-E'
22531
22532 # hardcode_minus_L: Not really in the search PATH,
22533 # but as the default location of the library.
22534 hardcode_minus_L_F77=yes
22535 fi
22536 ;;
22537
22538 hpux11*)
22539 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22540 case $host_cpu in
22541 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022542 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022544 ia64*)
22545 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22546 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022547 *)
22548 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22549 ;;
22550 esac
22551 else
Reid Spencera773bd52006-08-04 18:18:08 +000022552 case $host_cpu in
22553 hppa*64*)
22554 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22555 ;;
22556 ia64*)
22557 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022558 ;;
22559 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022560 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 +000022561 ;;
22562 esac
22563 fi
22564 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22566 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022567
Reid Spencera773bd52006-08-04 18:18:08 +000022568 case $host_cpu in
22569 hppa*64*|ia64*)
22570 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22571 hardcode_direct_F77=no
22572 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022573 ;;
22574 *)
John Criswell47fdd832003-07-14 16:52:07 +000022575 hardcode_direct_F77=yes
22576 export_dynamic_flag_spec_F77='${wl}-E'
22577
22578 # hardcode_minus_L: Not really in the search PATH,
22579 # but as the default location of the library.
22580 hardcode_minus_L_F77=yes
22581 ;;
22582 esac
22583 fi
22584 ;;
22585
22586 irix5* | irix6* | nonstopux*)
22587 if test "$GCC" = yes; then
22588 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'
22589 else
22590 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'
22591 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22592 fi
22593 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22594 hardcode_libdir_separator_F77=:
22595 link_all_deplibs_F77=yes
22596 ;;
22597
22598 netbsd*)
22599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22600 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22601 else
22602 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22603 fi
22604 hardcode_libdir_flag_spec_F77='-R$libdir'
22605 hardcode_direct_F77=yes
22606 hardcode_shlibpath_var_F77=no
22607 ;;
22608
22609 newsos6)
22610 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22611 hardcode_direct_F77=yes
22612 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22613 hardcode_libdir_separator_F77=:
22614 hardcode_shlibpath_var_F77=no
22615 ;;
22616
22617 openbsd*)
22618 hardcode_direct_F77=yes
22619 hardcode_shlibpath_var_F77=no
22620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22621 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022622 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 +000022623 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22624 export_dynamic_flag_spec_F77='${wl}-E'
22625 else
22626 case $host_os in
22627 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22628 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22629 hardcode_libdir_flag_spec_F77='-R$libdir'
22630 ;;
22631 *)
22632 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22633 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22634 ;;
22635 esac
22636 fi
22637 ;;
22638
22639 os2*)
22640 hardcode_libdir_flag_spec_F77='-L$libdir'
22641 hardcode_minus_L_F77=yes
22642 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022643 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 +000022644 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22645 ;;
22646
22647 osf3*)
22648 if test "$GCC" = yes; then
22649 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22650 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'
22651 else
22652 allow_undefined_flag_F77=' -expect_unresolved \*'
22653 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'
22654 fi
22655 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22656 hardcode_libdir_separator_F77=:
22657 ;;
22658
22659 osf4* | osf5*) # as osf3* with the addition of -msym flag
22660 if test "$GCC" = yes; then
22661 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22662 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'
22663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22664 else
22665 allow_undefined_flag_F77=' -expect_unresolved \*'
22666 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 +000022667 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 +000022668 $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 +000022669
John Criswell47fdd832003-07-14 16:52:07 +000022670 # Both c and cxx compiler support -rpath directly
22671 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22672 fi
22673 hardcode_libdir_separator_F77=:
22674 ;;
22675
John Criswell47fdd832003-07-14 16:52:07 +000022676 solaris*)
22677 no_undefined_flag_F77=' -z text'
22678 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022679 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022680 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022681 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22682 $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 +000022683 else
Reid Spencera773bd52006-08-04 18:18:08 +000022684 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022685 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022686 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22687 $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 +000022688 fi
22689 hardcode_libdir_flag_spec_F77='-R$libdir'
22690 hardcode_shlibpath_var_F77=no
22691 case $host_os in
22692 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022693 *)
22694 # The compiler driver will combine linker options so we
22695 # cannot just pass the convience library names through
22696 # without $wl, iff we do not link with $LD.
22697 # Luckily, gcc supports the same syntax we need for Sun Studio.
22698 # Supported since Solaris 2.6 (maybe 2.5.1?)
22699 case $wlarc in
22700 '')
22701 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22702 *)
22703 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' ;;
22704 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022705 esac
22706 link_all_deplibs_F77=yes
22707 ;;
22708
22709 sunos4*)
22710 if test "x$host_vendor" = xsequent; then
22711 # Use $CC to link under sequent, because it throws in some extra .o
22712 # files that make .init and .fini sections work.
22713 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22714 else
22715 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22716 fi
22717 hardcode_libdir_flag_spec_F77='-L$libdir'
22718 hardcode_direct_F77=yes
22719 hardcode_minus_L_F77=yes
22720 hardcode_shlibpath_var_F77=no
22721 ;;
22722
22723 sysv4)
22724 case $host_vendor in
22725 sni)
22726 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22727 hardcode_direct_F77=yes # is this really true???
22728 ;;
22729 siemens)
22730 ## LD is ld it makes a PLAMLIB
22731 ## CC just makes a GrossModule.
22732 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22733 reload_cmds_F77='$CC -r -o $output$reload_objs'
22734 hardcode_direct_F77=no
22735 ;;
22736 motorola)
22737 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22738 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22739 ;;
22740 esac
22741 runpath_var='LD_RUN_PATH'
22742 hardcode_shlibpath_var_F77=no
22743 ;;
22744
22745 sysv4.3*)
22746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22747 hardcode_shlibpath_var_F77=no
22748 export_dynamic_flag_spec_F77='-Bexport'
22749 ;;
22750
22751 sysv4*MP*)
22752 if test -d /usr/nec; then
22753 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22754 hardcode_shlibpath_var_F77=no
22755 runpath_var=LD_RUN_PATH
22756 hardcode_runpath_var=yes
22757 ld_shlibs_F77=yes
22758 fi
22759 ;;
22760
Reid Spencera773bd52006-08-04 18:18:08 +000022761 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22762 no_undefined_flag_F77='${wl}-z,text'
22763 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022764 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022765 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022766
John Criswell47fdd832003-07-14 16:52:07 +000022767 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022768 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 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 +000022770 else
Reid Spencera773bd52006-08-04 18:18:08 +000022771 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22772 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 +000022773 fi
John Criswell47fdd832003-07-14 16:52:07 +000022774 ;;
22775
Reid Spencera773bd52006-08-04 18:18:08 +000022776 sysv5* | sco3.2v5* | sco5v6*)
22777 # Note: We can NOT use -z defs as we might desire, because we do not
22778 # link with -lc, and that would cause any symbols used from libc to
22779 # always be unresolved, which means just about no library would
22780 # ever link correctly. If we're not using GNU ld we use -z text
22781 # though, which does catch some bad symbols but isn't as heavy-handed
22782 # as -z defs.
22783 no_undefined_flag_F77='${wl}-z,text'
22784 allow_undefined_flag_F77='${wl}-z,nodefs'
22785 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022786 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022787 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22788 hardcode_libdir_separator_F77=':'
22789 link_all_deplibs_F77=yes
22790 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022791 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022792
22793 if test "$GCC" = yes; then
22794 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22795 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 else
22797 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22798 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799 fi
John Criswell47fdd832003-07-14 16:52:07 +000022800 ;;
22801
22802 uts4*)
22803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22804 hardcode_libdir_flag_spec_F77='-L$libdir'
22805 hardcode_shlibpath_var_F77=no
22806 ;;
22807
22808 *)
22809 ld_shlibs_F77=no
22810 ;;
22811 esac
22812 fi
22813
Reid Spencera773bd52006-08-04 18:18:08 +000022814{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22815echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022816test "$ld_shlibs_F77" = no && can_build_shared=no
22817
John Criswell47fdd832003-07-14 16:52:07 +000022818#
22819# Do we need to explicitly link libc?
22820#
22821case "x$archive_cmds_need_lc_F77" in
22822x|xyes)
22823 # Assume -lc should be added
22824 archive_cmds_need_lc_F77=yes
22825
22826 if test "$enable_shared" = yes && test "$GCC" = yes; then
22827 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022828 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022829 # FIXME: we may have to deal with multi-command sequences.
22830 ;;
22831 '$CC '*)
22832 # Test whether the compiler implicitly links with -lc since on some
22833 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22834 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022835 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22836echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022837 $rm conftest*
22838 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22839
22840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22841 (eval $ac_compile) 2>&5
22842 ac_status=$?
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } 2>conftest.err; then
22845 soname=conftest
22846 lib=conftest
22847 libobjs=conftest.$ac_objext
22848 deplibs=
22849 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022850 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022851 compiler_flags=-v
22852 linker_flags=-v
22853 verstring=
22854 output_objdir=.
22855 libname=conftest
22856 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22857 allow_undefined_flag_F77=
22858 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22859 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22860 ac_status=$?
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); }
22863 then
22864 archive_cmds_need_lc_F77=no
22865 else
22866 archive_cmds_need_lc_F77=yes
22867 fi
22868 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22869 else
22870 cat conftest.err 1>&5
22871 fi
22872 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022873 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22874echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022875 ;;
22876 esac
22877 fi
22878 ;;
22879esac
22880
Reid Spencera773bd52006-08-04 18:18:08 +000022881{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22882echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022883library_names_spec=
22884libname_spec='lib$name'
22885soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022886shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022887postinstall_cmds=
22888postuninstall_cmds=
22889finish_cmds=
22890finish_eval=
22891shlibpath_var=
22892shlibpath_overrides_runpath=unknown
22893version_type=none
22894dynamic_linker="$host_os ld.so"
22895sys_lib_dlsearch_path_spec="/lib /usr/lib"
22896if test "$GCC" = yes; then
22897 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22898 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22899 # if the path contains ";" then we assume it to be the separator
22900 # otherwise default to the standard path separator (i.e. ":") - it is
22901 # assumed that no part of a normal pathname contains ";" but that should
22902 # okay in the real world where ";" in dirpaths is itself problematic.
22903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22904 else
22905 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22906 fi
22907else
22908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22909fi
22910need_lib_prefix=unknown
22911hardcode_into_libs=no
22912
22913# when you set need_version to no, make sure it does not cause -set_version
22914# flags to be left without arguments
22915need_version=unknown
22916
22917case $host_os in
22918aix3*)
22919 version_type=linux
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22921 shlibpath_var=LIBPATH
22922
22923 # AIX 3 has no versioning support, so we append a major version to the name.
22924 soname_spec='${libname}${release}${shared_ext}$major'
22925 ;;
22926
22927aix4* | aix5*)
22928 version_type=linux
22929 need_lib_prefix=no
22930 need_version=no
22931 hardcode_into_libs=yes
22932 if test "$host_cpu" = ia64; then
22933 # AIX 5 supports IA64
22934 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22935 shlibpath_var=LD_LIBRARY_PATH
22936 else
22937 # With GCC up to 2.95.x, collect2 would create an import file
22938 # for dependence libraries. The import file would start with
22939 # the line `#! .'. This would cause the generated library to
22940 # depend on `.', always an invalid library. This was fixed in
22941 # development snapshots of GCC prior to 3.0.
22942 case $host_os in
22943 aix4 | aix4.[01] | aix4.[01].*)
22944 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22945 echo ' yes '
22946 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22947 :
22948 else
22949 can_build_shared=no
22950 fi
22951 ;;
22952 esac
22953 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22954 # soname into executable. Probably we can add versioning support to
22955 # collect2, so additional links can be useful in future.
22956 if test "$aix_use_runtimelinking" = yes; then
22957 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22958 # instead of lib<name>.a to let people know that these are not
22959 # typical AIX shared libraries.
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 else
22962 # We preserve .a as extension for shared libraries through AIX4.2
22963 # and later when we are not doing run time linking.
22964 library_names_spec='${libname}${release}.a $libname.a'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 fi
22967 shlibpath_var=LIBPATH
22968 fi
22969 ;;
22970
22971amigaos*)
22972 library_names_spec='$libname.ixlibrary $libname.a'
22973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022974 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 +000022975 ;;
22976
22977beos*)
22978 library_names_spec='${libname}${shared_ext}'
22979 dynamic_linker="$host_os ld.so"
22980 shlibpath_var=LIBRARY_PATH
22981 ;;
22982
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022984 version_type=linux
22985 need_version=no
22986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22987 soname_spec='${libname}${release}${shared_ext}$major'
22988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22989 shlibpath_var=LD_LIBRARY_PATH
22990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22992 # the default ld.so.conf also contains /usr/contrib/lib and
22993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22994 # libtool to hard-code these into programs
22995 ;;
22996
22997cygwin* | mingw* | pw32*)
22998 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022999 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023000 need_version=no
23001 need_lib_prefix=no
23002
23003 case $GCC,$host_os in
23004 yes,cygwin* | yes,mingw* | yes,pw32*)
23005 library_names_spec='$libname.dll.a'
23006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023007 postinstall_cmds='base_file=`basename \${file}`~
23008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23009 dldir=$destdir/`dirname \$dlpath`~
23010 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023011 $install_prog $dir/$dlname \$dldir/$dlname~
23012 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023013 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23014 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023015 $rm \$dlpath'
23016 shlibpath_overrides_runpath=yes
23017
23018 case $host_os in
23019 cygwin*)
23020 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23021 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 +000023022 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023023 ;;
23024 mingw*)
23025 # MinGW DLLs use traditional 'lib' prefix
23026 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23027 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23028 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23029 # It is most probably a Windows format PATH printed by
23030 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23031 # path with ; separators, and with drive letters. We can handle the
23032 # drive letters (cygwin fileutils understands them), so leave them,
23033 # especially as we might pass files found there to a mingw objdump,
23034 # which wouldn't understand a cygwinified path. Ahh.
23035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23036 else
23037 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23038 fi
23039 ;;
23040 pw32*)
23041 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023042 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 +000023043 ;;
23044 esac
23045 ;;
23046
23047 *)
23048 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23049 ;;
23050 esac
23051 dynamic_linker='Win32 ld.exe'
23052 # FIXME: first we should search . and the directory the executable is in
23053 shlibpath_var=PATH
23054 ;;
23055
23056darwin* | rhapsody*)
23057 dynamic_linker="$host_os dyld"
23058 version_type=darwin
23059 need_lib_prefix=no
23060 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023061 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023062 soname_spec='${libname}${release}${major}$shared_ext'
23063 shlibpath_overrides_runpath=yes
23064 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023065 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023066 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023067 if test "$GCC" = yes; then
23068 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"`
23069 else
23070 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023071 fi
23072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23073 ;;
23074
23075dgux*)
23076 version_type=linux
23077 need_lib_prefix=no
23078 need_version=no
23079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23080 soname_spec='${libname}${release}${shared_ext}$major'
23081 shlibpath_var=LD_LIBRARY_PATH
23082 ;;
23083
23084freebsd1*)
23085 dynamic_linker=no
23086 ;;
23087
Reid Spencer2706f8c2004-09-19 23:53:36 +000023088kfreebsd*-gnu)
23089 version_type=linux
23090 need_lib_prefix=no
23091 need_version=no
23092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23093 soname_spec='${libname}${release}${shared_ext}$major'
23094 shlibpath_var=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath=no
23096 hardcode_into_libs=yes
23097 dynamic_linker='GNU ld.so'
23098 ;;
23099
Reid Spencera773bd52006-08-04 18:18:08 +000023100freebsd* | dragonfly*)
23101 # DragonFly does not have aout. When/if they implement a new
23102 # versioning mechanism, adjust this.
23103 if test -x /usr/bin/objformat; then
23104 objformat=`/usr/bin/objformat`
23105 else
23106 case $host_os in
23107 freebsd[123]*) objformat=aout ;;
23108 *) objformat=elf ;;
23109 esac
23110 fi
John Criswell47fdd832003-07-14 16:52:07 +000023111 version_type=freebsd-$objformat
23112 case $version_type in
23113 freebsd-elf*)
23114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23115 need_version=no
23116 need_lib_prefix=no
23117 ;;
23118 freebsd-*)
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23120 need_version=yes
23121 ;;
23122 esac
23123 shlibpath_var=LD_LIBRARY_PATH
23124 case $host_os in
23125 freebsd2*)
23126 shlibpath_overrides_runpath=yes
23127 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023128 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023129 shlibpath_overrides_runpath=yes
23130 hardcode_into_libs=yes
23131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023134 shlibpath_overrides_runpath=no
23135 hardcode_into_libs=yes
23136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023137 freebsd*) # from 4.6 on
23138 shlibpath_overrides_runpath=yes
23139 hardcode_into_libs=yes
23140 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023141 esac
23142 ;;
23143
23144gnu*)
23145 version_type=linux
23146 need_lib_prefix=no
23147 need_version=no
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 hardcode_into_libs=yes
23152 ;;
23153
23154hpux9* | hpux10* | hpux11*)
23155 # Give a soname corresponding to the major version so that dld.sl refuses to
23156 # link against other versions.
23157 version_type=sunos
23158 need_lib_prefix=no
23159 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023160 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023161 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023162 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023163 hardcode_into_libs=yes
23164 dynamic_linker="$host_os dld.so"
23165 shlibpath_var=LD_LIBRARY_PATH
23166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23168 soname_spec='${libname}${release}${shared_ext}$major'
23169 if test "X$HPUX_IA64_MODE" = X32; then
23170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23171 else
23172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23173 fi
23174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23175 ;;
23176 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023178 hardcode_into_libs=yes
23179 dynamic_linker="$host_os dld.sl"
23180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23183 soname_spec='${libname}${release}${shared_ext}$major'
23184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23186 ;;
23187 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023189 dynamic_linker="$host_os dld.sl"
23190 shlibpath_var=SHLIB_PATH
23191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23193 soname_spec='${libname}${release}${shared_ext}$major'
23194 ;;
23195 esac
23196 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23197 postinstall_cmds='chmod 555 $lib'
23198 ;;
23199
Reid Spencera773bd52006-08-04 18:18:08 +000023200interix3*)
23201 version_type=linux
23202 need_lib_prefix=no
23203 need_version=no
23204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23205 soname_spec='${libname}${release}${shared_ext}$major'
23206 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23207 shlibpath_var=LD_LIBRARY_PATH
23208 shlibpath_overrides_runpath=no
23209 hardcode_into_libs=yes
23210 ;;
23211
John Criswell47fdd832003-07-14 16:52:07 +000023212irix5* | irix6* | nonstopux*)
23213 case $host_os in
23214 nonstopux*) version_type=nonstopux ;;
23215 *)
23216 if test "$lt_cv_prog_gnu_ld" = yes; then
23217 version_type=linux
23218 else
23219 version_type=irix
23220 fi ;;
23221 esac
23222 need_lib_prefix=no
23223 need_version=no
23224 soname_spec='${libname}${release}${shared_ext}$major'
23225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23226 case $host_os in
23227 irix5* | nonstopux*)
23228 libsuff= shlibsuff=
23229 ;;
23230 *)
23231 case $LD in # libtool.m4 will add one of these switches to LD
23232 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23233 libsuff= shlibsuff= libmagic=32-bit;;
23234 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23235 libsuff=32 shlibsuff=N32 libmagic=N32;;
23236 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23237 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23238 *) libsuff= shlibsuff= libmagic=never-match;;
23239 esac
23240 ;;
23241 esac
23242 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23243 shlibpath_overrides_runpath=no
23244 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23245 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23246 hardcode_into_libs=yes
23247 ;;
23248
23249# No shared lib support for Linux oldld, aout, or coff.
23250linux*oldld* | linux*aout* | linux*coff*)
23251 dynamic_linker=no
23252 ;;
23253
23254# This must be Linux ELF.
23255linux*)
23256 version_type=linux
23257 need_lib_prefix=no
23258 need_version=no
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23262 shlibpath_var=LD_LIBRARY_PATH
23263 shlibpath_overrides_runpath=no
23264 # This implies no fast_install, which is unacceptable.
23265 # Some rework will be needed to allow for fast_install
23266 # before this can be enabled.
23267 hardcode_into_libs=yes
23268
Reid Spencer2706f8c2004-09-19 23:53:36 +000023269 # Append ld.so.conf contents to the search path
23270 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023271 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 +000023272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23273 fi
23274
John Criswell47fdd832003-07-14 16:52:07 +000023275 # We used to test for /lib/ld.so.1 and disable shared libraries on
23276 # powerpc, because MkLinux only supported shared libraries with the
23277 # GNU dynamic linker. Since this was broken with cross compilers,
23278 # most powerpc-linux boxes support dynamic linking these days and
23279 # people can always --disable-shared, the test was removed, and we
23280 # assume the GNU/Linux dynamic linker is in use.
23281 dynamic_linker='GNU/Linux ld.so'
23282 ;;
23283
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284knetbsd*-gnu)
23285 version_type=linux
23286 need_lib_prefix=no
23287 need_version=no
23288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23289 soname_spec='${libname}${release}${shared_ext}$major'
23290 shlibpath_var=LD_LIBRARY_PATH
23291 shlibpath_overrides_runpath=no
23292 hardcode_into_libs=yes
23293 dynamic_linker='GNU ld.so'
23294 ;;
23295
John Criswell47fdd832003-07-14 16:52:07 +000023296netbsd*)
23297 version_type=sunos
23298 need_lib_prefix=no
23299 need_version=no
23300 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23303 dynamic_linker='NetBSD (a.out) ld.so'
23304 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023306 soname_spec='${libname}${release}${shared_ext}$major'
23307 dynamic_linker='NetBSD ld.elf_so'
23308 fi
23309 shlibpath_var=LD_LIBRARY_PATH
23310 shlibpath_overrides_runpath=yes
23311 hardcode_into_libs=yes
23312 ;;
23313
23314newsos6)
23315 version_type=linux
23316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23317 shlibpath_var=LD_LIBRARY_PATH
23318 shlibpath_overrides_runpath=yes
23319 ;;
23320
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023322 version_type=linux
23323 need_lib_prefix=no
23324 need_version=no
23325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23326 soname_spec='${libname}${release}${shared_ext}$major'
23327 shlibpath_var=LD_LIBRARY_PATH
23328 shlibpath_overrides_runpath=yes
23329 ;;
23330
23331openbsd*)
23332 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023333 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023334 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023335 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23336 case $host_os in
23337 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23338 *) need_version=no ;;
23339 esac
John Criswell47fdd832003-07-14 16:52:07 +000023340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23342 shlibpath_var=LD_LIBRARY_PATH
23343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23344 case $host_os in
23345 openbsd2.[89] | openbsd2.[89].*)
23346 shlibpath_overrides_runpath=no
23347 ;;
23348 *)
23349 shlibpath_overrides_runpath=yes
23350 ;;
23351 esac
23352 else
23353 shlibpath_overrides_runpath=yes
23354 fi
23355 ;;
23356
23357os2*)
23358 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023359 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023360 need_lib_prefix=no
23361 library_names_spec='$libname${shared_ext} $libname.a'
23362 dynamic_linker='OS/2 ld.exe'
23363 shlibpath_var=LIBPATH
23364 ;;
23365
23366osf3* | osf4* | osf5*)
23367 version_type=osf
23368 need_lib_prefix=no
23369 need_version=no
23370 soname_spec='${libname}${release}${shared_ext}$major'
23371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23372 shlibpath_var=LD_LIBRARY_PATH
23373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23375 ;;
23376
John Criswell47fdd832003-07-14 16:52:07 +000023377solaris*)
23378 version_type=linux
23379 need_lib_prefix=no
23380 need_version=no
23381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23382 soname_spec='${libname}${release}${shared_ext}$major'
23383 shlibpath_var=LD_LIBRARY_PATH
23384 shlibpath_overrides_runpath=yes
23385 hardcode_into_libs=yes
23386 # ldd complains unless libraries are executable
23387 postinstall_cmds='chmod +x $lib'
23388 ;;
23389
23390sunos4*)
23391 version_type=sunos
23392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23393 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23394 shlibpath_var=LD_LIBRARY_PATH
23395 shlibpath_overrides_runpath=yes
23396 if test "$with_gnu_ld" = yes; then
23397 need_lib_prefix=no
23398 fi
23399 need_version=yes
23400 ;;
23401
Reid Spencera773bd52006-08-04 18:18:08 +000023402sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023403 version_type=linux
23404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23405 soname_spec='${libname}${release}${shared_ext}$major'
23406 shlibpath_var=LD_LIBRARY_PATH
23407 case $host_vendor in
23408 sni)
23409 shlibpath_overrides_runpath=no
23410 need_lib_prefix=no
23411 export_dynamic_flag_spec='${wl}-Blargedynsym'
23412 runpath_var=LD_RUN_PATH
23413 ;;
23414 siemens)
23415 need_lib_prefix=no
23416 ;;
23417 motorola)
23418 need_lib_prefix=no
23419 need_version=no
23420 shlibpath_overrides_runpath=no
23421 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23422 ;;
23423 esac
23424 ;;
23425
23426sysv4*MP*)
23427 if test -d /usr/nec ;then
23428 version_type=linux
23429 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23430 soname_spec='$libname${shared_ext}.$major'
23431 shlibpath_var=LD_LIBRARY_PATH
23432 fi
23433 ;;
23434
Reid Spencera773bd52006-08-04 18:18:08 +000023435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23436 version_type=freebsd-elf
23437 need_lib_prefix=no
23438 need_version=no
23439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23440 soname_spec='${libname}${release}${shared_ext}$major'
23441 shlibpath_var=LD_LIBRARY_PATH
23442 hardcode_into_libs=yes
23443 if test "$with_gnu_ld" = yes; then
23444 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23445 shlibpath_overrides_runpath=no
23446 else
23447 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23448 shlibpath_overrides_runpath=yes
23449 case $host_os in
23450 sco3.2v5*)
23451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23452 ;;
23453 esac
23454 fi
23455 sys_lib_dlsearch_path_spec='/usr/lib'
23456 ;;
23457
John Criswell47fdd832003-07-14 16:52:07 +000023458uts4*)
23459 version_type=linux
23460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23461 soname_spec='${libname}${release}${shared_ext}$major'
23462 shlibpath_var=LD_LIBRARY_PATH
23463 ;;
23464
23465*)
23466 dynamic_linker=no
23467 ;;
23468esac
Reid Spencera773bd52006-08-04 18:18:08 +000023469{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23470echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023471test "$dynamic_linker" = no && can_build_shared=no
23472
Reid Spencera773bd52006-08-04 18:18:08 +000023473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23474if test "$GCC" = yes; then
23475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23476fi
23477
23478{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23479echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023480hardcode_action_F77=
23481if test -n "$hardcode_libdir_flag_spec_F77" || \
23482 test -n "$runpath_var_F77" || \
23483 test "X$hardcode_automatic_F77" = "Xyes" ; then
23484
23485 # We can hardcode non-existant directories.
23486 if test "$hardcode_direct_F77" != no &&
23487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23488 # have to relink, otherwise we might link with an installed library
23489 # when we should be linking with a yet-to-be-installed one
23490 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23491 test "$hardcode_minus_L_F77" != no; then
23492 # Linking always hardcodes the temporary library directory.
23493 hardcode_action_F77=relink
23494 else
23495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23496 hardcode_action_F77=immediate
23497 fi
23498else
23499 # We cannot hardcode anything, or else we can only hardcode existing
23500 # directories.
23501 hardcode_action_F77=unsupported
23502fi
Reid Spencera773bd52006-08-04 18:18:08 +000023503{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23504echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023505
23506if test "$hardcode_action_F77" = relink; then
23507 # Fast installation is not supported
23508 enable_fast_install=no
23509elif test "$shlibpath_overrides_runpath" = yes ||
23510 test "$enable_shared" = no; then
23511 # Fast installation is not necessary
23512 enable_fast_install=needless
23513fi
23514
John Criswell47fdd832003-07-14 16:52:07 +000023515
23516# The else clause should only fire when bootstrapping the
23517# libtool distribution, otherwise you forgot to ship ltmain.sh
23518# with your package, and you will get complaints that there are
23519# no rules to generate ltmain.sh.
23520if test -f "$ltmain"; then
23521 # See if we are running on zsh, and set the options which allow our commands through
23522 # without removal of \ escapes.
23523 if test -n "${ZSH_VERSION+set}" ; then
23524 setopt NO_GLOB_SUBST
23525 fi
23526 # Now quote all the things that may contain metacharacters while being
23527 # careful not to overquote the AC_SUBSTed values. We take copies of the
23528 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023529 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 +000023530 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23533 deplibs_check_method reload_flag reload_cmds need_locks \
23534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23535 lt_cv_sys_global_symbol_to_c_name_address \
23536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23537 old_postinstall_cmds old_postuninstall_cmds \
23538 compiler_F77 \
23539 CC_F77 \
23540 LD_F77 \
23541 lt_prog_compiler_wl_F77 \
23542 lt_prog_compiler_pic_F77 \
23543 lt_prog_compiler_static_F77 \
23544 lt_prog_compiler_no_builtin_flag_F77 \
23545 export_dynamic_flag_spec_F77 \
23546 thread_safe_flag_spec_F77 \
23547 whole_archive_flag_spec_F77 \
23548 enable_shared_with_static_runtimes_F77 \
23549 old_archive_cmds_F77 \
23550 old_archive_from_new_cmds_F77 \
23551 predep_objects_F77 \
23552 postdep_objects_F77 \
23553 predeps_F77 \
23554 postdeps_F77 \
23555 compiler_lib_search_path_F77 \
23556 archive_cmds_F77 \
23557 archive_expsym_cmds_F77 \
23558 postinstall_cmds_F77 \
23559 postuninstall_cmds_F77 \
23560 old_archive_from_expsyms_cmds_F77 \
23561 allow_undefined_flag_F77 \
23562 no_undefined_flag_F77 \
23563 export_symbols_cmds_F77 \
23564 hardcode_libdir_flag_spec_F77 \
23565 hardcode_libdir_flag_spec_ld_F77 \
23566 hardcode_libdir_separator_F77 \
23567 hardcode_automatic_F77 \
23568 module_cmds_F77 \
23569 module_expsym_cmds_F77 \
23570 lt_cv_prog_compiler_c_o_F77 \
23571 exclude_expsyms_F77 \
23572 include_expsyms_F77; do
23573
23574 case $var in
23575 old_archive_cmds_F77 | \
23576 old_archive_from_new_cmds_F77 | \
23577 archive_cmds_F77 | \
23578 archive_expsym_cmds_F77 | \
23579 module_cmds_F77 | \
23580 module_expsym_cmds_F77 | \
23581 old_archive_from_expsyms_cmds_F77 | \
23582 export_symbols_cmds_F77 | \
23583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23584 postinstall_cmds | postuninstall_cmds | \
23585 old_postinstall_cmds | old_postuninstall_cmds | \
23586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23587 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023588 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 +000023589 ;;
23590 *)
23591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23592 ;;
23593 esac
23594 done
23595
23596 case $lt_echo in
23597 *'\$0 --fallback-echo"')
23598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23599 ;;
23600 esac
23601
23602cfgfile="$ofile"
23603
23604 cat <<__EOF__ >> "$cfgfile"
23605# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23606
23607# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23608
23609# Shell to use when invoking shell scripts.
23610SHELL=$lt_SHELL
23611
23612# Whether or not to build shared libraries.
23613build_libtool_libs=$enable_shared
23614
23615# Whether or not to build static libraries.
23616build_old_libs=$enable_static
23617
23618# Whether or not to add -lc for building shared libraries.
23619build_libtool_need_lc=$archive_cmds_need_lc_F77
23620
23621# Whether or not to disallow shared libs when runtime libs are static
23622allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23623
23624# Whether or not to optimize for fast installation.
23625fast_install=$enable_fast_install
23626
23627# The host system.
23628host_alias=$host_alias
23629host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023630host_os=$host_os
23631
23632# The build system.
23633build_alias=$build_alias
23634build=$build
23635build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023636
23637# An echo program that does not interpret backslashes.
23638echo=$lt_echo
23639
23640# The archiver.
23641AR=$lt_AR
23642AR_FLAGS=$lt_AR_FLAGS
23643
23644# A C compiler.
23645LTCC=$lt_LTCC
23646
Reid Spencera773bd52006-08-04 18:18:08 +000023647# LTCC compiler flags.
23648LTCFLAGS=$lt_LTCFLAGS
23649
John Criswell47fdd832003-07-14 16:52:07 +000023650# A language-specific compiler.
23651CC=$lt_compiler_F77
23652
23653# Is the compiler the GNU C compiler?
23654with_gcc=$GCC_F77
23655
23656# An ERE matcher.
23657EGREP=$lt_EGREP
23658
23659# The linker used to build libraries.
23660LD=$lt_LD_F77
23661
23662# Whether we need hard or soft links.
23663LN_S=$lt_LN_S
23664
23665# A BSD-compatible nm program.
23666NM=$lt_NM
23667
23668# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023669STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023670
23671# Used to examine libraries when file_magic_cmd begins "file"
23672MAGIC_CMD=$MAGIC_CMD
23673
23674# Used on cygwin: DLL creation program.
23675DLLTOOL="$DLLTOOL"
23676
23677# Used on cygwin: object dumper.
23678OBJDUMP="$OBJDUMP"
23679
23680# Used on cygwin: assembler.
23681AS="$AS"
23682
23683# The name of the directory that contains temporary libtool files.
23684objdir=$objdir
23685
23686# How to create reloadable object files.
23687reload_flag=$lt_reload_flag
23688reload_cmds=$lt_reload_cmds
23689
23690# How to pass a linker flag through the compiler.
23691wl=$lt_lt_prog_compiler_wl_F77
23692
23693# Object file suffix (normally "o").
23694objext="$ac_objext"
23695
23696# Old archive suffix (normally "a").
23697libext="$libext"
23698
23699# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023700shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023701
23702# Executable file suffix (normally "").
23703exeext="$exeext"
23704
23705# Additional compiler flags for building library objects.
23706pic_flag=$lt_lt_prog_compiler_pic_F77
23707pic_mode=$pic_mode
23708
23709# What is the maximum length of a command?
23710max_cmd_len=$lt_cv_sys_max_cmd_len
23711
23712# Does compiler simultaneously support -c and -o options?
23713compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23714
Reid Spencera773bd52006-08-04 18:18:08 +000023715# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023716need_locks=$lt_need_locks
23717
23718# Do we need the lib prefix for modules?
23719need_lib_prefix=$need_lib_prefix
23720
23721# Do we need a version for libraries?
23722need_version=$need_version
23723
23724# Whether dlopen is supported.
23725dlopen_support=$enable_dlopen
23726
23727# Whether dlopen of programs is supported.
23728dlopen_self=$enable_dlopen_self
23729
23730# Whether dlopen of statically linked programs is supported.
23731dlopen_self_static=$enable_dlopen_self_static
23732
23733# Compiler flag to prevent dynamic linking.
23734link_static_flag=$lt_lt_prog_compiler_static_F77
23735
23736# Compiler flag to turn off builtin functions.
23737no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23738
23739# Compiler flag to allow reflexive dlopens.
23740export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23741
23742# Compiler flag to generate shared objects directly from archives.
23743whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23744
23745# Compiler flag to generate thread-safe objects.
23746thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23747
23748# Library versioning type.
23749version_type=$version_type
23750
23751# Format of library name prefix.
23752libname_spec=$lt_libname_spec
23753
23754# List of archive names. First name is the real one, the rest are links.
23755# The last name is the one that the linker finds with -lNAME.
23756library_names_spec=$lt_library_names_spec
23757
23758# The coded name of the library, if different from the real name.
23759soname_spec=$lt_soname_spec
23760
23761# Commands used to build and install an old-style archive.
23762RANLIB=$lt_RANLIB
23763old_archive_cmds=$lt_old_archive_cmds_F77
23764old_postinstall_cmds=$lt_old_postinstall_cmds
23765old_postuninstall_cmds=$lt_old_postuninstall_cmds
23766
23767# Create an old-style archive from a shared archive.
23768old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23769
23770# Create a temporary old-style archive to link instead of a shared archive.
23771old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23772
23773# Commands used to build and install a shared archive.
23774archive_cmds=$lt_archive_cmds_F77
23775archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23776postinstall_cmds=$lt_postinstall_cmds
23777postuninstall_cmds=$lt_postuninstall_cmds
23778
23779# Commands used to build a loadable module (assumed same as above if empty)
23780module_cmds=$lt_module_cmds_F77
23781module_expsym_cmds=$lt_module_expsym_cmds_F77
23782
23783# Commands to strip libraries.
23784old_striplib=$lt_old_striplib
23785striplib=$lt_striplib
23786
23787# Dependencies to place before the objects being linked to create a
23788# shared library.
23789predep_objects=$lt_predep_objects_F77
23790
23791# Dependencies to place after the objects being linked to create a
23792# shared library.
23793postdep_objects=$lt_postdep_objects_F77
23794
23795# Dependencies to place before the objects being linked to create a
23796# shared library.
23797predeps=$lt_predeps_F77
23798
23799# Dependencies to place after the objects being linked to create a
23800# shared library.
23801postdeps=$lt_postdeps_F77
23802
23803# The library search path used internally by the compiler when linking
23804# a shared library.
23805compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23806
23807# Method to check whether dependent libraries are shared objects.
23808deplibs_check_method=$lt_deplibs_check_method
23809
23810# Command to use when deplibs_check_method == file_magic.
23811file_magic_cmd=$lt_file_magic_cmd
23812
23813# Flag that allows shared libraries with undefined symbols to be built.
23814allow_undefined_flag=$lt_allow_undefined_flag_F77
23815
23816# Flag that forces no undefined symbols.
23817no_undefined_flag=$lt_no_undefined_flag_F77
23818
23819# Commands used to finish a libtool library installation in a directory.
23820finish_cmds=$lt_finish_cmds
23821
23822# Same as above, but a single script fragment to be evaled but not shown.
23823finish_eval=$lt_finish_eval
23824
23825# Take the output of nm and produce a listing of raw symbols and C names.
23826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23827
23828# Transform the output of nm in a proper C declaration
23829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23830
23831# Transform the output of nm in a C name address pair
23832global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23833
23834# This is the shared library runtime path variable.
23835runpath_var=$runpath_var
23836
23837# This is the shared library path variable.
23838shlibpath_var=$shlibpath_var
23839
23840# Is shlibpath searched before the hard-coded library search path?
23841shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23842
23843# How to hardcode a shared library path into an executable.
23844hardcode_action=$hardcode_action_F77
23845
23846# Whether we should hardcode library paths into libraries.
23847hardcode_into_libs=$hardcode_into_libs
23848
23849# Flag to hardcode \$libdir into a binary during linking.
23850# This must work even if \$libdir does not exist.
23851hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23852
23853# If ld is used when linking, flag to hardcode \$libdir into
23854# a binary during linking. This must work even if \$libdir does
23855# not exist.
23856hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23857
23858# Whether we need a single -rpath flag with a separated argument.
23859hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23860
23861# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23862# resulting binary.
23863hardcode_direct=$hardcode_direct_F77
23864
23865# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23866# resulting binary.
23867hardcode_minus_L=$hardcode_minus_L_F77
23868
23869# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23870# the resulting binary.
23871hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23872
23873# Set to yes if building a shared library automatically hardcodes DIR into the library
23874# and all subsequent libraries and executables linked against it.
23875hardcode_automatic=$hardcode_automatic_F77
23876
23877# Variables whose values should be saved in libtool wrapper scripts and
23878# restored at relink time.
23879variables_saved_for_relink="$variables_saved_for_relink"
23880
23881# Whether libtool must link a program against all its dependency libraries.
23882link_all_deplibs=$link_all_deplibs_F77
23883
23884# Compile-time system search path for libraries
23885sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23886
23887# Run-time system search path for libraries
23888sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23889
23890# Fix the shell variable \$srcfile for the compiler.
23891fix_srcfile_path="$fix_srcfile_path_F77"
23892
23893# Set to yes if exported symbols are required.
23894always_export_symbols=$always_export_symbols_F77
23895
23896# The commands to list exported symbols.
23897export_symbols_cmds=$lt_export_symbols_cmds_F77
23898
23899# The commands to extract the exported symbol list from a shared archive.
23900extract_expsyms_cmds=$lt_extract_expsyms_cmds
23901
23902# Symbols that should not be listed in the preloaded symbols.
23903exclude_expsyms=$lt_exclude_expsyms_F77
23904
23905# Symbols that must always be exported.
23906include_expsyms=$lt_include_expsyms_F77
23907
23908# ### END LIBTOOL TAG CONFIG: $tagname
23909
23910__EOF__
23911
23912
23913else
23914 # If there is no Makefile yet, we rely on a make rule to execute
23915 # `config.status --recheck' to rerun these tests and create the
23916 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23918 if test -f "$ltmain_in"; then
23919 test -f Makefile && make "$ltmain"
23920 fi
John Criswell47fdd832003-07-14 16:52:07 +000023921fi
23922
23923
23924ac_ext=c
23925ac_cpp='$CPP $CPPFLAGS'
23926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23928ac_compiler_gnu=$ac_cv_c_compiler_gnu
23929
23930CC="$lt_save_CC"
23931
23932 else
23933 tagname=""
23934 fi
23935 ;;
23936
23937 GCJ)
23938 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023939 ac_ext=c
23940ac_cpp='$CPP $CPPFLAGS'
23941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23943ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023944
23945
23946# Source file extension for Java test sources.
23947ac_ext=java
23948
23949# Object file extension for compiled Java test sources.
23950objext=o
23951objext_GCJ=$objext
23952
23953# Code to be used in simple compile tests
23954lt_simple_compile_test_code="class foo {}\n"
23955
23956# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023957lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023958
23959# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23960
23961# If no C compiler was specified, use CC.
23962LTCC=${LTCC-"$CC"}
23963
Reid Spencera773bd52006-08-04 18:18:08 +000023964# If no C compiler flags were specified, use CFLAGS.
23965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23966
John Criswell47fdd832003-07-14 16:52:07 +000023967# Allow CC to be a program name with arguments.
23968compiler=$CC
23969
23970
Reid Spencera773bd52006-08-04 18:18:08 +000023971# save warnings/boilerplate of simple test code
23972ac_outfile=conftest.$ac_objext
23973printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23974eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23975_lt_compiler_boilerplate=`cat conftest.err`
23976$rm conftest*
23977
23978ac_outfile=conftest.$ac_objext
23979printf "$lt_simple_link_test_code" >conftest.$ac_ext
23980eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23981_lt_linker_boilerplate=`cat conftest.err`
23982$rm conftest*
23983
23984
John Criswell47fdd832003-07-14 16:52:07 +000023985# Allow CC to be a program name with arguments.
23986lt_save_CC="$CC"
23987CC=${GCJ-"gcj"}
23988compiler=$CC
23989compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023990for cc_temp in $compiler""; do
23991 case $cc_temp in
23992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23994 \-*) ;;
23995 *) break;;
23996 esac
23997done
23998cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23999
John Criswell47fdd832003-07-14 16:52:07 +000024000
24001# GCJ did not exist at the time GCC didn't implicitly link libc in.
24002archive_cmds_need_lc_GCJ=no
24003
Reid Spencera773bd52006-08-04 18:18:08 +000024004old_archive_cmds_GCJ=$old_archive_cmds
24005
John Criswell47fdd832003-07-14 16:52:07 +000024006
24007lt_prog_compiler_no_builtin_flag_GCJ=
24008
24009if test "$GCC" = yes; then
24010 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24011
Reid Spencer2706f8c2004-09-19 23:53:36 +000024012
Reid Spencera773bd52006-08-04 18:18:08 +000024013{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24014echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024015if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24016 echo $ECHO_N "(cached) $ECHO_C" >&6
24017else
24018 lt_cv_prog_compiler_rtti_exceptions=no
24019 ac_outfile=conftest.$ac_objext
24020 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24021 lt_compiler_flag="-fno-rtti -fno-exceptions"
24022 # Insert the option either (1) after the last *FLAGS variable, or
24023 # (2) before a word containing "conftest.", or (3) at the end.
24024 # Note that $ac_compile itself does not contain backslashes and begins
24025 # with a dollar sign (not a hyphen), so the echo should work correctly.
24026 # The option is referenced via a variable to avoid confusing sed.
24027 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24030 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024031 (eval echo "\"\$as_me:24031: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024032 (eval "$lt_compile" 2>conftest.err)
24033 ac_status=$?
24034 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024035 echo "$as_me:24035: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024036 if (exit $ac_status) && test -s "$ac_outfile"; then
24037 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024038 # So say no if there are warnings other than the usual output.
24039 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24041 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024042 lt_cv_prog_compiler_rtti_exceptions=yes
24043 fi
24044 fi
24045 $rm conftest*
24046
24047fi
Reid Spencera773bd52006-08-04 18:18:08 +000024048{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24049echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024050
24051if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24052 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24053else
24054 :
24055fi
24056
24057fi
24058
24059lt_prog_compiler_wl_GCJ=
24060lt_prog_compiler_pic_GCJ=
24061lt_prog_compiler_static_GCJ=
24062
Reid Spencera773bd52006-08-04 18:18:08 +000024063{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24064echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024065
24066 if test "$GCC" = yes; then
24067 lt_prog_compiler_wl_GCJ='-Wl,'
24068 lt_prog_compiler_static_GCJ='-static'
24069
24070 case $host_os in
24071 aix*)
24072 # All AIX code is PIC.
24073 if test "$host_cpu" = ia64; then
24074 # AIX 5 now supports IA64 processor
24075 lt_prog_compiler_static_GCJ='-Bstatic'
24076 fi
24077 ;;
24078
24079 amigaos*)
24080 # FIXME: we need at least 68020 code to build shared libraries, but
24081 # adding the `-m68020' flag to GCC prevents building anything better,
24082 # like `-m68040'.
24083 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24084 ;;
24085
24086 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24087 # PIC is the default for these OSes.
24088 ;;
24089
24090 mingw* | pw32* | os2*)
24091 # This hack is so that the source file can tell whether it is being
24092 # built for inclusion in a dll (and should export symbols for example).
24093 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24094 ;;
24095
24096 darwin* | rhapsody*)
24097 # PIC is the default on this platform
24098 # Common symbols not allowed in MH_DYLIB files
24099 lt_prog_compiler_pic_GCJ='-fno-common'
24100 ;;
24101
Reid Spencera773bd52006-08-04 18:18:08 +000024102 interix3*)
24103 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24104 # Instead, we relocate shared libraries at runtime.
24105 ;;
24106
John Criswell47fdd832003-07-14 16:52:07 +000024107 msdosdjgpp*)
24108 # Just because we use GCC doesn't mean we suddenly get shared libraries
24109 # on systems that don't support them.
24110 lt_prog_compiler_can_build_shared_GCJ=no
24111 enable_shared=no
24112 ;;
24113
24114 sysv4*MP*)
24115 if test -d /usr/nec; then
24116 lt_prog_compiler_pic_GCJ=-Kconform_pic
24117 fi
24118 ;;
24119
24120 hpux*)
24121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24122 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024123 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024124 hppa*64*|ia64*)
24125 # +Z the default
24126 ;;
24127 *)
24128 lt_prog_compiler_pic_GCJ='-fPIC'
24129 ;;
24130 esac
24131 ;;
24132
24133 *)
24134 lt_prog_compiler_pic_GCJ='-fPIC'
24135 ;;
24136 esac
24137 else
24138 # PORTME Check for flag to pass linker flags through the system compiler.
24139 case $host_os in
24140 aix*)
24141 lt_prog_compiler_wl_GCJ='-Wl,'
24142 if test "$host_cpu" = ia64; then
24143 # AIX 5 now supports IA64 processor
24144 lt_prog_compiler_static_GCJ='-Bstatic'
24145 else
24146 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24147 fi
24148 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024149 darwin*)
24150 # PIC is the default on this platform
24151 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024152 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024153 xlc*)
24154 lt_prog_compiler_pic_GCJ='-qnocommon'
24155 lt_prog_compiler_wl_GCJ='-Wl,'
24156 ;;
24157 esac
24158 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024159
24160 mingw* | pw32* | os2*)
24161 # This hack is so that the source file can tell whether it is being
24162 # built for inclusion in a dll (and should export symbols for example).
24163 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24164 ;;
24165
24166 hpux9* | hpux10* | hpux11*)
24167 lt_prog_compiler_wl_GCJ='-Wl,'
24168 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24169 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024170 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024171 hppa*64*|ia64*)
24172 # +Z the default
24173 ;;
24174 *)
24175 lt_prog_compiler_pic_GCJ='+Z'
24176 ;;
24177 esac
24178 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24179 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24180 ;;
24181
24182 irix5* | irix6* | nonstopux*)
24183 lt_prog_compiler_wl_GCJ='-Wl,'
24184 # PIC (with -KPIC) is the default.
24185 lt_prog_compiler_static_GCJ='-non_shared'
24186 ;;
24187
24188 newsos6)
24189 lt_prog_compiler_pic_GCJ='-KPIC'
24190 lt_prog_compiler_static_GCJ='-Bstatic'
24191 ;;
24192
24193 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024194 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024195 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024196 lt_prog_compiler_wl_GCJ='-Wl,'
24197 lt_prog_compiler_pic_GCJ='-KPIC'
24198 lt_prog_compiler_static_GCJ='-static'
24199 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024200 pgcc* | pgf77* | pgf90* | pgf95*)
24201 # Portland Group compilers (*not* the Pentium gcc compiler,
24202 # which looks to be a dead project)
24203 lt_prog_compiler_wl_GCJ='-Wl,'
24204 lt_prog_compiler_pic_GCJ='-fpic'
24205 lt_prog_compiler_static_GCJ='-Bstatic'
24206 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024207 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024208 lt_prog_compiler_wl_GCJ='-Wl,'
24209 # All Alpha code is PIC.
24210 lt_prog_compiler_static_GCJ='-non_shared'
24211 ;;
24212 esac
24213 ;;
24214
24215 osf3* | osf4* | osf5*)
24216 lt_prog_compiler_wl_GCJ='-Wl,'
24217 # All OSF/1 code is PIC.
24218 lt_prog_compiler_static_GCJ='-non_shared'
24219 ;;
24220
John Criswell47fdd832003-07-14 16:52:07 +000024221 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024222 lt_prog_compiler_pic_GCJ='-KPIC'
24223 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024224 case $cc_basename in
24225 f77* | f90* | f95*)
24226 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24227 *)
24228 lt_prog_compiler_wl_GCJ='-Wl,';;
24229 esac
John Criswell47fdd832003-07-14 16:52:07 +000024230 ;;
24231
24232 sunos4*)
24233 lt_prog_compiler_wl_GCJ='-Qoption ld '
24234 lt_prog_compiler_pic_GCJ='-PIC'
24235 lt_prog_compiler_static_GCJ='-Bstatic'
24236 ;;
24237
Reid Spencera773bd52006-08-04 18:18:08 +000024238 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024239 lt_prog_compiler_wl_GCJ='-Wl,'
24240 lt_prog_compiler_pic_GCJ='-KPIC'
24241 lt_prog_compiler_static_GCJ='-Bstatic'
24242 ;;
24243
24244 sysv4*MP*)
24245 if test -d /usr/nec ;then
24246 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24247 lt_prog_compiler_static_GCJ='-Bstatic'
24248 fi
24249 ;;
24250
Reid Spencera773bd52006-08-04 18:18:08 +000024251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24252 lt_prog_compiler_wl_GCJ='-Wl,'
24253 lt_prog_compiler_pic_GCJ='-KPIC'
24254 lt_prog_compiler_static_GCJ='-Bstatic'
24255 ;;
24256
24257 unicos*)
24258 lt_prog_compiler_wl_GCJ='-Wl,'
24259 lt_prog_compiler_can_build_shared_GCJ=no
24260 ;;
24261
John Criswell47fdd832003-07-14 16:52:07 +000024262 uts4*)
24263 lt_prog_compiler_pic_GCJ='-pic'
24264 lt_prog_compiler_static_GCJ='-Bstatic'
24265 ;;
24266
24267 *)
24268 lt_prog_compiler_can_build_shared_GCJ=no
24269 ;;
24270 esac
24271 fi
24272
Reid Spencera773bd52006-08-04 18:18:08 +000024273{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24274echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024275
24276#
24277# Check to make sure the PIC flag actually works.
24278#
24279if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024280
Reid Spencera773bd52006-08-04 18:18:08 +000024281{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24282echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024283if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24285else
24286 lt_prog_compiler_pic_works_GCJ=no
24287 ac_outfile=conftest.$ac_objext
24288 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24289 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24290 # Insert the option either (1) after the last *FLAGS variable, or
24291 # (2) before a word containing "conftest.", or (3) at the end.
24292 # Note that $ac_compile itself does not contain backslashes and begins
24293 # with a dollar sign (not a hyphen), so the echo should work correctly.
24294 # The option is referenced via a variable to avoid confusing sed.
24295 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24298 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024299 (eval echo "\"\$as_me:24299: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024300 (eval "$lt_compile" 2>conftest.err)
24301 ac_status=$?
24302 cat conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024303 echo "$as_me:24303: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024304 if (exit $ac_status) && test -s "$ac_outfile"; then
24305 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024306 # So say no if there are warnings other than the usual output.
24307 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024310 lt_prog_compiler_pic_works_GCJ=yes
24311 fi
24312 fi
24313 $rm conftest*
24314
24315fi
Reid Spencera773bd52006-08-04 18:18:08 +000024316{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24317echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024318
24319if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24320 case $lt_prog_compiler_pic_GCJ in
24321 "" | " "*) ;;
24322 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24323 esac
24324else
24325 lt_prog_compiler_pic_GCJ=
24326 lt_prog_compiler_can_build_shared_GCJ=no
24327fi
24328
24329fi
Reid Spencera773bd52006-08-04 18:18:08 +000024330case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024331 # For platforms which do not support PIC, -DPIC is meaningless:
24332 *djgpp*)
24333 lt_prog_compiler_pic_GCJ=
24334 ;;
24335 *)
24336 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24337 ;;
24338esac
24339
Reid Spencera773bd52006-08-04 18:18:08 +000024340#
24341# Check to make sure the static flag actually works.
24342#
24343wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24344{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24345echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24346if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24347 echo $ECHO_N "(cached) $ECHO_C" >&6
24348else
24349 lt_prog_compiler_static_works_GCJ=no
24350 save_LDFLAGS="$LDFLAGS"
24351 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24352 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24353 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24354 # The linker can only warn and ignore the option if not recognized
24355 # So say no if there are warnings
24356 if test -s conftest.err; then
24357 # Append any errors to the config.log.
24358 cat conftest.err 1>&5
24359 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24361 if diff conftest.exp conftest.er2 >/dev/null; then
24362 lt_prog_compiler_static_works_GCJ=yes
24363 fi
24364 else
24365 lt_prog_compiler_static_works_GCJ=yes
24366 fi
24367 fi
24368 $rm conftest*
24369 LDFLAGS="$save_LDFLAGS"
24370
24371fi
24372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24373echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24374
24375if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24376 :
24377else
24378 lt_prog_compiler_static_GCJ=
24379fi
24380
24381
24382{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24383echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024384if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24386else
24387 lt_cv_prog_compiler_c_o_GCJ=no
24388 $rm -r conftest 2>/dev/null
24389 mkdir conftest
24390 cd conftest
24391 mkdir out
24392 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24393
John Criswell47fdd832003-07-14 16:52:07 +000024394 lt_compiler_flag="-o out/conftest2.$ac_objext"
24395 # Insert the option either (1) after the last *FLAGS variable, or
24396 # (2) before a word containing "conftest.", or (3) at the end.
24397 # Note that $ac_compile itself does not contain backslashes and begins
24398 # with a dollar sign (not a hyphen), so the echo should work correctly.
24399 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24402 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024403 (eval echo "\"\$as_me:24403: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024404 (eval "$lt_compile" 2>out/conftest.err)
24405 ac_status=$?
24406 cat out/conftest.err >&5
Nick Lewyckye792b1d2009-02-03 07:10:30 +000024407 echo "$as_me:24407: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024408 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24409 then
24410 # The compiler can only warn and ignore the option if not recognized
24411 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024412 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24413 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24414 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024415 lt_cv_prog_compiler_c_o_GCJ=yes
24416 fi
24417 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024418 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024419 $rm conftest*
24420 # SGI C++ compiler will create directory out/ii_files/ for
24421 # template instantiation
24422 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24423 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024424 cd ..
24425 rmdir conftest
24426 $rm conftest*
24427
24428fi
Reid Spencera773bd52006-08-04 18:18:08 +000024429{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24430echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024431
24432
24433hard_links="nottested"
24434if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24435 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024436 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24437echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024438 hard_links=yes
24439 $rm conftest*
24440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24441 touch conftest.a
24442 ln conftest.a conftest.b 2>&5 || hard_links=no
24443 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024444 { echo "$as_me:$LINENO: result: $hard_links" >&5
24445echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024446 if test "$hard_links" = no; then
24447 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24448echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24449 need_locks=warn
24450 fi
24451else
24452 need_locks=no
24453fi
24454
Reid Spencera773bd52006-08-04 18:18:08 +000024455{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24456echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024457
24458 runpath_var=
24459 allow_undefined_flag_GCJ=
24460 enable_shared_with_static_runtimes_GCJ=no
24461 archive_cmds_GCJ=
24462 archive_expsym_cmds_GCJ=
24463 old_archive_From_new_cmds_GCJ=
24464 old_archive_from_expsyms_cmds_GCJ=
24465 export_dynamic_flag_spec_GCJ=
24466 whole_archive_flag_spec_GCJ=
24467 thread_safe_flag_spec_GCJ=
24468 hardcode_libdir_flag_spec_GCJ=
24469 hardcode_libdir_flag_spec_ld_GCJ=
24470 hardcode_libdir_separator_GCJ=
24471 hardcode_direct_GCJ=no
24472 hardcode_minus_L_GCJ=no
24473 hardcode_shlibpath_var_GCJ=unsupported
24474 link_all_deplibs_GCJ=unknown
24475 hardcode_automatic_GCJ=no
24476 module_cmds_GCJ=
24477 module_expsym_cmds_GCJ=
24478 always_export_symbols_GCJ=no
24479 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24480 # include_expsyms should be a list of space-separated symbols to be *always*
24481 # included in the symbol list
24482 include_expsyms_GCJ=
24483 # exclude_expsyms can be an extended regexp of symbols to exclude
24484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24486 # as well as any symbol that contains `d'.
24487 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24489 # platforms (ab)use it in PIC code, but their linkers get confused if
24490 # the symbol is explicitly referenced. Since portable code cannot
24491 # rely on this symbol name, it's probably fine to never include it in
24492 # preloaded symbol tables.
24493 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024494 # Just being paranoid about ensuring that cc_basename is set.
24495 for cc_temp in $compiler""; do
24496 case $cc_temp in
24497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24499 \-*) ;;
24500 *) break;;
24501 esac
24502done
24503cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024504
24505 case $host_os in
24506 cygwin* | mingw* | pw32*)
24507 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24508 # When not using gcc, we currently assume that we are using
24509 # Microsoft Visual C++.
24510 if test "$GCC" != yes; then
24511 with_gnu_ld=no
24512 fi
24513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024514 interix*)
24515 # we just hope/assume this is gcc and not c89 (= MSVC++)
24516 with_gnu_ld=yes
24517 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024518 openbsd*)
24519 with_gnu_ld=no
24520 ;;
24521 esac
24522
24523 ld_shlibs_GCJ=yes
24524 if test "$with_gnu_ld" = yes; then
24525 # If archive_cmds runs LD, not CC, wlarc should be empty
24526 wlarc='${wl}'
24527
Reid Spencera773bd52006-08-04 18:18:08 +000024528 # Set some defaults for GNU ld with shared library support. These
24529 # are reset later if shared libraries are not supported. Putting them
24530 # here allows them to be overridden if necessary.
24531 runpath_var=LD_RUN_PATH
24532 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24533 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24534 # ancient GNU ld didn't support --whole-archive et. al.
24535 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24536 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24537 else
24538 whole_archive_flag_spec_GCJ=
24539 fi
24540 supports_anon_versioning=no
24541 case `$LD -v 2>/dev/null` in
24542 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24543 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24544 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24545 *\ 2.11.*) ;; # other 2.11 versions
24546 *) supports_anon_versioning=yes ;;
24547 esac
24548
John Criswell47fdd832003-07-14 16:52:07 +000024549 # See if GNU ld supports shared libraries.
24550 case $host_os in
24551 aix3* | aix4* | aix5*)
24552 # On AIX/PPC, the GNU linker is very broken
24553 if test "$host_cpu" != ia64; then
24554 ld_shlibs_GCJ=no
24555 cat <<EOF 1>&2
24556
24557*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24558*** to be unable to reliably create shared libraries on AIX.
24559*** Therefore, libtool is disabling shared libraries support. If you
24560*** really care for shared libraries, you may want to modify your PATH
24561*** so that a non-GNU linker is found, and then restart.
24562
24563EOF
24564 fi
24565 ;;
24566
24567 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024568 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 +000024569 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24570 hardcode_minus_L_GCJ=yes
24571
24572 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24573 # that the semantics of dynamic libraries on AmigaOS, at least up
24574 # to version 4, is to share data among multiple programs linked
24575 # with the same dynamic library. Since this doesn't match the
24576 # behavior of shared libraries on other platforms, we can't use
24577 # them.
24578 ld_shlibs_GCJ=no
24579 ;;
24580
24581 beos*)
24582 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24583 allow_undefined_flag_GCJ=unsupported
24584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24585 # support --undefined. This deserves some investigation. FIXME
24586 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24587 else
24588 ld_shlibs_GCJ=no
24589 fi
24590 ;;
24591
24592 cygwin* | mingw* | pw32*)
24593 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24594 # as there is no search path for DLLs.
24595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596 allow_undefined_flag_GCJ=unsupported
24597 always_export_symbols_GCJ=no
24598 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024599 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 +000024600
24601 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024602 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 +000024603 # If the export-symbols file already is a .def file (1st line
24604 # is EXPORTS), use it as is; otherwise, prepend...
24605 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24606 cp $export_symbols $output_objdir/$soname.def;
24607 else
24608 echo EXPORTS > $output_objdir/$soname.def;
24609 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024610 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024611 $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 +000024612 else
Reid Spencera773bd52006-08-04 18:18:08 +000024613 ld_shlibs_GCJ=no
24614 fi
24615 ;;
24616
24617 interix3*)
24618 hardcode_direct_GCJ=no
24619 hardcode_shlibpath_var_GCJ=no
24620 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24621 export_dynamic_flag_spec_GCJ='${wl}-E'
24622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24623 # Instead, shared libraries are loaded at an image base (0x10000000 by
24624 # default) and relocated if they conflict, which is a slow very memory
24625 # consuming and fragmenting process. To avoid this, we pick a random,
24626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24628 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'
24629 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'
24630 ;;
24631
24632 linux*)
24633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24634 tmp_addflag=
24635 case $cc_basename,$host_cpu in
24636 pgcc*) # Portland Group C compiler
24637 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'
24638 tmp_addflag=' $pic_flag'
24639 ;;
24640 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24641 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'
24642 tmp_addflag=' $pic_flag -Mnomain' ;;
24643 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24644 tmp_addflag=' -i_dynamic' ;;
24645 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24646 tmp_addflag=' -i_dynamic -nofor_main' ;;
24647 ifc* | ifort*) # Intel Fortran compiler
24648 tmp_addflag=' -nofor_main' ;;
24649 esac
24650 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24651
24652 if test $supports_anon_versioning = yes; then
24653 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24655 $echo "local: *; };" >> $output_objdir/$libname.ver~
24656 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24657 fi
24658 else
24659 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024660 fi
24661 ;;
24662
24663 netbsd*)
24664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24665 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24666 wlarc=
24667 else
24668 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24669 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24670 fi
24671 ;;
24672
Reid Spencera773bd52006-08-04 18:18:08 +000024673 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024674 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24675 ld_shlibs_GCJ=no
24676 cat <<EOF 1>&2
24677
24678*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24679*** create shared libraries on Solaris systems. Therefore, libtool
24680*** is disabling shared libraries support. We urge you to upgrade GNU
24681*** binutils to release 2.9.1 or newer. Another option is to modify
24682*** your PATH or compiler configuration so that the native linker is
24683*** used, and then restart.
24684
24685EOF
24686 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24687 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24688 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24689 else
24690 ld_shlibs_GCJ=no
24691 fi
24692 ;;
24693
Reid Spencera773bd52006-08-04 18:18:08 +000024694 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24695 case `$LD -v 2>&1` in
24696 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24697 ld_shlibs_GCJ=no
24698 cat <<_LT_EOF 1>&2
24699
24700*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24701*** reliably create shared libraries on SCO systems. Therefore, libtool
24702*** is disabling shared libraries support. We urge you to upgrade GNU
24703*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24704*** your PATH or compiler configuration so that the native linker is
24705*** used, and then restart.
24706
24707_LT_EOF
24708 ;;
24709 *)
24710 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24711 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24712 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24713 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24714 else
24715 ld_shlibs_GCJ=no
24716 fi
24717 ;;
24718 esac
24719 ;;
24720
John Criswell47fdd832003-07-14 16:52:07 +000024721 sunos4*)
24722 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24723 wlarc=
24724 hardcode_direct_GCJ=yes
24725 hardcode_shlibpath_var_GCJ=no
24726 ;;
24727
24728 *)
24729 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24730 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24731 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24732 else
24733 ld_shlibs_GCJ=no
24734 fi
24735 ;;
24736 esac
24737
Reid Spencera773bd52006-08-04 18:18:08 +000024738 if test "$ld_shlibs_GCJ" = no; then
24739 runpath_var=
24740 hardcode_libdir_flag_spec_GCJ=
24741 export_dynamic_flag_spec_GCJ=
24742 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024743 fi
24744 else
24745 # PORTME fill in a description of your system's linker (not GNU ld)
24746 case $host_os in
24747 aix3*)
24748 allow_undefined_flag_GCJ=unsupported
24749 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024750 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 +000024751 # Note: this linker hardcodes the directories in LIBPATH if there
24752 # are no directories specified by -L.
24753 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024754 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024755 # Neither direct hardcoding nor static linking is supported with a
24756 # broken collect2.
24757 hardcode_direct_GCJ=unsupported
24758 fi
24759 ;;
24760
24761 aix4* | aix5*)
24762 if test "$host_cpu" = ia64; then
24763 # On IA64, the linker does run time linking by default, so we don't
24764 # have to do anything special.
24765 aix_use_runtimelinking=no
24766 exp_sym_flag='-Bexport'
24767 no_entry_flag=""
24768 else
24769 # If we're using GNU nm, then we don't want the "-C" option.
24770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24771 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24772 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'
24773 else
24774 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'
24775 fi
24776 aix_use_runtimelinking=no
24777
24778 # Test if we are trying to use run time linking or normal
24779 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24780 # need to do runtime linking.
24781 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24782 for ld_flag in $LDFLAGS; do
24783 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24784 aix_use_runtimelinking=yes
24785 break
24786 fi
24787 done
Reid Spencera773bd52006-08-04 18:18:08 +000024788 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024789 esac
24790
24791 exp_sym_flag='-bexport'
24792 no_entry_flag='-bnoentry'
24793 fi
24794
24795 # When large executables or shared objects are built, AIX ld can
24796 # have problems creating the table of contents. If linking a library
24797 # or program results in "error TOC overflow" add -mminimal-toc to
24798 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24799 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24800
24801 archive_cmds_GCJ=''
24802 hardcode_direct_GCJ=yes
24803 hardcode_libdir_separator_GCJ=':'
24804 link_all_deplibs_GCJ=yes
24805
24806 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024807 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024808 # We only want to do this on AIX 4.2 and lower, the check
24809 # below for broken collect2 doesn't work under 4.3+
24810 collect2name=`${CC} -print-prog-name=collect2`
24811 if test -f "$collect2name" && \
24812 strings "$collect2name" | grep resolve_lib_name >/dev/null
24813 then
24814 # We have reworked collect2
24815 hardcode_direct_GCJ=yes
24816 else
24817 # We have old collect2
24818 hardcode_direct_GCJ=unsupported
24819 # It fails to find uninstalled libraries when the uninstalled
24820 # path is not listed in the libpath. Setting hardcode_minus_L
24821 # to unsupported forces relinking
24822 hardcode_minus_L_GCJ=yes
24823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24824 hardcode_libdir_separator_GCJ=
24825 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024826 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024827 esac
24828 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024829 if test "$aix_use_runtimelinking" = yes; then
24830 shared_flag="$shared_flag "'${wl}-G'
24831 fi
John Criswell47fdd832003-07-14 16:52:07 +000024832 else
24833 # not using gcc
24834 if test "$host_cpu" = ia64; then
24835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24836 # chokes on -Wl,-G. The following line is correct:
24837 shared_flag='-G'
24838 else
Reid Spencera773bd52006-08-04 18:18:08 +000024839 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024840 shared_flag='${wl}-G'
24841 else
24842 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024843 fi
John Criswell47fdd832003-07-14 16:52:07 +000024844 fi
24845 fi
24846
24847 # It seems that -bexpall does not export symbols beginning with
24848 # underscore (_), so it is better to generate a list of symbols to export.
24849 always_export_symbols_GCJ=yes
24850 if test "$aix_use_runtimelinking" = yes; then
24851 # Warning - without using the other runtime loading flags (-brtl),
24852 # -berok will link without error, but may produce a broken library.
24853 allow_undefined_flag_GCJ='-berok'
24854 # Determine the default libpath from the value encoded in an empty executable.
24855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024856/* confdefs.h. */
24857_ACEOF
24858cat confdefs.h >>conftest.$ac_ext
24859cat >>conftest.$ac_ext <<_ACEOF
24860/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024861
John Criswell47fdd832003-07-14 16:52:07 +000024862int
24863main ()
24864{
24865
24866 ;
24867 return 0;
24868}
24869_ACEOF
24870rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024871if { (ac_try="$ac_link"
24872case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24875esac
24876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024878 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885 { (case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24888esac
24889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_try") 2>&5
24891 ac_status=$?
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; } &&
24894 { ac_try='test -s conftest$ac_exeext'
24895 { (case "(($ac_try" in
24896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897 *) ac_try_echo=$ac_try;;
24898esac
24899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900 (eval "$ac_try") 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024904
24905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24906}'`
24907# Check for a 64-bit object if we didn't find anything.
24908if 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; }
24909}'`; fi
24910else
24911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024912sed 's/^/| /' conftest.$ac_ext >&5
24913
Reid Spencera773bd52006-08-04 18:18:08 +000024914
John Criswell47fdd832003-07-14 16:52:07 +000024915fi
Reid Spencera773bd52006-08-04 18:18:08 +000024916
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024917rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024918 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024919if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24920
24921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024922 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 +000024923 else
24924 if test "$host_cpu" = ia64; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24926 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024927 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 +000024928 else
24929 # Determine the default libpath from the value encoded in an empty executable.
24930 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024931/* confdefs.h. */
24932_ACEOF
24933cat confdefs.h >>conftest.$ac_ext
24934cat >>conftest.$ac_ext <<_ACEOF
24935/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024936
John Criswell47fdd832003-07-14 16:52:07 +000024937int
24938main ()
24939{
24940
24941 ;
24942 return 0;
24943}
24944_ACEOF
24945rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024946if { (ac_try="$ac_link"
24947case "(($ac_try" in
24948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949 *) ac_try_echo=$ac_try;;
24950esac
24951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024953 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024954 grep -v '^ *+' conftest.er1 >conftest.err
24955 rm -f conftest.er1
24956 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024958 (exit $ac_status); } &&
24959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24960 { (case "(($ac_try" in
24961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24962 *) ac_try_echo=$ac_try;;
24963esac
24964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24965 (eval "$ac_try") 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; } &&
24969 { ac_try='test -s conftest$ac_exeext'
24970 { (case "(($ac_try" in
24971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972 *) ac_try_echo=$ac_try;;
24973esac
24974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975 (eval "$ac_try") 2>&5
24976 ac_status=$?
24977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024979
24980aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24981}'`
24982# Check for a 64-bit object if we didn't find anything.
24983if 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; }
24984}'`; fi
24985else
24986 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024987sed 's/^/| /' conftest.$ac_ext >&5
24988
Reid Spencera773bd52006-08-04 18:18:08 +000024989
John Criswell47fdd832003-07-14 16:52:07 +000024990fi
Reid Spencera773bd52006-08-04 18:18:08 +000024991
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024992rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024993 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024994if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24995
24996 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24997 # Warning - without using the other run time loading flags,
24998 # -berok will link without error, but may produce a broken library.
24999 no_undefined_flag_GCJ=' ${wl}-bernotok'
25000 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025001 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025002 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025003 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025004 # This is similar to how AIX traditionally builds its shared libraries.
25005 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 +000025006 fi
25007 fi
25008 ;;
25009
25010 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025011 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 +000025012 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25013 hardcode_minus_L_GCJ=yes
25014 # see comment about different semantics on the GNU ld section
25015 ld_shlibs_GCJ=no
25016 ;;
25017
Reid Spencer2706f8c2004-09-19 23:53:36 +000025018 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025019 export_dynamic_flag_spec_GCJ=-rdynamic
25020 ;;
25021
25022 cygwin* | mingw* | pw32*)
25023 # When not using gcc, we currently assume that we are using
25024 # Microsoft Visual C++.
25025 # hardcode_libdir_flag_spec is actually meaningless, as there is
25026 # no search path for DLLs.
25027 hardcode_libdir_flag_spec_GCJ=' '
25028 allow_undefined_flag_GCJ=unsupported
25029 # Tell ltmain to make .lib files, not .a files.
25030 libext=lib
25031 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025032 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025033 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025034 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 +000025035 # The linker will automatically build a .lib file if we build a DLL.
25036 old_archive_From_new_cmds_GCJ='true'
25037 # FIXME: Should let the user specify the lib program.
25038 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025039 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025040 enable_shared_with_static_runtimes_GCJ=yes
25041 ;;
25042
25043 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025044 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025045 rhapsody* | darwin1.[012])
25046 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25047 ;;
25048 *) # Darwin 1.3 on
25049 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25050 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25051 else
25052 case ${MACOSX_DEPLOYMENT_TARGET} in
25053 10.[012])
25054 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25055 ;;
25056 10.*)
25057 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25058 ;;
25059 esac
25060 fi
25061 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025062 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025063 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025064 hardcode_direct_GCJ=no
25065 hardcode_automatic_GCJ=yes
25066 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025067 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025068 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025069 if test "$GCC" = yes ; then
25070 output_verbose_link_cmd='echo'
25071 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25072 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025073 # 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 +000025074 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}'
25075 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 +000025076 else
Reid Spencera773bd52006-08-04 18:18:08 +000025077 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025078 xlc*)
25079 output_verbose_link_cmd='echo'
25080 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25081 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025082 # 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 +000025083 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}'
25084 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 +000025085 ;;
25086 *)
25087 ld_shlibs_GCJ=no
25088 ;;
25089 esac
John Criswell47fdd832003-07-14 16:52:07 +000025090 fi
25091 ;;
25092
25093 dgux*)
25094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25096 hardcode_shlibpath_var_GCJ=no
25097 ;;
25098
25099 freebsd1*)
25100 ld_shlibs_GCJ=no
25101 ;;
25102
25103 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25104 # support. Future versions do this automatically, but an explicit c++rt0.o
25105 # does not break anything, and helps significantly (at the cost of a little
25106 # extra space).
25107 freebsd2.2*)
25108 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25109 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25110 hardcode_direct_GCJ=yes
25111 hardcode_shlibpath_var_GCJ=no
25112 ;;
25113
25114 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25115 freebsd2*)
25116 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25117 hardcode_direct_GCJ=yes
25118 hardcode_minus_L_GCJ=yes
25119 hardcode_shlibpath_var_GCJ=no
25120 ;;
25121
25122 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025123 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025124 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25125 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25126 hardcode_direct_GCJ=yes
25127 hardcode_shlibpath_var_GCJ=no
25128 ;;
25129
25130 hpux9*)
25131 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025132 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 +000025133 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025134 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 +000025135 fi
25136 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25137 hardcode_libdir_separator_GCJ=:
25138 hardcode_direct_GCJ=yes
25139
25140 # hardcode_minus_L: Not really in the search PATH,
25141 # but as the default location of the library.
25142 hardcode_minus_L_GCJ=yes
25143 export_dynamic_flag_spec_GCJ='${wl}-E'
25144 ;;
25145
Reid Spencera773bd52006-08-04 18:18:08 +000025146 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025147 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025148 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25149 else
25150 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25151 fi
25152 if test "$with_gnu_ld" = no; then
25153 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25154 hardcode_libdir_separator_GCJ=:
25155
25156 hardcode_direct_GCJ=yes
25157 export_dynamic_flag_spec_GCJ='${wl}-E'
25158
25159 # hardcode_minus_L: Not really in the search PATH,
25160 # but as the default location of the library.
25161 hardcode_minus_L_GCJ=yes
25162 fi
25163 ;;
25164
25165 hpux11*)
25166 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25167 case $host_cpu in
25168 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025169 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025171 ia64*)
25172 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25173 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025174 *)
25175 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25176 ;;
25177 esac
25178 else
Reid Spencera773bd52006-08-04 18:18:08 +000025179 case $host_cpu in
25180 hppa*64*)
25181 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25182 ;;
25183 ia64*)
25184 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025185 ;;
25186 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025187 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 +000025188 ;;
25189 esac
25190 fi
25191 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025192 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25193 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025194
Reid Spencera773bd52006-08-04 18:18:08 +000025195 case $host_cpu in
25196 hppa*64*|ia64*)
25197 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25198 hardcode_direct_GCJ=no
25199 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025200 ;;
25201 *)
John Criswell47fdd832003-07-14 16:52:07 +000025202 hardcode_direct_GCJ=yes
25203 export_dynamic_flag_spec_GCJ='${wl}-E'
25204
25205 # hardcode_minus_L: Not really in the search PATH,
25206 # but as the default location of the library.
25207 hardcode_minus_L_GCJ=yes
25208 ;;
25209 esac
25210 fi
25211 ;;
25212
25213 irix5* | irix6* | nonstopux*)
25214 if test "$GCC" = yes; then
25215 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'
25216 else
25217 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'
25218 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25219 fi
25220 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25221 hardcode_libdir_separator_GCJ=:
25222 link_all_deplibs_GCJ=yes
25223 ;;
25224
25225 netbsd*)
25226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25228 else
25229 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25230 fi
25231 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25232 hardcode_direct_GCJ=yes
25233 hardcode_shlibpath_var_GCJ=no
25234 ;;
25235
25236 newsos6)
25237 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25238 hardcode_direct_GCJ=yes
25239 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25240 hardcode_libdir_separator_GCJ=:
25241 hardcode_shlibpath_var_GCJ=no
25242 ;;
25243
25244 openbsd*)
25245 hardcode_direct_GCJ=yes
25246 hardcode_shlibpath_var_GCJ=no
25247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25248 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025249 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 +000025250 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25251 export_dynamic_flag_spec_GCJ='${wl}-E'
25252 else
25253 case $host_os in
25254 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25255 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25256 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25257 ;;
25258 *)
25259 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25260 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25261 ;;
25262 esac
25263 fi
25264 ;;
25265
25266 os2*)
25267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25268 hardcode_minus_L_GCJ=yes
25269 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025270 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 +000025271 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25272 ;;
25273
25274 osf3*)
25275 if test "$GCC" = yes; then
25276 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25277 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'
25278 else
25279 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25280 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'
25281 fi
25282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25283 hardcode_libdir_separator_GCJ=:
25284 ;;
25285
25286 osf4* | osf5*) # as osf3* with the addition of -msym flag
25287 if test "$GCC" = yes; then
25288 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25289 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'
25290 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25291 else
25292 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25293 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 +000025294 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 +000025295 $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 +000025296
John Criswell47fdd832003-07-14 16:52:07 +000025297 # Both c and cxx compiler support -rpath directly
25298 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25299 fi
25300 hardcode_libdir_separator_GCJ=:
25301 ;;
25302
John Criswell47fdd832003-07-14 16:52:07 +000025303 solaris*)
25304 no_undefined_flag_GCJ=' -z text'
25305 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025306 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025307 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025308 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25309 $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 +000025310 else
Reid Spencera773bd52006-08-04 18:18:08 +000025311 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025312 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025313 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25314 $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 +000025315 fi
25316 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25317 hardcode_shlibpath_var_GCJ=no
25318 case $host_os in
25319 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025320 *)
25321 # The compiler driver will combine linker options so we
25322 # cannot just pass the convience library names through
25323 # without $wl, iff we do not link with $LD.
25324 # Luckily, gcc supports the same syntax we need for Sun Studio.
25325 # Supported since Solaris 2.6 (maybe 2.5.1?)
25326 case $wlarc in
25327 '')
25328 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25329 *)
25330 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' ;;
25331 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025332 esac
25333 link_all_deplibs_GCJ=yes
25334 ;;
25335
25336 sunos4*)
25337 if test "x$host_vendor" = xsequent; then
25338 # Use $CC to link under sequent, because it throws in some extra .o
25339 # files that make .init and .fini sections work.
25340 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25341 else
25342 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25343 fi
25344 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25345 hardcode_direct_GCJ=yes
25346 hardcode_minus_L_GCJ=yes
25347 hardcode_shlibpath_var_GCJ=no
25348 ;;
25349
25350 sysv4)
25351 case $host_vendor in
25352 sni)
25353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25354 hardcode_direct_GCJ=yes # is this really true???
25355 ;;
25356 siemens)
25357 ## LD is ld it makes a PLAMLIB
25358 ## CC just makes a GrossModule.
25359 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25360 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25361 hardcode_direct_GCJ=no
25362 ;;
25363 motorola)
25364 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25365 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25366 ;;
25367 esac
25368 runpath_var='LD_RUN_PATH'
25369 hardcode_shlibpath_var_GCJ=no
25370 ;;
25371
25372 sysv4.3*)
25373 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25374 hardcode_shlibpath_var_GCJ=no
25375 export_dynamic_flag_spec_GCJ='-Bexport'
25376 ;;
25377
25378 sysv4*MP*)
25379 if test -d /usr/nec; then
25380 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25381 hardcode_shlibpath_var_GCJ=no
25382 runpath_var=LD_RUN_PATH
25383 hardcode_runpath_var=yes
25384 ld_shlibs_GCJ=yes
25385 fi
25386 ;;
25387
Reid Spencera773bd52006-08-04 18:18:08 +000025388 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25389 no_undefined_flag_GCJ='${wl}-z,text'
25390 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025391 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025392 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025393
John Criswell47fdd832003-07-14 16:52:07 +000025394 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025395 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 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 +000025397 else
Reid Spencera773bd52006-08-04 18:18:08 +000025398 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25399 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 +000025400 fi
John Criswell47fdd832003-07-14 16:52:07 +000025401 ;;
25402
Reid Spencera773bd52006-08-04 18:18:08 +000025403 sysv5* | sco3.2v5* | sco5v6*)
25404 # Note: We can NOT use -z defs as we might desire, because we do not
25405 # link with -lc, and that would cause any symbols used from libc to
25406 # always be unresolved, which means just about no library would
25407 # ever link correctly. If we're not using GNU ld we use -z text
25408 # though, which does catch some bad symbols but isn't as heavy-handed
25409 # as -z defs.
25410 no_undefined_flag_GCJ='${wl}-z,text'
25411 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25412 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025413 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025414 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25415 hardcode_libdir_separator_GCJ=':'
25416 link_all_deplibs_GCJ=yes
25417 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025418 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025419
25420 if test "$GCC" = yes; then
25421 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25422 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423 else
25424 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25425 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426 fi
John Criswell47fdd832003-07-14 16:52:07 +000025427 ;;
25428
25429 uts4*)
25430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25432 hardcode_shlibpath_var_GCJ=no
25433 ;;
25434
25435 *)
25436 ld_shlibs_GCJ=no
25437 ;;
25438 esac
25439 fi
25440
Reid Spencera773bd52006-08-04 18:18:08 +000025441{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25442echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025443test "$ld_shlibs_GCJ" = no && can_build_shared=no
25444
John Criswell47fdd832003-07-14 16:52:07 +000025445#
25446# Do we need to explicitly link libc?
25447#
25448case "x$archive_cmds_need_lc_GCJ" in
25449x|xyes)
25450 # Assume -lc should be added
25451 archive_cmds_need_lc_GCJ=yes
25452
25453 if test "$enable_shared" = yes && test "$GCC" = yes; then
25454 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025455 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025456 # FIXME: we may have to deal with multi-command sequences.
25457 ;;
25458 '$CC '*)
25459 # Test whether the compiler implicitly links with -lc since on some
25460 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25461 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025462 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25463echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025464 $rm conftest*
25465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25466
25467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25468 (eval $ac_compile) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } 2>conftest.err; then
25472 soname=conftest
25473 lib=conftest
25474 libobjs=conftest.$ac_objext
25475 deplibs=
25476 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025477 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025478 compiler_flags=-v
25479 linker_flags=-v
25480 verstring=
25481 output_objdir=.
25482 libname=conftest
25483 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25484 allow_undefined_flag_GCJ=
25485 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25486 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }
25490 then
25491 archive_cmds_need_lc_GCJ=no
25492 else
25493 archive_cmds_need_lc_GCJ=yes
25494 fi
25495 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25496 else
25497 cat conftest.err 1>&5
25498 fi
25499 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025500 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25501echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025502 ;;
25503 esac
25504 fi
25505 ;;
25506esac
25507
Reid Spencera773bd52006-08-04 18:18:08 +000025508{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25509echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025510library_names_spec=
25511libname_spec='lib$name'
25512soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025513shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025514postinstall_cmds=
25515postuninstall_cmds=
25516finish_cmds=
25517finish_eval=
25518shlibpath_var=
25519shlibpath_overrides_runpath=unknown
25520version_type=none
25521dynamic_linker="$host_os ld.so"
25522sys_lib_dlsearch_path_spec="/lib /usr/lib"
25523if test "$GCC" = yes; then
25524 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25525 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25526 # if the path contains ";" then we assume it to be the separator
25527 # otherwise default to the standard path separator (i.e. ":") - it is
25528 # assumed that no part of a normal pathname contains ";" but that should
25529 # okay in the real world where ";" in dirpaths is itself problematic.
25530 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25531 else
25532 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25533 fi
25534else
25535 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25536fi
25537need_lib_prefix=unknown
25538hardcode_into_libs=no
25539
25540# when you set need_version to no, make sure it does not cause -set_version
25541# flags to be left without arguments
25542need_version=unknown
25543
25544case $host_os in
25545aix3*)
25546 version_type=linux
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25548 shlibpath_var=LIBPATH
25549
25550 # AIX 3 has no versioning support, so we append a major version to the name.
25551 soname_spec='${libname}${release}${shared_ext}$major'
25552 ;;
25553
25554aix4* | aix5*)
25555 version_type=linux
25556 need_lib_prefix=no
25557 need_version=no
25558 hardcode_into_libs=yes
25559 if test "$host_cpu" = ia64; then
25560 # AIX 5 supports IA64
25561 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25562 shlibpath_var=LD_LIBRARY_PATH
25563 else
25564 # With GCC up to 2.95.x, collect2 would create an import file
25565 # for dependence libraries. The import file would start with
25566 # the line `#! .'. This would cause the generated library to
25567 # depend on `.', always an invalid library. This was fixed in
25568 # development snapshots of GCC prior to 3.0.
25569 case $host_os in
25570 aix4 | aix4.[01] | aix4.[01].*)
25571 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25572 echo ' yes '
25573 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25574 :
25575 else
25576 can_build_shared=no
25577 fi
25578 ;;
25579 esac
25580 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25581 # soname into executable. Probably we can add versioning support to
25582 # collect2, so additional links can be useful in future.
25583 if test "$aix_use_runtimelinking" = yes; then
25584 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25585 # instead of lib<name>.a to let people know that these are not
25586 # typical AIX shared libraries.
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 else
25589 # We preserve .a as extension for shared libraries through AIX4.2
25590 # and later when we are not doing run time linking.
25591 library_names_spec='${libname}${release}.a $libname.a'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 fi
25594 shlibpath_var=LIBPATH
25595 fi
25596 ;;
25597
25598amigaos*)
25599 library_names_spec='$libname.ixlibrary $libname.a'
25600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025601 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 +000025602 ;;
25603
25604beos*)
25605 library_names_spec='${libname}${shared_ext}'
25606 dynamic_linker="$host_os ld.so"
25607 shlibpath_var=LIBRARY_PATH
25608 ;;
25609
Reid Spencer2706f8c2004-09-19 23:53:36 +000025610bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025611 version_type=linux
25612 need_version=no
25613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25614 soname_spec='${libname}${release}${shared_ext}$major'
25615 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25616 shlibpath_var=LD_LIBRARY_PATH
25617 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25618 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25619 # the default ld.so.conf also contains /usr/contrib/lib and
25620 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25621 # libtool to hard-code these into programs
25622 ;;
25623
25624cygwin* | mingw* | pw32*)
25625 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025626 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025627 need_version=no
25628 need_lib_prefix=no
25629
25630 case $GCC,$host_os in
25631 yes,cygwin* | yes,mingw* | yes,pw32*)
25632 library_names_spec='$libname.dll.a'
25633 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025634 postinstall_cmds='base_file=`basename \${file}`~
25635 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25636 dldir=$destdir/`dirname \$dlpath`~
25637 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025638 $install_prog $dir/$dlname \$dldir/$dlname~
25639 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25641 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025642 $rm \$dlpath'
25643 shlibpath_overrides_runpath=yes
25644
25645 case $host_os in
25646 cygwin*)
25647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25648 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 +000025649 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025650 ;;
25651 mingw*)
25652 # MinGW DLLs use traditional 'lib' prefix
25653 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25654 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25655 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25656 # It is most probably a Windows format PATH printed by
25657 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25658 # path with ; separators, and with drive letters. We can handle the
25659 # drive letters (cygwin fileutils understands them), so leave them,
25660 # especially as we might pass files found there to a mingw objdump,
25661 # which wouldn't understand a cygwinified path. Ahh.
25662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25663 else
25664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25665 fi
25666 ;;
25667 pw32*)
25668 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025669 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 +000025670 ;;
25671 esac
25672 ;;
25673
25674 *)
25675 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25676 ;;
25677 esac
25678 dynamic_linker='Win32 ld.exe'
25679 # FIXME: first we should search . and the directory the executable is in
25680 shlibpath_var=PATH
25681 ;;
25682
25683darwin* | rhapsody*)
25684 dynamic_linker="$host_os dyld"
25685 version_type=darwin
25686 need_lib_prefix=no
25687 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025688 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025689 soname_spec='${libname}${release}${major}$shared_ext'
25690 shlibpath_overrides_runpath=yes
25691 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025692 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025693 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025694 if test "$GCC" = yes; then
25695 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"`
25696 else
25697 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025698 fi
25699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25700 ;;
25701
25702dgux*)
25703 version_type=linux
25704 need_lib_prefix=no
25705 need_version=no
25706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25707 soname_spec='${libname}${release}${shared_ext}$major'
25708 shlibpath_var=LD_LIBRARY_PATH
25709 ;;
25710
25711freebsd1*)
25712 dynamic_linker=no
25713 ;;
25714
Reid Spencer2706f8c2004-09-19 23:53:36 +000025715kfreebsd*-gnu)
25716 version_type=linux
25717 need_lib_prefix=no
25718 need_version=no
25719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25720 soname_spec='${libname}${release}${shared_ext}$major'
25721 shlibpath_var=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath=no
25723 hardcode_into_libs=yes
25724 dynamic_linker='GNU ld.so'
25725 ;;
25726
Reid Spencera773bd52006-08-04 18:18:08 +000025727freebsd* | dragonfly*)
25728 # DragonFly does not have aout. When/if they implement a new
25729 # versioning mechanism, adjust this.
25730 if test -x /usr/bin/objformat; then
25731 objformat=`/usr/bin/objformat`
25732 else
25733 case $host_os in
25734 freebsd[123]*) objformat=aout ;;
25735 *) objformat=elf ;;
25736 esac
25737 fi
John Criswell47fdd832003-07-14 16:52:07 +000025738 version_type=freebsd-$objformat
25739 case $version_type in
25740 freebsd-elf*)
25741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25742 need_version=no
25743 need_lib_prefix=no
25744 ;;
25745 freebsd-*)
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25747 need_version=yes
25748 ;;
25749 esac
25750 shlibpath_var=LD_LIBRARY_PATH
25751 case $host_os in
25752 freebsd2*)
25753 shlibpath_overrides_runpath=yes
25754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025755 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025756 shlibpath_overrides_runpath=yes
25757 hardcode_into_libs=yes
25758 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025759 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25760 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025761 shlibpath_overrides_runpath=no
25762 hardcode_into_libs=yes
25763 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025764 freebsd*) # from 4.6 on
25765 shlibpath_overrides_runpath=yes
25766 hardcode_into_libs=yes
25767 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025768 esac
25769 ;;
25770
25771gnu*)
25772 version_type=linux
25773 need_lib_prefix=no
25774 need_version=no
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 hardcode_into_libs=yes
25779 ;;
25780
25781hpux9* | hpux10* | hpux11*)
25782 # Give a soname corresponding to the major version so that dld.sl refuses to
25783 # link against other versions.
25784 version_type=sunos
25785 need_lib_prefix=no
25786 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025787 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025788 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025789 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025790 hardcode_into_libs=yes
25791 dynamic_linker="$host_os dld.so"
25792 shlibpath_var=LD_LIBRARY_PATH
25793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25795 soname_spec='${libname}${release}${shared_ext}$major'
25796 if test "X$HPUX_IA64_MODE" = X32; then
25797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25798 else
25799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25800 fi
25801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25802 ;;
25803 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025804 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025805 hardcode_into_libs=yes
25806 dynamic_linker="$host_os dld.sl"
25807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25810 soname_spec='${libname}${release}${shared_ext}$major'
25811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25813 ;;
25814 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025815 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025816 dynamic_linker="$host_os dld.sl"
25817 shlibpath_var=SHLIB_PATH
25818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25820 soname_spec='${libname}${release}${shared_ext}$major'
25821 ;;
25822 esac
25823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25824 postinstall_cmds='chmod 555 $lib'
25825 ;;
25826
Reid Spencera773bd52006-08-04 18:18:08 +000025827interix3*)
25828 version_type=linux
25829 need_lib_prefix=no
25830 need_version=no
25831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25832 soname_spec='${libname}${release}${shared_ext}$major'
25833 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25834 shlibpath_var=LD_LIBRARY_PATH
25835 shlibpath_overrides_runpath=no
25836 hardcode_into_libs=yes
25837 ;;
25838
John Criswell47fdd832003-07-14 16:52:07 +000025839irix5* | irix6* | nonstopux*)
25840 case $host_os in
25841 nonstopux*) version_type=nonstopux ;;
25842 *)
25843 if test "$lt_cv_prog_gnu_ld" = yes; then
25844 version_type=linux
25845 else
25846 version_type=irix
25847 fi ;;
25848 esac
25849 need_lib_prefix=no
25850 need_version=no
25851 soname_spec='${libname}${release}${shared_ext}$major'
25852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25853 case $host_os in
25854 irix5* | nonstopux*)
25855 libsuff= shlibsuff=
25856 ;;
25857 *)
25858 case $LD in # libtool.m4 will add one of these switches to LD
25859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25860 libsuff= shlibsuff= libmagic=32-bit;;
25861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25862 libsuff=32 shlibsuff=N32 libmagic=N32;;
25863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25865 *) libsuff= shlibsuff= libmagic=never-match;;
25866 esac
25867 ;;
25868 esac
25869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25870 shlibpath_overrides_runpath=no
25871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25873 hardcode_into_libs=yes
25874 ;;
25875
25876# No shared lib support for Linux oldld, aout, or coff.
25877linux*oldld* | linux*aout* | linux*coff*)
25878 dynamic_linker=no
25879 ;;
25880
25881# This must be Linux ELF.
25882linux*)
25883 version_type=linux
25884 need_lib_prefix=no
25885 need_version=no
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25889 shlibpath_var=LD_LIBRARY_PATH
25890 shlibpath_overrides_runpath=no
25891 # This implies no fast_install, which is unacceptable.
25892 # Some rework will be needed to allow for fast_install
25893 # before this can be enabled.
25894 hardcode_into_libs=yes
25895
Reid Spencer2706f8c2004-09-19 23:53:36 +000025896 # Append ld.so.conf contents to the search path
25897 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025898 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 +000025899 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25900 fi
25901
John Criswell47fdd832003-07-14 16:52:07 +000025902 # We used to test for /lib/ld.so.1 and disable shared libraries on
25903 # powerpc, because MkLinux only supported shared libraries with the
25904 # GNU dynamic linker. Since this was broken with cross compilers,
25905 # most powerpc-linux boxes support dynamic linking these days and
25906 # people can always --disable-shared, the test was removed, and we
25907 # assume the GNU/Linux dynamic linker is in use.
25908 dynamic_linker='GNU/Linux ld.so'
25909 ;;
25910
Reid Spencer2706f8c2004-09-19 23:53:36 +000025911knetbsd*-gnu)
25912 version_type=linux
25913 need_lib_prefix=no
25914 need_version=no
25915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25916 soname_spec='${libname}${release}${shared_ext}$major'
25917 shlibpath_var=LD_LIBRARY_PATH
25918 shlibpath_overrides_runpath=no
25919 hardcode_into_libs=yes
25920 dynamic_linker='GNU ld.so'
25921 ;;
25922
John Criswell47fdd832003-07-14 16:52:07 +000025923netbsd*)
25924 version_type=sunos
25925 need_lib_prefix=no
25926 need_version=no
25927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25930 dynamic_linker='NetBSD (a.out) ld.so'
25931 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025933 soname_spec='${libname}${release}${shared_ext}$major'
25934 dynamic_linker='NetBSD ld.elf_so'
25935 fi
25936 shlibpath_var=LD_LIBRARY_PATH
25937 shlibpath_overrides_runpath=yes
25938 hardcode_into_libs=yes
25939 ;;
25940
25941newsos6)
25942 version_type=linux
25943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25944 shlibpath_var=LD_LIBRARY_PATH
25945 shlibpath_overrides_runpath=yes
25946 ;;
25947
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025949 version_type=linux
25950 need_lib_prefix=no
25951 need_version=no
25952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25953 soname_spec='${libname}${release}${shared_ext}$major'
25954 shlibpath_var=LD_LIBRARY_PATH
25955 shlibpath_overrides_runpath=yes
25956 ;;
25957
25958openbsd*)
25959 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025960 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025961 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025962 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25963 case $host_os in
25964 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25965 *) need_version=no ;;
25966 esac
John Criswell47fdd832003-07-14 16:52:07 +000025967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25968 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25969 shlibpath_var=LD_LIBRARY_PATH
25970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25971 case $host_os in
25972 openbsd2.[89] | openbsd2.[89].*)
25973 shlibpath_overrides_runpath=no
25974 ;;
25975 *)
25976 shlibpath_overrides_runpath=yes
25977 ;;
25978 esac
25979 else
25980 shlibpath_overrides_runpath=yes
25981 fi
25982 ;;
25983
25984os2*)
25985 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025986 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025987 need_lib_prefix=no
25988 library_names_spec='$libname${shared_ext} $libname.a'
25989 dynamic_linker='OS/2 ld.exe'
25990 shlibpath_var=LIBPATH
25991 ;;
25992
25993osf3* | osf4* | osf5*)
25994 version_type=osf
25995 need_lib_prefix=no
25996 need_version=no
25997 soname_spec='${libname}${release}${shared_ext}$major'
25998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25999 shlibpath_var=LD_LIBRARY_PATH
26000 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26001 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26002 ;;
26003
John Criswell47fdd832003-07-14 16:52:07 +000026004solaris*)
26005 version_type=linux
26006 need_lib_prefix=no
26007 need_version=no
26008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26009 soname_spec='${libname}${release}${shared_ext}$major'
26010 shlibpath_var=LD_LIBRARY_PATH
26011 shlibpath_overrides_runpath=yes
26012 hardcode_into_libs=yes
26013 # ldd complains unless libraries are executable
26014 postinstall_cmds='chmod +x $lib'
26015 ;;
26016
26017sunos4*)
26018 version_type=sunos
26019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26020 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26021 shlibpath_var=LD_LIBRARY_PATH
26022 shlibpath_overrides_runpath=yes
26023 if test "$with_gnu_ld" = yes; then
26024 need_lib_prefix=no
26025 fi
26026 need_version=yes
26027 ;;
26028
Reid Spencera773bd52006-08-04 18:18:08 +000026029sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026030 version_type=linux
26031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26032 soname_spec='${libname}${release}${shared_ext}$major'
26033 shlibpath_var=LD_LIBRARY_PATH
26034 case $host_vendor in
26035 sni)
26036 shlibpath_overrides_runpath=no
26037 need_lib_prefix=no
26038 export_dynamic_flag_spec='${wl}-Blargedynsym'
26039 runpath_var=LD_RUN_PATH
26040 ;;
26041 siemens)
26042 need_lib_prefix=no
26043 ;;
26044 motorola)
26045 need_lib_prefix=no
26046 need_version=no
26047 shlibpath_overrides_runpath=no
26048 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26049 ;;
26050 esac
26051 ;;
26052
26053sysv4*MP*)
26054 if test -d /usr/nec ;then
26055 version_type=linux
26056 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26057 soname_spec='$libname${shared_ext}.$major'
26058 shlibpath_var=LD_LIBRARY_PATH
26059 fi
26060 ;;
26061
Reid Spencera773bd52006-08-04 18:18:08 +000026062sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26063 version_type=freebsd-elf
26064 need_lib_prefix=no
26065 need_version=no
26066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26067 soname_spec='${libname}${release}${shared_ext}$major'
26068 shlibpath_var=LD_LIBRARY_PATH
26069 hardcode_into_libs=yes
26070 if test "$with_gnu_ld" = yes; then
26071 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26072 shlibpath_overrides_runpath=no
26073 else
26074 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26075 shlibpath_overrides_runpath=yes
26076 case $host_os in
26077 sco3.2v5*)
26078 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26079 ;;
26080 esac
26081 fi
26082 sys_lib_dlsearch_path_spec='/usr/lib'
26083 ;;
26084
John Criswell47fdd832003-07-14 16:52:07 +000026085uts4*)
26086 version_type=linux
26087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26088 soname_spec='${libname}${release}${shared_ext}$major'
26089 shlibpath_var=LD_LIBRARY_PATH
26090 ;;
26091
26092*)
26093 dynamic_linker=no
26094 ;;
26095esac
Reid Spencera773bd52006-08-04 18:18:08 +000026096{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26097echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026098test "$dynamic_linker" = no && can_build_shared=no
26099
Reid Spencera773bd52006-08-04 18:18:08 +000026100variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26101if test "$GCC" = yes; then
26102 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26103fi
26104
26105{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26106echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026107hardcode_action_GCJ=
26108if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26109 test -n "$runpath_var_GCJ" || \
26110 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26111
26112 # We can hardcode non-existant directories.
26113 if test "$hardcode_direct_GCJ" != no &&
26114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26115 # have to relink, otherwise we might link with an installed library
26116 # when we should be linking with a yet-to-be-installed one
26117 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26118 test "$hardcode_minus_L_GCJ" != no; then
26119 # Linking always hardcodes the temporary library directory.
26120 hardcode_action_GCJ=relink
26121 else
26122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26123 hardcode_action_GCJ=immediate
26124 fi
26125else
26126 # We cannot hardcode anything, or else we can only hardcode existing
26127 # directories.
26128 hardcode_action_GCJ=unsupported
26129fi
Reid Spencera773bd52006-08-04 18:18:08 +000026130{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26131echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026132
26133if test "$hardcode_action_GCJ" = relink; then
26134 # Fast installation is not supported
26135 enable_fast_install=no
26136elif test "$shlibpath_overrides_runpath" = yes ||
26137 test "$enable_shared" = no; then
26138 # Fast installation is not necessary
26139 enable_fast_install=needless
26140fi
26141
John Criswell47fdd832003-07-14 16:52:07 +000026142
26143# The else clause should only fire when bootstrapping the
26144# libtool distribution, otherwise you forgot to ship ltmain.sh
26145# with your package, and you will get complaints that there are
26146# no rules to generate ltmain.sh.
26147if test -f "$ltmain"; then
26148 # See if we are running on zsh, and set the options which allow our commands through
26149 # without removal of \ escapes.
26150 if test -n "${ZSH_VERSION+set}" ; then
26151 setopt NO_GLOB_SUBST
26152 fi
26153 # Now quote all the things that may contain metacharacters while being
26154 # careful not to overquote the AC_SUBSTed values. We take copies of the
26155 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026156 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 +000026157 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026158 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26159 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26160 deplibs_check_method reload_flag reload_cmds need_locks \
26161 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26162 lt_cv_sys_global_symbol_to_c_name_address \
26163 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26164 old_postinstall_cmds old_postuninstall_cmds \
26165 compiler_GCJ \
26166 CC_GCJ \
26167 LD_GCJ \
26168 lt_prog_compiler_wl_GCJ \
26169 lt_prog_compiler_pic_GCJ \
26170 lt_prog_compiler_static_GCJ \
26171 lt_prog_compiler_no_builtin_flag_GCJ \
26172 export_dynamic_flag_spec_GCJ \
26173 thread_safe_flag_spec_GCJ \
26174 whole_archive_flag_spec_GCJ \
26175 enable_shared_with_static_runtimes_GCJ \
26176 old_archive_cmds_GCJ \
26177 old_archive_from_new_cmds_GCJ \
26178 predep_objects_GCJ \
26179 postdep_objects_GCJ \
26180 predeps_GCJ \
26181 postdeps_GCJ \
26182 compiler_lib_search_path_GCJ \
26183 archive_cmds_GCJ \
26184 archive_expsym_cmds_GCJ \
26185 postinstall_cmds_GCJ \
26186 postuninstall_cmds_GCJ \
26187 old_archive_from_expsyms_cmds_GCJ \
26188 allow_undefined_flag_GCJ \
26189 no_undefined_flag_GCJ \
26190 export_symbols_cmds_GCJ \
26191 hardcode_libdir_flag_spec_GCJ \
26192 hardcode_libdir_flag_spec_ld_GCJ \
26193 hardcode_libdir_separator_GCJ \
26194 hardcode_automatic_GCJ \
26195 module_cmds_GCJ \
26196 module_expsym_cmds_GCJ \
26197 lt_cv_prog_compiler_c_o_GCJ \
26198 exclude_expsyms_GCJ \
26199 include_expsyms_GCJ; do
26200
26201 case $var in
26202 old_archive_cmds_GCJ | \
26203 old_archive_from_new_cmds_GCJ | \
26204 archive_cmds_GCJ | \
26205 archive_expsym_cmds_GCJ | \
26206 module_cmds_GCJ | \
26207 module_expsym_cmds_GCJ | \
26208 old_archive_from_expsyms_cmds_GCJ | \
26209 export_symbols_cmds_GCJ | \
26210 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26211 postinstall_cmds | postuninstall_cmds | \
26212 old_postinstall_cmds | old_postuninstall_cmds | \
26213 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26214 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026215 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 +000026216 ;;
26217 *)
26218 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26219 ;;
26220 esac
26221 done
26222
26223 case $lt_echo in
26224 *'\$0 --fallback-echo"')
26225 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26226 ;;
26227 esac
26228
26229cfgfile="$ofile"
26230
26231 cat <<__EOF__ >> "$cfgfile"
26232# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26233
26234# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26235
26236# Shell to use when invoking shell scripts.
26237SHELL=$lt_SHELL
26238
26239# Whether or not to build shared libraries.
26240build_libtool_libs=$enable_shared
26241
26242# Whether or not to build static libraries.
26243build_old_libs=$enable_static
26244
26245# Whether or not to add -lc for building shared libraries.
26246build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26247
26248# Whether or not to disallow shared libs when runtime libs are static
26249allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26250
26251# Whether or not to optimize for fast installation.
26252fast_install=$enable_fast_install
26253
26254# The host system.
26255host_alias=$host_alias
26256host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026257host_os=$host_os
26258
26259# The build system.
26260build_alias=$build_alias
26261build=$build
26262build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026263
26264# An echo program that does not interpret backslashes.
26265echo=$lt_echo
26266
26267# The archiver.
26268AR=$lt_AR
26269AR_FLAGS=$lt_AR_FLAGS
26270
26271# A C compiler.
26272LTCC=$lt_LTCC
26273
Reid Spencera773bd52006-08-04 18:18:08 +000026274# LTCC compiler flags.
26275LTCFLAGS=$lt_LTCFLAGS
26276
John Criswell47fdd832003-07-14 16:52:07 +000026277# A language-specific compiler.
26278CC=$lt_compiler_GCJ
26279
26280# Is the compiler the GNU C compiler?
26281with_gcc=$GCC_GCJ
26282
26283# An ERE matcher.
26284EGREP=$lt_EGREP
26285
26286# The linker used to build libraries.
26287LD=$lt_LD_GCJ
26288
26289# Whether we need hard or soft links.
26290LN_S=$lt_LN_S
26291
26292# A BSD-compatible nm program.
26293NM=$lt_NM
26294
26295# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026296STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026297
26298# Used to examine libraries when file_magic_cmd begins "file"
26299MAGIC_CMD=$MAGIC_CMD
26300
26301# Used on cygwin: DLL creation program.
26302DLLTOOL="$DLLTOOL"
26303
26304# Used on cygwin: object dumper.
26305OBJDUMP="$OBJDUMP"
26306
26307# Used on cygwin: assembler.
26308AS="$AS"
26309
26310# The name of the directory that contains temporary libtool files.
26311objdir=$objdir
26312
26313# How to create reloadable object files.
26314reload_flag=$lt_reload_flag
26315reload_cmds=$lt_reload_cmds
26316
26317# How to pass a linker flag through the compiler.
26318wl=$lt_lt_prog_compiler_wl_GCJ
26319
26320# Object file suffix (normally "o").
26321objext="$ac_objext"
26322
26323# Old archive suffix (normally "a").
26324libext="$libext"
26325
26326# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026327shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026328
26329# Executable file suffix (normally "").
26330exeext="$exeext"
26331
26332# Additional compiler flags for building library objects.
26333pic_flag=$lt_lt_prog_compiler_pic_GCJ
26334pic_mode=$pic_mode
26335
26336# What is the maximum length of a command?
26337max_cmd_len=$lt_cv_sys_max_cmd_len
26338
26339# Does compiler simultaneously support -c and -o options?
26340compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26341
Reid Spencera773bd52006-08-04 18:18:08 +000026342# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026343need_locks=$lt_need_locks
26344
26345# Do we need the lib prefix for modules?
26346need_lib_prefix=$need_lib_prefix
26347
26348# Do we need a version for libraries?
26349need_version=$need_version
26350
26351# Whether dlopen is supported.
26352dlopen_support=$enable_dlopen
26353
26354# Whether dlopen of programs is supported.
26355dlopen_self=$enable_dlopen_self
26356
26357# Whether dlopen of statically linked programs is supported.
26358dlopen_self_static=$enable_dlopen_self_static
26359
26360# Compiler flag to prevent dynamic linking.
26361link_static_flag=$lt_lt_prog_compiler_static_GCJ
26362
26363# Compiler flag to turn off builtin functions.
26364no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26365
26366# Compiler flag to allow reflexive dlopens.
26367export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26368
26369# Compiler flag to generate shared objects directly from archives.
26370whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26371
26372# Compiler flag to generate thread-safe objects.
26373thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26374
26375# Library versioning type.
26376version_type=$version_type
26377
26378# Format of library name prefix.
26379libname_spec=$lt_libname_spec
26380
26381# List of archive names. First name is the real one, the rest are links.
26382# The last name is the one that the linker finds with -lNAME.
26383library_names_spec=$lt_library_names_spec
26384
26385# The coded name of the library, if different from the real name.
26386soname_spec=$lt_soname_spec
26387
26388# Commands used to build and install an old-style archive.
26389RANLIB=$lt_RANLIB
26390old_archive_cmds=$lt_old_archive_cmds_GCJ
26391old_postinstall_cmds=$lt_old_postinstall_cmds
26392old_postuninstall_cmds=$lt_old_postuninstall_cmds
26393
26394# Create an old-style archive from a shared archive.
26395old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26396
26397# Create a temporary old-style archive to link instead of a shared archive.
26398old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26399
26400# Commands used to build and install a shared archive.
26401archive_cmds=$lt_archive_cmds_GCJ
26402archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26403postinstall_cmds=$lt_postinstall_cmds
26404postuninstall_cmds=$lt_postuninstall_cmds
26405
26406# Commands used to build a loadable module (assumed same as above if empty)
26407module_cmds=$lt_module_cmds_GCJ
26408module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26409
26410# Commands to strip libraries.
26411old_striplib=$lt_old_striplib
26412striplib=$lt_striplib
26413
26414# Dependencies to place before the objects being linked to create a
26415# shared library.
26416predep_objects=$lt_predep_objects_GCJ
26417
26418# Dependencies to place after the objects being linked to create a
26419# shared library.
26420postdep_objects=$lt_postdep_objects_GCJ
26421
26422# Dependencies to place before the objects being linked to create a
26423# shared library.
26424predeps=$lt_predeps_GCJ
26425
26426# Dependencies to place after the objects being linked to create a
26427# shared library.
26428postdeps=$lt_postdeps_GCJ
26429
26430# The library search path used internally by the compiler when linking
26431# a shared library.
26432compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26433
26434# Method to check whether dependent libraries are shared objects.
26435deplibs_check_method=$lt_deplibs_check_method
26436
26437# Command to use when deplibs_check_method == file_magic.
26438file_magic_cmd=$lt_file_magic_cmd
26439
26440# Flag that allows shared libraries with undefined symbols to be built.
26441allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26442
26443# Flag that forces no undefined symbols.
26444no_undefined_flag=$lt_no_undefined_flag_GCJ
26445
26446# Commands used to finish a libtool library installation in a directory.
26447finish_cmds=$lt_finish_cmds
26448
26449# Same as above, but a single script fragment to be evaled but not shown.
26450finish_eval=$lt_finish_eval
26451
26452# Take the output of nm and produce a listing of raw symbols and C names.
26453global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26454
26455# Transform the output of nm in a proper C declaration
26456global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26457
26458# Transform the output of nm in a C name address pair
26459global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26460
26461# This is the shared library runtime path variable.
26462runpath_var=$runpath_var
26463
26464# This is the shared library path variable.
26465shlibpath_var=$shlibpath_var
26466
26467# Is shlibpath searched before the hard-coded library search path?
26468shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26469
26470# How to hardcode a shared library path into an executable.
26471hardcode_action=$hardcode_action_GCJ
26472
26473# Whether we should hardcode library paths into libraries.
26474hardcode_into_libs=$hardcode_into_libs
26475
26476# Flag to hardcode \$libdir into a binary during linking.
26477# This must work even if \$libdir does not exist.
26478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26479
26480# If ld is used when linking, flag to hardcode \$libdir into
26481# a binary during linking. This must work even if \$libdir does
26482# not exist.
26483hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26484
26485# Whether we need a single -rpath flag with a separated argument.
26486hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26487
26488# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26489# resulting binary.
26490hardcode_direct=$hardcode_direct_GCJ
26491
26492# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26493# resulting binary.
26494hardcode_minus_L=$hardcode_minus_L_GCJ
26495
26496# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26497# the resulting binary.
26498hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26499
26500# Set to yes if building a shared library automatically hardcodes DIR into the library
26501# and all subsequent libraries and executables linked against it.
26502hardcode_automatic=$hardcode_automatic_GCJ
26503
26504# Variables whose values should be saved in libtool wrapper scripts and
26505# restored at relink time.
26506variables_saved_for_relink="$variables_saved_for_relink"
26507
26508# Whether libtool must link a program against all its dependency libraries.
26509link_all_deplibs=$link_all_deplibs_GCJ
26510
26511# Compile-time system search path for libraries
26512sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26513
26514# Run-time system search path for libraries
26515sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26516
26517# Fix the shell variable \$srcfile for the compiler.
26518fix_srcfile_path="$fix_srcfile_path_GCJ"
26519
26520# Set to yes if exported symbols are required.
26521always_export_symbols=$always_export_symbols_GCJ
26522
26523# The commands to list exported symbols.
26524export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26525
26526# The commands to extract the exported symbol list from a shared archive.
26527extract_expsyms_cmds=$lt_extract_expsyms_cmds
26528
26529# Symbols that should not be listed in the preloaded symbols.
26530exclude_expsyms=$lt_exclude_expsyms_GCJ
26531
26532# Symbols that must always be exported.
26533include_expsyms=$lt_include_expsyms_GCJ
26534
26535# ### END LIBTOOL TAG CONFIG: $tagname
26536
26537__EOF__
26538
26539
26540else
26541 # If there is no Makefile yet, we rely on a make rule to execute
26542 # `config.status --recheck' to rerun these tests and create the
26543 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026544 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26545 if test -f "$ltmain_in"; then
26546 test -f Makefile && make "$ltmain"
26547 fi
John Criswell47fdd832003-07-14 16:52:07 +000026548fi
26549
26550
26551ac_ext=c
26552ac_cpp='$CPP $CPPFLAGS'
26553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26555ac_compiler_gnu=$ac_cv_c_compiler_gnu
26556
26557CC="$lt_save_CC"
26558
26559 else
26560 tagname=""
26561 fi
26562 ;;
26563
26564 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026565 ac_ext=c
26566ac_cpp='$CPP $CPPFLAGS'
26567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26569ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026570
26571
26572# Source file extension for RC test sources.
26573ac_ext=rc
26574
26575# Object file extension for compiled RC test sources.
26576objext=o
26577objext_RC=$objext
26578
26579# Code to be used in simple compile tests
26580lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26581
26582# Code to be used in simple link tests
26583lt_simple_link_test_code="$lt_simple_compile_test_code"
26584
26585# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26586
26587# If no C compiler was specified, use CC.
26588LTCC=${LTCC-"$CC"}
26589
Reid Spencera773bd52006-08-04 18:18:08 +000026590# If no C compiler flags were specified, use CFLAGS.
26591LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26592
John Criswell47fdd832003-07-14 16:52:07 +000026593# Allow CC to be a program name with arguments.
26594compiler=$CC
26595
26596
Reid Spencera773bd52006-08-04 18:18:08 +000026597# save warnings/boilerplate of simple test code
26598ac_outfile=conftest.$ac_objext
26599printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26600eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26601_lt_compiler_boilerplate=`cat conftest.err`
26602$rm conftest*
26603
26604ac_outfile=conftest.$ac_objext
26605printf "$lt_simple_link_test_code" >conftest.$ac_ext
26606eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26607_lt_linker_boilerplate=`cat conftest.err`
26608$rm conftest*
26609
26610
John Criswell47fdd832003-07-14 16:52:07 +000026611# Allow CC to be a program name with arguments.
26612lt_save_CC="$CC"
26613CC=${RC-"windres"}
26614compiler=$CC
26615compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026616for cc_temp in $compiler""; do
26617 case $cc_temp in
26618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26620 \-*) ;;
26621 *) break;;
26622 esac
26623done
26624cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26625
John Criswell47fdd832003-07-14 16:52:07 +000026626lt_cv_prog_compiler_c_o_RC=yes
26627
26628# The else clause should only fire when bootstrapping the
26629# libtool distribution, otherwise you forgot to ship ltmain.sh
26630# with your package, and you will get complaints that there are
26631# no rules to generate ltmain.sh.
26632if test -f "$ltmain"; then
26633 # See if we are running on zsh, and set the options which allow our commands through
26634 # without removal of \ escapes.
26635 if test -n "${ZSH_VERSION+set}" ; then
26636 setopt NO_GLOB_SUBST
26637 fi
26638 # Now quote all the things that may contain metacharacters while being
26639 # careful not to overquote the AC_SUBSTed values. We take copies of the
26640 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026641 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 +000026642 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026643 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26644 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26645 deplibs_check_method reload_flag reload_cmds need_locks \
26646 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26647 lt_cv_sys_global_symbol_to_c_name_address \
26648 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26649 old_postinstall_cmds old_postuninstall_cmds \
26650 compiler_RC \
26651 CC_RC \
26652 LD_RC \
26653 lt_prog_compiler_wl_RC \
26654 lt_prog_compiler_pic_RC \
26655 lt_prog_compiler_static_RC \
26656 lt_prog_compiler_no_builtin_flag_RC \
26657 export_dynamic_flag_spec_RC \
26658 thread_safe_flag_spec_RC \
26659 whole_archive_flag_spec_RC \
26660 enable_shared_with_static_runtimes_RC \
26661 old_archive_cmds_RC \
26662 old_archive_from_new_cmds_RC \
26663 predep_objects_RC \
26664 postdep_objects_RC \
26665 predeps_RC \
26666 postdeps_RC \
26667 compiler_lib_search_path_RC \
26668 archive_cmds_RC \
26669 archive_expsym_cmds_RC \
26670 postinstall_cmds_RC \
26671 postuninstall_cmds_RC \
26672 old_archive_from_expsyms_cmds_RC \
26673 allow_undefined_flag_RC \
26674 no_undefined_flag_RC \
26675 export_symbols_cmds_RC \
26676 hardcode_libdir_flag_spec_RC \
26677 hardcode_libdir_flag_spec_ld_RC \
26678 hardcode_libdir_separator_RC \
26679 hardcode_automatic_RC \
26680 module_cmds_RC \
26681 module_expsym_cmds_RC \
26682 lt_cv_prog_compiler_c_o_RC \
26683 exclude_expsyms_RC \
26684 include_expsyms_RC; do
26685
26686 case $var in
26687 old_archive_cmds_RC | \
26688 old_archive_from_new_cmds_RC | \
26689 archive_cmds_RC | \
26690 archive_expsym_cmds_RC | \
26691 module_cmds_RC | \
26692 module_expsym_cmds_RC | \
26693 old_archive_from_expsyms_cmds_RC | \
26694 export_symbols_cmds_RC | \
26695 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26696 postinstall_cmds | postuninstall_cmds | \
26697 old_postinstall_cmds | old_postuninstall_cmds | \
26698 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26699 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026700 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 +000026701 ;;
26702 *)
26703 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26704 ;;
26705 esac
26706 done
26707
26708 case $lt_echo in
26709 *'\$0 --fallback-echo"')
26710 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26711 ;;
26712 esac
26713
26714cfgfile="$ofile"
26715
26716 cat <<__EOF__ >> "$cfgfile"
26717# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26718
26719# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26720
26721# Shell to use when invoking shell scripts.
26722SHELL=$lt_SHELL
26723
26724# Whether or not to build shared libraries.
26725build_libtool_libs=$enable_shared
26726
26727# Whether or not to build static libraries.
26728build_old_libs=$enable_static
26729
26730# Whether or not to add -lc for building shared libraries.
26731build_libtool_need_lc=$archive_cmds_need_lc_RC
26732
26733# Whether or not to disallow shared libs when runtime libs are static
26734allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26735
26736# Whether or not to optimize for fast installation.
26737fast_install=$enable_fast_install
26738
26739# The host system.
26740host_alias=$host_alias
26741host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026742host_os=$host_os
26743
26744# The build system.
26745build_alias=$build_alias
26746build=$build
26747build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026748
26749# An echo program that does not interpret backslashes.
26750echo=$lt_echo
26751
26752# The archiver.
26753AR=$lt_AR
26754AR_FLAGS=$lt_AR_FLAGS
26755
26756# A C compiler.
26757LTCC=$lt_LTCC
26758
Reid Spencera773bd52006-08-04 18:18:08 +000026759# LTCC compiler flags.
26760LTCFLAGS=$lt_LTCFLAGS
26761
John Criswell47fdd832003-07-14 16:52:07 +000026762# A language-specific compiler.
26763CC=$lt_compiler_RC
26764
26765# Is the compiler the GNU C compiler?
26766with_gcc=$GCC_RC
26767
26768# An ERE matcher.
26769EGREP=$lt_EGREP
26770
26771# The linker used to build libraries.
26772LD=$lt_LD_RC
26773
26774# Whether we need hard or soft links.
26775LN_S=$lt_LN_S
26776
26777# A BSD-compatible nm program.
26778NM=$lt_NM
26779
26780# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026782
26783# Used to examine libraries when file_magic_cmd begins "file"
26784MAGIC_CMD=$MAGIC_CMD
26785
26786# Used on cygwin: DLL creation program.
26787DLLTOOL="$DLLTOOL"
26788
26789# Used on cygwin: object dumper.
26790OBJDUMP="$OBJDUMP"
26791
26792# Used on cygwin: assembler.
26793AS="$AS"
26794
26795# The name of the directory that contains temporary libtool files.
26796objdir=$objdir
26797
26798# How to create reloadable object files.
26799reload_flag=$lt_reload_flag
26800reload_cmds=$lt_reload_cmds
26801
26802# How to pass a linker flag through the compiler.
26803wl=$lt_lt_prog_compiler_wl_RC
26804
26805# Object file suffix (normally "o").
26806objext="$ac_objext"
26807
26808# Old archive suffix (normally "a").
26809libext="$libext"
26810
26811# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026812shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026813
26814# Executable file suffix (normally "").
26815exeext="$exeext"
26816
26817# Additional compiler flags for building library objects.
26818pic_flag=$lt_lt_prog_compiler_pic_RC
26819pic_mode=$pic_mode
26820
26821# What is the maximum length of a command?
26822max_cmd_len=$lt_cv_sys_max_cmd_len
26823
26824# Does compiler simultaneously support -c and -o options?
26825compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26826
Reid Spencera773bd52006-08-04 18:18:08 +000026827# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026828need_locks=$lt_need_locks
26829
26830# Do we need the lib prefix for modules?
26831need_lib_prefix=$need_lib_prefix
26832
26833# Do we need a version for libraries?
26834need_version=$need_version
26835
26836# Whether dlopen is supported.
26837dlopen_support=$enable_dlopen
26838
26839# Whether dlopen of programs is supported.
26840dlopen_self=$enable_dlopen_self
26841
26842# Whether dlopen of statically linked programs is supported.
26843dlopen_self_static=$enable_dlopen_self_static
26844
26845# Compiler flag to prevent dynamic linking.
26846link_static_flag=$lt_lt_prog_compiler_static_RC
26847
26848# Compiler flag to turn off builtin functions.
26849no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26850
26851# Compiler flag to allow reflexive dlopens.
26852export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26853
26854# Compiler flag to generate shared objects directly from archives.
26855whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26856
26857# Compiler flag to generate thread-safe objects.
26858thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26859
26860# Library versioning type.
26861version_type=$version_type
26862
26863# Format of library name prefix.
26864libname_spec=$lt_libname_spec
26865
26866# List of archive names. First name is the real one, the rest are links.
26867# The last name is the one that the linker finds with -lNAME.
26868library_names_spec=$lt_library_names_spec
26869
26870# The coded name of the library, if different from the real name.
26871soname_spec=$lt_soname_spec
26872
26873# Commands used to build and install an old-style archive.
26874RANLIB=$lt_RANLIB
26875old_archive_cmds=$lt_old_archive_cmds_RC
26876old_postinstall_cmds=$lt_old_postinstall_cmds
26877old_postuninstall_cmds=$lt_old_postuninstall_cmds
26878
26879# Create an old-style archive from a shared archive.
26880old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26881
26882# Create a temporary old-style archive to link instead of a shared archive.
26883old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26884
26885# Commands used to build and install a shared archive.
26886archive_cmds=$lt_archive_cmds_RC
26887archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26888postinstall_cmds=$lt_postinstall_cmds
26889postuninstall_cmds=$lt_postuninstall_cmds
26890
26891# Commands used to build a loadable module (assumed same as above if empty)
26892module_cmds=$lt_module_cmds_RC
26893module_expsym_cmds=$lt_module_expsym_cmds_RC
26894
26895# Commands to strip libraries.
26896old_striplib=$lt_old_striplib
26897striplib=$lt_striplib
26898
26899# Dependencies to place before the objects being linked to create a
26900# shared library.
26901predep_objects=$lt_predep_objects_RC
26902
26903# Dependencies to place after the objects being linked to create a
26904# shared library.
26905postdep_objects=$lt_postdep_objects_RC
26906
26907# Dependencies to place before the objects being linked to create a
26908# shared library.
26909predeps=$lt_predeps_RC
26910
26911# Dependencies to place after the objects being linked to create a
26912# shared library.
26913postdeps=$lt_postdeps_RC
26914
26915# The library search path used internally by the compiler when linking
26916# a shared library.
26917compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26918
26919# Method to check whether dependent libraries are shared objects.
26920deplibs_check_method=$lt_deplibs_check_method
26921
26922# Command to use when deplibs_check_method == file_magic.
26923file_magic_cmd=$lt_file_magic_cmd
26924
26925# Flag that allows shared libraries with undefined symbols to be built.
26926allow_undefined_flag=$lt_allow_undefined_flag_RC
26927
26928# Flag that forces no undefined symbols.
26929no_undefined_flag=$lt_no_undefined_flag_RC
26930
26931# Commands used to finish a libtool library installation in a directory.
26932finish_cmds=$lt_finish_cmds
26933
26934# Same as above, but a single script fragment to be evaled but not shown.
26935finish_eval=$lt_finish_eval
26936
26937# Take the output of nm and produce a listing of raw symbols and C names.
26938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26939
26940# Transform the output of nm in a proper C declaration
26941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26942
26943# Transform the output of nm in a C name address pair
26944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26945
26946# This is the shared library runtime path variable.
26947runpath_var=$runpath_var
26948
26949# This is the shared library path variable.
26950shlibpath_var=$shlibpath_var
26951
26952# Is shlibpath searched before the hard-coded library search path?
26953shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26954
26955# How to hardcode a shared library path into an executable.
26956hardcode_action=$hardcode_action_RC
26957
26958# Whether we should hardcode library paths into libraries.
26959hardcode_into_libs=$hardcode_into_libs
26960
26961# Flag to hardcode \$libdir into a binary during linking.
26962# This must work even if \$libdir does not exist.
26963hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26964
26965# If ld is used when linking, flag to hardcode \$libdir into
26966# a binary during linking. This must work even if \$libdir does
26967# not exist.
26968hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26969
26970# Whether we need a single -rpath flag with a separated argument.
26971hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26972
26973# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26974# resulting binary.
26975hardcode_direct=$hardcode_direct_RC
26976
26977# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26978# resulting binary.
26979hardcode_minus_L=$hardcode_minus_L_RC
26980
26981# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26982# the resulting binary.
26983hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26984
26985# Set to yes if building a shared library automatically hardcodes DIR into the library
26986# and all subsequent libraries and executables linked against it.
26987hardcode_automatic=$hardcode_automatic_RC
26988
26989# Variables whose values should be saved in libtool wrapper scripts and
26990# restored at relink time.
26991variables_saved_for_relink="$variables_saved_for_relink"
26992
26993# Whether libtool must link a program against all its dependency libraries.
26994link_all_deplibs=$link_all_deplibs_RC
26995
26996# Compile-time system search path for libraries
26997sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26998
26999# Run-time system search path for libraries
27000sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27001
27002# Fix the shell variable \$srcfile for the compiler.
27003fix_srcfile_path="$fix_srcfile_path_RC"
27004
27005# Set to yes if exported symbols are required.
27006always_export_symbols=$always_export_symbols_RC
27007
27008# The commands to list exported symbols.
27009export_symbols_cmds=$lt_export_symbols_cmds_RC
27010
27011# The commands to extract the exported symbol list from a shared archive.
27012extract_expsyms_cmds=$lt_extract_expsyms_cmds
27013
27014# Symbols that should not be listed in the preloaded symbols.
27015exclude_expsyms=$lt_exclude_expsyms_RC
27016
27017# Symbols that must always be exported.
27018include_expsyms=$lt_include_expsyms_RC
27019
27020# ### END LIBTOOL TAG CONFIG: $tagname
27021
27022__EOF__
27023
27024
27025else
27026 # If there is no Makefile yet, we rely on a make rule to execute
27027 # `config.status --recheck' to rerun these tests and create the
27028 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027029 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27030 if test -f "$ltmain_in"; then
27031 test -f Makefile && make "$ltmain"
27032 fi
John Criswell47fdd832003-07-14 16:52:07 +000027033fi
27034
27035
27036ac_ext=c
27037ac_cpp='$CPP $CPPFLAGS'
27038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27040ac_compiler_gnu=$ac_cv_c_compiler_gnu
27041
27042CC="$lt_save_CC"
27043
27044 ;;
27045
27046 *)
27047 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27048echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27049 { (exit 1); exit 1; }; }
27050 ;;
27051 esac
27052
27053 # Append the new tag name to the list of available tags.
27054 if test -n "$tagname" ; then
27055 available_tags="$available_tags $tagname"
27056 fi
27057 fi
27058 done
27059 IFS="$lt_save_ifs"
27060
27061 # Now substitute the updated list of available tags.
27062 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27063 mv "${ofile}T" "$ofile"
27064 chmod +x "$ofile"
27065 else
27066 rm -f "${ofile}T"
27067 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27068echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27069 { (exit 1); exit 1; }; }
27070 fi
27071fi
John Criswell7a73b802003-06-30 21:59:07 +000027072
27073
27074
27075# This can be used to rebuild libtool when needed
27076LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27077
27078# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027079LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027080
27081# Prevent multiple expansion
27082
27083
27084
John Criswell47fdd832003-07-14 16:52:07 +000027085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027102
Reid Spencer582a23c2004-12-29 07:07:57 +000027103if test "$lt_cv_dlopen_self" = "yes" ; then
27104
27105cat >>confdefs.h <<\_ACEOF
27106#define CAN_DLOPEN_SELF 1
27107_ACEOF
27108
27109fi
27110
Reid Spencer7931a782004-12-27 06:15:02 +000027111if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027112 LLVMGCC="llvm-gcc${EXEEXT}"
27113 LLVMGXX="llvm-g++${EXEEXT}"
27114 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27115set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027116{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027118if test "${ac_cv_path_LLVMGCC+set}" = set; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27120else
27121 case $LLVMGCC in
27122 [\\/]* | ?:[\\/]*)
27123 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27124 ;;
27125 *)
27126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27127for as_dir in $PATH
27128do
27129 IFS=$as_save_IFS
27130 test -z "$as_dir" && as_dir=.
27131 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027132 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 +000027133 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27135 break 2
27136 fi
27137done
27138done
Reid Spencera773bd52006-08-04 18:18:08 +000027139IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027140
Reid Spencer59473af2004-12-25 07:31:29 +000027141 ;;
27142esac
27143fi
27144LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027145if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027146 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27147echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027148else
Reid Spencera773bd52006-08-04 18:18:08 +000027149 { echo "$as_me:$LINENO: result: no" >&5
27150echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027151fi
27152
Reid Spencera773bd52006-08-04 18:18:08 +000027153
Reid Spencerc84492c2005-06-02 22:34:49 +000027154 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27155set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027158if test "${ac_cv_path_LLVMGXX+set}" = set; then
27159 echo $ECHO_N "(cached) $ECHO_C" >&6
27160else
27161 case $LLVMGXX in
27162 [\\/]* | ?:[\\/]*)
27163 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27164 ;;
27165 *)
27166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27167for as_dir in $PATH
27168do
27169 IFS=$as_save_IFS
27170 test -z "$as_dir" && as_dir=.
27171 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027172 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 +000027173 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27175 break 2
27176 fi
27177done
27178done
Reid Spencera773bd52006-08-04 18:18:08 +000027179IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027180
Reid Spencer59473af2004-12-25 07:31:29 +000027181 ;;
27182esac
27183fi
27184LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027185if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027186 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27187echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027188else
Reid Spencera773bd52006-08-04 18:18:08 +000027189 { echo "$as_me:$LINENO: result: no" >&5
27190echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027191fi
27192
Reid Spencera773bd52006-08-04 18:18:08 +000027193
Reid Spencer59473af2004-12-25 07:31:29 +000027194else
Devang Patel5d28b882007-12-04 22:54:47 +000027195 if test -z "$LLVMGCC"; then
27196 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27197 fi
27198 if test -z "$LLVMGXX"; then
27199 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27200 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027201 LLVMGCC=$LLVMGCC
27202
27203 LLVMGXX=$LLVMGXX
27204
27205fi
27206
Reid Spencera773bd52006-08-04 18:18:08 +000027207{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27208echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027209
Reid Spencer86901802004-12-08 23:07:27 +000027210ICC=no
27211IXX=no
27212case $CC in
27213 icc*|icpc*)
27214 ICC=yes
27215 IXX=yes
27216 ;;
27217 *)
27218 ;;
27219esac
27220
Duraid Madina937c60a2006-02-15 07:57:42 +000027221if test "$GCC" != "yes" && test "$ICC" != "yes"
27222then
27223 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27224echo "$as_me: error: gcc|icc required but not found" >&2;}
27225 { (exit 1); exit 1; }; }
27226fi
27227
27228if test "$GXX" != "yes" && test "$IXX" != "yes"
27229then
27230 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27231echo "$as_me: error: g++|icc required but not found" >&2;}
27232 { (exit 1); exit 1; }; }
27233fi
27234
Reid Spencer86901802004-12-08 23:07:27 +000027235if test "$GCC" = "yes"
27236then
Chris Lattner399c7c72008-02-05 19:43:53 +000027237 cat >conftest.$ac_ext <<_ACEOF
27238#if !defined(__GNUC__) || __GNUC__ < 3
27239#error Unsupported GCC version
27240#endif
27241
27242_ACEOF
27243rm -f conftest.$ac_objext
27244if { (ac_try="$ac_compile"
27245case "(($ac_try" in
27246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247 *) ac_try_echo=$ac_try;;
27248esac
27249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27250 (eval "$ac_compile") 2>conftest.er1
27251 ac_status=$?
27252 grep -v '^ *+' conftest.er1 >conftest.err
27253 rm -f conftest.er1
27254 cat conftest.err >&5
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027256 (exit $ac_status); } &&
27257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27261esac
27262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27264 ac_status=$?
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; } &&
27267 { ac_try='test -s conftest.$ac_objext'
27268 { (case "(($ac_try" in
27269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27270 *) ac_try_echo=$ac_try;;
27271esac
27272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27273 (eval "$ac_try") 2>&5
27274 ac_status=$?
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027277 :
27278else
27279 echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027283echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27284 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027285fi
27286
27287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027288fi
27289
27290if test -z "$llvm_cv_gnu_make_command"
27291then
27292 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27293echo "$as_me: error: GNU Make required but not found" >&2;}
27294 { (exit 1); exit 1; }; }
27295fi
27296
Reid Spencera773bd52006-08-04 18:18:08 +000027297{ echo "$as_me:$LINENO: result: ok" >&5
27298echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027299
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027300
John Criswell7a73b802003-06-30 21:59:07 +000027301
Reid Spencera773bd52006-08-04 18:18:08 +000027302{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27303echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027304if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27305 echo $ECHO_N "(cached) $ECHO_C" >&6
27306else
27307 ac_check_lib_save_LIBS=$LIBS
27308LIBS="-lelf $LIBS"
27309cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027310/* confdefs.h. */
27311_ACEOF
27312cat confdefs.h >>conftest.$ac_ext
27313cat >>conftest.$ac_ext <<_ACEOF
27314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027315
Reid Spencera773bd52006-08-04 18:18:08 +000027316/* Override any GCC internal prototype to avoid an error.
27317 Use char because int might match the return type of a GCC
27318 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027319#ifdef __cplusplus
27320extern "C"
27321#endif
John Criswell7a73b802003-06-30 21:59:07 +000027322char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027323int
27324main ()
27325{
Reid Spencera773bd52006-08-04 18:18:08 +000027326return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027327 ;
27328 return 0;
27329}
27330_ACEOF
27331rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027332if { (ac_try="$ac_link"
27333case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27336esac
27337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027339 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027340 grep -v '^ *+' conftest.er1 >conftest.err
27341 rm -f conftest.er1
27342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027344 (exit $ac_status); } &&
27345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27346 { (case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349esac
27350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_try") 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try='test -s conftest$ac_exeext'
27356 { (case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27359esac
27360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_try") 2>&5
27362 ac_status=$?
27363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027365 ac_cv_lib_elf_elf_begin=yes
27366else
27367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027368sed 's/^/| /' conftest.$ac_ext >&5
27369
Reid Spencera773bd52006-08-04 18:18:08 +000027370 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027371fi
Reid Spencera773bd52006-08-04 18:18:08 +000027372
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027373rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027374 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027375LIBS=$ac_check_lib_save_LIBS
27376fi
Reid Spencera773bd52006-08-04 18:18:08 +000027377{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27378echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027379if test $ac_cv_lib_elf_elf_begin = yes; then
27380 cat >>confdefs.h <<_ACEOF
27381#define HAVE_LIBELF 1
27382_ACEOF
27383
27384 LIBS="-lelf $LIBS"
27385
27386fi
27387
27388
Reid Spencera773bd52006-08-04 18:18:08 +000027389{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27390echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027391if test "${ac_cv_lib_m_sin+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27393else
27394 ac_check_lib_save_LIBS=$LIBS
27395LIBS="-lm $LIBS"
27396cat >conftest.$ac_ext <<_ACEOF
27397/* confdefs.h. */
27398_ACEOF
27399cat confdefs.h >>conftest.$ac_ext
27400cat >>conftest.$ac_ext <<_ACEOF
27401/* end confdefs.h. */
27402
Reid Spencera773bd52006-08-04 18:18:08 +000027403/* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027406#ifdef __cplusplus
27407extern "C"
27408#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027409char sin ();
27410int
27411main ()
27412{
Reid Spencera773bd52006-08-04 18:18:08 +000027413return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027414 ;
27415 return 0;
27416}
27417_ACEOF
27418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027419if { (ac_try="$ac_link"
27420case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27423esac
27424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027426 ac_status=$?
27427 grep -v '^ *+' conftest.er1 >conftest.err
27428 rm -f conftest.er1
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027431 (exit $ac_status); } &&
27432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433 { (case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27436esac
27437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_try") 2>&5
27439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest$ac_exeext'
27443 { (case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446esac
27447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_try") 2>&5
27449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027452 ac_cv_lib_m_sin=yes
27453else
27454 echo "$as_me: failed program was:" >&5
27455sed 's/^/| /' conftest.$ac_ext >&5
27456
Reid Spencera773bd52006-08-04 18:18:08 +000027457 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027458fi
Reid Spencera773bd52006-08-04 18:18:08 +000027459
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027461 conftest$ac_exeext conftest.$ac_ext
27462LIBS=$ac_check_lib_save_LIBS
27463fi
Reid Spencera773bd52006-08-04 18:18:08 +000027464{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27465echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027466if test $ac_cv_lib_m_sin = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468#define HAVE_LIBM 1
27469_ACEOF
27470
27471 LIBS="-lm $LIBS"
27472
27473fi
27474
Jeff Cohen28783c32007-01-12 18:22:38 +000027475if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027476
Reid Spencera773bd52006-08-04 18:18:08 +000027477{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27478echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027479if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027480 echo $ECHO_N "(cached) $ECHO_C" >&6
27481else
27482 ac_check_lib_save_LIBS=$LIBS
27483LIBS="-limagehlp $LIBS"
27484cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490
Reid Spencer48fdf912006-06-01 19:03:21 +000027491
Reid Spencer484fc8e2006-06-01 16:55:59 +000027492int
27493main ()
27494{
Reid Spencera773bd52006-08-04 18:18:08 +000027495return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027496 ;
27497 return 0;
27498}
27499_ACEOF
27500rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027501if { (ac_try="$ac_link"
27502case "(($ac_try" in
27503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504 *) ac_try_echo=$ac_try;;
27505esac
27506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027508 ac_status=$?
27509 grep -v '^ *+' conftest.er1 >conftest.err
27510 rm -f conftest.er1
27511 cat conftest.err >&5
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027513 (exit $ac_status); } &&
27514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27515 { (case "(($ac_try" in
27516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27517 *) ac_try_echo=$ac_try;;
27518esac
27519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27520 (eval "$ac_try") 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; } &&
27524 { ac_try='test -s conftest$ac_exeext'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
27531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027534 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027535else
27536 echo "$as_me: failed program was:" >&5
27537sed 's/^/| /' conftest.$ac_ext >&5
27538
Reid Spencera773bd52006-08-04 18:18:08 +000027539 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027540fi
Reid Spencera773bd52006-08-04 18:18:08 +000027541
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027542rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027543 conftest$ac_exeext conftest.$ac_ext
27544LIBS=$ac_check_lib_save_LIBS
27545fi
Reid Spencera773bd52006-08-04 18:18:08 +000027546{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27547echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027548if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027549 cat >>confdefs.h <<_ACEOF
27550#define HAVE_LIBIMAGEHLP 1
27551_ACEOF
27552
27553 LIBS="-limagehlp $LIBS"
27554
27555fi
27556
27557
Reid Spencera773bd52006-08-04 18:18:08 +000027558{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27559echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027560if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027561 echo $ECHO_N "(cached) $ECHO_C" >&6
27562else
27563 ac_check_lib_save_LIBS=$LIBS
27564LIBS="-lpsapi $LIBS"
27565cat >conftest.$ac_ext <<_ACEOF
27566/* confdefs.h. */
27567_ACEOF
27568cat confdefs.h >>conftest.$ac_ext
27569cat >>conftest.$ac_ext <<_ACEOF
27570/* end confdefs.h. */
27571
Reid Spencer48fdf912006-06-01 19:03:21 +000027572
Reid Spencer484fc8e2006-06-01 16:55:59 +000027573int
27574main ()
27575{
Reid Spencera773bd52006-08-04 18:18:08 +000027576return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027577 ;
27578 return 0;
27579}
27580_ACEOF
27581rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027582if { (ac_try="$ac_link"
27583case "(($ac_try" in
27584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585 *) ac_try_echo=$ac_try;;
27586esac
27587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027589 ac_status=$?
27590 grep -v '^ *+' conftest.er1 >conftest.err
27591 rm -f conftest.er1
27592 cat conftest.err >&5
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027594 (exit $ac_status); } &&
27595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27596 { (case "(($ac_try" in
27597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27598 *) ac_try_echo=$ac_try;;
27599esac
27600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27601 (eval "$ac_try") 2>&5
27602 ac_status=$?
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try='test -s conftest$ac_exeext'
27606 { (case "(($ac_try" in
27607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27608 *) ac_try_echo=$ac_try;;
27609esac
27610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27611 (eval "$ac_try") 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027615 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027616else
27617 echo "$as_me: failed program was:" >&5
27618sed 's/^/| /' conftest.$ac_ext >&5
27619
Reid Spencera773bd52006-08-04 18:18:08 +000027620 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027621fi
Reid Spencera773bd52006-08-04 18:18:08 +000027622
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027623rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027624 conftest$ac_exeext conftest.$ac_ext
27625LIBS=$ac_check_lib_save_LIBS
27626fi
Reid Spencera773bd52006-08-04 18:18:08 +000027627{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27628echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027629if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027630 cat >>confdefs.h <<_ACEOF
27631#define HAVE_LIBPSAPI 1
27632_ACEOF
27633
27634 LIBS="-lpsapi $LIBS"
27635
27636fi
27637
27638fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027639
Reid Spencera773bd52006-08-04 18:18:08 +000027640{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27641echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027642if test "${ac_cv_search_dlopen+set}" = set; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27644else
27645 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027646cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027647/* confdefs.h. */
27648_ACEOF
27649cat confdefs.h >>conftest.$ac_ext
27650cat >>conftest.$ac_ext <<_ACEOF
27651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027652
Reid Spencera773bd52006-08-04 18:18:08 +000027653/* Override any GCC internal prototype to avoid an error.
27654 Use char because int might match the return type of a GCC
27655 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027656#ifdef __cplusplus
27657extern "C"
27658#endif
John Criswell7a73b802003-06-30 21:59:07 +000027659char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027660int
27661main ()
27662{
Reid Spencera773bd52006-08-04 18:18:08 +000027663return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027664 ;
27665 return 0;
27666}
27667_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027668for ac_lib in '' dl; do
27669 if test -z "$ac_lib"; then
27670 ac_res="none required"
27671 else
27672 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027674 fi
27675 rm -f conftest.$ac_objext conftest$ac_exeext
27676if { (ac_try="$ac_link"
27677case "(($ac_try" in
27678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27679 *) ac_try_echo=$ac_try;;
27680esac
27681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27682 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027684 grep -v '^ *+' conftest.er1 >conftest.err
27685 rm -f conftest.er1
27686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027688 (exit $ac_status); } &&
27689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27690 { (case "(($ac_try" in
27691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27692 *) ac_try_echo=$ac_try;;
27693esac
27694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27695 (eval "$ac_try") 2>&5
27696 ac_status=$?
27697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698 (exit $ac_status); }; } &&
27699 { ac_try='test -s conftest$ac_exeext'
27700 { (case "(($ac_try" in
27701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27702 *) ac_try_echo=$ac_try;;
27703esac
27704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27705 (eval "$ac_try") 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027709 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027710else
27711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027712sed 's/^/| /' conftest.$ac_ext >&5
27713
Reid Spencera773bd52006-08-04 18:18:08 +000027714
John Criswell7a73b802003-06-30 21:59:07 +000027715fi
Reid Spencera773bd52006-08-04 18:18:08 +000027716
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027717rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027718 conftest$ac_exeext
27719 if test "${ac_cv_search_dlopen+set}" = set; then
27720 break
John Criswell7a73b802003-06-30 21:59:07 +000027721fi
Reid Spencera773bd52006-08-04 18:18:08 +000027722done
27723if test "${ac_cv_search_dlopen+set}" = set; then
27724 :
27725else
27726 ac_cv_search_dlopen=no
27727fi
27728rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027729LIBS=$ac_func_search_save_LIBS
27730fi
Reid Spencera773bd52006-08-04 18:18:08 +000027731{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27732echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27733ac_res=$ac_cv_search_dlopen
27734if test "$ac_res" != no; then
27735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027736
27737cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027738#define HAVE_DLOPEN 1
27739_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027740
27741else
Brian Gaekec45be042003-10-07 06:01:34 +000027742 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27743echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027744fi
27745
27746
Reid Spencera773bd52006-08-04 18:18:08 +000027747{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27748echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027749if test "${ac_cv_search_mallinfo+set}" = set; then
27750 echo $ECHO_N "(cached) $ECHO_C" >&6
27751else
27752 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027753cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027754/* confdefs.h. */
27755_ACEOF
27756cat confdefs.h >>conftest.$ac_ext
27757cat >>conftest.$ac_ext <<_ACEOF
27758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027759
Reid Spencera773bd52006-08-04 18:18:08 +000027760/* Override any GCC internal prototype to avoid an error.
27761 Use char because int might match the return type of a GCC
27762 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027763#ifdef __cplusplus
27764extern "C"
27765#endif
John Criswell7a73b802003-06-30 21:59:07 +000027766char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027767int
27768main ()
27769{
Reid Spencera773bd52006-08-04 18:18:08 +000027770return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027771 ;
27772 return 0;
27773}
27774_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027775for ac_lib in '' malloc; do
27776 if test -z "$ac_lib"; then
27777 ac_res="none required"
27778 else
27779 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027781 fi
27782 rm -f conftest.$ac_objext conftest$ac_exeext
27783if { (ac_try="$ac_link"
27784case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027791 grep -v '^ *+' conftest.er1 >conftest.err
27792 rm -f conftest.er1
27793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027795 (exit $ac_status); } &&
27796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27797 { (case "(($ac_try" in
27798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27799 *) ac_try_echo=$ac_try;;
27800esac
27801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27802 (eval "$ac_try") 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest$ac_exeext'
27807 { (case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_try") 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027816 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027817else
27818 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027819sed 's/^/| /' conftest.$ac_ext >&5
27820
Reid Spencera773bd52006-08-04 18:18:08 +000027821
John Criswell7a73b802003-06-30 21:59:07 +000027822fi
Reid Spencera773bd52006-08-04 18:18:08 +000027823
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027824rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027825 conftest$ac_exeext
27826 if test "${ac_cv_search_mallinfo+set}" = set; then
27827 break
John Criswell7a73b802003-06-30 21:59:07 +000027828fi
Reid Spencera773bd52006-08-04 18:18:08 +000027829done
27830if test "${ac_cv_search_mallinfo+set}" = set; then
27831 :
27832else
27833 ac_cv_search_mallinfo=no
27834fi
27835rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027836LIBS=$ac_func_search_save_LIBS
27837fi
Reid Spencera773bd52006-08-04 18:18:08 +000027838{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27839echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27840ac_res=$ac_cv_search_mallinfo
27841if test "$ac_res" != no; then
27842 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027843
27844cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027845#define HAVE_MALLINFO 1
27846_ACEOF
27847
27848fi
27849
27850
Reid Spencer0a262ba2005-08-24 10:07:20 +000027851if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027852
Reid Spencera773bd52006-08-04 18:18:08 +000027853{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27854echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027855if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27856 echo $ECHO_N "(cached) $ECHO_C" >&6
27857else
27858 ac_check_lib_save_LIBS=$LIBS
27859LIBS="-lpthread $LIBS"
27860cat >conftest.$ac_ext <<_ACEOF
27861/* confdefs.h. */
27862_ACEOF
27863cat confdefs.h >>conftest.$ac_ext
27864cat >>conftest.$ac_ext <<_ACEOF
27865/* end confdefs.h. */
27866
Reid Spencera773bd52006-08-04 18:18:08 +000027867/* Override any GCC internal prototype to avoid an error.
27868 Use char because int might match the return type of a GCC
27869 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027870#ifdef __cplusplus
27871extern "C"
27872#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027873char pthread_mutex_init ();
27874int
27875main ()
27876{
Reid Spencera773bd52006-08-04 18:18:08 +000027877return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027878 ;
27879 return 0;
27880}
27881_ACEOF
27882rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027883if { (ac_try="$ac_link"
27884case "(($ac_try" in
27885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27886 *) ac_try_echo=$ac_try;;
27887esac
27888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27889 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027890 ac_status=$?
27891 grep -v '^ *+' conftest.er1 >conftest.err
27892 rm -f conftest.er1
27893 cat conftest.err >&5
27894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027895 (exit $ac_status); } &&
27896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27897 { (case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_try") 2>&5
27903 ac_status=$?
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); }; } &&
27906 { ac_try='test -s conftest$ac_exeext'
27907 { (case "(($ac_try" in
27908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909 *) ac_try_echo=$ac_try;;
27910esac
27911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912 (eval "$ac_try") 2>&5
27913 ac_status=$?
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027916 ac_cv_lib_pthread_pthread_mutex_init=yes
27917else
27918 echo "$as_me: failed program was:" >&5
27919sed 's/^/| /' conftest.$ac_ext >&5
27920
Reid Spencera773bd52006-08-04 18:18:08 +000027921 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027922fi
Reid Spencera773bd52006-08-04 18:18:08 +000027923
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027925 conftest$ac_exeext conftest.$ac_ext
27926LIBS=$ac_check_lib_save_LIBS
27927fi
Reid Spencera773bd52006-08-04 18:18:08 +000027928{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27929echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027930if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27931 cat >>confdefs.h <<_ACEOF
27932#define HAVE_LIBPTHREAD 1
27933_ACEOF
27934
27935 LIBS="-lpthread $LIBS"
27936
27937fi
27938
Reid Spencera773bd52006-08-04 18:18:08 +000027939 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27940echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027941if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27943else
27944 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027945cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027946/* confdefs.h. */
27947_ACEOF
27948cat confdefs.h >>conftest.$ac_ext
27949cat >>conftest.$ac_ext <<_ACEOF
27950/* end confdefs.h. */
27951
Reid Spencera773bd52006-08-04 18:18:08 +000027952/* Override any GCC internal prototype to avoid an error.
27953 Use char because int might match the return type of a GCC
27954 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027955#ifdef __cplusplus
27956extern "C"
27957#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027958char pthread_mutex_lock ();
27959int
27960main ()
27961{
Reid Spencera773bd52006-08-04 18:18:08 +000027962return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027963 ;
27964 return 0;
27965}
27966_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027967for ac_lib in '' pthread; do
27968 if test -z "$ac_lib"; then
27969 ac_res="none required"
27970 else
27971 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027973 fi
27974 rm -f conftest.$ac_objext conftest$ac_exeext
27975if { (ac_try="$ac_link"
27976case "(($ac_try" in
27977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27978 *) ac_try_echo=$ac_try;;
27979esac
27980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27981 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027983 grep -v '^ *+' conftest.er1 >conftest.err
27984 rm -f conftest.er1
27985 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027987 (exit $ac_status); } &&
27988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27989 { (case "(($ac_try" in
27990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991 *) ac_try_echo=$ac_try;;
27992esac
27993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994 (eval "$ac_try") 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; } &&
27998 { ac_try='test -s conftest$ac_exeext'
27999 { (case "(($ac_try" in
28000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001 *) ac_try_echo=$ac_try;;
28002esac
28003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004 (eval "$ac_try") 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028008 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028009else
28010 echo "$as_me: failed program was:" >&5
28011sed 's/^/| /' conftest.$ac_ext >&5
28012
Reid Spencera773bd52006-08-04 18:18:08 +000028013
Brian Gaeke5f268f72003-12-05 19:29:01 +000028014fi
Reid Spencera773bd52006-08-04 18:18:08 +000028015
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028016rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028017 conftest$ac_exeext
28018 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28019 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028020fi
Reid Spencera773bd52006-08-04 18:18:08 +000028021done
28022if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28023 :
28024else
28025 ac_cv_search_pthread_mutex_lock=no
28026fi
28027rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028028LIBS=$ac_func_search_save_LIBS
28029fi
Reid Spencera773bd52006-08-04 18:18:08 +000028030{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28031echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28032ac_res=$ac_cv_search_pthread_mutex_lock
28033if test "$ac_res" != no; then
28034 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028035
John Criswell40468462004-09-24 21:19:06 +000028036cat >>confdefs.h <<\_ACEOF
28037#define HAVE_PTHREAD_MUTEX_LOCK 1
28038_ACEOF
28039
28040fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028041
Reid Spencer0a262ba2005-08-24 10:07:20 +000028042fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028043
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028044
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028045# Check whether --with-udis86 was given.
28046if test "${with_udis86+set}" = set; then
28047 withval=$with_udis86;
28048 USE_UDIS86=1
28049
28050 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028051 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028052 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28053 esac
28054
28055{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28056echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28057if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28058 echo $ECHO_N "(cached) $ECHO_C" >&6
28059else
28060 ac_check_lib_save_LIBS=$LIBS
28061LIBS="-ludis86 $LIBS"
28062cat >conftest.$ac_ext <<_ACEOF
28063/* confdefs.h. */
28064_ACEOF
28065cat confdefs.h >>conftest.$ac_ext
28066cat >>conftest.$ac_ext <<_ACEOF
28067/* end confdefs.h. */
28068
28069/* Override any GCC internal prototype to avoid an error.
28070 Use char because int might match the return type of a GCC
28071 builtin and then its argument prototype would still apply. */
28072#ifdef __cplusplus
28073extern "C"
28074#endif
28075char ud_init ();
28076int
28077main ()
28078{
28079return ud_init ();
28080 ;
28081 return 0;
28082}
28083_ACEOF
28084rm -f conftest.$ac_objext conftest$ac_exeext
28085if { (ac_try="$ac_link"
28086case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28089esac
28090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_link") 2>conftest.er1
28092 ac_status=$?
28093 grep -v '^ *+' conftest.er1 >conftest.err
28094 rm -f conftest.er1
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028097 (exit $ac_status); } &&
28098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28099 { (case "(($ac_try" in
28100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28101 *) ac_try_echo=$ac_try;;
28102esac
28103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28104 (eval "$ac_try") 2>&5
28105 ac_status=$?
28106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107 (exit $ac_status); }; } &&
28108 { ac_try='test -s conftest$ac_exeext'
28109 { (case "(($ac_try" in
28110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28111 *) ac_try_echo=$ac_try;;
28112esac
28113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28114 (eval "$ac_try") 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028118 ac_cv_lib_udis86_ud_init=yes
28119else
28120 echo "$as_me: failed program was:" >&5
28121sed 's/^/| /' conftest.$ac_ext >&5
28122
28123 ac_cv_lib_udis86_ud_init=no
28124fi
28125
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028126rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028127 conftest$ac_exeext conftest.$ac_ext
28128LIBS=$ac_check_lib_save_LIBS
28129fi
28130{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28131echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28132if test $ac_cv_lib_udis86_ud_init = yes; then
28133 cat >>confdefs.h <<_ACEOF
28134#define HAVE_LIBUDIS86 1
28135_ACEOF
28136
28137 LIBS="-ludis86 $LIBS"
28138
28139else
28140
28141 echo "Error! You need to have libudis86 around."
28142 exit -1
28143
28144fi
28145
28146
28147else
28148 USE_UDIS86=0
28149
28150fi
28151
28152
28153cat >>confdefs.h <<_ACEOF
28154#define USE_UDIS86 $USE_UDIS86
28155_ACEOF
28156
28157
28158
Reid Spencer59473af2004-12-25 07:31:29 +000028159
28160
28161
28162
28163
28164ac_header_dirent=no
28165for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28166 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028167{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28168echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028170 echo $ECHO_N "(cached) $ECHO_C" >&6
28171else
28172 cat >conftest.$ac_ext <<_ACEOF
28173/* confdefs.h. */
28174_ACEOF
28175cat confdefs.h >>conftest.$ac_ext
28176cat >>conftest.$ac_ext <<_ACEOF
28177/* end confdefs.h. */
28178#include <sys/types.h>
28179#include <$ac_hdr>
28180
28181int
28182main ()
28183{
28184if ((DIR *) 0)
28185return 0;
28186 ;
28187 return 0;
28188}
28189_ACEOF
28190rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028191if { (ac_try="$ac_compile"
28192case "(($ac_try" in
28193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28194 *) ac_try_echo=$ac_try;;
28195esac
28196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28197 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028198 ac_status=$?
28199 grep -v '^ *+' conftest.er1 >conftest.err
28200 rm -f conftest.er1
28201 cat conftest.err >&5
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028203 (exit $ac_status); } &&
28204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28205 { (case "(($ac_try" in
28206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28207 *) ac_try_echo=$ac_try;;
28208esac
28209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28210 (eval "$ac_try") 2>&5
28211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; } &&
28214 { ac_try='test -s conftest.$ac_objext'
28215 { (case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28218esac
28219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_try") 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028224 eval "$as_ac_Header=yes"
28225else
28226 echo "$as_me: failed program was:" >&5
28227sed 's/^/| /' conftest.$ac_ext >&5
28228
Reid Spencera773bd52006-08-04 18:18:08 +000028229 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028230fi
Reid Spencera773bd52006-08-04 18:18:08 +000028231
28232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028233fi
Reid Spencera773bd52006-08-04 18:18:08 +000028234ac_res=`eval echo '${'$as_ac_Header'}'`
28235 { echo "$as_me:$LINENO: result: $ac_res" >&5
28236echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028237if test `eval echo '${'$as_ac_Header'}'` = yes; then
28238 cat >>confdefs.h <<_ACEOF
28239#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28240_ACEOF
28241
28242ac_header_dirent=$ac_hdr; break
28243fi
28244
28245done
28246# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28247if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028248 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28249echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028250if test "${ac_cv_search_opendir+set}" = set; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28252else
28253 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028254cat >conftest.$ac_ext <<_ACEOF
28255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
28260
Reid Spencera773bd52006-08-04 18:18:08 +000028261/* Override any GCC internal prototype to avoid an error.
28262 Use char because int might match the return type of a GCC
28263 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028264#ifdef __cplusplus
28265extern "C"
28266#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028267char opendir ();
28268int
28269main ()
28270{
Reid Spencera773bd52006-08-04 18:18:08 +000028271return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028272 ;
28273 return 0;
28274}
28275_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028276for ac_lib in '' dir; do
28277 if test -z "$ac_lib"; then
28278 ac_res="none required"
28279 else
28280 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028282 fi
28283 rm -f conftest.$ac_objext conftest$ac_exeext
28284if { (ac_try="$ac_link"
28285case "(($ac_try" in
28286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28287 *) ac_try_echo=$ac_try;;
28288esac
28289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28290 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028291 ac_status=$?
28292 grep -v '^ *+' conftest.er1 >conftest.err
28293 rm -f conftest.er1
28294 cat conftest.err >&5
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028296 (exit $ac_status); } &&
28297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28298 { (case "(($ac_try" in
28299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28300 *) ac_try_echo=$ac_try;;
28301esac
28302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28303 (eval "$ac_try") 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest$ac_exeext'
28308 { (case "(($ac_try" in
28309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310 *) ac_try_echo=$ac_try;;
28311esac
28312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313 (eval "$ac_try") 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028317 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
Reid Spencera773bd52006-08-04 18:18:08 +000028322
Reid Spencer59473af2004-12-25 07:31:29 +000028323fi
Reid Spencera773bd52006-08-04 18:18:08 +000028324
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028325rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028326 conftest$ac_exeext
28327 if test "${ac_cv_search_opendir+set}" = set; then
28328 break
Reid Spencer59473af2004-12-25 07:31:29 +000028329fi
Reid Spencera773bd52006-08-04 18:18:08 +000028330done
28331if test "${ac_cv_search_opendir+set}" = set; then
28332 :
28333else
28334 ac_cv_search_opendir=no
28335fi
28336rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028337LIBS=$ac_func_search_save_LIBS
28338fi
Reid Spencera773bd52006-08-04 18:18:08 +000028339{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28340echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28341ac_res=$ac_cv_search_opendir
28342if test "$ac_res" != no; then
28343 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028344
28345fi
28346
28347else
Reid Spencera773bd52006-08-04 18:18:08 +000028348 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28349echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028350if test "${ac_cv_search_opendir+set}" = set; then
28351 echo $ECHO_N "(cached) $ECHO_C" >&6
28352else
28353 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028354cat >conftest.$ac_ext <<_ACEOF
28355/* confdefs.h. */
28356_ACEOF
28357cat confdefs.h >>conftest.$ac_ext
28358cat >>conftest.$ac_ext <<_ACEOF
28359/* end confdefs.h. */
28360
Reid Spencera773bd52006-08-04 18:18:08 +000028361/* Override any GCC internal prototype to avoid an error.
28362 Use char because int might match the return type of a GCC
28363 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028364#ifdef __cplusplus
28365extern "C"
28366#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028367char opendir ();
28368int
28369main ()
28370{
Reid Spencera773bd52006-08-04 18:18:08 +000028371return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028372 ;
28373 return 0;
28374}
28375_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028376for ac_lib in '' x; do
28377 if test -z "$ac_lib"; then
28378 ac_res="none required"
28379 else
28380 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028382 fi
28383 rm -f conftest.$ac_objext conftest$ac_exeext
28384if { (ac_try="$ac_link"
28385case "(($ac_try" in
28386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28387 *) ac_try_echo=$ac_try;;
28388esac
28389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28390 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028391 ac_status=$?
28392 grep -v '^ *+' conftest.er1 >conftest.err
28393 rm -f conftest.er1
28394 cat conftest.err >&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028396 (exit $ac_status); } &&
28397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28398 { (case "(($ac_try" in
28399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28400 *) ac_try_echo=$ac_try;;
28401esac
28402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28403 (eval "$ac_try") 2>&5
28404 ac_status=$?
28405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28406 (exit $ac_status); }; } &&
28407 { ac_try='test -s conftest$ac_exeext'
28408 { (case "(($ac_try" in
28409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410 *) ac_try_echo=$ac_try;;
28411esac
28412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413 (eval "$ac_try") 2>&5
28414 ac_status=$?
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028417 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028418else
28419 echo "$as_me: failed program was:" >&5
28420sed 's/^/| /' conftest.$ac_ext >&5
28421
Reid Spencera773bd52006-08-04 18:18:08 +000028422
Reid Spencer59473af2004-12-25 07:31:29 +000028423fi
Reid Spencera773bd52006-08-04 18:18:08 +000028424
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028425rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028426 conftest$ac_exeext
28427 if test "${ac_cv_search_opendir+set}" = set; then
28428 break
Reid Spencer59473af2004-12-25 07:31:29 +000028429fi
Reid Spencera773bd52006-08-04 18:18:08 +000028430done
28431if test "${ac_cv_search_opendir+set}" = set; then
28432 :
28433else
28434 ac_cv_search_opendir=no
28435fi
28436rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028437LIBS=$ac_func_search_save_LIBS
28438fi
Reid Spencera773bd52006-08-04 18:18:08 +000028439{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28440echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28441ac_res=$ac_cv_search_opendir
28442if test "$ac_res" != no; then
28443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028444
28445fi
28446
28447fi
28448
Reid Spencera773bd52006-08-04 18:18:08 +000028449{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28450echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028451if test "${ac_cv_header_mmap_anon+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28453else
28454 ac_ext=c
28455ac_cpp='$CPP $CPPFLAGS'
28456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28458ac_compiler_gnu=$ac_cv_c_compiler_gnu
28459
28460 cat >conftest.$ac_ext <<_ACEOF
28461/* confdefs.h. */
28462_ACEOF
28463cat confdefs.h >>conftest.$ac_ext
28464cat >>conftest.$ac_ext <<_ACEOF
28465/* end confdefs.h. */
28466#include <sys/mman.h>
28467#include <unistd.h>
28468#include <fcntl.h>
28469int
28470main ()
28471{
28472mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28473 ;
28474 return 0;
28475}
28476_ACEOF
28477rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028478if { (ac_try="$ac_compile"
28479case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482esac
28483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028485 ac_status=$?
28486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
28489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492 { (case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28495esac
28496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_try") 2>&5
28498 ac_status=$?
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028511 ac_cv_header_mmap_anon=yes
28512else
28513 echo "$as_me: failed program was:" >&5
28514sed 's/^/| /' conftest.$ac_ext >&5
28515
Reid Spencera773bd52006-08-04 18:18:08 +000028516 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028517fi
Reid Spencera773bd52006-08-04 18:18:08 +000028518
28519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028520 ac_ext=c
28521ac_cpp='$CPP $CPPFLAGS'
28522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28524ac_compiler_gnu=$ac_cv_c_compiler_gnu
28525
28526
28527fi
Reid Spencera773bd52006-08-04 18:18:08 +000028528{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28529echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028530if test "$ac_cv_header_mmap_anon" = yes; then
28531
28532cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028533#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028534_ACEOF
28535
28536fi
28537
Reid Spencera773bd52006-08-04 18:18:08 +000028538{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28539echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028540if test "${ac_cv_header_stat_broken+set}" = set; then
28541 echo $ECHO_N "(cached) $ECHO_C" >&6
28542else
28543 cat >conftest.$ac_ext <<_ACEOF
28544/* confdefs.h. */
28545_ACEOF
28546cat confdefs.h >>conftest.$ac_ext
28547cat >>conftest.$ac_ext <<_ACEOF
28548/* end confdefs.h. */
28549#include <sys/types.h>
28550#include <sys/stat.h>
28551
Reid Spencera773bd52006-08-04 18:18:08 +000028552#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028553# if S_ISBLK (S_IFDIR)
28554You lose.
28555# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028556#endif
28557
Reid Spencera773bd52006-08-04 18:18:08 +000028558#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028559# if S_ISBLK (S_IFCHR)
28560You lose.
28561# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028562#endif
28563
Reid Spencera773bd52006-08-04 18:18:08 +000028564#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028565# if S_ISLNK (S_IFREG)
28566You lose.
28567# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028568#endif
28569
Reid Spencera773bd52006-08-04 18:18:08 +000028570#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028571# if S_ISSOCK (S_IFREG)
28572You lose.
28573# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028574#endif
28575
28576_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28578 $EGREP "You lose" >/dev/null 2>&1; then
28579 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028580else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028581 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028582fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028583rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028584
Reid Spencer59473af2004-12-25 07:31:29 +000028585fi
Reid Spencera773bd52006-08-04 18:18:08 +000028586{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28587echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028588if test $ac_cv_header_stat_broken = yes; then
28589
28590cat >>confdefs.h <<\_ACEOF
28591#define STAT_MACROS_BROKEN 1
28592_ACEOF
28593
28594fi
28595
Reid Spencera773bd52006-08-04 18:18:08 +000028596{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28597echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028598if test "${ac_cv_header_stdc+set}" = set; then
28599 echo $ECHO_N "(cached) $ECHO_C" >&6
28600else
28601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028602/* confdefs.h. */
28603_ACEOF
28604cat confdefs.h >>conftest.$ac_ext
28605cat >>conftest.$ac_ext <<_ACEOF
28606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028607#include <stdlib.h>
28608#include <stdarg.h>
28609#include <string.h>
28610#include <float.h>
28611
John Criswell0c38eaf2003-09-10 15:17:25 +000028612int
28613main ()
28614{
28615
28616 ;
28617 return 0;
28618}
John Criswell7a73b802003-06-30 21:59:07 +000028619_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028621if { (ac_try="$ac_compile"
28622case "(($ac_try" in
28623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28624 *) ac_try_echo=$ac_try;;
28625esac
28626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28627 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028629 grep -v '^ *+' conftest.er1 >conftest.err
28630 rm -f conftest.er1
28631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028633 (exit $ac_status); } &&
28634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28635 { (case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28638esac
28639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_try") 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest.$ac_objext'
28645 { (case "(($ac_try" in
28646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28647 *) ac_try_echo=$ac_try;;
28648esac
28649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28650 (eval "$ac_try") 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028654 ac_cv_header_stdc=yes
28655else
28656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028657sed 's/^/| /' conftest.$ac_ext >&5
28658
Reid Spencera773bd52006-08-04 18:18:08 +000028659 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028660fi
Reid Spencera773bd52006-08-04 18:18:08 +000028661
28662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028663
28664if test $ac_cv_header_stdc = yes; then
28665 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028667/* confdefs.h. */
28668_ACEOF
28669cat confdefs.h >>conftest.$ac_ext
28670cat >>conftest.$ac_ext <<_ACEOF
28671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028672#include <string.h>
28673
28674_ACEOF
28675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028676 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028677 :
28678else
28679 ac_cv_header_stdc=no
28680fi
28681rm -f conftest*
28682
28683fi
28684
28685if test $ac_cv_header_stdc = yes; then
28686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28687 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028688/* confdefs.h. */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028693#include <stdlib.h>
28694
28695_ACEOF
28696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028697 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028698 :
28699else
28700 ac_cv_header_stdc=no
28701fi
28702rm -f conftest*
28703
28704fi
28705
28706if test $ac_cv_header_stdc = yes; then
28707 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28708 if test "$cross_compiling" = yes; then
28709 :
28710else
28711 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028712/* confdefs.h. */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028717#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028718#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028719#if ((' ' & 0x0FF) == 0x020)
28720# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28721# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28722#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028723# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028724 (('a' <= (c) && (c) <= 'i') \
28725 || ('j' <= (c) && (c) <= 'r') \
28726 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028727# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28728#endif
28729
28730#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28731int
28732main ()
28733{
28734 int i;
28735 for (i = 0; i < 256; i++)
28736 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028737 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028738 return 2;
28739 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028740}
28741_ACEOF
28742rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028743if { (ac_try="$ac_link"
28744case "(($ac_try" in
28745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28746 *) ac_try_echo=$ac_try;;
28747esac
28748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28749 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028750 ac_status=$?
28751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028753 { (case "(($ac_try" in
28754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28755 *) ac_try_echo=$ac_try;;
28756esac
28757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28758 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
28762 :
28763else
28764 echo "$as_me: program exited with status $ac_status" >&5
28765echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028766sed 's/^/| /' conftest.$ac_ext >&5
28767
John Criswell7a73b802003-06-30 21:59:07 +000028768( exit $ac_status )
28769ac_cv_header_stdc=no
28770fi
Reid Spencera773bd52006-08-04 18:18:08 +000028771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28772fi
28773
28774
John Criswell7a73b802003-06-30 21:59:07 +000028775fi
28776fi
Reid Spencera773bd52006-08-04 18:18:08 +000028777{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28778echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028779if test $ac_cv_header_stdc = yes; then
28780
28781cat >>confdefs.h <<\_ACEOF
28782#define STDC_HEADERS 1
28783_ACEOF
28784
28785fi
28786
Reid Spencera773bd52006-08-04 18:18:08 +000028787{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28788echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028789if test "${ac_cv_header_sys_wait_h+set}" = set; then
28790 echo $ECHO_N "(cached) $ECHO_C" >&6
28791else
28792 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028793/* confdefs.h. */
28794_ACEOF
28795cat confdefs.h >>conftest.$ac_ext
28796cat >>conftest.$ac_ext <<_ACEOF
28797/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028798#include <sys/types.h>
28799#include <sys/wait.h>
28800#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028801# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028802#endif
28803#ifndef WIFEXITED
28804# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28805#endif
28806
John Criswell7a73b802003-06-30 21:59:07 +000028807int
28808main ()
28809{
28810 int s;
28811 wait (&s);
28812 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28813 ;
28814 return 0;
28815}
28816_ACEOF
28817rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028818if { (ac_try="$ac_compile"
28819case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28822esac
28823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028825 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028826 grep -v '^ *+' conftest.er1 >conftest.err
28827 rm -f conftest.er1
28828 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028830 (exit $ac_status); } &&
28831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832 { (case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28835esac
28836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_try") 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
28842 { (case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28845esac
28846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_try") 2>&5
28848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028851 ac_cv_header_sys_wait_h=yes
28852else
28853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028854sed 's/^/| /' conftest.$ac_ext >&5
28855
Reid Spencera773bd52006-08-04 18:18:08 +000028856 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028857fi
Reid Spencera773bd52006-08-04 18:18:08 +000028858
28859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028860fi
Reid Spencera773bd52006-08-04 18:18:08 +000028861{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28862echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028863if test $ac_cv_header_sys_wait_h = yes; then
28864
28865cat >>confdefs.h <<\_ACEOF
28866#define HAVE_SYS_WAIT_H 1
28867_ACEOF
28868
28869fi
28870
Reid Spencera773bd52006-08-04 18:18:08 +000028871{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28872echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028873if test "${ac_cv_header_time+set}" = set; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875else
28876 cat >conftest.$ac_ext <<_ACEOF
28877/* confdefs.h. */
28878_ACEOF
28879cat confdefs.h >>conftest.$ac_ext
28880cat >>conftest.$ac_ext <<_ACEOF
28881/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028882#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028883#include <sys/time.h>
28884#include <time.h>
28885
28886int
28887main ()
28888{
28889if ((struct tm *) 0)
28890return 0;
28891 ;
28892 return 0;
28893}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028894_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028895rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028896if { (ac_try="$ac_compile"
28897case "(($ac_try" in
28898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28899 *) ac_try_echo=$ac_try;;
28900esac
28901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028903 ac_status=$?
28904 grep -v '^ *+' conftest.er1 >conftest.err
28905 rm -f conftest.er1
28906 cat conftest.err >&5
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028908 (exit $ac_status); } &&
28909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28910 { (case "(($ac_try" in
28911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28912 *) ac_try_echo=$ac_try;;
28913esac
28914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915 (eval "$ac_try") 2>&5
28916 ac_status=$?
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); }; } &&
28919 { ac_try='test -s conftest.$ac_objext'
28920 { (case "(($ac_try" in
28921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922 *) ac_try_echo=$ac_try;;
28923esac
28924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925 (eval "$ac_try") 2>&5
28926 ac_status=$?
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028929 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028930else
28931 echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
Reid Spencera773bd52006-08-04 18:18:08 +000028934 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028935fi
Reid Spencera773bd52006-08-04 18:18:08 +000028936
28937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028938fi
Reid Spencera773bd52006-08-04 18:18:08 +000028939{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28940echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028941if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028943cat >>confdefs.h <<\_ACEOF
28944#define TIME_WITH_SYS_TIME 1
28945_ACEOF
28946
28947fi
28948
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028949
Reid Spencer59473af2004-12-25 07:31:29 +000028950
28951
28952
28953
28954
28955
28956for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28957do
28958as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964fi
Reid Spencera773bd52006-08-04 18:18:08 +000028965ac_res=`eval echo '${'$as_ac_Header'}'`
28966 { echo "$as_me:$LINENO: result: $ac_res" >&5
28967echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028968else
28969 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028970{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028972cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028973/* confdefs.h. */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028978$ac_includes_default
28979#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028980_ACEOF
28981rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028982if { (ac_try="$ac_compile"
28983case "(($ac_try" in
28984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985 *) ac_try_echo=$ac_try;;
28986esac
28987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028989 ac_status=$?
28990 grep -v '^ *+' conftest.er1 >conftest.err
28991 rm -f conftest.er1
28992 cat conftest.err >&5
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028994 (exit $ac_status); } &&
28995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28996 { (case "(($ac_try" in
28997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998 *) ac_try_echo=$ac_try;;
28999esac
29000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001 (eval "$ac_try") 2>&5
29002 ac_status=$?
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004 (exit $ac_status); }; } &&
29005 { ac_try='test -s conftest.$ac_objext'
29006 { (case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29009esac
29010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_try") 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029015 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029016else
29017 echo "$as_me: failed program was:" >&5
29018sed 's/^/| /' conftest.$ac_ext >&5
29019
Reid Spencera773bd52006-08-04 18:18:08 +000029020 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029021fi
Reid Spencera773bd52006-08-04 18:18:08 +000029022
29023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29024{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29025echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029026
Reid Spencer59473af2004-12-25 07:31:29 +000029027# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029028{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029030cat >conftest.$ac_ext <<_ACEOF
29031/* confdefs.h. */
29032_ACEOF
29033cat confdefs.h >>conftest.$ac_ext
29034cat >>conftest.$ac_ext <<_ACEOF
29035/* end confdefs.h. */
29036#include <$ac_header>
29037_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029038if { (ac_try="$ac_cpp conftest.$ac_ext"
29039case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29042esac
29043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029045 ac_status=$?
29046 grep -v '^ *+' conftest.er1 >conftest.err
29047 rm -f conftest.er1
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029050 (exit $ac_status); } >/dev/null; then
29051 if test -s conftest.err; then
29052 ac_cpp_err=$ac_c_preproc_warn_flag
29053 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29054 else
29055 ac_cpp_err=
29056 fi
29057else
29058 ac_cpp_err=yes
29059fi
29060if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029061 ac_header_preproc=yes
29062else
29063 echo "$as_me: failed program was:" >&5
29064sed 's/^/| /' conftest.$ac_ext >&5
29065
29066 ac_header_preproc=no
29067fi
Reid Spencera773bd52006-08-04 18:18:08 +000029068
Reid Spencer59473af2004-12-25 07:31:29 +000029069rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029070{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29071echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029072
29073# So? What about this header?
29074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29075 yes:no: )
29076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29077echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29079echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29080 ac_header_preproc=yes
29081 ;;
29082 no:yes:* )
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29088echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29090echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29092echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29094echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029095 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029096## ----------------------------------- ##
29097## Report this to llvmbugs@cs.uiuc.edu ##
29098## ----------------------------------- ##
29099_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029100 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029101 ;;
29102esac
Reid Spencera773bd52006-08-04 18:18:08 +000029103{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029106 echo $ECHO_N "(cached) $ECHO_C" >&6
29107else
29108 eval "$as_ac_Header=\$ac_header_preproc"
29109fi
Reid Spencera773bd52006-08-04 18:18:08 +000029110ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029113
29114fi
Reid Spencer59473af2004-12-25 07:31:29 +000029115if test `eval echo '${'$as_ac_Header'}'` = yes; then
29116 cat >>confdefs.h <<_ACEOF
29117#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029118_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029119
29120fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029121
Reid Spencer59473af2004-12-25 07:31:29 +000029122done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029123
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029124
29125
Reid Spencer59473af2004-12-25 07:31:29 +000029126
29127
29128
29129
Reid Spencercdb08a32006-06-05 16:11:07 +000029130for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029131do
29132as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138fi
Reid Spencera773bd52006-08-04 18:18:08 +000029139ac_res=`eval echo '${'$as_ac_Header'}'`
29140 { echo "$as_me:$LINENO: result: $ac_res" >&5
29141echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029142else
29143 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029144{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029146cat >conftest.$ac_ext <<_ACEOF
29147/* confdefs.h. */
29148_ACEOF
29149cat confdefs.h >>conftest.$ac_ext
29150cat >>conftest.$ac_ext <<_ACEOF
29151/* end confdefs.h. */
29152$ac_includes_default
29153#include <$ac_header>
29154_ACEOF
29155rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029156if { (ac_try="$ac_compile"
29157case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29160esac
29161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029163 ac_status=$?
29164 grep -v '^ *+' conftest.er1 >conftest.err
29165 rm -f conftest.er1
29166 cat conftest.err >&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029168 (exit $ac_status); } &&
29169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29170 { (case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29173esac
29174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29175 (eval "$ac_try") 2>&5
29176 ac_status=$?
29177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29178 (exit $ac_status); }; } &&
29179 { ac_try='test -s conftest.$ac_objext'
29180 { (case "(($ac_try" in
29181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29182 *) ac_try_echo=$ac_try;;
29183esac
29184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29185 (eval "$ac_try") 2>&5
29186 ac_status=$?
29187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29188 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029189 ac_header_compiler=yes
29190else
29191 echo "$as_me: failed program was:" >&5
29192sed 's/^/| /' conftest.$ac_ext >&5
29193
Reid Spencera773bd52006-08-04 18:18:08 +000029194 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029195fi
Reid Spencera773bd52006-08-04 18:18:08 +000029196
29197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29198{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29199echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029200
29201# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029202{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29203echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029204cat >conftest.$ac_ext <<_ACEOF
29205/* confdefs.h. */
29206_ACEOF
29207cat confdefs.h >>conftest.$ac_ext
29208cat >>conftest.$ac_ext <<_ACEOF
29209/* end confdefs.h. */
29210#include <$ac_header>
29211_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029212if { (ac_try="$ac_cpp conftest.$ac_ext"
29213case "(($ac_try" in
29214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29215 *) ac_try_echo=$ac_try;;
29216esac
29217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029219 ac_status=$?
29220 grep -v '^ *+' conftest.er1 >conftest.err
29221 rm -f conftest.er1
29222 cat conftest.err >&5
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029224 (exit $ac_status); } >/dev/null; then
29225 if test -s conftest.err; then
29226 ac_cpp_err=$ac_c_preproc_warn_flag
29227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29228 else
29229 ac_cpp_err=
29230 fi
29231else
29232 ac_cpp_err=yes
29233fi
29234if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029235 ac_header_preproc=yes
29236else
29237 echo "$as_me: failed program was:" >&5
29238sed 's/^/| /' conftest.$ac_ext >&5
29239
29240 ac_header_preproc=no
29241fi
Reid Spencera773bd52006-08-04 18:18:08 +000029242
Reid Spencer59473af2004-12-25 07:31:29 +000029243rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029244{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29245echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029246
29247# So? What about this header?
29248case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29249 yes:no: )
29250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29251echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29253echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29254 ac_header_preproc=yes
29255 ;;
29256 no:yes:* )
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29258echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29260echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29262echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29264echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29266echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29268echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029269 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029270## ----------------------------------- ##
29271## Report this to llvmbugs@cs.uiuc.edu ##
29272## ----------------------------------- ##
29273_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029274 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029275 ;;
29276esac
Reid Spencera773bd52006-08-04 18:18:08 +000029277{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29279if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029280 echo $ECHO_N "(cached) $ECHO_C" >&6
29281else
29282 eval "$as_ac_Header=\$ac_header_preproc"
29283fi
Reid Spencera773bd52006-08-04 18:18:08 +000029284ac_res=`eval echo '${'$as_ac_Header'}'`
29285 { echo "$as_me:$LINENO: result: $ac_res" >&5
29286echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029287
29288fi
29289if test `eval echo '${'$as_ac_Header'}'` = yes; then
29290 cat >>confdefs.h <<_ACEOF
29291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29292_ACEOF
29293
29294fi
29295
29296done
29297
29298
Reid Spencerbe3e4192007-08-17 05:45:26 +000029299for ac_header in windows.h
29300do
29301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307fi
29308ac_res=`eval echo '${'$as_ac_Header'}'`
29309 { echo "$as_me:$LINENO: result: $ac_res" >&5
29310echo "${ECHO_T}$ac_res" >&6; }
29311else
29312 # Is the header compilable?
29313{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29315cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h. */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h. */
29321$ac_includes_default
29322#include <$ac_header>
29323_ACEOF
29324rm -f conftest.$ac_objext
29325if { (ac_try="$ac_compile"
29326case "(($ac_try" in
29327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29328 *) ac_try_echo=$ac_try;;
29329esac
29330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29331 (eval "$ac_compile") 2>conftest.er1
29332 ac_status=$?
29333 grep -v '^ *+' conftest.er1 >conftest.err
29334 rm -f conftest.er1
29335 cat conftest.err >&5
29336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029337 (exit $ac_status); } &&
29338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29339 { (case "(($ac_try" in
29340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29341 *) ac_try_echo=$ac_try;;
29342esac
29343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29344 (eval "$ac_try") 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; } &&
29348 { ac_try='test -s conftest.$ac_objext'
29349 { (case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29352esac
29353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_try") 2>&5
29355 ac_status=$?
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029358 ac_header_compiler=yes
29359else
29360 echo "$as_me: failed program was:" >&5
29361sed 's/^/| /' conftest.$ac_ext >&5
29362
29363 ac_header_compiler=no
29364fi
29365
29366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29367{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29368echo "${ECHO_T}$ac_header_compiler" >&6; }
29369
29370# Is the header present?
29371{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29372echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29373cat >conftest.$ac_ext <<_ACEOF
29374/* confdefs.h. */
29375_ACEOF
29376cat confdefs.h >>conftest.$ac_ext
29377cat >>conftest.$ac_ext <<_ACEOF
29378/* end confdefs.h. */
29379#include <$ac_header>
29380_ACEOF
29381if { (ac_try="$ac_cpp conftest.$ac_ext"
29382case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29385esac
29386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29388 ac_status=$?
29389 grep -v '^ *+' conftest.er1 >conftest.err
29390 rm -f conftest.er1
29391 cat conftest.err >&5
29392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029393 (exit $ac_status); } >/dev/null; then
29394 if test -s conftest.err; then
29395 ac_cpp_err=$ac_c_preproc_warn_flag
29396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29397 else
29398 ac_cpp_err=
29399 fi
29400else
29401 ac_cpp_err=yes
29402fi
29403if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029404 ac_header_preproc=yes
29405else
29406 echo "$as_me: failed program was:" >&5
29407sed 's/^/| /' conftest.$ac_ext >&5
29408
29409 ac_header_preproc=no
29410fi
29411
29412rm -f conftest.err conftest.$ac_ext
29413{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29414echo "${ECHO_T}$ac_header_preproc" >&6; }
29415
29416# So? What about this header?
29417case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29418 yes:no: )
29419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29420echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29422echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29423 ac_header_preproc=yes
29424 ;;
29425 no:yes:* )
29426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29427echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29429echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29431echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29433echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29437echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29438 ( cat <<\_ASBOX
29439## ----------------------------------- ##
29440## Report this to llvmbugs@cs.uiuc.edu ##
29441## ----------------------------------- ##
29442_ASBOX
29443 ) | sed "s/^/$as_me: WARNING: /" >&2
29444 ;;
29445esac
29446{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450else
29451 eval "$as_ac_Header=\$ac_header_preproc"
29452fi
29453ac_res=`eval echo '${'$as_ac_Header'}'`
29454 { echo "$as_me:$LINENO: result: $ac_res" >&5
29455echo "${ECHO_T}$ac_res" >&6; }
29456
29457fi
29458if test `eval echo '${'$as_ac_Header'}'` = yes; then
29459 cat >>confdefs.h <<_ACEOF
29460#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29461_ACEOF
29462
29463fi
29464
29465done
Reid Spencer59473af2004-12-25 07:31:29 +000029466
29467
29468
29469
Reid Spencerbe3e4192007-08-17 05:45:26 +000029470
29471for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029472do
29473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029474if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029478 echo $ECHO_N "(cached) $ECHO_C" >&6
29479fi
Reid Spencera773bd52006-08-04 18:18:08 +000029480ac_res=`eval echo '${'$as_ac_Header'}'`
29481 { echo "$as_me:$LINENO: result: $ac_res" >&5
29482echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029483else
29484 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029485{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29486echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029487cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029488/* confdefs.h. */
29489_ACEOF
29490cat confdefs.h >>conftest.$ac_ext
29491cat >>conftest.$ac_ext <<_ACEOF
29492/* end confdefs.h. */
29493$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029494#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029495_ACEOF
29496rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029497if { (ac_try="$ac_compile"
29498case "(($ac_try" in
29499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29500 *) ac_try_echo=$ac_try;;
29501esac
29502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29503 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029505 grep -v '^ *+' conftest.er1 >conftest.err
29506 rm -f conftest.er1
29507 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029509 (exit $ac_status); } &&
29510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29511 { (case "(($ac_try" in
29512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513 *) ac_try_echo=$ac_try;;
29514esac
29515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516 (eval "$ac_try") 2>&5
29517 ac_status=$?
29518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519 (exit $ac_status); }; } &&
29520 { ac_try='test -s conftest.$ac_objext'
29521 { (case "(($ac_try" in
29522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29523 *) ac_try_echo=$ac_try;;
29524esac
29525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29526 (eval "$ac_try") 2>&5
29527 ac_status=$?
29528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029530 ac_header_compiler=yes
29531else
29532 echo "$as_me: failed program was:" >&5
29533sed 's/^/| /' conftest.$ac_ext >&5
29534
Reid Spencera773bd52006-08-04 18:18:08 +000029535 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029536fi
Reid Spencera773bd52006-08-04 18:18:08 +000029537
29538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29539{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29540echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029541
29542# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029543{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029545cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029551#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029552_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029553if { (ac_try="$ac_cpp conftest.$ac_ext"
29554case "(($ac_try" in
29555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556 *) ac_try_echo=$ac_try;;
29557esac
29558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029560 ac_status=$?
29561 grep -v '^ *+' conftest.er1 >conftest.err
29562 rm -f conftest.er1
29563 cat conftest.err >&5
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029565 (exit $ac_status); } >/dev/null; then
29566 if test -s conftest.err; then
29567 ac_cpp_err=$ac_c_preproc_warn_flag
29568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29569 else
29570 ac_cpp_err=
29571 fi
29572else
29573 ac_cpp_err=yes
29574fi
29575if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029576 ac_header_preproc=yes
29577else
29578 echo "$as_me: failed program was:" >&5
29579sed 's/^/| /' conftest.$ac_ext >&5
29580
29581 ac_header_preproc=no
29582fi
Reid Spencera773bd52006-08-04 18:18:08 +000029583
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029584rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029585{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29586echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029587
29588# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29590 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029595 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029596 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029597 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029610 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029611## ----------------------------------- ##
29612## Report this to llvmbugs@cs.uiuc.edu ##
29613## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029614_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029615 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029616 ;;
29617esac
Reid Spencera773bd52006-08-04 18:18:08 +000029618{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029621 echo $ECHO_N "(cached) $ECHO_C" >&6
29622else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029623 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029624fi
Reid Spencera773bd52006-08-04 18:18:08 +000029625ac_res=`eval echo '${'$as_ac_Header'}'`
29626 { echo "$as_me:$LINENO: result: $ac_res" >&5
29627echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029628
29629fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029630if test `eval echo '${'$as_ac_Header'}'` = yes; then
29631 cat >>confdefs.h <<_ACEOF
29632#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029633_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029634
29635fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029636
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029637done
29638
John Criswell7ed43ad2004-07-19 16:12:29 +000029639
Reid Spencercdb08a32006-06-05 16:11:07 +000029640
Reid Spencera6d990a2006-09-14 06:17:21 +000029641
29642for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029643do
29644as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029645if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650fi
Reid Spencera773bd52006-08-04 18:18:08 +000029651ac_res=`eval echo '${'$as_ac_Header'}'`
29652 { echo "$as_me:$LINENO: result: $ac_res" >&5
29653echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029654else
29655 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029656{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29657echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029658cat >conftest.$ac_ext <<_ACEOF
29659/* confdefs.h. */
29660_ACEOF
29661cat confdefs.h >>conftest.$ac_ext
29662cat >>conftest.$ac_ext <<_ACEOF
29663/* end confdefs.h. */
29664$ac_includes_default
29665#include <$ac_header>
29666_ACEOF
29667rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029668if { (ac_try="$ac_compile"
29669case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29672esac
29673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029675 ac_status=$?
29676 grep -v '^ *+' conftest.er1 >conftest.err
29677 rm -f conftest.er1
29678 cat conftest.err >&5
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029680 (exit $ac_status); } &&
29681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29682 { (case "(($ac_try" in
29683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29684 *) ac_try_echo=$ac_try;;
29685esac
29686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29687 (eval "$ac_try") 2>&5
29688 ac_status=$?
29689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29690 (exit $ac_status); }; } &&
29691 { ac_try='test -s conftest.$ac_objext'
29692 { (case "(($ac_try" in
29693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694 *) ac_try_echo=$ac_try;;
29695esac
29696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697 (eval "$ac_try") 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029701 ac_header_compiler=yes
29702else
29703 echo "$as_me: failed program was:" >&5
29704sed 's/^/| /' conftest.$ac_ext >&5
29705
Reid Spencera773bd52006-08-04 18:18:08 +000029706 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029707fi
Reid Spencera773bd52006-08-04 18:18:08 +000029708
29709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29710{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29711echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029712
29713# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029714{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29715echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029716cat >conftest.$ac_ext <<_ACEOF
29717/* confdefs.h. */
29718_ACEOF
29719cat confdefs.h >>conftest.$ac_ext
29720cat >>conftest.$ac_ext <<_ACEOF
29721/* end confdefs.h. */
29722#include <$ac_header>
29723_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029724if { (ac_try="$ac_cpp conftest.$ac_ext"
29725case "(($ac_try" in
29726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727 *) ac_try_echo=$ac_try;;
29728esac
29729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029731 ac_status=$?
29732 grep -v '^ *+' conftest.er1 >conftest.err
29733 rm -f conftest.er1
29734 cat conftest.err >&5
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029736 (exit $ac_status); } >/dev/null; then
29737 if test -s conftest.err; then
29738 ac_cpp_err=$ac_c_preproc_warn_flag
29739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29740 else
29741 ac_cpp_err=
29742 fi
29743else
29744 ac_cpp_err=yes
29745fi
29746if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029747 ac_header_preproc=yes
29748else
29749 echo "$as_me: failed program was:" >&5
29750sed 's/^/| /' conftest.$ac_ext >&5
29751
29752 ac_header_preproc=no
29753fi
Reid Spencera773bd52006-08-04 18:18:08 +000029754
Chris Lattner0b142592005-11-14 06:57:34 +000029755rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029756{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29757echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029758
29759# So? What about this header?
29760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29761 yes:no: )
29762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29766 ac_header_preproc=yes
29767 ;;
29768 no:yes:* )
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029781 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029782## ----------------------------------- ##
29783## Report this to llvmbugs@cs.uiuc.edu ##
29784## ----------------------------------- ##
29785_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029786 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029787 ;;
29788esac
Reid Spencera773bd52006-08-04 18:18:08 +000029789{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29790echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029792 echo $ECHO_N "(cached) $ECHO_C" >&6
29793else
29794 eval "$as_ac_Header=\$ac_header_preproc"
29795fi
Reid Spencera773bd52006-08-04 18:18:08 +000029796ac_res=`eval echo '${'$as_ac_Header'}'`
29797 { echo "$as_me:$LINENO: result: $ac_res" >&5
29798echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029799
29800fi
29801if test `eval echo '${'$as_ac_Header'}'` = yes; then
29802 cat >>confdefs.h <<_ACEOF
29803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29804_ACEOF
29805
29806fi
29807
29808done
29809
Reid Spencer0a262ba2005-08-24 10:07:20 +000029810if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029811
29812for ac_header in pthread.h
29813do
29814as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029819 echo $ECHO_N "(cached) $ECHO_C" >&6
29820fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029821ac_res=`eval echo '${'$as_ac_Header'}'`
29822 { echo "$as_me:$LINENO: result: $ac_res" >&5
29823echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029824else
29825 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029826{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29827echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029828cat >conftest.$ac_ext <<_ACEOF
29829/* confdefs.h. */
29830_ACEOF
29831cat confdefs.h >>conftest.$ac_ext
29832cat >>conftest.$ac_ext <<_ACEOF
29833/* end confdefs.h. */
29834$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029835#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029836_ACEOF
29837rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029838if { (ac_try="$ac_compile"
29839case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842esac
29843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029845 ac_status=$?
29846 grep -v '^ *+' conftest.er1 >conftest.err
29847 rm -f conftest.er1
29848 cat conftest.err >&5
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029850 (exit $ac_status); } &&
29851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29852 { (case "(($ac_try" in
29853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29854 *) ac_try_echo=$ac_try;;
29855esac
29856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29857 (eval "$ac_try") 2>&5
29858 ac_status=$?
29859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29860 (exit $ac_status); }; } &&
29861 { ac_try='test -s conftest.$ac_objext'
29862 { (case "(($ac_try" in
29863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29864 *) ac_try_echo=$ac_try;;
29865esac
29866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29867 (eval "$ac_try") 2>&5
29868 ac_status=$?
29869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29870 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029871 ac_header_compiler=yes
29872else
29873 echo "$as_me: failed program was:" >&5
29874sed 's/^/| /' conftest.$ac_ext >&5
29875
Reid Spencera773bd52006-08-04 18:18:08 +000029876 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029877fi
Reid Spencera773bd52006-08-04 18:18:08 +000029878
29879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29880{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29881echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029882
29883# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029884{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29885echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029892#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029893_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029894if { (ac_try="$ac_cpp conftest.$ac_ext"
29895case "(($ac_try" in
29896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897 *) ac_try_echo=$ac_try;;
29898esac
29899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029901 ac_status=$?
29902 grep -v '^ *+' conftest.er1 >conftest.err
29903 rm -f conftest.er1
29904 cat conftest.err >&5
29905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029906 (exit $ac_status); } >/dev/null; then
29907 if test -s conftest.err; then
29908 ac_cpp_err=$ac_c_preproc_warn_flag
29909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29910 else
29911 ac_cpp_err=
29912 fi
29913else
29914 ac_cpp_err=yes
29915fi
29916if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029917 ac_header_preproc=yes
29918else
29919 echo "$as_me: failed program was:" >&5
29920sed 's/^/| /' conftest.$ac_ext >&5
29921
29922 ac_header_preproc=no
29923fi
Reid Spencera773bd52006-08-04 18:18:08 +000029924
Reid Spencer0a262ba2005-08-24 10:07:20 +000029925rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29927echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029928
29929# So? What about this header?
29930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29931 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029936 ac_header_preproc=yes
29937 ;;
29938 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029951 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029952## ----------------------------------- ##
29953## Report this to llvmbugs@cs.uiuc.edu ##
29954## ----------------------------------- ##
29955_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029956 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029957 ;;
29958esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029959{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029962 echo $ECHO_N "(cached) $ECHO_C" >&6
29963else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029964 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029965fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029966ac_res=`eval echo '${'$as_ac_Header'}'`
29967 { echo "$as_me:$LINENO: result: $ac_res" >&5
29968echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029969
29970fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029971if test `eval echo '${'$as_ac_Header'}'` = yes; then
29972 cat >>confdefs.h <<_ACEOF
29973#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29974_ACEOF
29975 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029976
29977else
29978 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029979
29980fi
29981
Reid Spencerbe3e4192007-08-17 05:45:26 +000029982done
Reid Spencer1000b732006-12-01 00:37:14 +000029983
29984else
29985 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029986
29987fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029988
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029989
Reid Spencer8085cff2005-01-16 02:58:39 +000029990
Reid Spencerb2ed05262006-11-03 18:04:08 +000029991 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29992echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29993if test "${ac_cv_huge_val_sanity+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29995else
29996
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029997 ac_ext=cpp
29998ac_cpp='$CXXCPP $CPPFLAGS'
29999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030002
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030003 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030004 if test "$cross_compiling" = yes; then
30005 ac_cv_huge_val_sanity=yes
30006else
30007 cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h. */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h. */
30013#include <math.h>
30014int
30015main ()
30016{
30017double x = HUGE_VAL; return x != x;
30018 ;
30019 return 0;
30020}
30021_ACEOF
30022rm -f conftest$ac_exeext
30023if { (ac_try="$ac_link"
30024case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30027esac
30028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_link") 2>&5
30030 ac_status=$?
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30033 { (case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036esac
30037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_try") 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042 ac_cv_huge_val_sanity=yes
30043else
30044 echo "$as_me: program exited with status $ac_status" >&5
30045echo "$as_me: failed program was:" >&5
30046sed 's/^/| /' conftest.$ac_ext >&5
30047
30048( exit $ac_status )
30049ac_cv_huge_val_sanity=no
30050fi
30051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30052fi
30053
30054
30055 ac_ext=c
30056ac_cpp='$CPP $CPPFLAGS'
30057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30059ac_compiler_gnu=$ac_cv_c_compiler_gnu
30060
30061
30062fi
30063{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30064echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30065 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30066
30067
Reid Spencera773bd52006-08-04 18:18:08 +000030068{ echo "$as_me:$LINENO: checking for pid_t" >&5
30069echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030070if test "${ac_cv_type_pid_t+set}" = set; then
30071 echo $ECHO_N "(cached) $ECHO_C" >&6
30072else
30073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030079$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030080typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030081int
30082main ()
30083{
Reid Spencera773bd52006-08-04 18:18:08 +000030084if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030085 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030086if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030087 return 0;
30088 ;
30089 return 0;
30090}
30091_ACEOF
30092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030093if { (ac_try="$ac_compile"
30094case "(($ac_try" in
30095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096 *) ac_try_echo=$ac_try;;
30097esac
30098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030101 grep -v '^ *+' conftest.er1 >conftest.err
30102 rm -f conftest.er1
30103 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030105 (exit $ac_status); } &&
30106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30107 { (case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30110esac
30111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112 (eval "$ac_try") 2>&5
30113 ac_status=$?
30114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115 (exit $ac_status); }; } &&
30116 { ac_try='test -s conftest.$ac_objext'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30120esac
30121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30122 (eval "$ac_try") 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030126 ac_cv_type_pid_t=yes
30127else
30128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030129sed 's/^/| /' conftest.$ac_ext >&5
30130
Reid Spencera773bd52006-08-04 18:18:08 +000030131 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030132fi
Reid Spencera773bd52006-08-04 18:18:08 +000030133
30134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030135fi
Reid Spencera773bd52006-08-04 18:18:08 +000030136{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30137echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030138if test $ac_cv_type_pid_t = yes; then
30139 :
30140else
30141
30142cat >>confdefs.h <<_ACEOF
30143#define pid_t int
30144_ACEOF
30145
30146fi
30147
Reid Spencera773bd52006-08-04 18:18:08 +000030148{ echo "$as_me:$LINENO: checking for size_t" >&5
30149echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030150if test "${ac_cv_type_size_t+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152else
30153 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030154/* confdefs.h. */
30155_ACEOF
30156cat confdefs.h >>conftest.$ac_ext
30157cat >>conftest.$ac_ext <<_ACEOF
30158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030159$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030160typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030161int
30162main ()
30163{
Reid Spencera773bd52006-08-04 18:18:08 +000030164if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030165 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030166if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030167 return 0;
30168 ;
30169 return 0;
30170}
30171_ACEOF
30172rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030173if { (ac_try="$ac_compile"
30174case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30190esac
30191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200esac
30201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030206 ac_cv_type_size_t=yes
30207else
30208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030209sed 's/^/| /' conftest.$ac_ext >&5
30210
Reid Spencera773bd52006-08-04 18:18:08 +000030211 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030212fi
Reid Spencera773bd52006-08-04 18:18:08 +000030213
30214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030215fi
Reid Spencera773bd52006-08-04 18:18:08 +000030216{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30217echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030218if test $ac_cv_type_size_t = yes; then
30219 :
30220else
30221
30222cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030223#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030224_ACEOF
30225
30226fi
30227
Reid Spencera773bd52006-08-04 18:18:08 +000030228{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30229echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030230if test "${ac_cv_type_signal+set}" = set; then
30231 echo $ECHO_N "(cached) $ECHO_C" >&6
30232else
30233 cat >conftest.$ac_ext <<_ACEOF
30234/* confdefs.h. */
30235_ACEOF
30236cat confdefs.h >>conftest.$ac_ext
30237cat >>conftest.$ac_ext <<_ACEOF
30238/* end confdefs.h. */
30239#include <sys/types.h>
30240#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030241
30242int
30243main ()
30244{
Reid Spencera773bd52006-08-04 18:18:08 +000030245return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030246 ;
30247 return 0;
30248}
30249_ACEOF
30250rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030251if { (ac_try="$ac_compile"
30252case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30255esac
30256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030258 ac_status=$?
30259 grep -v '^ *+' conftest.er1 >conftest.err
30260 rm -f conftest.er1
30261 cat conftest.err >&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030263 (exit $ac_status); } &&
30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265 { (case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30268esac
30269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; } &&
30274 { ac_try='test -s conftest.$ac_objext'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030284 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030285else
30286 echo "$as_me: failed program was:" >&5
30287sed 's/^/| /' conftest.$ac_ext >&5
30288
Reid Spencera773bd52006-08-04 18:18:08 +000030289 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030290fi
Reid Spencera773bd52006-08-04 18:18:08 +000030291
30292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030293fi
Reid Spencera773bd52006-08-04 18:18:08 +000030294{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30295echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030296
30297cat >>confdefs.h <<_ACEOF
30298#define RETSIGTYPE $ac_cv_type_signal
30299_ACEOF
30300
30301
Reid Spencera773bd52006-08-04 18:18:08 +000030302{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30303echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030304if test "${ac_cv_struct_tm+set}" = set; then
30305 echo $ECHO_N "(cached) $ECHO_C" >&6
30306else
30307 cat >conftest.$ac_ext <<_ACEOF
30308/* confdefs.h. */
30309_ACEOF
30310cat confdefs.h >>conftest.$ac_ext
30311cat >>conftest.$ac_ext <<_ACEOF
30312/* end confdefs.h. */
30313#include <sys/types.h>
30314#include <time.h>
30315
30316int
30317main ()
30318{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030319struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030320 ;
30321 return 0;
30322}
30323_ACEOF
30324rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030325if { (ac_try="$ac_compile"
30326case "(($ac_try" in
30327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328 *) ac_try_echo=$ac_try;;
30329esac
30330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30331 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030332 ac_status=$?
30333 grep -v '^ *+' conftest.er1 >conftest.err
30334 rm -f conftest.er1
30335 cat conftest.err >&5
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030337 (exit $ac_status); } &&
30338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30339 { (case "(($ac_try" in
30340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30341 *) ac_try_echo=$ac_try;;
30342esac
30343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30344 (eval "$ac_try") 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; } &&
30348 { ac_try='test -s conftest.$ac_objext'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30352esac
30353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030358 ac_cv_struct_tm=time.h
30359else
30360 echo "$as_me: failed program was:" >&5
30361sed 's/^/| /' conftest.$ac_ext >&5
30362
Reid Spencera773bd52006-08-04 18:18:08 +000030363 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030364fi
Reid Spencera773bd52006-08-04 18:18:08 +000030365
30366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030367fi
Reid Spencera773bd52006-08-04 18:18:08 +000030368{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30369echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030370if test $ac_cv_struct_tm = sys/time.h; then
30371
30372cat >>confdefs.h <<\_ACEOF
30373#define TM_IN_SYS_TIME 1
30374_ACEOF
30375
30376fi
30377
Reid Spencera773bd52006-08-04 18:18:08 +000030378{ echo "$as_me:$LINENO: checking for int64_t" >&5
30379echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030380if test "${ac_cv_type_int64_t+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30382else
30383 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030384/* confdefs.h. */
30385_ACEOF
30386cat confdefs.h >>conftest.$ac_ext
30387cat >>conftest.$ac_ext <<_ACEOF
30388/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030389$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030390typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030391int
30392main ()
30393{
Reid Spencera773bd52006-08-04 18:18:08 +000030394if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030395 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030396if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030397 return 0;
30398 ;
30399 return 0;
30400}
30401_ACEOF
30402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030403if { (ac_try="$ac_compile"
30404case "(($ac_try" in
30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30406 *) ac_try_echo=$ac_try;;
30407esac
30408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30409 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030411 grep -v '^ *+' conftest.er1 >conftest.err
30412 rm -f conftest.er1
30413 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030415 (exit $ac_status); } &&
30416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30417 { (case "(($ac_try" in
30418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30419 *) ac_try_echo=$ac_try;;
30420esac
30421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30422 (eval "$ac_try") 2>&5
30423 ac_status=$?
30424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30425 (exit $ac_status); }; } &&
30426 { ac_try='test -s conftest.$ac_objext'
30427 { (case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30430esac
30431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_try") 2>&5
30433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030436 ac_cv_type_int64_t=yes
30437else
30438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030439sed 's/^/| /' conftest.$ac_ext >&5
30440
Reid Spencera773bd52006-08-04 18:18:08 +000030441 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030442fi
Reid Spencera773bd52006-08-04 18:18:08 +000030443
30444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030445fi
Reid Spencera773bd52006-08-04 18:18:08 +000030446{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30447echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030448if test $ac_cv_type_int64_t = yes; then
30449
30450cat >>confdefs.h <<_ACEOF
30451#define HAVE_INT64_T 1
30452_ACEOF
30453
30454
30455else
30456 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30457echo "$as_me: error: Type int64_t required but not found" >&2;}
30458 { (exit 1); exit 1; }; }
30459fi
30460
Reid Spencera773bd52006-08-04 18:18:08 +000030461{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30462echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030463if test "${ac_cv_type_uint64_t+set}" = set; then
30464 echo $ECHO_N "(cached) $ECHO_C" >&6
30465else
30466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030467/* confdefs.h. */
30468_ACEOF
30469cat confdefs.h >>conftest.$ac_ext
30470cat >>conftest.$ac_ext <<_ACEOF
30471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030472$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030473typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030474int
30475main ()
30476{
Reid Spencera773bd52006-08-04 18:18:08 +000030477if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030478 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030479if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030480 return 0;
30481 ;
30482 return 0;
30483}
30484_ACEOF
30485rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030486if { (ac_try="$ac_compile"
30487case "(($ac_try" in
30488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30489 *) ac_try_echo=$ac_try;;
30490esac
30491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30492 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030493 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030494 grep -v '^ *+' conftest.er1 >conftest.err
30495 rm -f conftest.er1
30496 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030498 (exit $ac_status); } &&
30499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30500 { (case "(($ac_try" in
30501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30502 *) ac_try_echo=$ac_try;;
30503esac
30504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30505 (eval "$ac_try") 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; } &&
30509 { ac_try='test -s conftest.$ac_objext'
30510 { (case "(($ac_try" in
30511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30512 *) ac_try_echo=$ac_try;;
30513esac
30514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30515 (eval "$ac_try") 2>&5
30516 ac_status=$?
30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30518 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030519 ac_cv_type_uint64_t=yes
30520else
30521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030522sed 's/^/| /' conftest.$ac_ext >&5
30523
Reid Spencera773bd52006-08-04 18:18:08 +000030524 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030525fi
Reid Spencera773bd52006-08-04 18:18:08 +000030526
30527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030528fi
Reid Spencera773bd52006-08-04 18:18:08 +000030529{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30530echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030531if test $ac_cv_type_uint64_t = yes; then
30532
30533cat >>confdefs.h <<_ACEOF
30534#define HAVE_UINT64_T 1
30535_ACEOF
30536
30537
30538else
Reid Spencera773bd52006-08-04 18:18:08 +000030539 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30540echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030541if test "${ac_cv_type_u_int64_t+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
30544 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030545/* confdefs.h. */
30546_ACEOF
30547cat confdefs.h >>conftest.$ac_ext
30548cat >>conftest.$ac_ext <<_ACEOF
30549/* end confdefs.h. */
30550$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030551typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030552int
30553main ()
30554{
Reid Spencera773bd52006-08-04 18:18:08 +000030555if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030556 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030557if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030558 return 0;
30559 ;
30560 return 0;
30561}
30562_ACEOF
30563rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030564if { (ac_try="$ac_compile"
30565case "(($ac_try" in
30566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30567 *) ac_try_echo=$ac_try;;
30568esac
30569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30570 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030571 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030572 grep -v '^ *+' conftest.er1 >conftest.err
30573 rm -f conftest.er1
30574 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030576 (exit $ac_status); } &&
30577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30578 { (case "(($ac_try" in
30579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30580 *) ac_try_echo=$ac_try;;
30581esac
30582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30583 (eval "$ac_try") 2>&5
30584 ac_status=$?
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; } &&
30587 { ac_try='test -s conftest.$ac_objext'
30588 { (case "(($ac_try" in
30589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30590 *) ac_try_echo=$ac_try;;
30591esac
30592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30593 (eval "$ac_try") 2>&5
30594 ac_status=$?
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030597 ac_cv_type_u_int64_t=yes
30598else
30599 echo "$as_me: failed program was:" >&5
30600sed 's/^/| /' conftest.$ac_ext >&5
30601
Reid Spencera773bd52006-08-04 18:18:08 +000030602 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030603fi
Reid Spencera773bd52006-08-04 18:18:08 +000030604
30605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030606fi
Reid Spencera773bd52006-08-04 18:18:08 +000030607{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30608echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030609if test $ac_cv_type_u_int64_t = yes; then
30610
30611cat >>confdefs.h <<_ACEOF
30612#define HAVE_U_INT64_T 1
30613_ACEOF
30614
30615
Misha Brukmanceca9042004-09-02 23:02:30 +000030616else
30617 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30618echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30619 { (exit 1); exit 1; }; }
30620fi
30621
John Criswell679ff312004-09-02 18:44:44 +000030622fi
30623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030624
30625
30626
30627
30628
30629
30630
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030631
30632
Reid Spencerdf3be822006-01-23 08:15:53 +000030633for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030634do
30635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030636{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30638if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030639 echo $ECHO_N "(cached) $ECHO_C" >&6
30640else
30641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30649#define $ac_func innocuous_$ac_func
30650
30651/* System header to define __stub macros and hopefully few prototypes,
30652 which can conflict with char $ac_func (); below.
30653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30654 <limits.h> exists even on freestanding compilers. */
30655
30656#ifdef __STDC__
30657# include <limits.h>
30658#else
30659# include <assert.h>
30660#endif
30661
30662#undef $ac_func
30663
Reid Spencera773bd52006-08-04 18:18:08 +000030664/* Override any GCC internal prototype to avoid an error.
30665 Use char because int might match the return type of a GCC
30666 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030667#ifdef __cplusplus
30668extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030669#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030670char $ac_func ();
30671/* The GNU C library defines this for functions which it implements
30672 to always fail with ENOSYS. Some functions are actually named
30673 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030674#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030675choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676#endif
John Criswell7a73b802003-06-30 21:59:07 +000030677
John Criswell7a73b802003-06-30 21:59:07 +000030678int
30679main ()
30680{
Reid Spencera773bd52006-08-04 18:18:08 +000030681return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030682 ;
30683 return 0;
30684}
30685_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030687if { (ac_try="$ac_link"
30688case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30691esac
30692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030695 grep -v '^ *+' conftest.er1 >conftest.err
30696 rm -f conftest.er1
30697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030699 (exit $ac_status); } &&
30700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
30707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; } &&
30710 { ac_try='test -s conftest$ac_exeext'
30711 { (case "(($ac_try" in
30712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30713 *) ac_try_echo=$ac_try;;
30714esac
30715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30716 (eval "$ac_try") 2>&5
30717 ac_status=$?
30718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030720 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030721else
30722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030723sed 's/^/| /' conftest.$ac_ext >&5
30724
Reid Spencera773bd52006-08-04 18:18:08 +000030725 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030726fi
Reid Spencera773bd52006-08-04 18:18:08 +000030727
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030729 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030730fi
Reid Spencera773bd52006-08-04 18:18:08 +000030731ac_res=`eval echo '${'$as_ac_var'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030734if test `eval echo '${'$as_ac_var'}'` = yes; then
30735 cat >>confdefs.h <<_ACEOF
30736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030737_ACEOF
30738
30739fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030740done
John Criswell7a73b802003-06-30 21:59:07 +000030741
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030742
30743
30744
Reid Spencer6af3d262004-12-15 04:01:48 +000030745
Reid Spencer96cf5872007-07-13 10:05:30 +000030746for ac_func in powf fmodf strtof round
30747do
30748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30752 echo $ECHO_N "(cached) $ECHO_C" >&6
30753else
30754 cat >conftest.$ac_ext <<_ACEOF
30755/* confdefs.h. */
30756_ACEOF
30757cat confdefs.h >>conftest.$ac_ext
30758cat >>conftest.$ac_ext <<_ACEOF
30759/* end confdefs.h. */
30760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30762#define $ac_func innocuous_$ac_func
30763
30764/* System header to define __stub macros and hopefully few prototypes,
30765 which can conflict with char $ac_func (); below.
30766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30767 <limits.h> exists even on freestanding compilers. */
30768
30769#ifdef __STDC__
30770# include <limits.h>
30771#else
30772# include <assert.h>
30773#endif
30774
30775#undef $ac_func
30776
30777/* Override any GCC internal prototype to avoid an error.
30778 Use char because int might match the return type of a GCC
30779 builtin and then its argument prototype would still apply. */
30780#ifdef __cplusplus
30781extern "C"
30782#endif
30783char $ac_func ();
30784/* The GNU C library defines this for functions which it implements
30785 to always fail with ENOSYS. Some functions are actually named
30786 something starting with __ and the normal name is an alias. */
30787#if defined __stub_$ac_func || defined __stub___$ac_func
30788choke me
30789#endif
30790
30791int
30792main ()
30793{
30794return $ac_func ();
30795 ;
30796 return 0;
30797}
30798_ACEOF
30799rm -f conftest.$ac_objext conftest$ac_exeext
30800if { (ac_try="$ac_link"
30801case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30804esac
30805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_link") 2>conftest.er1
30807 ac_status=$?
30808 grep -v '^ *+' conftest.er1 >conftest.err
30809 rm -f conftest.er1
30810 cat conftest.err >&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030812 (exit $ac_status); } &&
30813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30814 { (case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30817esac
30818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_try") 2>&5
30820 ac_status=$?
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); }; } &&
30823 { ac_try='test -s conftest$ac_exeext'
30824 { (case "(($ac_try" in
30825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30826 *) ac_try_echo=$ac_try;;
30827esac
30828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30829 (eval "$ac_try") 2>&5
30830 ac_status=$?
30831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030833 eval "$as_ac_var=yes"
30834else
30835 echo "$as_me: failed program was:" >&5
30836sed 's/^/| /' conftest.$ac_ext >&5
30837
30838 eval "$as_ac_var=no"
30839fi
30840
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030841rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030842 conftest$ac_exeext conftest.$ac_ext
30843fi
30844ac_res=`eval echo '${'$as_ac_var'}'`
30845 { echo "$as_me:$LINENO: result: $ac_res" >&5
30846echo "${ECHO_T}$ac_res" >&6; }
30847if test `eval echo '${'$as_ac_var'}'` = yes; then
30848 cat >>confdefs.h <<_ACEOF
30849#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30850_ACEOF
30851
30852fi
30853done
30854
30855
30856
30857
30858
Reid Spencer6af3d262004-12-15 04:01:48 +000030859
Reid Spencerb90645c2007-02-16 19:17:20 +000030860for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30861do
30862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30863{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30865if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30867else
30868 cat >conftest.$ac_ext <<_ACEOF
30869/* confdefs.h. */
30870_ACEOF
30871cat confdefs.h >>conftest.$ac_ext
30872cat >>conftest.$ac_ext <<_ACEOF
30873/* end confdefs.h. */
30874/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30876#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030877
Reid Spencerb90645c2007-02-16 19:17:20 +000030878/* System header to define __stub macros and hopefully few prototypes,
30879 which can conflict with char $ac_func (); below.
30880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30881 <limits.h> exists even on freestanding compilers. */
30882
30883#ifdef __STDC__
30884# include <limits.h>
30885#else
30886# include <assert.h>
30887#endif
30888
30889#undef $ac_func
30890
30891/* Override any GCC internal prototype to avoid an error.
30892 Use char because int might match the return type of a GCC
30893 builtin and then its argument prototype would still apply. */
30894#ifdef __cplusplus
30895extern "C"
30896#endif
30897char $ac_func ();
30898/* The GNU C library defines this for functions which it implements
30899 to always fail with ENOSYS. Some functions are actually named
30900 something starting with __ and the normal name is an alias. */
30901#if defined __stub_$ac_func || defined __stub___$ac_func
30902choke me
30903#endif
30904
30905int
30906main ()
30907{
30908return $ac_func ();
30909 ;
30910 return 0;
30911}
30912_ACEOF
30913rm -f conftest.$ac_objext conftest$ac_exeext
30914if { (ac_try="$ac_link"
30915case "(($ac_try" in
30916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30917 *) ac_try_echo=$ac_try;;
30918esac
30919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30920 (eval "$ac_link") 2>conftest.er1
30921 ac_status=$?
30922 grep -v '^ *+' conftest.er1 >conftest.err
30923 rm -f conftest.er1
30924 cat conftest.err >&5
30925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030926 (exit $ac_status); } &&
30927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30928 { (case "(($ac_try" in
30929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30930 *) ac_try_echo=$ac_try;;
30931esac
30932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30933 (eval "$ac_try") 2>&5
30934 ac_status=$?
30935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936 (exit $ac_status); }; } &&
30937 { ac_try='test -s conftest$ac_exeext'
30938 { (case "(($ac_try" in
30939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30940 *) ac_try_echo=$ac_try;;
30941esac
30942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30943 (eval "$ac_try") 2>&5
30944 ac_status=$?
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030947 eval "$as_ac_var=yes"
30948else
30949 echo "$as_me: failed program was:" >&5
30950sed 's/^/| /' conftest.$ac_ext >&5
30951
30952 eval "$as_ac_var=no"
30953fi
30954
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030955rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030956 conftest$ac_exeext conftest.$ac_ext
30957fi
30958ac_res=`eval echo '${'$as_ac_var'}'`
30959 { echo "$as_me:$LINENO: result: $ac_res" >&5
30960echo "${ECHO_T}$ac_res" >&6; }
30961if test `eval echo '${'$as_ac_var'}'` = yes; then
30962 cat >>confdefs.h <<_ACEOF
30963#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30964_ACEOF
30965
30966fi
30967done
30968
30969
30970
30971
30972for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030973do
30974as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030975{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30976echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30977if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030978 echo $ECHO_N "(cached) $ECHO_C" >&6
30979else
30980 cat >conftest.$ac_ext <<_ACEOF
30981/* confdefs.h. */
30982_ACEOF
30983cat confdefs.h >>conftest.$ac_ext
30984cat >>conftest.$ac_ext <<_ACEOF
30985/* end confdefs.h. */
30986/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30988#define $ac_func innocuous_$ac_func
30989
30990/* System header to define __stub macros and hopefully few prototypes,
30991 which can conflict with char $ac_func (); below.
30992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30993 <limits.h> exists even on freestanding compilers. */
30994
30995#ifdef __STDC__
30996# include <limits.h>
30997#else
30998# include <assert.h>
30999#endif
31000
31001#undef $ac_func
31002
Reid Spencera773bd52006-08-04 18:18:08 +000031003/* Override any GCC internal prototype to avoid an error.
31004 Use char because int might match the return type of a GCC
31005 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031006#ifdef __cplusplus
31007extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031008#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031009char $ac_func ();
31010/* The GNU C library defines this for functions which it implements
31011 to always fail with ENOSYS. Some functions are actually named
31012 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031013#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031014choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031015#endif
31016
31017int
31018main ()
31019{
Reid Spencera773bd52006-08-04 18:18:08 +000031020return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031021 ;
31022 return 0;
31023}
31024_ACEOF
31025rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031026if { (ac_try="$ac_link"
31027case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31030esac
31031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031033 ac_status=$?
31034 grep -v '^ *+' conftest.er1 >conftest.err
31035 rm -f conftest.er1
31036 cat conftest.err >&5
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031038 (exit $ac_status); } &&
31039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31040 { (case "(($ac_try" in
31041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31042 *) ac_try_echo=$ac_try;;
31043esac
31044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31045 (eval "$ac_try") 2>&5
31046 ac_status=$?
31047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); }; } &&
31049 { ac_try='test -s conftest$ac_exeext'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053esac
31054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031059 eval "$as_ac_var=yes"
31060else
31061 echo "$as_me: failed program was:" >&5
31062sed 's/^/| /' conftest.$ac_ext >&5
31063
Reid Spencera773bd52006-08-04 18:18:08 +000031064 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031065fi
Reid Spencera773bd52006-08-04 18:18:08 +000031066
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031067rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031068 conftest$ac_exeext conftest.$ac_ext
31069fi
Reid Spencera773bd52006-08-04 18:18:08 +000031070ac_res=`eval echo '${'$as_ac_var'}'`
31071 { echo "$as_me:$LINENO: result: $ac_res" >&5
31072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031073if test `eval echo '${'$as_ac_var'}'` = yes; then
31074 cat >>confdefs.h <<_ACEOF
31075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31076_ACEOF
31077
31078fi
31079done
31080
31081
31082
31083
31084
31085
31086
31087
31088for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031089do
31090as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031091{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31092echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31093if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031094 echo $ECHO_N "(cached) $ECHO_C" >&6
31095else
31096 cat >conftest.$ac_ext <<_ACEOF
31097/* confdefs.h. */
31098_ACEOF
31099cat confdefs.h >>conftest.$ac_ext
31100cat >>conftest.$ac_ext <<_ACEOF
31101/* end confdefs.h. */
31102/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31104#define $ac_func innocuous_$ac_func
31105
31106/* System header to define __stub macros and hopefully few prototypes,
31107 which can conflict with char $ac_func (); below.
31108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31109 <limits.h> exists even on freestanding compilers. */
31110
31111#ifdef __STDC__
31112# include <limits.h>
31113#else
31114# include <assert.h>
31115#endif
31116
31117#undef $ac_func
31118
Reid Spencera773bd52006-08-04 18:18:08 +000031119/* Override any GCC internal prototype to avoid an error.
31120 Use char because int might match the return type of a GCC
31121 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031122#ifdef __cplusplus
31123extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031124#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031125char $ac_func ();
31126/* The GNU C library defines this for functions which it implements
31127 to always fail with ENOSYS. Some functions are actually named
31128 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031129#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031130choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031131#endif
31132
31133int
31134main ()
31135{
Reid Spencera773bd52006-08-04 18:18:08 +000031136return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031137 ;
31138 return 0;
31139}
31140_ACEOF
31141rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031142if { (ac_try="$ac_link"
31143case "(($ac_try" in
31144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31145 *) ac_try_echo=$ac_try;;
31146esac
31147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31148 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031149 ac_status=$?
31150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031154 (exit $ac_status); } &&
31155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31156 { (case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31159esac
31160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_try") 2>&5
31162 ac_status=$?
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); }; } &&
31165 { ac_try='test -s conftest$ac_exeext'
31166 { (case "(($ac_try" in
31167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31168 *) ac_try_echo=$ac_try;;
31169esac
31170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31171 (eval "$ac_try") 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031175 eval "$as_ac_var=yes"
31176else
31177 echo "$as_me: failed program was:" >&5
31178sed 's/^/| /' conftest.$ac_ext >&5
31179
Reid Spencera773bd52006-08-04 18:18:08 +000031180 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031181fi
Reid Spencera773bd52006-08-04 18:18:08 +000031182
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031183rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031184 conftest$ac_exeext conftest.$ac_ext
31185fi
Reid Spencera773bd52006-08-04 18:18:08 +000031186ac_res=`eval echo '${'$as_ac_var'}'`
31187 { echo "$as_me:$LINENO: result: $ac_res" >&5
31188echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031189if test `eval echo '${'$as_ac_var'}'` = yes; then
31190 cat >>confdefs.h <<_ACEOF
31191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31192_ACEOF
31193
31194fi
31195done
31196
31197
Reid Spencerba46ca32004-12-31 05:49:15 +000031198
31199
Chris Lattner0b142592005-11-14 06:57:34 +000031200
Chris Lattner511f11d2005-11-14 07:25:50 +000031201for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031202do
31203as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031204{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31205echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031207 echo $ECHO_N "(cached) $ECHO_C" >&6
31208else
31209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031210/* confdefs.h. */
31211_ACEOF
31212cat confdefs.h >>conftest.$ac_ext
31213cat >>conftest.$ac_ext <<_ACEOF
31214/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31217#define $ac_func innocuous_$ac_func
31218
31219/* System header to define __stub macros and hopefully few prototypes,
31220 which can conflict with char $ac_func (); below.
31221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31222 <limits.h> exists even on freestanding compilers. */
31223
31224#ifdef __STDC__
31225# include <limits.h>
31226#else
31227# include <assert.h>
31228#endif
31229
31230#undef $ac_func
31231
Reid Spencera773bd52006-08-04 18:18:08 +000031232/* Override any GCC internal prototype to avoid an error.
31233 Use char because int might match the return type of a GCC
31234 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031235#ifdef __cplusplus
31236extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031237#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031238char $ac_func ();
31239/* The GNU C library defines this for functions which it implements
31240 to always fail with ENOSYS. Some functions are actually named
31241 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031242#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031243choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031244#endif
John Criswell7a73b802003-06-30 21:59:07 +000031245
John Criswell7a73b802003-06-30 21:59:07 +000031246int
31247main ()
31248{
Reid Spencera773bd52006-08-04 18:18:08 +000031249return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031250 ;
31251 return 0;
31252}
31253_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031254rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031255if { (ac_try="$ac_link"
31256case "(($ac_try" in
31257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258 *) ac_try_echo=$ac_try;;
31259esac
31260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31261 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031263 grep -v '^ *+' conftest.er1 >conftest.err
31264 rm -f conftest.er1
31265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031267 (exit $ac_status); } &&
31268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31269 { (case "(($ac_try" in
31270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31271 *) ac_try_echo=$ac_try;;
31272esac
31273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31274 (eval "$ac_try") 2>&5
31275 ac_status=$?
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); }; } &&
31278 { ac_try='test -s conftest$ac_exeext'
31279 { (case "(($ac_try" in
31280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31281 *) ac_try_echo=$ac_try;;
31282esac
31283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31284 (eval "$ac_try") 2>&5
31285 ac_status=$?
31286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31287 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031288 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031289else
31290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031291sed 's/^/| /' conftest.$ac_ext >&5
31292
Reid Spencera773bd52006-08-04 18:18:08 +000031293 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031294fi
Reid Spencera773bd52006-08-04 18:18:08 +000031295
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031296rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031298fi
Reid Spencera773bd52006-08-04 18:18:08 +000031299ac_res=`eval echo '${'$as_ac_var'}'`
31300 { echo "$as_me:$LINENO: result: $ac_res" >&5
31301echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031302if test `eval echo '${'$as_ac_var'}'` = yes; then
31303 cat >>confdefs.h <<_ACEOF
31304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031305_ACEOF
31306
31307fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031308done
John Criswell7a73b802003-06-30 21:59:07 +000031309
Reid Spencercdb08a32006-06-05 16:11:07 +000031310
31311
31312
31313
Reid Spencerafa22e22006-12-10 23:29:19 +000031314for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031315do
31316as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031317{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31318echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31319if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031320 echo $ECHO_N "(cached) $ECHO_C" >&6
31321else
31322 cat >conftest.$ac_ext <<_ACEOF
31323/* confdefs.h. */
31324_ACEOF
31325cat confdefs.h >>conftest.$ac_ext
31326cat >>conftest.$ac_ext <<_ACEOF
31327/* end confdefs.h. */
31328/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31330#define $ac_func innocuous_$ac_func
31331
31332/* System header to define __stub macros and hopefully few prototypes,
31333 which can conflict with char $ac_func (); below.
31334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31335 <limits.h> exists even on freestanding compilers. */
31336
31337#ifdef __STDC__
31338# include <limits.h>
31339#else
31340# include <assert.h>
31341#endif
31342
31343#undef $ac_func
31344
Reid Spencera773bd52006-08-04 18:18:08 +000031345/* Override any GCC internal prototype to avoid an error.
31346 Use char because int might match the return type of a GCC
31347 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031348#ifdef __cplusplus
31349extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031350#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031351char $ac_func ();
31352/* The GNU C library defines this for functions which it implements
31353 to always fail with ENOSYS. Some functions are actually named
31354 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031355#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031356choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031357#endif
31358
31359int
31360main ()
31361{
Reid Spencera773bd52006-08-04 18:18:08 +000031362return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031363 ;
31364 return 0;
31365}
31366_ACEOF
31367rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031368if { (ac_try="$ac_link"
31369case "(($ac_try" in
31370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31371 *) ac_try_echo=$ac_try;;
31372esac
31373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31374 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031375 ac_status=$?
31376 grep -v '^ *+' conftest.er1 >conftest.err
31377 rm -f conftest.er1
31378 cat conftest.err >&5
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031380 (exit $ac_status); } &&
31381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31382 { (case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31385esac
31386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_try") 2>&5
31388 ac_status=$?
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); }; } &&
31391 { ac_try='test -s conftest$ac_exeext'
31392 { (case "(($ac_try" in
31393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31394 *) ac_try_echo=$ac_try;;
31395esac
31396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31397 (eval "$ac_try") 2>&5
31398 ac_status=$?
31399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31400 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031401 eval "$as_ac_var=yes"
31402else
31403 echo "$as_me: failed program was:" >&5
31404sed 's/^/| /' conftest.$ac_ext >&5
31405
Reid Spencera773bd52006-08-04 18:18:08 +000031406 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031407fi
Reid Spencera773bd52006-08-04 18:18:08 +000031408
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031409rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031410 conftest$ac_exeext conftest.$ac_ext
31411fi
Reid Spencera773bd52006-08-04 18:18:08 +000031412ac_res=`eval echo '${'$as_ac_var'}'`
31413 { echo "$as_me:$LINENO: result: $ac_res" >&5
31414echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031415if test `eval echo '${'$as_ac_var'}'` = yes; then
31416 cat >>confdefs.h <<_ACEOF
31417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31418_ACEOF
31419
31420fi
31421done
31422
Reid Spencera773bd52006-08-04 18:18:08 +000031423{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31424echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031425if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031426 echo $ECHO_N "(cached) $ECHO_C" >&6
31427else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031428 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031429ac_cpp='$CPP $CPPFLAGS'
31430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31432ac_compiler_gnu=$ac_cv_c_compiler_gnu
31433
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031434 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031435 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031436else
31437 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031438
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031439 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031440_ACEOF
31441cat confdefs.h >>conftest.$ac_ext
31442cat >>conftest.$ac_ext <<_ACEOF
31443/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031444
John Criswella0137d32003-10-13 16:22:01 +000031445#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031446#include <stdlib.h>
31447
John Criswella0137d32003-10-13 16:22:01 +000031448int
31449main ()
31450{
31451
Reid Spencer2706f8c2004-09-19 23:53:36 +000031452volatile double A, B;
31453char Buffer[100];
31454A = 1;
31455A /= 10.0;
31456sprintf(Buffer, "%a", A);
31457B = atof(Buffer);
31458if (A != B)
31459 return (1);
31460if (A != 0x1.999999999999ap-4)
31461 return (1);
31462return (0);
John Criswella0137d32003-10-13 16:22:01 +000031463 ;
31464 return 0;
31465}
31466_ACEOF
31467rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031468if { (ac_try="$ac_link"
31469case "(($ac_try" in
31470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471 *) ac_try_echo=$ac_try;;
31472esac
31473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031475 ac_status=$?
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031478 { (case "(($ac_try" in
31479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31481esac
31482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031487 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031488else
31489 echo "$as_me: program exited with status $ac_status" >&5
31490echo "$as_me: failed program was:" >&5
31491sed 's/^/| /' conftest.$ac_ext >&5
31492
31493( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031494llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031495fi
Reid Spencera773bd52006-08-04 18:18:08 +000031496rm -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 +000031497fi
Reid Spencera773bd52006-08-04 18:18:08 +000031498
31499
Reid Spencer2706f8c2004-09-19 23:53:36 +000031500 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031501ac_cpp='$CPP $CPPFLAGS'
31502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31504ac_compiler_gnu=$ac_cv_c_compiler_gnu
31505
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031506fi
Reid Spencera773bd52006-08-04 18:18:08 +000031507{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31508echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031509 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031510
31511cat >>confdefs.h <<\_ACEOF
31512#define HAVE_PRINTF_A 1
31513_ACEOF
31514
Reid Spencer2706f8c2004-09-19 23:53:36 +000031515 fi
John Criswella0137d32003-10-13 16:22:01 +000031516
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031517# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31518# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031519{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31520echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031521if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031522 echo $ECHO_N "(cached) $ECHO_C" >&6
31523else
John Criswell0021c312004-02-13 21:57:29 +000031524 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031525/* confdefs.h. */
31526_ACEOF
31527cat confdefs.h >>conftest.$ac_ext
31528cat >>conftest.$ac_ext <<_ACEOF
31529/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031530#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031531int
31532main ()
31533{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031534char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031535 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031536 ;
31537 return 0;
31538}
31539_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031540rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031541if { (ac_try="$ac_link"
31542case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31545esac
31546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031549 grep -v '^ *+' conftest.er1 >conftest.err
31550 rm -f conftest.er1
31551 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031553 (exit $ac_status); } &&
31554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31555 { (case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31558esac
31559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_try") 2>&5
31561 ac_status=$?
31562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); }; } &&
31564 { ac_try='test -s conftest$ac_exeext'
31565 { (case "(($ac_try" in
31566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31567 *) ac_try_echo=$ac_try;;
31568esac
31569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31570 (eval "$ac_try") 2>&5
31571 ac_status=$?
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574 ac_cv_working_alloca_h=yes
31575else
31576 echo "$as_me: failed program was:" >&5
31577sed 's/^/| /' conftest.$ac_ext >&5
31578
Reid Spencera773bd52006-08-04 18:18:08 +000031579 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031580fi
Reid Spencera773bd52006-08-04 18:18:08 +000031581
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031582rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031583 conftest$ac_exeext conftest.$ac_ext
31584fi
Reid Spencera773bd52006-08-04 18:18:08 +000031585{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31586echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031587if test $ac_cv_working_alloca_h = yes; then
31588
31589cat >>confdefs.h <<\_ACEOF
31590#define HAVE_ALLOCA_H 1
31591_ACEOF
31592
31593fi
31594
Reid Spencera773bd52006-08-04 18:18:08 +000031595{ echo "$as_me:$LINENO: checking for alloca" >&5
31596echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031597if test "${ac_cv_func_alloca_works+set}" = set; then
31598 echo $ECHO_N "(cached) $ECHO_C" >&6
31599else
31600 cat >conftest.$ac_ext <<_ACEOF
31601/* confdefs.h. */
31602_ACEOF
31603cat confdefs.h >>conftest.$ac_ext
31604cat >>conftest.$ac_ext <<_ACEOF
31605/* end confdefs.h. */
31606#ifdef __GNUC__
31607# define alloca __builtin_alloca
31608#else
31609# ifdef _MSC_VER
31610# include <malloc.h>
31611# define alloca _alloca
31612# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031613# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031614# include <alloca.h>
31615# else
31616# ifdef _AIX
31617 #pragma alloca
31618# else
31619# ifndef alloca /* predefined by HP cc +Olibcalls */
31620char *alloca ();
31621# endif
31622# endif
31623# endif
31624# endif
31625#endif
31626
31627int
31628main ()
31629{
31630char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031631 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031632 ;
31633 return 0;
31634}
31635_ACEOF
31636rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031637if { (ac_try="$ac_link"
31638case "(($ac_try" in
31639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31641esac
31642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031644 ac_status=$?
31645 grep -v '^ *+' conftest.er1 >conftest.err
31646 rm -f conftest.er1
31647 cat conftest.err >&5
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031649 (exit $ac_status); } &&
31650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31651 { (case "(($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_try") 2>&5
31657 ac_status=$?
31658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659 (exit $ac_status); }; } &&
31660 { ac_try='test -s conftest$ac_exeext'
31661 { (case "(($ac_try" in
31662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31663 *) ac_try_echo=$ac_try;;
31664esac
31665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31666 (eval "$ac_try") 2>&5
31667 ac_status=$?
31668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031670 ac_cv_func_alloca_works=yes
31671else
31672 echo "$as_me: failed program was:" >&5
31673sed 's/^/| /' conftest.$ac_ext >&5
31674
Reid Spencera773bd52006-08-04 18:18:08 +000031675 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676fi
Reid Spencera773bd52006-08-04 18:18:08 +000031677
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031678rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031679 conftest$ac_exeext conftest.$ac_ext
31680fi
Reid Spencera773bd52006-08-04 18:18:08 +000031681{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31682echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031683
31684if test $ac_cv_func_alloca_works = yes; then
31685
31686cat >>confdefs.h <<\_ACEOF
31687#define HAVE_ALLOCA 1
31688_ACEOF
31689
31690else
31691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31692# that cause trouble. Some versions do not even contain alloca or
31693# contain a buggy version. If you still want to use their alloca,
31694# use ar to extract alloca.o from them instead of compiling alloca.c.
31695
Reid Spencera773bd52006-08-04 18:18:08 +000031696ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031697
31698cat >>confdefs.h <<\_ACEOF
31699#define C_ALLOCA 1
31700_ACEOF
31701
31702
Reid Spencera773bd52006-08-04 18:18:08 +000031703{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31704echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031705if test "${ac_cv_os_cray+set}" = set; then
31706 echo $ECHO_N "(cached) $ECHO_C" >&6
31707else
31708 cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031714#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031715webecray
31716#else
31717wenotbecray
31718#endif
31719
31720_ACEOF
31721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31722 $EGREP "webecray" >/dev/null 2>&1; then
31723 ac_cv_os_cray=yes
31724else
31725 ac_cv_os_cray=no
31726fi
31727rm -f conftest*
31728
31729fi
Reid Spencera773bd52006-08-04 18:18:08 +000031730{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31731echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031732if test $ac_cv_os_cray = yes; then
31733 for ac_func in _getb67 GETB67 getb67; do
31734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031735{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031738 echo $ECHO_N "(cached) $ECHO_C" >&6
31739else
31740 cat >conftest.$ac_ext <<_ACEOF
31741/* confdefs.h. */
31742_ACEOF
31743cat confdefs.h >>conftest.$ac_ext
31744cat >>conftest.$ac_ext <<_ACEOF
31745/* end confdefs.h. */
31746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31748#define $ac_func innocuous_$ac_func
31749
31750/* System header to define __stub macros and hopefully few prototypes,
31751 which can conflict with char $ac_func (); below.
31752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31753 <limits.h> exists even on freestanding compilers. */
31754
31755#ifdef __STDC__
31756# include <limits.h>
31757#else
31758# include <assert.h>
31759#endif
31760
31761#undef $ac_func
31762
Reid Spencera773bd52006-08-04 18:18:08 +000031763/* Override any GCC internal prototype to avoid an error.
31764 Use char because int might match the return type of a GCC
31765 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031766#ifdef __cplusplus
31767extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031768#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031769char $ac_func ();
31770/* The GNU C library defines this for functions which it implements
31771 to always fail with ENOSYS. Some functions are actually named
31772 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031773#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031774choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775#endif
31776
31777int
31778main ()
31779{
Reid Spencera773bd52006-08-04 18:18:08 +000031780return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031781 ;
31782 return 0;
31783}
31784_ACEOF
31785rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031786if { (ac_try="$ac_link"
31787case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790esac
31791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031793 ac_status=$?
31794 grep -v '^ *+' conftest.er1 >conftest.err
31795 rm -f conftest.er1
31796 cat conftest.err >&5
31797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031798 (exit $ac_status); } &&
31799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31800 { (case "(($ac_try" in
31801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31802 *) ac_try_echo=$ac_try;;
31803esac
31804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31805 (eval "$ac_try") 2>&5
31806 ac_status=$?
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); }; } &&
31809 { ac_try='test -s conftest$ac_exeext'
31810 { (case "(($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_try") 2>&5
31816 ac_status=$?
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031819 eval "$as_ac_var=yes"
31820else
31821 echo "$as_me: failed program was:" >&5
31822sed 's/^/| /' conftest.$ac_ext >&5
31823
Reid Spencera773bd52006-08-04 18:18:08 +000031824 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031825fi
Reid Spencera773bd52006-08-04 18:18:08 +000031826
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031827rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031828 conftest$ac_exeext conftest.$ac_ext
31829fi
Reid Spencera773bd52006-08-04 18:18:08 +000031830ac_res=`eval echo '${'$as_ac_var'}'`
31831 { echo "$as_me:$LINENO: result: $ac_res" >&5
31832echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031833if test `eval echo '${'$as_ac_var'}'` = yes; then
31834
31835cat >>confdefs.h <<_ACEOF
31836#define CRAY_STACKSEG_END $ac_func
31837_ACEOF
31838
31839 break
31840fi
31841
31842 done
31843fi
31844
Reid Spencera773bd52006-08-04 18:18:08 +000031845{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31846echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031847if test "${ac_cv_c_stack_direction+set}" = set; then
31848 echo $ECHO_N "(cached) $ECHO_C" >&6
31849else
31850 if test "$cross_compiling" = yes; then
31851 ac_cv_c_stack_direction=0
31852else
31853 cat >conftest.$ac_ext <<_ACEOF
31854/* confdefs.h. */
31855_ACEOF
31856cat confdefs.h >>conftest.$ac_ext
31857cat >>conftest.$ac_ext <<_ACEOF
31858/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031859$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031860int
31861find_stack_direction ()
31862{
31863 static char *addr = 0;
31864 auto char dummy;
31865 if (addr == 0)
31866 {
31867 addr = &dummy;
31868 return find_stack_direction ();
31869 }
John Criswell0021c312004-02-13 21:57:29 +000031870 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031871 return (&dummy > addr) ? 1 : -1;
31872}
John Criswell0021c312004-02-13 21:57:29 +000031873
John Criswell0021c312004-02-13 21:57:29 +000031874int
31875main ()
31876{
Reid Spencera773bd52006-08-04 18:18:08 +000031877 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031878}
31879_ACEOF
31880rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031881if { (ac_try="$ac_link"
31882case "(($ac_try" in
31883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31884 *) ac_try_echo=$ac_try;;
31885esac
31886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31887 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031888 ac_status=$?
31889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31890 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031891 { (case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31894esac
31895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031900 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031901else
31902 echo "$as_me: program exited with status $ac_status" >&5
31903echo "$as_me: failed program was:" >&5
31904sed 's/^/| /' conftest.$ac_ext >&5
31905
31906( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031907ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031908fi
Reid Spencera773bd52006-08-04 18:18:08 +000031909rm -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 +000031910fi
Reid Spencera773bd52006-08-04 18:18:08 +000031911
31912
John Criswell0021c312004-02-13 21:57:29 +000031913fi
Reid Spencera773bd52006-08-04 18:18:08 +000031914{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31915echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031916
31917cat >>confdefs.h <<_ACEOF
31918#define STACK_DIRECTION $ac_cv_c_stack_direction
31919_ACEOF
31920
31921
John Criswell0021c312004-02-13 21:57:29 +000031922fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031923
31924
Reid Spencera773bd52006-08-04 18:18:08 +000031925{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31926echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031927if test "${ac_cv_func_rand48+set}" = set; then
31928 echo $ECHO_N "(cached) $ECHO_C" >&6
31929else
Reid Spencera773bd52006-08-04 18:18:08 +000031930 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031931ac_cpp='$CXXCPP $CPPFLAGS'
31932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31935
31936 cat >conftest.$ac_ext <<_ACEOF
31937/* confdefs.h. */
31938_ACEOF
31939cat confdefs.h >>conftest.$ac_ext
31940cat >>conftest.$ac_ext <<_ACEOF
31941/* end confdefs.h. */
31942#include <stdlib.h>
31943int
31944main ()
31945{
31946srand48(0);lrand48();drand48();
31947 ;
31948 return 0;
31949}
31950_ACEOF
31951rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031952if { (ac_try="$ac_compile"
31953case "(($ac_try" in
31954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31955 *) ac_try_echo=$ac_try;;
31956esac
31957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31958 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031959 ac_status=$?
31960 grep -v '^ *+' conftest.er1 >conftest.err
31961 rm -f conftest.er1
31962 cat conftest.err >&5
31963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031964 (exit $ac_status); } &&
31965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31966 { (case "(($ac_try" in
31967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968 *) ac_try_echo=$ac_try;;
31969esac
31970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971 (eval "$ac_try") 2>&5
31972 ac_status=$?
31973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974 (exit $ac_status); }; } &&
31975 { ac_try='test -s conftest.$ac_objext'
31976 { (case "(($ac_try" in
31977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31978 *) ac_try_echo=$ac_try;;
31979esac
31980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31981 (eval "$ac_try") 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031985 ac_cv_func_rand48=yes
31986else
31987 echo "$as_me: failed program was:" >&5
31988sed 's/^/| /' conftest.$ac_ext >&5
31989
Reid Spencera773bd52006-08-04 18:18:08 +000031990 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031991fi
Reid Spencera773bd52006-08-04 18:18:08 +000031992
31993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031994 ac_ext=c
31995ac_cpp='$CPP $CPPFLAGS'
31996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31998ac_compiler_gnu=$ac_cv_c_compiler_gnu
31999
32000fi
Reid Spencera773bd52006-08-04 18:18:08 +000032001{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32002echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032003
32004if test "$ac_cv_func_rand48" = "yes" ; then
32005
32006cat >>confdefs.h <<\_ACEOF
32007#define HAVE_RAND48 1
32008_ACEOF
32009
32010fi
John Criswell0021c312004-02-13 21:57:29 +000032011
32012
Reid Spencera773bd52006-08-04 18:18:08 +000032013{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32014echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032015if test "${ac_cv_cxx_namespaces+set}" = set; then
32016 echo $ECHO_N "(cached) $ECHO_C" >&6
32017else
Reid Spencera773bd52006-08-04 18:18:08 +000032018 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032019ac_cpp='$CXXCPP $CPPFLAGS'
32020ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32021ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32022ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32023
32024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032025/* confdefs.h. */
32026_ACEOF
32027cat confdefs.h >>conftest.$ac_ext
32028cat >>conftest.$ac_ext <<_ACEOF
32029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032030namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032031int
32032main ()
32033{
32034using namespace Outer::Inner; return i;
32035 ;
32036 return 0;
32037}
32038_ACEOF
32039rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032040if { (ac_try="$ac_compile"
32041case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044esac
32045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032048 grep -v '^ *+' conftest.er1 >conftest.err
32049 rm -f conftest.er1
32050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032052 (exit $ac_status); } &&
32053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32054 { (case "(($ac_try" in
32055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32056 *) ac_try_echo=$ac_try;;
32057esac
32058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32059 (eval "$ac_try") 2>&5
32060 ac_status=$?
32061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062 (exit $ac_status); }; } &&
32063 { ac_try='test -s conftest.$ac_objext'
32064 { (case "(($ac_try" in
32065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32066 *) ac_try_echo=$ac_try;;
32067esac
32068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32069 (eval "$ac_try") 2>&5
32070 ac_status=$?
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032073 ac_cv_cxx_namespaces=yes
32074else
32075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032076sed 's/^/| /' conftest.$ac_ext >&5
32077
Reid Spencera773bd52006-08-04 18:18:08 +000032078 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032079fi
Reid Spencera773bd52006-08-04 18:18:08 +000032080
32081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032082 ac_ext=c
32083ac_cpp='$CPP $CPPFLAGS'
32084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32086ac_compiler_gnu=$ac_cv_c_compiler_gnu
32087
32088
32089fi
Reid Spencera773bd52006-08-04 18:18:08 +000032090{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32091echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032092if test "$ac_cv_cxx_namespaces" = yes; then
32093
32094cat >>confdefs.h <<\_ACEOF
32095#define HAVE_NAMESPACES
32096_ACEOF
32097
32098fi
32099
Reid Spencera773bd52006-08-04 18:18:08 +000032100{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32101echo $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 +000032102if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032103 echo $ECHO_N "(cached) $ECHO_C" >&6
32104else
32105
Reid Spencera773bd52006-08-04 18:18:08 +000032106 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032107ac_cpp='$CXXCPP $CPPFLAGS'
32108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32111
32112 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032113/* confdefs.h. */
32114_ACEOF
32115cat confdefs.h >>conftest.$ac_ext
32116cat >>conftest.$ac_ext <<_ACEOF
32117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032118#include <ext/hash_map>
32119#ifdef HAVE_NAMESPACES
32120using namespace std;
32121#endif
John Criswell7a73b802003-06-30 21:59:07 +000032122int
32123main ()
32124{
Brian Gaeke90583492003-11-10 03:06:28 +000032125hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032126 ;
32127 return 0;
32128}
32129_ACEOF
32130rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032131if { (ac_try="$ac_compile"
32132case "(($ac_try" in
32133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32134 *) ac_try_echo=$ac_try;;
32135esac
32136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32137 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032138 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032139 grep -v '^ *+' conftest.er1 >conftest.err
32140 rm -f conftest.er1
32141 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032143 (exit $ac_status); } &&
32144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32145 { (case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32148esac
32149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_try") 2>&5
32151 ac_status=$?
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; } &&
32154 { ac_try='test -s conftest.$ac_objext'
32155 { (case "(($ac_try" in
32156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32157 *) ac_try_echo=$ac_try;;
32158esac
32159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32160 (eval "$ac_try") 2>&5
32161 ac_status=$?
32162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32163 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032164 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032165else
32166 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032167sed 's/^/| /' conftest.$ac_ext >&5
32168
Reid Spencera773bd52006-08-04 18:18:08 +000032169 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032170fi
Reid Spencera773bd52006-08-04 18:18:08 +000032171
32172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032173 ac_ext=c
32174ac_cpp='$CPP $CPPFLAGS'
32175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32177ac_compiler_gnu=$ac_cv_c_compiler_gnu
32178
John Criswell7a73b802003-06-30 21:59:07 +000032179fi
Reid Spencera773bd52006-08-04 18:18:08 +000032180{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32181echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032182 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32183 then
John Criswell9f011862004-09-24 18:28:00 +000032184
32185cat >>confdefs.h <<\_ACEOF
32186#define HAVE_STD_EXT_HASH_MAP 1
32187_ACEOF
32188
32189 else
32190
32191cat >>confdefs.h <<\_ACEOF
32192#define HAVE_STD_EXT_HASH_MAP 0
32193_ACEOF
32194
Brian Gaeke90583492003-11-10 03:06:28 +000032195 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032196
Reid Spencera773bd52006-08-04 18:18:08 +000032197 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32198echo $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 +000032199if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32200 echo $ECHO_N "(cached) $ECHO_C" >&6
32201else
32202
Reid Spencera773bd52006-08-04 18:18:08 +000032203 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032204ac_cpp='$CXXCPP $CPPFLAGS'
32205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32208
32209 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032210/* confdefs.h. */
32211_ACEOF
32212cat confdefs.h >>conftest.$ac_ext
32213cat >>conftest.$ac_ext <<_ACEOF
32214/* end confdefs.h. */
32215#include <ext/hash_map>
32216#ifdef HAVE_NAMESPACES
32217using namespace __gnu_cxx;
32218#endif
32219int
32220main ()
32221{
32222hash_map<int,int> t;
32223 ;
32224 return 0;
32225}
32226_ACEOF
32227rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032228if { (ac_try="$ac_compile"
32229case "(($ac_try" in
32230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32231 *) ac_try_echo=$ac_try;;
32232esac
32233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32234 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032236 grep -v '^ *+' conftest.er1 >conftest.err
32237 rm -f conftest.er1
32238 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032240 (exit $ac_status); } &&
32241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32242 { (case "(($ac_try" in
32243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244 *) ac_try_echo=$ac_try;;
32245esac
32246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247 (eval "$ac_try") 2>&5
32248 ac_status=$?
32249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250 (exit $ac_status); }; } &&
32251 { ac_try='test -s conftest.$ac_objext'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32255esac
32256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032261 ac_cv_cxx_have_gnu_ext_hash_map=yes
32262else
32263 echo "$as_me: failed program was:" >&5
32264sed 's/^/| /' conftest.$ac_ext >&5
32265
Reid Spencera773bd52006-08-04 18:18:08 +000032266 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032267fi
Reid Spencera773bd52006-08-04 18:18:08 +000032268
32269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032270 ac_ext=c
32271ac_cpp='$CPP $CPPFLAGS'
32272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32274ac_compiler_gnu=$ac_cv_c_compiler_gnu
32275
32276fi
Reid Spencera773bd52006-08-04 18:18:08 +000032277{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32278echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032279 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32280 then
John Criswell9f011862004-09-24 18:28:00 +000032281
32282cat >>confdefs.h <<\_ACEOF
32283#define HAVE_GNU_EXT_HASH_MAP 1
32284_ACEOF
32285
32286 else
32287
32288cat >>confdefs.h <<\_ACEOF
32289#define HAVE_GNU_EXT_HASH_MAP 0
32290_ACEOF
32291
Brian Gaeke90583492003-11-10 03:06:28 +000032292 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032293
Reid Spencera773bd52006-08-04 18:18:08 +000032294 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32295echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032296if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32297 echo $ECHO_N "(cached) $ECHO_C" >&6
32298else
John Criswell7a73b802003-06-30 21:59:07 +000032299
Reid Spencera773bd52006-08-04 18:18:08 +000032300 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032301ac_cpp='$CXXCPP $CPPFLAGS'
32302ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32303ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32304ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32305
32306 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032307/* confdefs.h. */
32308_ACEOF
32309cat confdefs.h >>conftest.$ac_ext
32310cat >>conftest.$ac_ext <<_ACEOF
32311/* end confdefs.h. */
32312#include <hash_map>
32313int
32314main ()
32315{
32316hash_map<int,int> t;
32317 ;
32318 return 0;
32319}
32320_ACEOF
32321rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032322if { (ac_try="$ac_compile"
32323case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32326esac
32327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032330 grep -v '^ *+' conftest.er1 >conftest.err
32331 rm -f conftest.er1
32332 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032334 (exit $ac_status); } &&
32335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32336 { (case "(($ac_try" in
32337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32338 *) ac_try_echo=$ac_try;;
32339esac
32340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32341 (eval "$ac_try") 2>&5
32342 ac_status=$?
32343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344 (exit $ac_status); }; } &&
32345 { ac_try='test -s conftest.$ac_objext'
32346 { (case "(($ac_try" in
32347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348 *) ac_try_echo=$ac_try;;
32349esac
32350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351 (eval "$ac_try") 2>&5
32352 ac_status=$?
32353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032355 ac_cv_cxx_have_global_hash_map=yes
32356else
32357 echo "$as_me: failed program was:" >&5
32358sed 's/^/| /' conftest.$ac_ext >&5
32359
Reid Spencera773bd52006-08-04 18:18:08 +000032360 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032361fi
Reid Spencera773bd52006-08-04 18:18:08 +000032362
32363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032364 ac_ext=c
32365ac_cpp='$CPP $CPPFLAGS'
32366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32368ac_compiler_gnu=$ac_cv_c_compiler_gnu
32369
32370fi
Reid Spencera773bd52006-08-04 18:18:08 +000032371{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32372echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032373 if test "$ac_cv_cxx_have_global_hash_map" = yes
32374 then
John Criswell9f011862004-09-24 18:28:00 +000032375
32376cat >>confdefs.h <<\_ACEOF
32377#define HAVE_GLOBAL_HASH_MAP 1
32378_ACEOF
32379
32380 else
32381
32382cat >>confdefs.h <<\_ACEOF
32383#define HAVE_GLOBAL_HASH_MAP 0
32384_ACEOF
32385
Brian Gaeke90583492003-11-10 03:06:28 +000032386 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032387
Reid Spencera773bd52006-08-04 18:18:08 +000032388{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32389echo $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 +000032390if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032391 echo $ECHO_N "(cached) $ECHO_C" >&6
32392else
32393
Reid Spencera773bd52006-08-04 18:18:08 +000032394 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032395ac_cpp='$CXXCPP $CPPFLAGS'
32396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32399
32400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032401/* confdefs.h. */
32402_ACEOF
32403cat confdefs.h >>conftest.$ac_ext
32404cat >>conftest.$ac_ext <<_ACEOF
32405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032406#include <ext/hash_set>
32407#ifdef HAVE_NAMESPACES
32408using namespace std;
32409#endif
John Criswell7a73b802003-06-30 21:59:07 +000032410int
32411main ()
32412{
Brian Gaeke90583492003-11-10 03:06:28 +000032413hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032414 ;
32415 return 0;
32416}
32417_ACEOF
32418rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032419if { (ac_try="$ac_compile"
32420case "(($ac_try" in
32421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422 *) ac_try_echo=$ac_try;;
32423esac
32424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32425 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032426 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032427 grep -v '^ *+' conftest.er1 >conftest.err
32428 rm -f conftest.er1
32429 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032431 (exit $ac_status); } &&
32432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32433 { (case "(($ac_try" in
32434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32435 *) ac_try_echo=$ac_try;;
32436esac
32437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32438 (eval "$ac_try") 2>&5
32439 ac_status=$?
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); }; } &&
32442 { ac_try='test -s conftest.$ac_objext'
32443 { (case "(($ac_try" in
32444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32445 *) ac_try_echo=$ac_try;;
32446esac
32447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32448 (eval "$ac_try") 2>&5
32449 ac_status=$?
32450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32451 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032452 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032453else
32454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032455sed 's/^/| /' conftest.$ac_ext >&5
32456
Reid Spencera773bd52006-08-04 18:18:08 +000032457 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032458fi
Reid Spencera773bd52006-08-04 18:18:08 +000032459
32460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032461 ac_ext=c
32462ac_cpp='$CPP $CPPFLAGS'
32463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32465ac_compiler_gnu=$ac_cv_c_compiler_gnu
32466
32467fi
Reid Spencera773bd52006-08-04 18:18:08 +000032468{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32469echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032470 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32471 then
John Criswell9f011862004-09-24 18:28:00 +000032472
32473cat >>confdefs.h <<\_ACEOF
32474#define HAVE_STD_EXT_HASH_SET 1
32475_ACEOF
32476
32477 else
32478
32479cat >>confdefs.h <<\_ACEOF
32480#define HAVE_STD_EXT_HASH_SET 0
32481_ACEOF
32482
Brian Gaeke90583492003-11-10 03:06:28 +000032483 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032484
Reid Spencera773bd52006-08-04 18:18:08 +000032485 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32486echo $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 +000032487if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32488 echo $ECHO_N "(cached) $ECHO_C" >&6
32489else
32490
Reid Spencera773bd52006-08-04 18:18:08 +000032491 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032492ac_cpp='$CXXCPP $CPPFLAGS'
32493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32496
John Criswell7a73b802003-06-30 21:59:07 +000032497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032498/* confdefs.h. */
32499_ACEOF
32500cat confdefs.h >>conftest.$ac_ext
32501cat >>conftest.$ac_ext <<_ACEOF
32502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032503#include <ext/hash_set>
32504#ifdef HAVE_NAMESPACES
32505using namespace __gnu_cxx;
32506#endif
John Criswell7a73b802003-06-30 21:59:07 +000032507int
32508main ()
32509{
Brian Gaeke90583492003-11-10 03:06:28 +000032510hash_set<int> t;
32511 ;
32512 return 0;
32513}
32514_ACEOF
32515rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032516if { (ac_try="$ac_compile"
32517case "(($ac_try" in
32518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32519 *) ac_try_echo=$ac_try;;
32520esac
32521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32522 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032524 grep -v '^ *+' conftest.er1 >conftest.err
32525 rm -f conftest.er1
32526 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032528 (exit $ac_status); } &&
32529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32530 { (case "(($ac_try" in
32531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532 *) ac_try_echo=$ac_try;;
32533esac
32534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535 (eval "$ac_try") 2>&5
32536 ac_status=$?
32537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538 (exit $ac_status); }; } &&
32539 { ac_try='test -s conftest.$ac_objext'
32540 { (case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32543esac
32544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_try") 2>&5
32546 ac_status=$?
32547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32548 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032549 ac_cv_cxx_have_gnu_ext_hash_set=yes
32550else
32551 echo "$as_me: failed program was:" >&5
32552sed 's/^/| /' conftest.$ac_ext >&5
32553
Reid Spencera773bd52006-08-04 18:18:08 +000032554 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032555fi
Reid Spencera773bd52006-08-04 18:18:08 +000032556
32557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032558 ac_ext=c
32559ac_cpp='$CPP $CPPFLAGS'
32560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32562ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563
32564fi
Reid Spencera773bd52006-08-04 18:18:08 +000032565{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32566echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032567 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32568 then
John Criswell9f011862004-09-24 18:28:00 +000032569
32570cat >>confdefs.h <<\_ACEOF
32571#define HAVE_GNU_EXT_HASH_SET 1
32572_ACEOF
32573
32574 else
32575
32576cat >>confdefs.h <<\_ACEOF
32577#define HAVE_GNU_EXT_HASH_SET 0
32578_ACEOF
32579
Brian Gaeke90583492003-11-10 03:06:28 +000032580 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032581
Reid Spencera773bd52006-08-04 18:18:08 +000032582 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32583echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032584if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32586else
32587
Reid Spencera773bd52006-08-04 18:18:08 +000032588 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032589ac_cpp='$CXXCPP $CPPFLAGS'
32590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32593
32594 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032595/* confdefs.h. */
32596_ACEOF
32597cat confdefs.h >>conftest.$ac_ext
32598cat >>conftest.$ac_ext <<_ACEOF
32599/* end confdefs.h. */
32600#include <hash_set>
32601int
32602main ()
32603{
John Criswell7a73b802003-06-30 21:59:07 +000032604hash_set<int> t; return 0;
32605 ;
32606 return 0;
32607}
32608_ACEOF
32609rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032610if { (ac_try="$ac_compile"
32611case "(($ac_try" in
32612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613 *) ac_try_echo=$ac_try;;
32614esac
32615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032618 grep -v '^ *+' conftest.er1 >conftest.err
32619 rm -f conftest.er1
32620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032622 (exit $ac_status); } &&
32623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32624 { (case "(($ac_try" in
32625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32626 *) ac_try_echo=$ac_try;;
32627esac
32628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32629 (eval "$ac_try") 2>&5
32630 ac_status=$?
32631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32632 (exit $ac_status); }; } &&
32633 { ac_try='test -s conftest.$ac_objext'
32634 { (case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32637esac
32638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_try") 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032643 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032644else
32645 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032646sed 's/^/| /' conftest.$ac_ext >&5
32647
Reid Spencera773bd52006-08-04 18:18:08 +000032648 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032649fi
Reid Spencera773bd52006-08-04 18:18:08 +000032650
32651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032652 ac_ext=c
32653ac_cpp='$CPP $CPPFLAGS'
32654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32656ac_compiler_gnu=$ac_cv_c_compiler_gnu
32657
John Criswell7a73b802003-06-30 21:59:07 +000032658fi
Reid Spencera773bd52006-08-04 18:18:08 +000032659{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32660echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032661 if test "$ac_cv_cxx_have_global_hash_set" = yes
32662 then
John Criswell9f011862004-09-24 18:28:00 +000032663
32664cat >>confdefs.h <<\_ACEOF
32665#define HAVE_GLOBAL_HASH_SET 1
32666_ACEOF
32667
32668 else
32669
32670cat >>confdefs.h <<\_ACEOF
32671#define HAVE_GLOBAL_HASH_SET 0
32672_ACEOF
32673
Brian Gaeke90583492003-11-10 03:06:28 +000032674 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032675
Reid Spencera773bd52006-08-04 18:18:08 +000032676{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32677echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032678if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32679 echo $ECHO_N "(cached) $ECHO_C" >&6
32680else
32681
Reid Spencera773bd52006-08-04 18:18:08 +000032682 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032683ac_cpp='$CXXCPP $CPPFLAGS'
32684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32687
32688 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032689/* confdefs.h. */
32690_ACEOF
32691cat confdefs.h >>conftest.$ac_ext
32692cat >>conftest.$ac_ext <<_ACEOF
32693/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032694#include <iterator>
32695#ifdef HAVE_NAMESPACES
32696using namespace std;
32697#endif
John Criswell7a73b802003-06-30 21:59:07 +000032698int
32699main ()
32700{
32701iterator<int,int,int> t; return 0;
32702 ;
32703 return 0;
32704}
32705_ACEOF
32706rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032707if { (ac_try="$ac_compile"
32708case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32711esac
32712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032715 grep -v '^ *+' conftest.er1 >conftest.err
32716 rm -f conftest.er1
32717 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032719 (exit $ac_status); } &&
32720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32721 { (case "(($ac_try" in
32722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723 *) ac_try_echo=$ac_try;;
32724esac
32725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726 (eval "$ac_try") 2>&5
32727 ac_status=$?
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); }; } &&
32730 { ac_try='test -s conftest.$ac_objext'
32731 { (case "(($ac_try" in
32732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32733 *) ac_try_echo=$ac_try;;
32734esac
32735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32736 (eval "$ac_try") 2>&5
32737 ac_status=$?
32738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32739 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032740 ac_cv_cxx_have_std_iterator=yes
32741else
32742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032743sed 's/^/| /' conftest.$ac_ext >&5
32744
Reid Spencera773bd52006-08-04 18:18:08 +000032745 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032746fi
Reid Spencera773bd52006-08-04 18:18:08 +000032747
32748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032749 ac_ext=c
32750ac_cpp='$CPP $CPPFLAGS'
32751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32753ac_compiler_gnu=$ac_cv_c_compiler_gnu
32754
32755
32756fi
Reid Spencera773bd52006-08-04 18:18:08 +000032757{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32758echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032759if test "$ac_cv_cxx_have_std_iterator" = yes
32760then
John Criswell40468462004-09-24 21:19:06 +000032761
32762cat >>confdefs.h <<\_ACEOF
32763#define HAVE_STD_ITERATOR 1
32764_ACEOF
32765
32766else
32767
32768cat >>confdefs.h <<\_ACEOF
32769#define HAVE_STD_ITERATOR 0
32770_ACEOF
32771
John Criswell7a73b802003-06-30 21:59:07 +000032772fi
32773
Reid Spencera773bd52006-08-04 18:18:08 +000032774{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32775echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032776if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32777 echo $ECHO_N "(cached) $ECHO_C" >&6
32778else
32779
Reid Spencera773bd52006-08-04 18:18:08 +000032780 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032781ac_cpp='$CXXCPP $CPPFLAGS'
32782ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32783ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32784ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32785
32786 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032787/* confdefs.h. */
32788_ACEOF
32789cat confdefs.h >>conftest.$ac_ext
32790cat >>conftest.$ac_ext <<_ACEOF
32791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032792#include <iterator>
32793#ifdef HAVE_NAMESPACES
32794using namespace std;
32795#endif
John Criswell7a73b802003-06-30 21:59:07 +000032796int
32797main ()
32798{
John Criswellc78022e2003-07-29 19:11:58 +000032799bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032800 ;
32801 return 0;
32802}
32803_ACEOF
32804rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032805if { (ac_try="$ac_compile"
32806case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32809esac
32810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032813 grep -v '^ *+' conftest.er1 >conftest.err
32814 rm -f conftest.er1
32815 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032817 (exit $ac_status); } &&
32818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32822esac
32823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
32825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest.$ac_objext'
32829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
32835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032838 ac_cv_cxx_have_bi_iterator=yes
32839else
32840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032841sed 's/^/| /' conftest.$ac_ext >&5
32842
Reid Spencera773bd52006-08-04 18:18:08 +000032843 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032844fi
Reid Spencera773bd52006-08-04 18:18:08 +000032845
32846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032847 ac_ext=c
32848ac_cpp='$CPP $CPPFLAGS'
32849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32851ac_compiler_gnu=$ac_cv_c_compiler_gnu
32852
32853
32854fi
Reid Spencera773bd52006-08-04 18:18:08 +000032855{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32856echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032857if test "$ac_cv_cxx_have_bi_iterator" = yes
32858then
John Criswell40468462004-09-24 21:19:06 +000032859
32860cat >>confdefs.h <<\_ACEOF
32861#define HAVE_BI_ITERATOR 1
32862_ACEOF
32863
32864else
32865
32866cat >>confdefs.h <<\_ACEOF
32867#define HAVE_BI_ITERATOR 0
32868_ACEOF
32869
John Criswell7a73b802003-06-30 21:59:07 +000032870fi
32871
Reid Spencera773bd52006-08-04 18:18:08 +000032872{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32873echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032874if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32875 echo $ECHO_N "(cached) $ECHO_C" >&6
32876else
32877
Reid Spencera773bd52006-08-04 18:18:08 +000032878 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032879ac_cpp='$CXXCPP $CPPFLAGS'
32880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32883
32884 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032885/* confdefs.h. */
32886_ACEOF
32887cat confdefs.h >>conftest.$ac_ext
32888cat >>conftest.$ac_ext <<_ACEOF
32889/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032890#include <iterator>
32891#ifdef HAVE_NAMESPACES
32892using namespace std;
32893#endif
John Criswell7a73b802003-06-30 21:59:07 +000032894int
32895main ()
32896{
John Criswellc78022e2003-07-29 19:11:58 +000032897forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032898 ;
32899 return 0;
32900}
32901_ACEOF
32902rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032903if { (ac_try="$ac_compile"
32904case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032911 grep -v '^ *+' conftest.er1 >conftest.err
32912 rm -f conftest.er1
32913 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032915 (exit $ac_status); } &&
32916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32917 { (case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32920esac
32921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32922 (eval "$ac_try") 2>&5
32923 ac_status=$?
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; } &&
32926 { ac_try='test -s conftest.$ac_objext'
32927 { (case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32930esac
32931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_try") 2>&5
32933 ac_status=$?
32934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032936 ac_cv_cxx_have_fwd_iterator=yes
32937else
32938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032939sed 's/^/| /' conftest.$ac_ext >&5
32940
Reid Spencera773bd52006-08-04 18:18:08 +000032941 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032942fi
Reid Spencera773bd52006-08-04 18:18:08 +000032943
32944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032945 ac_ext=c
32946ac_cpp='$CPP $CPPFLAGS'
32947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32949ac_compiler_gnu=$ac_cv_c_compiler_gnu
32950
32951
32952fi
Reid Spencera773bd52006-08-04 18:18:08 +000032953{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32954echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032955if test "$ac_cv_cxx_have_fwd_iterator" = yes
32956then
John Criswell40468462004-09-24 21:19:06 +000032957
32958cat >>confdefs.h <<\_ACEOF
32959#define HAVE_FWD_ITERATOR 1
32960_ACEOF
32961
32962else
32963
32964cat >>confdefs.h <<\_ACEOF
32965#define HAVE_FWD_ITERATOR 0
32966_ACEOF
32967
John Criswell7a73b802003-06-30 21:59:07 +000032968fi
32969
32970
Reid Spencera773bd52006-08-04 18:18:08 +000032971{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32972echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032973if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32974 echo $ECHO_N "(cached) $ECHO_C" >&6
32975else
Reid Spencera773bd52006-08-04 18:18:08 +000032976 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032977ac_cpp='$CXXCPP $CPPFLAGS'
32978ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32981
Reid Spencerabec8f92004-10-27 23:03:44 +000032982 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032983/* confdefs.h. */
32984_ACEOF
32985cat confdefs.h >>conftest.$ac_ext
32986cat >>conftest.$ac_ext <<_ACEOF
32987/* end confdefs.h. */
32988#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032989int
32990main ()
32991{
32992float f; isnan(f);
32993 ;
32994 return 0;
32995}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032996_ACEOF
32997rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032998if { (ac_try="$ac_compile"
32999case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33002esac
33003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033006 grep -v '^ *+' conftest.er1 >conftest.err
33007 rm -f conftest.er1
33008 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033010 (exit $ac_status); } &&
33011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
33018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; } &&
33021 { ac_try='test -s conftest.$ac_objext'
33022 { (case "(($ac_try" in
33023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024 *) ac_try_echo=$ac_try;;
33025esac
33026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_try") 2>&5
33028 ac_status=$?
33029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033031 ac_cv_func_isnan_in_math_h=yes
33032else
33033 echo "$as_me: failed program was:" >&5
33034sed 's/^/| /' conftest.$ac_ext >&5
33035
Reid Spencera773bd52006-08-04 18:18:08 +000033036 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033037fi
Reid Spencera773bd52006-08-04 18:18:08 +000033038
33039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033040 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033041ac_cpp='$CPP $CPPFLAGS'
33042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044ac_compiler_gnu=$ac_cv_c_compiler_gnu
33045
33046fi
Reid Spencera773bd52006-08-04 18:18:08 +000033047{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33048echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033049
33050
33051if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033052
33053cat >>confdefs.h <<\_ACEOF
33054#define HAVE_ISNAN_IN_MATH_H 1
33055_ACEOF
33056
Reid Spencerabec8f92004-10-27 23:03:44 +000033057fi
33058
Reid Spencera773bd52006-08-04 18:18:08 +000033059{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33060echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033061if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33062 echo $ECHO_N "(cached) $ECHO_C" >&6
33063else
Reid Spencera773bd52006-08-04 18:18:08 +000033064 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033065ac_cpp='$CXXCPP $CPPFLAGS'
33066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33069
Reid Spencerabec8f92004-10-27 23:03:44 +000033070 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033071/* confdefs.h. */
33072_ACEOF
33073cat confdefs.h >>conftest.$ac_ext
33074cat >>conftest.$ac_ext <<_ACEOF
33075/* end confdefs.h. */
33076#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033077int
33078main ()
33079{
33080float f; isnan(f);
33081 ;
33082 return 0;
33083}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033084_ACEOF
33085rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033086if { (ac_try="$ac_compile"
33087case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33090esac
33091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033094 grep -v '^ *+' conftest.er1 >conftest.err
33095 rm -f conftest.er1
33096 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033098 (exit $ac_status); } &&
33099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33100 { (case "(($ac_try" in
33101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102 *) ac_try_echo=$ac_try;;
33103esac
33104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105 (eval "$ac_try") 2>&5
33106 ac_status=$?
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); }; } &&
33109 { ac_try='test -s conftest.$ac_objext'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033119 ac_cv_func_isnan_in_cmath=yes
33120else
33121 echo "$as_me: failed program was:" >&5
33122sed 's/^/| /' conftest.$ac_ext >&5
33123
Reid Spencera773bd52006-08-04 18:18:08 +000033124 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033125fi
Reid Spencera773bd52006-08-04 18:18:08 +000033126
33127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033128 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033129ac_cpp='$CPP $CPPFLAGS'
33130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33132ac_compiler_gnu=$ac_cv_c_compiler_gnu
33133
33134fi
Reid Spencera773bd52006-08-04 18:18:08 +000033135{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33136echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033137
33138if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033139
33140cat >>confdefs.h <<\_ACEOF
33141#define HAVE_ISNAN_IN_CMATH 1
33142_ACEOF
33143
Reid Spencerabec8f92004-10-27 23:03:44 +000033144fi
33145
Reid Spencera773bd52006-08-04 18:18:08 +000033146{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33147echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033148if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33149 echo $ECHO_N "(cached) $ECHO_C" >&6
33150else
Reid Spencera773bd52006-08-04 18:18:08 +000033151 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033152ac_cpp='$CXXCPP $CPPFLAGS'
33153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33156
Reid Spencerabec8f92004-10-27 23:03:44 +000033157 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033158/* confdefs.h. */
33159_ACEOF
33160cat confdefs.h >>conftest.$ac_ext
33161cat >>conftest.$ac_ext <<_ACEOF
33162/* end confdefs.h. */
33163#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033164int
33165main ()
33166{
33167float f; std::isnan(f);
33168 ;
33169 return 0;
33170}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033171_ACEOF
33172rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033173if { (ac_try="$ac_compile"
33174case "(($ac_try" in
33175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33176 *) ac_try_echo=$ac_try;;
33177esac
33178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33179 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033180 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033181 grep -v '^ *+' conftest.er1 >conftest.err
33182 rm -f conftest.er1
33183 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033185 (exit $ac_status); } &&
33186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33187 { (case "(($ac_try" in
33188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33189 *) ac_try_echo=$ac_try;;
33190esac
33191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33192 (eval "$ac_try") 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; } &&
33196 { ac_try='test -s conftest.$ac_objext'
33197 { (case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33200esac
33201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_try") 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033206 ac_cv_func_std_isnan_in_cmath=yes
33207else
33208 echo "$as_me: failed program was:" >&5
33209sed 's/^/| /' conftest.$ac_ext >&5
33210
Reid Spencera773bd52006-08-04 18:18:08 +000033211 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033212fi
Reid Spencera773bd52006-08-04 18:18:08 +000033213
33214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033215 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033216ac_cpp='$CPP $CPPFLAGS'
33217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33219ac_compiler_gnu=$ac_cv_c_compiler_gnu
33220
33221fi
Reid Spencera773bd52006-08-04 18:18:08 +000033222{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33223echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033224
33225if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033226
33227cat >>confdefs.h <<\_ACEOF
33228#define HAVE_STD_ISNAN_IN_CMATH 1
33229_ACEOF
33230
Reid Spencerabec8f92004-10-27 23:03:44 +000033231fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033232
33233
Reid Spencera773bd52006-08-04 18:18:08 +000033234{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33235echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033236if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33237 echo $ECHO_N "(cached) $ECHO_C" >&6
33238else
Reid Spencera773bd52006-08-04 18:18:08 +000033239 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033240ac_cpp='$CXXCPP $CPPFLAGS'
33241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33244
Reid Spencerabec8f92004-10-27 23:03:44 +000033245 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033246/* confdefs.h. */
33247_ACEOF
33248cat confdefs.h >>conftest.$ac_ext
33249cat >>conftest.$ac_ext <<_ACEOF
33250/* end confdefs.h. */
33251#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033252int
33253main ()
33254{
33255float f; isinf(f);
33256 ;
33257 return 0;
33258}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033259_ACEOF
33260rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033261if { (ac_try="$ac_compile"
33262case "(($ac_try" in
33263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33264 *) ac_try_echo=$ac_try;;
33265esac
33266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33267 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033268 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033269 grep -v '^ *+' conftest.er1 >conftest.err
33270 rm -f conftest.er1
33271 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033273 (exit $ac_status); } &&
33274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33275 { (case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278esac
33279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_try") 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; } &&
33284 { ac_try='test -s conftest.$ac_objext'
33285 { (case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33288esac
33289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_try") 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033294 ac_cv_func_isinf_in_math_h=yes
33295else
33296 echo "$as_me: failed program was:" >&5
33297sed 's/^/| /' conftest.$ac_ext >&5
33298
Reid Spencera773bd52006-08-04 18:18:08 +000033299 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033300fi
Reid Spencera773bd52006-08-04 18:18:08 +000033301
33302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033303 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033304ac_cpp='$CPP $CPPFLAGS'
33305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33307ac_compiler_gnu=$ac_cv_c_compiler_gnu
33308
33309fi
Reid Spencera773bd52006-08-04 18:18:08 +000033310{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33311echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033312
33313if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033314
33315cat >>confdefs.h <<\_ACEOF
33316#define HAVE_ISINF_IN_MATH_H 1
33317_ACEOF
33318
Reid Spencerabec8f92004-10-27 23:03:44 +000033319fi
33320
Reid Spencera773bd52006-08-04 18:18:08 +000033321{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33322echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033323if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33324 echo $ECHO_N "(cached) $ECHO_C" >&6
33325else
Reid Spencera773bd52006-08-04 18:18:08 +000033326 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033327ac_cpp='$CXXCPP $CPPFLAGS'
33328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33331
Reid Spencerabec8f92004-10-27 23:03:44 +000033332 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033333/* confdefs.h. */
33334_ACEOF
33335cat confdefs.h >>conftest.$ac_ext
33336cat >>conftest.$ac_ext <<_ACEOF
33337/* end confdefs.h. */
33338#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033339int
33340main ()
33341{
33342float f; isinf(f);
33343 ;
33344 return 0;
33345}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033346_ACEOF
33347rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033348if { (ac_try="$ac_compile"
33349case "(($ac_try" in
33350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351 *) ac_try_echo=$ac_try;;
33352esac
33353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033356 grep -v '^ *+' conftest.er1 >conftest.err
33357 rm -f conftest.er1
33358 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033360 (exit $ac_status); } &&
33361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33362 { (case "(($ac_try" in
33363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33364 *) ac_try_echo=$ac_try;;
33365esac
33366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33367 (eval "$ac_try") 2>&5
33368 ac_status=$?
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); }; } &&
33371 { ac_try='test -s conftest.$ac_objext'
33372 { (case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_try") 2>&5
33378 ac_status=$?
33379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033381 ac_cv_func_isinf_in_cmath=yes
33382else
33383 echo "$as_me: failed program was:" >&5
33384sed 's/^/| /' conftest.$ac_ext >&5
33385
Reid Spencera773bd52006-08-04 18:18:08 +000033386 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033387fi
Reid Spencera773bd52006-08-04 18:18:08 +000033388
33389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033390 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033391ac_cpp='$CPP $CPPFLAGS'
33392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33394ac_compiler_gnu=$ac_cv_c_compiler_gnu
33395
33396fi
Reid Spencera773bd52006-08-04 18:18:08 +000033397{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33398echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033399
33400if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033401
33402cat >>confdefs.h <<\_ACEOF
33403#define HAVE_ISINF_IN_CMATH 1
33404_ACEOF
33405
Reid Spencerabec8f92004-10-27 23:03:44 +000033406fi
33407
Reid Spencera773bd52006-08-04 18:18:08 +000033408{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33409echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033410if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33411 echo $ECHO_N "(cached) $ECHO_C" >&6
33412else
Reid Spencera773bd52006-08-04 18:18:08 +000033413 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033414ac_cpp='$CXXCPP $CPPFLAGS'
33415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33418
Reid Spencerabec8f92004-10-27 23:03:44 +000033419 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033420/* confdefs.h. */
33421_ACEOF
33422cat confdefs.h >>conftest.$ac_ext
33423cat >>conftest.$ac_ext <<_ACEOF
33424/* end confdefs.h. */
33425#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033426int
33427main ()
33428{
33429float f; std::isinf(f)}
33430 ;
33431 return 0;
33432}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033433_ACEOF
33434rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033435if { (ac_try="$ac_compile"
33436case "(($ac_try" in
33437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33438 *) ac_try_echo=$ac_try;;
33439esac
33440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33441 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033442 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033443 grep -v '^ *+' conftest.er1 >conftest.err
33444 rm -f conftest.er1
33445 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033447 (exit $ac_status); } &&
33448 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33449 { (case "(($ac_try" in
33450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451 *) ac_try_echo=$ac_try;;
33452esac
33453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454 (eval "$ac_try") 2>&5
33455 ac_status=$?
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); }; } &&
33458 { ac_try='test -s conftest.$ac_objext'
33459 { (case "(($ac_try" in
33460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33461 *) ac_try_echo=$ac_try;;
33462esac
33463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33464 (eval "$ac_try") 2>&5
33465 ac_status=$?
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033468 ac_cv_func_std_isinf_in_cmath=yes
33469else
33470 echo "$as_me: failed program was:" >&5
33471sed 's/^/| /' conftest.$ac_ext >&5
33472
Reid Spencera773bd52006-08-04 18:18:08 +000033473 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033474fi
Reid Spencera773bd52006-08-04 18:18:08 +000033475
33476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033477 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033478ac_cpp='$CPP $CPPFLAGS'
33479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33481ac_compiler_gnu=$ac_cv_c_compiler_gnu
33482
33483fi
Reid Spencera773bd52006-08-04 18:18:08 +000033484{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33485echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033486
33487if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033488
33489cat >>confdefs.h <<\_ACEOF
33490#define HAVE_STD_ISINF_IN_CMATH 1
33491_ACEOF
33492
Reid Spencerabec8f92004-10-27 23:03:44 +000033493fi
33494
Reid Spencera773bd52006-08-04 18:18:08 +000033495{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33496echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033497if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33498 echo $ECHO_N "(cached) $ECHO_C" >&6
33499else
Reid Spencera773bd52006-08-04 18:18:08 +000033500 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033501ac_cpp='$CXXCPP $CPPFLAGS'
33502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33505
Reid Spencerabec8f92004-10-27 23:03:44 +000033506 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033507/* confdefs.h. */
33508_ACEOF
33509cat confdefs.h >>conftest.$ac_ext
33510cat >>conftest.$ac_ext <<_ACEOF
33511/* end confdefs.h. */
33512#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033513int
33514main ()
33515{
33516float f; finite(f);
33517 ;
33518 return 0;
33519}
Brian Gaeked59a6472004-07-21 03:33:58 +000033520_ACEOF
33521rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033522if { (ac_try="$ac_compile"
33523case "(($ac_try" in
33524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33525 *) ac_try_echo=$ac_try;;
33526esac
33527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33528 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033530 grep -v '^ *+' conftest.er1 >conftest.err
33531 rm -f conftest.er1
33532 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033534 (exit $ac_status); } &&
33535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33536 { (case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33539esac
33540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_try") 2>&5
33542 ac_status=$?
33543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33544 (exit $ac_status); }; } &&
33545 { ac_try='test -s conftest.$ac_objext'
33546 { (case "(($ac_try" in
33547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33548 *) ac_try_echo=$ac_try;;
33549esac
33550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33551 (eval "$ac_try") 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033555 ac_cv_func_finite_in_ieeefp_h=yes
33556else
33557 echo "$as_me: failed program was:" >&5
33558sed 's/^/| /' conftest.$ac_ext >&5
33559
Reid Spencera773bd52006-08-04 18:18:08 +000033560 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033561fi
Reid Spencera773bd52006-08-04 18:18:08 +000033562
33563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033564 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033565ac_cpp='$CPP $CPPFLAGS'
33566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33568ac_compiler_gnu=$ac_cv_c_compiler_gnu
33569
33570fi
Reid Spencera773bd52006-08-04 18:18:08 +000033571{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33572echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033573
Brian Gaeke6802b552004-10-28 05:06:45 +000033574if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033575
33576cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033577#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033578_ACEOF
33579
Reid Spencerabec8f92004-10-27 23:03:44 +000033580fi
33581
33582
33583
Reid Spencer30fe5262007-01-20 07:48:49 +000033584if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033585
33586
33587for ac_header in stdlib.h unistd.h
33588do
33589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33592echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033594 echo $ECHO_N "(cached) $ECHO_C" >&6
33595fi
Reid Spencera773bd52006-08-04 18:18:08 +000033596ac_res=`eval echo '${'$as_ac_Header'}'`
33597 { echo "$as_me:$LINENO: result: $ac_res" >&5
33598echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033599else
33600 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033601{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033603cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033604/* confdefs.h. */
33605_ACEOF
33606cat confdefs.h >>conftest.$ac_ext
33607cat >>conftest.$ac_ext <<_ACEOF
33608/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033609$ac_includes_default
33610#include <$ac_header>
33611_ACEOF
33612rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033613if { (ac_try="$ac_compile"
33614case "(($ac_try" in
33615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33616 *) ac_try_echo=$ac_try;;
33617esac
33618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33619 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033621 grep -v '^ *+' conftest.er1 >conftest.err
33622 rm -f conftest.er1
33623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033625 (exit $ac_status); } &&
33626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33627 { (case "(($ac_try" in
33628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629 *) ac_try_echo=$ac_try;;
33630esac
33631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632 (eval "$ac_try") 2>&5
33633 ac_status=$?
33634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); }; } &&
33636 { ac_try='test -s conftest.$ac_objext'
33637 { (case "(($ac_try" in
33638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33639 *) ac_try_echo=$ac_try;;
33640esac
33641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33642 (eval "$ac_try") 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033646 ac_header_compiler=yes
33647else
33648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033649sed 's/^/| /' conftest.$ac_ext >&5
33650
Reid Spencera773bd52006-08-04 18:18:08 +000033651 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033652fi
Reid Spencera773bd52006-08-04 18:18:08 +000033653
33654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33656echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033657
33658# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033659{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033661cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033662/* confdefs.h. */
33663_ACEOF
33664cat confdefs.h >>conftest.$ac_ext
33665cat >>conftest.$ac_ext <<_ACEOF
33666/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033667#include <$ac_header>
33668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033669if { (ac_try="$ac_cpp conftest.$ac_ext"
33670case "(($ac_try" in
33671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33672 *) ac_try_echo=$ac_try;;
33673esac
33674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033676 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033677 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033678 rm -f conftest.er1
33679 cat conftest.err >&5
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033681 (exit $ac_status); } >/dev/null; then
33682 if test -s conftest.err; then
33683 ac_cpp_err=$ac_c_preproc_warn_flag
33684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33685 else
33686 ac_cpp_err=
33687 fi
33688else
33689 ac_cpp_err=yes
33690fi
33691if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033692 ac_header_preproc=yes
33693else
33694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033695sed 's/^/| /' conftest.$ac_ext >&5
33696
John Criswell7a73b802003-06-30 21:59:07 +000033697 ac_header_preproc=no
33698fi
Reid Spencera773bd52006-08-04 18:18:08 +000033699
John Criswell7a73b802003-06-30 21:59:07 +000033700rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033701{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33702echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033703
33704# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33706 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33711 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033712 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033713 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033726 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033727## ----------------------------------- ##
33728## Report this to llvmbugs@cs.uiuc.edu ##
33729## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033730_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033731 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033732 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033733esac
Reid Spencera773bd52006-08-04 18:18:08 +000033734{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033737 echo $ECHO_N "(cached) $ECHO_C" >&6
33738else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033739 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033740fi
Reid Spencera773bd52006-08-04 18:18:08 +000033741ac_res=`eval echo '${'$as_ac_Header'}'`
33742 { echo "$as_me:$LINENO: result: $ac_res" >&5
33743echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033744
33745fi
33746if test `eval echo '${'$as_ac_Header'}'` = yes; then
33747 cat >>confdefs.h <<_ACEOF
33748#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33749_ACEOF
33750
33751fi
33752
33753done
33754
33755
33756for ac_func in getpagesize
33757do
33758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763else
33764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033765/* confdefs.h. */
33766_ACEOF
33767cat confdefs.h >>conftest.$ac_ext
33768cat >>conftest.$ac_ext <<_ACEOF
33769/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33772#define $ac_func innocuous_$ac_func
33773
John Criswell7a73b802003-06-30 21:59:07 +000033774/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033775 which can conflict with char $ac_func (); below.
33776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33777 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033778
John Criswell0c38eaf2003-09-10 15:17:25 +000033779#ifdef __STDC__
33780# include <limits.h>
33781#else
33782# include <assert.h>
33783#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033784
33785#undef $ac_func
33786
Reid Spencera773bd52006-08-04 18:18:08 +000033787/* Override any GCC internal prototype to avoid an error.
33788 Use char because int might match the return type of a GCC
33789 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033790#ifdef __cplusplus
33791extern "C"
33792#endif
John Criswell7a73b802003-06-30 21:59:07 +000033793char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033794/* The GNU C library defines this for functions which it implements
33795 to always fail with ENOSYS. Some functions are actually named
33796 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033797#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033798choke me
John Criswell7a73b802003-06-30 21:59:07 +000033799#endif
33800
John Criswell0c38eaf2003-09-10 15:17:25 +000033801int
33802main ()
33803{
Reid Spencera773bd52006-08-04 18:18:08 +000033804return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033805 ;
33806 return 0;
33807}
33808_ACEOF
33809rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033810if { (ac_try="$ac_link"
33811case "(($ac_try" in
33812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33813 *) ac_try_echo=$ac_try;;
33814esac
33815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33816 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033818 grep -v '^ *+' conftest.er1 >conftest.err
33819 rm -f conftest.er1
33820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033822 (exit $ac_status); } &&
33823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33824 { (case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827esac
33828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_try") 2>&5
33830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; } &&
33833 { ac_try='test -s conftest$ac_exeext'
33834 { (case "(($ac_try" in
33835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33836 *) ac_try_echo=$ac_try;;
33837esac
33838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33839 (eval "$ac_try") 2>&5
33840 ac_status=$?
33841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033843 eval "$as_ac_var=yes"
33844else
33845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033846sed 's/^/| /' conftest.$ac_ext >&5
33847
Reid Spencera773bd52006-08-04 18:18:08 +000033848 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033849fi
Reid Spencera773bd52006-08-04 18:18:08 +000033850
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033851rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033852 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033853fi
Reid Spencera773bd52006-08-04 18:18:08 +000033854ac_res=`eval echo '${'$as_ac_var'}'`
33855 { echo "$as_me:$LINENO: result: $ac_res" >&5
33856echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033857if test `eval echo '${'$as_ac_var'}'` = yes; then
33858 cat >>confdefs.h <<_ACEOF
33859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33860_ACEOF
33861
33862fi
33863done
33864
Reid Spencera773bd52006-08-04 18:18:08 +000033865{ echo "$as_me:$LINENO: checking for working mmap" >&5
33866echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033867if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33868 echo $ECHO_N "(cached) $ECHO_C" >&6
33869else
33870 if test "$cross_compiling" = yes; then
33871 ac_cv_func_mmap_fixed_mapped=no
33872else
33873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033874/* confdefs.h. */
33875_ACEOF
33876cat confdefs.h >>conftest.$ac_ext
33877cat >>conftest.$ac_ext <<_ACEOF
33878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033879$ac_includes_default
33880/* malloc might have been renamed as rpl_malloc. */
33881#undef malloc
33882
33883/* Thanks to Mike Haertel and Jim Avera for this test.
33884 Here is a matrix of mmap possibilities:
33885 mmap private not fixed
33886 mmap private fixed at somewhere currently unmapped
33887 mmap private fixed at somewhere already mapped
33888 mmap shared not fixed
33889 mmap shared fixed at somewhere currently unmapped
33890 mmap shared fixed at somewhere already mapped
33891 For private mappings, we should verify that changes cannot be read()
33892 back from the file, nor mmap's back from the file at a different
33893 address. (There have been systems where private was not correctly
33894 implemented like the infamous i386 svr4.0, and systems where the
33895 VM page cache was not coherent with the file system buffer cache
33896 like early versions of FreeBSD and possibly contemporary NetBSD.)
33897 For shared mappings, we should conversely verify that changes get
33898 propagated back to all the places they're supposed to be.
33899
33900 Grep wants private fixed already mapped.
33901 The main things grep needs to know about mmap are:
33902 * does it exist and is it safe to write into the mmap'd area
33903 * how to use it (BSD variants) */
33904
33905#include <fcntl.h>
33906#include <sys/mman.h>
33907
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033908#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033909char *malloc ();
33910#endif
33911
33912/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033913#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033914/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033915# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033916# define HAVE_SYS_PARAM_H 1
33917# endif
33918
33919# ifdef _SC_PAGESIZE
33920# define getpagesize() sysconf(_SC_PAGESIZE)
33921# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033922# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033923# include <sys/param.h>
33924# ifdef EXEC_PAGESIZE
33925# define getpagesize() EXEC_PAGESIZE
33926# else /* no EXEC_PAGESIZE */
33927# ifdef NBPG
33928# define getpagesize() NBPG * CLSIZE
33929# ifndef CLSIZE
33930# define CLSIZE 1
33931# endif /* no CLSIZE */
33932# else /* no NBPG */
33933# ifdef NBPC
33934# define getpagesize() NBPC
33935# else /* no NBPC */
33936# ifdef PAGESIZE
33937# define getpagesize() PAGESIZE
33938# endif /* PAGESIZE */
33939# endif /* no NBPC */
33940# endif /* no NBPG */
33941# endif /* no EXEC_PAGESIZE */
33942# else /* no HAVE_SYS_PARAM_H */
33943# define getpagesize() 8192 /* punt totally */
33944# endif /* no HAVE_SYS_PARAM_H */
33945# endif /* no _SC_PAGESIZE */
33946
33947#endif /* no HAVE_GETPAGESIZE */
33948
33949int
33950main ()
33951{
33952 char *data, *data2, *data3;
33953 int i, pagesize;
33954 int fd;
33955
33956 pagesize = getpagesize ();
33957
33958 /* First, make a file with some known garbage in it. */
33959 data = (char *) malloc (pagesize);
33960 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033961 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033962 for (i = 0; i < pagesize; ++i)
33963 *(data + i) = rand ();
33964 umask (0);
33965 fd = creat ("conftest.mmap", 0600);
33966 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033967 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033968 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033969 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033970 close (fd);
33971
33972 /* Next, try to mmap the file at a fixed address which already has
33973 something else allocated at it. If we can, also make sure that
33974 we see the same garbage. */
33975 fd = open ("conftest.mmap", O_RDWR);
33976 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033977 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033978 data2 = (char *) malloc (2 * pagesize);
33979 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033980 return 1;
33981 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033982 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033983 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033984 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033985 for (i = 0; i < pagesize; ++i)
33986 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033987 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033988
33989 /* Finally, make sure that changes to the mapped area do not
33990 percolate back to the file as seen by read(). (This is a bug on
33991 some variants of i386 svr4.0.) */
33992 for (i = 0; i < pagesize; ++i)
33993 *(data2 + i) = *(data2 + i) + 1;
33994 data3 = (char *) malloc (pagesize);
33995 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033996 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033997 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033998 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033999 for (i = 0; i < pagesize; ++i)
34000 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034001 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034002 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034003 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034004}
34005_ACEOF
34006rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034007if { (ac_try="$ac_link"
34008case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34011esac
34012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034014 ac_status=$?
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034017 { (case "(($ac_try" in
34018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34019 *) ac_try_echo=$ac_try;;
34020esac
34021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34022 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; }; then
34026 ac_cv_func_mmap_fixed_mapped=yes
34027else
34028 echo "$as_me: program exited with status $ac_status" >&5
34029echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034030sed 's/^/| /' conftest.$ac_ext >&5
34031
John Criswell7a73b802003-06-30 21:59:07 +000034032( exit $ac_status )
34033ac_cv_func_mmap_fixed_mapped=no
34034fi
Reid Spencera773bd52006-08-04 18:18:08 +000034035rm -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 +000034036fi
Reid Spencera773bd52006-08-04 18:18:08 +000034037
34038
John Criswell7a73b802003-06-30 21:59:07 +000034039fi
Reid Spencera773bd52006-08-04 18:18:08 +000034040{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34041echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034042if test $ac_cv_func_mmap_fixed_mapped = yes; then
34043
34044cat >>confdefs.h <<\_ACEOF
34045#define HAVE_MMAP 1
34046_ACEOF
34047
34048fi
34049rm -f conftest.mmap
34050
Reid Spencer30fe5262007-01-20 07:48:49 +000034051 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034052echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034053if test "${ac_cv_func_mmap_file+set}" = set; then
34054 echo $ECHO_N "(cached) $ECHO_C" >&6
34055else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034056 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034057ac_cpp='$CPP $CPPFLAGS'
34058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34060ac_compiler_gnu=$ac_cv_c_compiler_gnu
34061
34062 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034063 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034064else
34065 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034066
Reid Spencer777ce172004-09-20 04:09:56 +000034067 /* confdefs.h. */
34068_ACEOF
34069cat confdefs.h >>conftest.$ac_ext
34070cat >>conftest.$ac_ext <<_ACEOF
34071/* end confdefs.h. */
34072
John Criswell7a73b802003-06-30 21:59:07 +000034073#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034074#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034075#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034076
34077int
34078main ()
34079{
John Criswell7a73b802003-06-30 21:59:07 +000034080
34081 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034082 fd = creat ("foo",0777);
34083 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34084 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034085 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034086 ;
34087 return 0;
34088}
John Criswell7a73b802003-06-30 21:59:07 +000034089_ACEOF
34090rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034091if { (ac_try="$ac_link"
34092case "(($ac_try" in
34093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34094 *) ac_try_echo=$ac_try;;
34095esac
34096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34097 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034098 ac_status=$?
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034101 { (case "(($ac_try" in
34102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34103 *) ac_try_echo=$ac_try;;
34104esac
34105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34106 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034107 ac_status=$?
34108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34109 (exit $ac_status); }; }; then
34110 ac_cv_func_mmap_file=yes
34111else
34112 echo "$as_me: program exited with status $ac_status" >&5
34113echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034114sed 's/^/| /' conftest.$ac_ext >&5
34115
John Criswell7a73b802003-06-30 21:59:07 +000034116( exit $ac_status )
34117ac_cv_func_mmap_file=no
34118fi
Reid Spencera773bd52006-08-04 18:18:08 +000034119rm -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 +000034120fi
Reid Spencera773bd52006-08-04 18:18:08 +000034121
34122
John Criswell7a73b802003-06-30 21:59:07 +000034123 ac_ext=c
34124ac_cpp='$CPP $CPPFLAGS'
34125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34127ac_compiler_gnu=$ac_cv_c_compiler_gnu
34128
34129
34130fi
Reid Spencera773bd52006-08-04 18:18:08 +000034131{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34132echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034133if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034134
34135cat >>confdefs.h <<\_ACEOF
34136#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034137_ACEOF
34138
34139 MMAP_FILE=yes
34140
34141fi
34142
Reid Spencer30fe5262007-01-20 07:48:49 +000034143 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034144echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034145if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34146 echo $ECHO_N "(cached) $ECHO_C" >&6
34147else
Reid Spencer582a23c2004-12-29 07:07:57 +000034148 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034149 ac_cv_need_dev_zero_for_mmap=yes
34150 else
34151 ac_cv_need_dev_zero_for_mmap=no
34152 fi
34153
34154fi
Reid Spencera773bd52006-08-04 18:18:08 +000034155{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34156echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034157if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34158
34159cat >>confdefs.h <<\_ACEOF
34160#define NEED_DEV_ZERO_FOR_MMAP 1
34161_ACEOF
34162
34163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034164
Reid Spencer30fe5262007-01-20 07:48:49 +000034165 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34166 then
34167 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034168echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034169 fi
34170 if test "$ac_cv_func_mmap_file" = "no"
34171 then
34172 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034173echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034174 fi
John Criswellb13092b2003-07-22 21:00:24 +000034175fi
John Criswell7a73b802003-06-30 21:59:07 +000034176
34177
Reid Spencer9372f152007-07-30 20:13:24 +000034178
34179for ac_func in __dso_handle
34180do
34181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34182{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34184if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34185 echo $ECHO_N "(cached) $ECHO_C" >&6
34186else
34187 cat >conftest.$ac_ext <<_ACEOF
34188/* confdefs.h. */
34189_ACEOF
34190cat confdefs.h >>conftest.$ac_ext
34191cat >>conftest.$ac_ext <<_ACEOF
34192/* end confdefs.h. */
34193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34195#define $ac_func innocuous_$ac_func
34196
34197/* System header to define __stub macros and hopefully few prototypes,
34198 which can conflict with char $ac_func (); below.
34199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34200 <limits.h> exists even on freestanding compilers. */
34201
34202#ifdef __STDC__
34203# include <limits.h>
34204#else
34205# include <assert.h>
34206#endif
34207
34208#undef $ac_func
34209
34210/* Override any GCC internal prototype to avoid an error.
34211 Use char because int might match the return type of a GCC
34212 builtin and then its argument prototype would still apply. */
34213#ifdef __cplusplus
34214extern "C"
34215#endif
34216char $ac_func ();
34217/* The GNU C library defines this for functions which it implements
34218 to always fail with ENOSYS. Some functions are actually named
34219 something starting with __ and the normal name is an alias. */
34220#if defined __stub_$ac_func || defined __stub___$ac_func
34221choke me
34222#endif
34223
34224int
34225main ()
34226{
34227return $ac_func ();
34228 ;
34229 return 0;
34230}
34231_ACEOF
34232rm -f conftest.$ac_objext conftest$ac_exeext
34233if { (ac_try="$ac_link"
34234case "(($ac_try" in
34235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236 *) ac_try_echo=$ac_try;;
34237esac
34238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239 (eval "$ac_link") 2>conftest.er1
34240 ac_status=$?
34241 grep -v '^ *+' conftest.er1 >conftest.err
34242 rm -f conftest.er1
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034245 (exit $ac_status); } &&
34246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34247 { (case "(($ac_try" in
34248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34249 *) ac_try_echo=$ac_try;;
34250esac
34251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34252 (eval "$ac_try") 2>&5
34253 ac_status=$?
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); }; } &&
34256 { ac_try='test -s conftest$ac_exeext'
34257 { (case "(($ac_try" in
34258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34259 *) ac_try_echo=$ac_try;;
34260esac
34261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34262 (eval "$ac_try") 2>&5
34263 ac_status=$?
34264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34265 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034266 eval "$as_ac_var=yes"
34267else
34268 echo "$as_me: failed program was:" >&5
34269sed 's/^/| /' conftest.$ac_ext >&5
34270
34271 eval "$as_ac_var=no"
34272fi
34273
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034274rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034275 conftest$ac_exeext conftest.$ac_ext
34276fi
34277ac_res=`eval echo '${'$as_ac_var'}'`
34278 { echo "$as_me:$LINENO: result: $ac_res" >&5
34279echo "${ECHO_T}$ac_res" >&6; }
34280if test `eval echo '${'$as_ac_var'}'` = yes; then
34281 cat >>confdefs.h <<_ACEOF
34282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34283_ACEOF
34284
34285fi
34286done
34287
34288
Reid Spencera773bd52006-08-04 18:18:08 +000034289{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34290echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034291if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34292 echo $ECHO_N "(cached) $ECHO_C" >&6
34293else
34294 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034295if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034296 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034297 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34298 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034299 if test $? -eq 0 ; then
34300 llvm_cv_llvmgcc_sanity="yes"
34301 fi
34302 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034303fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034304fi
Reid Spencera773bd52006-08-04 18:18:08 +000034305{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34306echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034309 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34310echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034311 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034312 LLVMCC1=$llvmcc1path
34313
Reid Spencer502935f2004-12-22 05:56:56 +000034314 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034315 LLVMCC1PLUS=$llvmcc1pluspath
34316
Reid Spencer502935f2004-12-22 05:56:56 +000034317 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34318 LLVMGCCDIR=$llvmgccdir
34319
Reid Spencer282d8c12006-12-21 22:55:41 +000034320 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34321 LLVMGCCLIBEXEC=$llvmgcclibexec
34322
Reid Spencerb5d75b82006-05-09 00:31:01 +000034323 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034324 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34325 LLVMGCC_VERSION=$llvmgccversion
34326
34327 LLVMGCC_MAJVERS=$llvmgccmajvers
34328
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034329 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034330 LLVMGCC_LANGS=$llvmgcclangs
34331
34332 { echo "$as_me:$LINENO: result: ok" >&5
34333echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034334fi
34335
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034336SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034337
34338
Reid Spencere9de0912004-08-20 09:03:57 +000034339# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034340# information into substitutions that will end up in Makefile.config.in
34341# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034342if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034343 prefix="/usr/local"
34344fi
Reid Spencere9de0912004-08-20 09:03:57 +000034345eval LLVM_PREFIX="${prefix}";
34346eval LLVM_BINDIR="${prefix}/bin";
34347eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034348eval LLVM_DATADIR="${prefix}/share/llvm";
34349eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34350eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034351eval LLVM_INCLUDEDIR="${prefix}/include";
34352eval LLVM_INFODIR="${prefix}/info";
34353eval LLVM_MANDIR="${prefix}/man";
34354LLVM_CONFIGTIME=`date`
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034366# Place the various directores into the config.h file as #defines so that we
34367# can know about the installation paths within LLVM.
34368
Reid Spencere9de0912004-08-20 09:03:57 +000034369cat >>confdefs.h <<_ACEOF
34370#define LLVM_PREFIX "$LLVM_PREFIX"
34371_ACEOF
34372
34373
34374cat >>confdefs.h <<_ACEOF
34375#define LLVM_BINDIR "$LLVM_BINDIR"
34376_ACEOF
34377
34378
34379cat >>confdefs.h <<_ACEOF
34380#define LLVM_LIBDIR "$LLVM_LIBDIR"
34381_ACEOF
34382
34383
34384cat >>confdefs.h <<_ACEOF
34385#define LLVM_DATADIR "$LLVM_DATADIR"
34386_ACEOF
34387
34388
34389cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034390#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034391_ACEOF
34392
34393
34394cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034395#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034396_ACEOF
34397
34398
34399cat >>confdefs.h <<_ACEOF
34400#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34401_ACEOF
34402
34403
34404cat >>confdefs.h <<_ACEOF
34405#define LLVM_INFODIR "$LLVM_INFODIR"
34406_ACEOF
34407
34408
34409cat >>confdefs.h <<_ACEOF
34410#define LLVM_MANDIR "$LLVM_MANDIR"
34411_ACEOF
34412
34413
34414cat >>confdefs.h <<_ACEOF
34415#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34416_ACEOF
34417
34418
Eric Christopher790e11c2007-12-01 00:34:39 +000034419cat >>confdefs.h <<_ACEOF
34420#define LLVM_HOSTTRIPLE "$host"
34421_ACEOF
34422
34423
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034424# Determine which bindings to build.
34425if test "$BINDINGS_TO_BUILD" = auto ; then
34426 BINDINGS_TO_BUILD=""
34427 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34428 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34429 fi
34430fi
34431BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34432
34433
34434# This isn't really configurey, but it avoids having to repeat the list in
34435# other files.
34436ALL_BINDINGS=ocaml
34437
34438
Gordon Henriksenf0915682007-10-02 16:42:22 +000034439# Do any work necessary to ensure that bindings have what they need.
34440binding_prereqs_failed=0
34441for a_binding in $BINDINGS_TO_BUILD ; do
34442 case "$a_binding" in
34443 ocaml)
34444 if test "x$OCAMLC" = x ; then
34445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34446echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34447 binding_prereqs_failed=1
34448 fi
34449 if test "x$OCAMLDEP" = x ; then
34450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34451echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34452 binding_prereqs_failed=1
34453 fi
34454 if test "x$OCAMLOPT" = x ; then
34455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34456echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34457 fi
34458 if test "x$with_ocaml_libdir" != xauto ; then
34459 OCAML_LIBDIR=$with_ocaml_libdir
34460
34461 else
34462 ocaml_stdlib="`"$OCAMLC" -where`"
34463 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34464 then
34465 # ocaml stdlib is beneath our prefix; use stdlib
34466 OCAML_LIBDIR=$ocaml_stdlib
34467
34468 else
34469 # ocaml stdlib is outside our prefix; use libdir/ocaml
34470 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34471
34472 fi
34473 fi
34474 ;;
34475 esac
34476done
34477if test "$binding_prereqs_failed" = 1 ; then
34478 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34479echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34480 { (exit 1); exit 1; }; }
34481fi
34482
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034483{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34484echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34485if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34486 echo $ECHO_N "(cached) $ECHO_C" >&6
34487else
34488 ac_ext=cpp
34489ac_cpp='$CXXCPP $CPPFLAGS'
34490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34493
34494 oldcxxflags="$CXXFLAGS"
34495 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34496 cat >conftest.$ac_ext <<_ACEOF
34497/* confdefs.h. */
34498_ACEOF
34499cat confdefs.h >>conftest.$ac_ext
34500cat >>conftest.$ac_ext <<_ACEOF
34501/* end confdefs.h. */
34502
34503int
34504main ()
34505{
34506
34507 ;
34508 return 0;
34509}
34510_ACEOF
34511rm -f conftest.$ac_objext
34512if { (ac_try="$ac_compile"
34513case "(($ac_try" in
34514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34515 *) ac_try_echo=$ac_try;;
34516esac
34517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34518 (eval "$ac_compile") 2>conftest.er1
34519 ac_status=$?
34520 grep -v '^ *+' conftest.er1 >conftest.err
34521 rm -f conftest.er1
34522 cat conftest.err >&5
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034524 (exit $ac_status); } &&
34525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34526 { (case "(($ac_try" in
34527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34528 *) ac_try_echo=$ac_try;;
34529esac
34530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34531 (eval "$ac_try") 2>&5
34532 ac_status=$?
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; } &&
34535 { ac_try='test -s conftest.$ac_objext'
34536 { (case "(($ac_try" in
34537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34538 *) ac_try_echo=$ac_try;;
34539esac
34540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34541 (eval "$ac_try") 2>&5
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034545 llvm_cv_cxx_visibility_inlines_hidden=yes
34546else
34547 echo "$as_me: failed program was:" >&5
34548sed 's/^/| /' conftest.$ac_ext >&5
34549
34550 llvm_cv_cxx_visibility_inlines_hidden=no
34551fi
34552
34553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34554 CXXFLAGS="$oldcxxflags"
34555 ac_ext=c
34556ac_cpp='$CPP $CPPFLAGS'
34557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34559ac_compiler_gnu=$ac_cv_c_compiler_gnu
34560
34561
34562fi
34563{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34564echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34565if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34566 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34567
34568else
34569 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34570
34571fi
34572
Gordon Henriksenf0915682007-10-02 16:42:22 +000034573
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034574
Reid Spencera773bd52006-08-04 18:18:08 +000034575ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034576
Reid Spencera773bd52006-08-04 18:18:08 +000034577ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034578
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034579ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034580
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034581ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034582
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034583ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034584
34585
Reid Spencera773bd52006-08-04 18:18:08 +000034586ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034587
34588
Reid Spencerea949cf2006-08-16 00:45:38 +000034589ac_config_files="$ac_config_files llvm.spec"
34590
34591
Reid Spencera773bd52006-08-04 18:18:08 +000034592ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034593
34594
Reid Spencera773bd52006-08-04 18:18:08 +000034595ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034596
34597
Reid Spencera773bd52006-08-04 18:18:08 +000034598ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034599
Reid Spencera773bd52006-08-04 18:18:08 +000034600ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034601
34602
Reid Spencera773bd52006-08-04 18:18:08 +000034603ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034604
34605
Reid Spencera773bd52006-08-04 18:18:08 +000034606ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034607
34608
Reid Spencera773bd52006-08-04 18:18:08 +000034609ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034610
34611
Reid Spencer8b2e1412006-11-17 03:32:33 +000034612ac_config_commands="$ac_config_commands runtime/Makefile"
34613
34614
Reid Spencera773bd52006-08-04 18:18:08 +000034615ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034616
34617
Reid Spencera773bd52006-08-04 18:18:08 +000034618ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034619
34620
Bill Wendlingf24eb392009-01-04 23:12:30 +000034621ac_config_commands="$ac_config_commands unittests/Makefile"
34622
34623
Reid Spencera773bd52006-08-04 18:18:08 +000034624ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034625
34626
Reid Spencera773bd52006-08-04 18:18:08 +000034627ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034628
34629
Reid Spencera773bd52006-08-04 18:18:08 +000034630ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034631
34632
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034633ac_config_commands="$ac_config_commands bindings/Makefile"
34634
34635
34636ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34637
34638
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034639
John Criswell7a73b802003-06-30 21:59:07 +000034640cat >confcache <<\_ACEOF
34641# This file is a shell script that caches the results of configure
34642# tests run on this system so they can be shared between configure
34643# scripts and configure runs, see configure's option --config-cache.
34644# It is not useful on other systems. If it contains results you don't
34645# want to keep, you may remove or edit it.
34646#
34647# config.status only pays attention to the cache file if you give it
34648# the --recheck option to rerun configure.
34649#
John Criswell0c38eaf2003-09-10 15:17:25 +000034650# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034651# loading this file, other *unset* `ac_cv_foo' will be assigned the
34652# following values.
34653
34654_ACEOF
34655
34656# The following way of writing the cache mishandles newlines in values,
34657# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034658# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034659# Ultrix sh set writes to stderr and can't be redirected directly,
34660# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034661(
34662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34663 eval ac_val=\$$ac_var
34664 case $ac_val in #(
34665 *${as_nl}*)
34666 case $ac_var in #(
34667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34668echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34669 esac
34670 case $ac_var in #(
34671 _ | IFS | as_nl) ;; #(
34672 *) $as_unset $ac_var ;;
34673 esac ;;
34674 esac
34675 done
34676
John Criswell7a73b802003-06-30 21:59:07 +000034677 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34679 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034680 # `set' does not quote correctly, so add quotes (double-quote
34681 # substitution turns \\\\ into \\, and sed turns \\ into \).
34682 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034683 "s/'/'\\\\''/g;
34684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034685 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034686 *)
34687 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034690 esac |
34691 sort
34692) |
John Criswell7a73b802003-06-30 21:59:07 +000034693 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034694 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034695 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034696 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34698 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34700 :end' >>confcache
34701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34702 if test -w "$cache_file"; then
34703 test "x$cache_file" != "x/dev/null" &&
34704 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34705echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034706 cat confcache >$cache_file
34707 else
Reid Spencera773bd52006-08-04 18:18:08 +000034708 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34709echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034710 fi
34711fi
34712rm -f confcache
34713
34714test "x$prefix" = xNONE && prefix=$ac_default_prefix
34715# Let make expand exec_prefix.
34716test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34717
John Criswell7a73b802003-06-30 21:59:07 +000034718DEFS=-DHAVE_CONFIG_H
34719
John Criswell0c38eaf2003-09-10 15:17:25 +000034720ac_libobjs=
34721ac_ltlibobjs=
34722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34723 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34725 ac_i=`echo "$ac_i" | sed "$ac_script"`
34726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34727 # will be set to the directory where LIBOBJS objects are built.
34728 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34729 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034730done
34731LIBOBJS=$ac_libobjs
34732
34733LTLIBOBJS=$ac_ltlibobjs
34734
34735
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034736if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34737 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34738Usually this means the macro was only invoked conditionally." >&5
34739echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34740Usually this means the macro was only invoked conditionally." >&2;}
34741 { (exit 1); exit 1; }; }
34742fi
34743if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34744 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34745Usually this means the macro was only invoked conditionally." >&5
34746echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34747Usually this means the macro was only invoked conditionally." >&2;}
34748 { (exit 1); exit 1; }; }
34749fi
John Criswell7a73b802003-06-30 21:59:07 +000034750
34751: ${CONFIG_STATUS=./config.status}
34752ac_clean_files_save=$ac_clean_files
34753ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34754{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34755echo "$as_me: creating $CONFIG_STATUS" >&6;}
34756cat >$CONFIG_STATUS <<_ACEOF
34757#! $SHELL
34758# Generated by $as_me.
34759# Run this file to recreate the current configuration.
34760# Compiler output produced by configure, useful for debugging
34761# configure, is in config.log if it exists.
34762
34763debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034764ac_cs_recheck=false
34765ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034766SHELL=\${CONFIG_SHELL-$SHELL}
34767_ACEOF
34768
34769cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034770## --------------------- ##
34771## M4sh Initialization. ##
34772## --------------------- ##
34773
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034774# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034775if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34776 emulate sh
34777 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34779 # is contrary to our usage. Disable this feature.
34780 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034781 setopt NO_GLOB_SUBST
34782else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034783 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034784fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034785BIN_SH=xpg4; export BIN_SH # for Tru64
34786DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034787
John Criswell7a73b802003-06-30 21:59:07 +000034788
Reid Spencera773bd52006-08-04 18:18:08 +000034789# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034790# Avoid depending upon Character Ranges.
34791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34794as_cr_digits='0123456789'
34795as_cr_alnum=$as_cr_Letters$as_cr_digits
34796
34797# The user is always right.
34798if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034799 echo "#! /bin/sh" >conf$$.sh
34800 echo "exit 0" >>conf$$.sh
34801 chmod +x conf$$.sh
34802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034803 PATH_SEPARATOR=';'
34804 else
34805 PATH_SEPARATOR=:
34806 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034807 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034808fi
34809
Reid Spencera773bd52006-08-04 18:18:08 +000034810# Support unset when possible.
34811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34812 as_unset=unset
34813else
34814 as_unset=false
34815fi
John Criswell7a73b802003-06-30 21:59:07 +000034816
Reid Spencera773bd52006-08-04 18:18:08 +000034817
34818# IFS
34819# We need space, tab and new line, in precisely that order. Quoting is
34820# there to prevent editors from complaining about space-tab.
34821# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34822# splitting by setting IFS to empty value.)
34823as_nl='
34824'
34825IFS=" "" $as_nl"
34826
34827# Find who we are. Look in the path if we contain no directory separator.
34828case $0 in
34829 *[\\/]* ) as_myself=$0 ;;
34830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034831for as_dir in $PATH
34832do
34833 IFS=$as_save_IFS
34834 test -z "$as_dir" && as_dir=.
34835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34836done
Reid Spencera773bd52006-08-04 18:18:08 +000034837IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034838
Reid Spencera773bd52006-08-04 18:18:08 +000034839 ;;
34840esac
34841# We did not find ourselves, most probably we were run as `sh COMMAND'
34842# in which case we are not to be found in the path.
34843if test "x$as_myself" = x; then
34844 as_myself=$0
34845fi
34846if test ! -f "$as_myself"; then
34847 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34848 { (exit 1); exit 1; }
34849fi
34850
34851# Work around bugs in pre-3.0 UWIN ksh.
34852for as_var in ENV MAIL MAILPATH
34853do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34854done
34855PS1='$ '
34856PS2='> '
34857PS4='+ '
34858
34859# NLS nuisances.
34860for as_var in \
34861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34863 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034864do
Reid Spencera773bd52006-08-04 18:18:08 +000034865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34866 eval $as_var=C; export $as_var
34867 else
34868 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34869 fi
34870done
34871
34872# Required to use basename.
34873if expr a : '\(a\)' >/dev/null 2>&1 &&
34874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34875 as_expr=expr
34876else
34877 as_expr=false
34878fi
34879
34880if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34881 as_basename=basename
34882else
34883 as_basename=false
34884fi
34885
34886
34887# Name of the executable.
34888as_me=`$as_basename -- "$0" ||
34889$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34890 X"$0" : 'X\(//\)$' \| \
34891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34892echo X/"$0" |
34893 sed '/^.*\/\([^/][^/]*\)\/*$/{
34894 s//\1/
34895 q
34896 }
34897 /^X\/\(\/\/\)$/{
34898 s//\1/
34899 q
34900 }
34901 /^X\/\(\/\).*/{
34902 s//\1/
34903 q
34904 }
34905 s/.*/./; q'`
34906
34907# CDPATH.
34908$as_unset CDPATH
34909
34910
34911
John Criswell7a73b802003-06-30 21:59:07 +000034912 as_lineno_1=$LINENO
34913 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034914 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034915 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034916
34917 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34918 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034919 # line-number line after each line using $LINENO; the second 'sed'
34920 # does the real work. The second script uses 'N' to pair each
34921 # line-number line with the line containing $LINENO, and appends
34922 # trailing '-' during substitution so that $LINENO is not a special
34923 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034925 # scripts with optimization help from Paolo Bonzini. Blame Lee
34926 # E. McMahon (1931-1989) for sed's syntax. :-)
34927 sed -n '
34928 p
34929 /[$]LINENO/=
34930 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034931 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034932 s/[$]LINENO.*/&-/
34933 t lineno
34934 b
34935 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034936 N
Reid Spencera773bd52006-08-04 18:18:08 +000034937 :loop
34938 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034939 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034940 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034941 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034942 chmod +x "$as_me.lineno" ||
34943 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034944 { (exit 1); exit 1; }; }
34945
34946 # Don't try to exec as it changes $[0], causing all sort of problems
34947 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034948 # original and so on. Autoconf is especially sensitive to this).
34949 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034950 # Exit status is that of the last command.
34951 exit
34952}
34953
34954
Reid Spencera773bd52006-08-04 18:18:08 +000034955if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34956 as_dirname=dirname
34957else
34958 as_dirname=false
34959fi
34960
34961ECHO_C= ECHO_N= ECHO_T=
34962case `echo -n x` in
34963-n*)
34964 case `echo 'x\c'` in
34965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34966 *) ECHO_C='\c';;
34967 esac;;
34968*)
34969 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034970esac
34971
Reid Spencera773bd52006-08-04 18:18:08 +000034972if expr a : '\(a\)' >/dev/null 2>&1 &&
34973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034974 as_expr=expr
34975else
34976 as_expr=false
34977fi
34978
34979rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034980if test -d conf$$.dir; then
34981 rm -f conf$$.dir/conf$$.file
34982else
34983 rm -f conf$$.dir
34984 mkdir conf$$.dir
34985fi
John Criswell7a73b802003-06-30 21:59:07 +000034986echo >conf$$.file
34987if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034988 as_ln_s='ln -s'
34989 # ... but there are two gotchas:
34990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34992 # In both cases, we have to default to `cp -p'.
34993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034994 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034995elif ln conf$$.file conf$$ 2>/dev/null; then
34996 as_ln_s=ln
34997else
34998 as_ln_s='cp -p'
34999fi
Reid Spencera773bd52006-08-04 18:18:08 +000035000rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35001rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035002
John Criswell0c38eaf2003-09-10 15:17:25 +000035003if mkdir -p . 2>/dev/null; then
35004 as_mkdir_p=:
35005else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035006 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035007 as_mkdir_p=false
35008fi
35009
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035010# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35011# systems may use methods other than mode bits to determine executability.
35012cat >conf$$.file <<_ASEOF
35013#! /bin/sh
35014exit 0
35015_ASEOF
35016chmod +x conf$$.file
35017if test -x conf$$.file >/dev/null 2>&1; then
35018 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035019else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035020 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035021fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035022rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035023
35024# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035025as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035026
35027# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035028as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035029
35030
John Criswell7a73b802003-06-30 21:59:07 +000035031exec 6>&1
35032
Reid Spencera773bd52006-08-04 18:18:08 +000035033# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035034# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035035# values after options handling.
35036ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035037This file was extended by llvm $as_me 2.6svn, which was
35038generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035039
35040 CONFIG_FILES = $CONFIG_FILES
35041 CONFIG_HEADERS = $CONFIG_HEADERS
35042 CONFIG_LINKS = $CONFIG_LINKS
35043 CONFIG_COMMANDS = $CONFIG_COMMANDS
35044 $ $0 $@
35045
Reid Spencera773bd52006-08-04 18:18:08 +000035046on `(hostname || uname -n) 2>/dev/null | sed 1q`
35047"
35048
John Criswell7a73b802003-06-30 21:59:07 +000035049_ACEOF
35050
Reid Spencera773bd52006-08-04 18:18:08 +000035051cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035052# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035053config_files="$ac_config_files"
35054config_headers="$ac_config_headers"
35055config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035056
Reid Spencera773bd52006-08-04 18:18:08 +000035057_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035058
35059cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035060ac_cs_usage="\
35061\`$as_me' instantiates files from templates according to the
35062current configuration.
35063
35064Usage: $0 [OPTIONS] [FILE]...
35065
35066 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035067 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035068 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035069 -d, --debug don't remove temporary files
35070 --recheck update $as_me by reconfiguring in the same conditions
35071 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035072 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035073 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035074 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035075
35076Configuration files:
35077$config_files
35078
35079Configuration headers:
35080$config_headers
35081
John Criswellc764fbc2003-09-06 15:17:13 +000035082Configuration commands:
35083$config_commands
35084
John Criswell7a73b802003-06-30 21:59:07 +000035085Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035086
Reid Spencera773bd52006-08-04 18:18:08 +000035087_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035088cat >>$CONFIG_STATUS <<_ACEOF
35089ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035090llvm config.status 2.6svn
35091configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035092 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035093
Reid Spencera773bd52006-08-04 18:18:08 +000035094Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035095This config.status script is free software; the Free Software Foundation
35096gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035097
35098ac_pwd='$ac_pwd'
35099srcdir='$srcdir'
35100INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035101_ACEOF
35102
35103cat >>$CONFIG_STATUS <<\_ACEOF
35104# If no file are specified by the user, then we need to provide default
35105# value. By we need to know if files were specified by the user.
35106ac_need_defaults=:
35107while test $# != 0
35108do
35109 case $1 in
35110 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035113 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035115 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035116 ac_option=$1
35117 ac_optarg=$2
35118 ac_shift=shift
35119 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035120 esac
35121
John Criswell0c38eaf2003-09-10 15:17:25 +000035122 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035123 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35125 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35127 echo "$ac_cs_version"; exit ;;
35128 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035129 debug=: ;;
35130 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035131 $ac_shift
35132 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035133 ac_need_defaults=false;;
35134 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035135 $ac_shift
35136 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035137 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035138 --he | --h)
35139 # Conflict between --help and --header
35140 { echo "$as_me: error: ambiguous option: $1
35141Try \`$0 --help' for more information." >&2
35142 { (exit 1); exit 1; }; };;
35143 --help | --hel | -h )
35144 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35147 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035148
35149 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035150 -*) { echo "$as_me: error: unrecognized option: $1
35151Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035152 { (exit 1); exit 1; }; } ;;
35153
Reid Spencera773bd52006-08-04 18:18:08 +000035154 *) ac_config_targets="$ac_config_targets $1"
35155 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035156
35157 esac
35158 shift
35159done
35160
John Criswell0c38eaf2003-09-10 15:17:25 +000035161ac_configure_extra_args=
35162
35163if $ac_cs_silent; then
35164 exec 6>/dev/null
35165 ac_configure_extra_args="$ac_configure_extra_args --silent"
35166fi
35167
35168_ACEOF
35169cat >>$CONFIG_STATUS <<_ACEOF
35170if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035171 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35172 CONFIG_SHELL=$SHELL
35173 export CONFIG_SHELL
35174 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035175fi
35176
John Criswell7a73b802003-06-30 21:59:07 +000035177_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035178cat >>$CONFIG_STATUS <<\_ACEOF
35179exec 5>>config.log
35180{
35181 echo
35182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35183## Running $as_me. ##
35184_ASBOX
35185 echo "$ac_log"
35186} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035187
Reid Spencera773bd52006-08-04 18:18:08 +000035188_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035189cat >>$CONFIG_STATUS <<_ACEOF
35190#
Reid Spencera773bd52006-08-04 18:18:08 +000035191# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035192#
Reid Spencerc0682832005-02-24 19:05:19 +000035193llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035194
35195_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035196
John Criswell7a73b802003-06-30 21:59:07 +000035197cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035198
35199# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035200for ac_config_target in $ac_config_targets
35201do
Reid Spencera773bd52006-08-04 18:18:08 +000035202 case $ac_config_target in
35203 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35204 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035205 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35206 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35207 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035208 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035209 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035210 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35211 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35212 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35213 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35214 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35215 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35216 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035217 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035218 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35219 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035220 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035221 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35222 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35223 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035224 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35225 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035226
John Criswell7a73b802003-06-30 21:59:07 +000035227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35228echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35229 { (exit 1); exit 1; }; };;
35230 esac
35231done
35232
Reid Spencera773bd52006-08-04 18:18:08 +000035233
John Criswell7a73b802003-06-30 21:59:07 +000035234# If the user did not use the arguments to specify the items to instantiate,
35235# then the envvar interface is used. Set only those that are not.
35236# We use the long form for the default assignment because of an extremely
35237# bizarre bug on SunOS 4.1.3.
35238if $ac_need_defaults; then
35239 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35240 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035242fi
35243
John Criswell0c38eaf2003-09-10 15:17:25 +000035244# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035245# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035246# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035247# Hook for its removal unless debugging.
35248# Note that there is a small window in which the directory will not be cleaned:
35249# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035250$debug ||
35251{
Reid Spencera773bd52006-08-04 18:18:08 +000035252 tmp=
35253 trap 'exit_status=$?
35254 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35255' 0
John Criswell7a73b802003-06-30 21:59:07 +000035256 trap '{ (exit 1); exit 1; }' 1 2 13 15
35257}
John Criswell7a73b802003-06-30 21:59:07 +000035258# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035259
John Criswell7a73b802003-06-30 21:59:07 +000035260{
Reid Spencera773bd52006-08-04 18:18:08 +000035261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035262 test -n "$tmp" && test -d "$tmp"
35263} ||
35264{
Reid Spencera773bd52006-08-04 18:18:08 +000035265 tmp=./conf$$-$RANDOM
35266 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035267} ||
35268{
John Criswell0c38eaf2003-09-10 15:17:25 +000035269 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035270 { (exit 1); exit 1; }
35271}
35272
John Criswell7a73b802003-06-30 21:59:07 +000035273#
Reid Spencera773bd52006-08-04 18:18:08 +000035274# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035275#
35276
35277# No need to generate the scripts if there are no CONFIG_FILES.
35278# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035279if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035280
35281_ACEOF
35282
Reid Spencera773bd52006-08-04 18:18:08 +000035283
35284
35285ac_delim='%!_!# '
35286for ac_last_try in false false false false false :; do
35287 cat >conf$$subs.sed <<_ACEOF
35288SHELL!$SHELL$ac_delim
35289PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35290PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35291PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35292PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35293PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35294PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35295exec_prefix!$exec_prefix$ac_delim
35296prefix!$prefix$ac_delim
35297program_transform_name!$program_transform_name$ac_delim
35298bindir!$bindir$ac_delim
35299sbindir!$sbindir$ac_delim
35300libexecdir!$libexecdir$ac_delim
35301datarootdir!$datarootdir$ac_delim
35302datadir!$datadir$ac_delim
35303sysconfdir!$sysconfdir$ac_delim
35304sharedstatedir!$sharedstatedir$ac_delim
35305localstatedir!$localstatedir$ac_delim
35306includedir!$includedir$ac_delim
35307oldincludedir!$oldincludedir$ac_delim
35308docdir!$docdir$ac_delim
35309infodir!$infodir$ac_delim
35310htmldir!$htmldir$ac_delim
35311dvidir!$dvidir$ac_delim
35312pdfdir!$pdfdir$ac_delim
35313psdir!$psdir$ac_delim
35314libdir!$libdir$ac_delim
35315localedir!$localedir$ac_delim
35316mandir!$mandir$ac_delim
35317DEFS!$DEFS$ac_delim
35318ECHO_C!$ECHO_C$ac_delim
35319ECHO_N!$ECHO_N$ac_delim
35320ECHO_T!$ECHO_T$ac_delim
35321LIBS!$LIBS$ac_delim
35322build_alias!$build_alias$ac_delim
35323host_alias!$host_alias$ac_delim
35324target_alias!$target_alias$ac_delim
35325LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35326subdirs!$subdirs$ac_delim
35327build!$build$ac_delim
35328build_cpu!$build_cpu$ac_delim
35329build_vendor!$build_vendor$ac_delim
35330build_os!$build_os$ac_delim
35331host!$host$ac_delim
35332host_cpu!$host_cpu$ac_delim
35333host_vendor!$host_vendor$ac_delim
35334host_os!$host_os$ac_delim
35335target!$target$ac_delim
35336target_cpu!$target_cpu$ac_delim
35337target_vendor!$target_vendor$ac_delim
35338target_os!$target_os$ac_delim
35339OS!$OS$ac_delim
35340LINKALL!$LINKALL$ac_delim
35341NOLINKALL!$NOLINKALL$ac_delim
35342LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35343LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35344ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035345ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035346CC!$CC$ac_delim
35347CFLAGS!$CFLAGS$ac_delim
35348LDFLAGS!$LDFLAGS$ac_delim
35349CPPFLAGS!$CPPFLAGS$ac_delim
35350ac_ct_CC!$ac_ct_CC$ac_delim
35351EXEEXT!$EXEEXT$ac_delim
35352OBJEXT!$OBJEXT$ac_delim
35353CPP!$CPP$ac_delim
35354GREP!$GREP$ac_delim
35355EGREP!$EGREP$ac_delim
35356LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35357BUILD_CC!$BUILD_CC$ac_delim
35358BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035359BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035360CVSBUILD!$CVSBUILD$ac_delim
35361ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35362DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035363ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35364EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035365DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035366JIT!$JIT$ac_delim
35367TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35368ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35369ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035370ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035371TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035372ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035373EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035374BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035375CXX!$CXX$ac_delim
35376CXXFLAGS!$CXXFLAGS$ac_delim
35377ac_ct_CXX!$ac_ct_CXX$ac_delim
35378LEX!$LEX$ac_delim
Nick Lewycky2ab1d862009-01-20 00:52:24 +000035379LEXLIB!$LEXLIB$ac_delim
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035380LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035381FLEX!$FLEX$ac_delim
35382YACC!$YACC$ac_delim
35383YFLAGS!$YFLAGS$ac_delim
35384BISON!$BISON$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035385_ACEOF
35386
35387 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35388 break
35389 elif $ac_last_try; then
35390 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35391echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35392 { (exit 1); exit 1; }; }
35393 else
35394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035395 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035396done
35397
35398ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35399if test -n "$ac_eof"; then
35400 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35401 ac_eof=`expr $ac_eof + 1`
35402fi
35403
35404cat >>$CONFIG_STATUS <<_ACEOF
35405cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35406/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35407_ACEOF
35408sed '
35409s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35410s/^/s,@/; s/!/@,|#_!!_#|/
35411:n
35412t n
35413s/'"$ac_delim"'$/,g/; t
35414s/$/\\/; p
35415N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35416' >>$CONFIG_STATUS <conf$$subs.sed
35417rm -f conf$$subs.sed
35418cat >>$CONFIG_STATUS <<_ACEOF
35419CEOF$ac_eof
35420_ACEOF
35421
35422
35423ac_delim='%!_!# '
35424for ac_last_try in false false false false false :; do
35425 cat >conf$$subs.sed <<_ACEOF
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035426NM!$NM$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035427ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035428LN_S!$LN_S$ac_delim
35429CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035430CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035431DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035432FIND!$FIND$ac_delim
35433MKDIR!$MKDIR$ac_delim
35434MV!$MV$ac_delim
35435RANLIB!$RANLIB$ac_delim
35436RM!$RM$ac_delim
35437SED!$SED$ac_delim
35438TAR!$TAR$ac_delim
35439BINPWD!$BINPWD$ac_delim
35440GRAPHVIZ!$GRAPHVIZ$ac_delim
35441DOT!$DOT$ac_delim
35442GV!$GV$ac_delim
35443DOTTY!$DOTTY$ac_delim
35444PERL!$PERL$ac_delim
35445HAVE_PERL!$HAVE_PERL$ac_delim
35446INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35447INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35448INSTALL_DATA!$INSTALL_DATA$ac_delim
35449BZIP2!$BZIP2$ac_delim
35450DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035451GROFF!$GROFF$ac_delim
35452GZIP!$GZIP$ac_delim
35453POD2HTML!$POD2HTML$ac_delim
35454POD2MAN!$POD2MAN$ac_delim
35455RUNTEST!$RUNTEST$ac_delim
35456TCLSH!$TCLSH$ac_delim
35457ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035458OCAMLC!$OCAMLC$ac_delim
35459OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035460OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035461OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035462GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035463INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35464INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35465CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35466CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35467LIBADD_DL!$LIBADD_DL$ac_delim
35468ECHO!$ECHO$ac_delim
35469AR!$AR$ac_delim
35470STRIP!$STRIP$ac_delim
35471CXXCPP!$CXXCPP$ac_delim
35472F77!$F77$ac_delim
35473FFLAGS!$FFLAGS$ac_delim
35474ac_ct_F77!$ac_ct_F77$ac_delim
35475LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035476LLVMGCC!$LLVMGCC$ac_delim
35477LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035478USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035479HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035480HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035481ALLOCA!$ALLOCA$ac_delim
35482MMAP_FILE!$MMAP_FILE$ac_delim
35483LLVMCC1!$LLVMCC1$ac_delim
35484LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35485LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035486LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035487LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35488LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035489LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035490SHLIBEXT!$SHLIBEXT$ac_delim
35491LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35492LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35493LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35494LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35495LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35496LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35497LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35498LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35499LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35500LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035501BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35502ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035503OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035504ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035505LIBOBJS!$LIBOBJS$ac_delim
35506LTLIBOBJS!$LTLIBOBJS$ac_delim
35507_ACEOF
35508
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035509 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Reid Spencera773bd52006-08-04 18:18:08 +000035510 break
35511 elif $ac_last_try; then
35512 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35513echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35514 { (exit 1); exit 1; }; }
35515 else
35516 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35517 fi
35518done
35519
35520ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35521if test -n "$ac_eof"; then
35522 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35523 ac_eof=`expr $ac_eof + 1`
35524fi
35525
35526cat >>$CONFIG_STATUS <<_ACEOF
35527cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35529_ACEOF
35530sed '
35531s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35532s/^/s,@/; s/!/@,|#_!!_#|/
35533:n
35534t n
35535s/'"$ac_delim"'$/,g/; t
35536s/$/\\/; p
35537N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35538' >>$CONFIG_STATUS <conf$$subs.sed
35539rm -f conf$$subs.sed
35540cat >>$CONFIG_STATUS <<_ACEOF
35541:end
35542s/|#_!!_#|//g
35543CEOF$ac_eof
35544_ACEOF
35545
35546
35547# VPATH may cause trouble with some makes, so we remove $(srcdir),
35548# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35549# trailing colons and then remove the whole line if VPATH becomes empty
35550# (actually we leave an empty line to preserve line numbers).
35551if test "x$srcdir" = x.; then
35552 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35553s/:*\$(srcdir):*/:/
35554s/:*\${srcdir}:*/:/
35555s/:*@srcdir@:*/:/
35556s/^\([^=]*=[ ]*\):*/\1/
35557s/:*$//
35558s/^[^=]*=[ ]*$//
35559}'
35560fi
35561
35562cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035563fi # test -n "$CONFIG_FILES"
35564
Reid Spencera773bd52006-08-04 18:18:08 +000035565
35566for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35567do
35568 case $ac_tag in
35569 :[FHLC]) ac_mode=$ac_tag; continue;;
35570 esac
35571 case $ac_mode$ac_tag in
35572 :[FHL]*:*);;
35573 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35574echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35575 { (exit 1); exit 1; }; };;
35576 :[FH]-) ac_tag=-:-;;
35577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35578 esac
35579 ac_save_IFS=$IFS
35580 IFS=:
35581 set x $ac_tag
35582 IFS=$ac_save_IFS
35583 shift
35584 ac_file=$1
35585 shift
35586
35587 case $ac_mode in
35588 :L) ac_source=$1;;
35589 :[FH])
35590 ac_file_inputs=
35591 for ac_f
35592 do
35593 case $ac_f in
35594 -) ac_f="$tmp/stdin";;
35595 *) # Look for the file first in the build tree, then in the source tree
35596 # (if the path is not absolute). The absolute path cannot be DOS-style,
35597 # because $ac_f cannot contain `:'.
35598 test -f "$ac_f" ||
35599 case $ac_f in
35600 [\\/$]*) false;;
35601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35602 esac ||
35603 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35604echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35605 { (exit 1); exit 1; }; };;
35606 esac
35607 ac_file_inputs="$ac_file_inputs $ac_f"
35608 done
35609
35610 # Let's still pretend it is `configure' which instantiates (i.e., don't
35611 # use $as_me), people would be surprised to read:
35612 # /* config.h. Generated by config.status. */
35613 configure_input="Generated from "`IFS=:
35614 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35615 if test x"$ac_file" != x-; then
35616 configure_input="$ac_file. $configure_input"
35617 { echo "$as_me:$LINENO: creating $ac_file" >&5
35618echo "$as_me: creating $ac_file" >&6;}
35619 fi
35620
35621 case $ac_tag in
35622 *:-:* | *:-) cat >"$tmp/stdin";;
35623 esac
35624 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035625 esac
35626
Reid Spencera773bd52006-08-04 18:18:08 +000035627 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035628$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035629 X"$ac_file" : 'X\(//\)[^/]' \| \
35630 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035631 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035632echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35634 s//\1/
35635 q
35636 }
35637 /^X\(\/\/\)[^/].*/{
35638 s//\1/
35639 q
35640 }
35641 /^X\(\/\/\)$/{
35642 s//\1/
35643 q
35644 }
35645 /^X\(\/\).*/{
35646 s//\1/
35647 q
35648 }
35649 s/.*/./; q'`
35650 { as_dir="$ac_dir"
35651 case $as_dir in #(
35652 -*) as_dir=./$as_dir;;
35653 esac
35654 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035655 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035656 while :; do
35657 case $as_dir in #(
35658 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35659 *) as_qdir=$as_dir;;
35660 esac
35661 as_dirs="'$as_qdir' $as_dirs"
35662 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035664 X"$as_dir" : 'X\(//\)[^/]' \| \
35665 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035666 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035667echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35669 s//\1/
35670 q
35671 }
35672 /^X\(\/\/\)[^/].*/{
35673 s//\1/
35674 q
35675 }
35676 /^X\(\/\/\)$/{
35677 s//\1/
35678 q
35679 }
35680 /^X\(\/\).*/{
35681 s//\1/
35682 q
35683 }
35684 s/.*/./; q'`
35685 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035686 done
Reid Spencera773bd52006-08-04 18:18:08 +000035687 test -z "$as_dirs" || eval "mkdir $as_dirs"
35688 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35689echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035690 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035691 ac_builddir=.
35692
Reid Spencera773bd52006-08-04 18:18:08 +000035693case "$ac_dir" in
35694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35695*)
John Criswell7a73b802003-06-30 21:59:07 +000035696 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035697 # A ".." for each directory in $ac_dir_suffix.
35698 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35699 case $ac_top_builddir_sub in
35700 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35701 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35702 esac ;;
35703esac
35704ac_abs_top_builddir=$ac_pwd
35705ac_abs_builddir=$ac_pwd$ac_dir_suffix
35706# for backward compatibility:
35707ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035708
35709case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035710 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035711 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035712 ac_top_srcdir=$ac_top_builddir_sub
35713 ac_abs_top_srcdir=$ac_pwd ;;
35714 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035715 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035716 ac_top_srcdir=$srcdir
35717 ac_abs_top_srcdir=$srcdir ;;
35718 *) # Relative name.
35719 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35720 ac_top_srcdir=$ac_top_build_prefix$srcdir
35721 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035722esac
Reid Spencera773bd52006-08-04 18:18:08 +000035723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035724
John Criswell7a73b802003-06-30 21:59:07 +000035725
Reid Spencera773bd52006-08-04 18:18:08 +000035726 case $ac_mode in
35727 :F)
35728 #
35729 # CONFIG_FILE
35730 #
John Criswell7a73b802003-06-30 21:59:07 +000035731
35732 case $INSTALL in
35733 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035734 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035735 esac
John Criswell7a73b802003-06-30 21:59:07 +000035736_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035737
35738cat >>$CONFIG_STATUS <<\_ACEOF
35739# If the template does not know about datarootdir, expand it.
35740# FIXME: This hack should be removed a few years after 2.60.
35741ac_datarootdir_hack=; ac_datarootdir_seen=
35742
35743case `sed -n '/datarootdir/ {
35744 p
35745 q
35746}
35747/@datadir@/p
35748/@docdir@/p
35749/@infodir@/p
35750/@localedir@/p
35751/@mandir@/p
35752' $ac_file_inputs` in
35753*datarootdir*) ac_datarootdir_seen=yes;;
35754*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35755 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35756echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35757_ACEOF
35758cat >>$CONFIG_STATUS <<_ACEOF
35759 ac_datarootdir_hack='
35760 s&@datadir@&$datadir&g
35761 s&@docdir@&$docdir&g
35762 s&@infodir@&$infodir&g
35763 s&@localedir@&$localedir&g
35764 s&@mandir@&$mandir&g
35765 s&\\\${datarootdir}&$datarootdir&g' ;;
35766esac
35767_ACEOF
35768
35769# Neutralize VPATH when `$srcdir' = `.'.
35770# Shell code in configure.ac might set extrasub.
35771# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035772cat >>$CONFIG_STATUS <<_ACEOF
35773 sed "$ac_vpsub
35774$extrasub
35775_ACEOF
35776cat >>$CONFIG_STATUS <<\_ACEOF
35777:t
35778/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035779s&@configure_input@&$configure_input&;t t
35780s&@top_builddir@&$ac_top_builddir_sub&;t t
35781s&@srcdir@&$ac_srcdir&;t t
35782s&@abs_srcdir@&$ac_abs_srcdir&;t t
35783s&@top_srcdir@&$ac_top_srcdir&;t t
35784s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35785s&@builddir@&$ac_builddir&;t t
35786s&@abs_builddir@&$ac_abs_builddir&;t t
35787s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35788s&@INSTALL@&$ac_INSTALL&;t t
35789$ac_datarootdir_hack
35790" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035791
Reid Spencera773bd52006-08-04 18:18:08 +000035792test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35793 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35795 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35796which seems to be undefined. Please make sure it is defined." >&5
35797echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35798which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035799
Reid Spencera773bd52006-08-04 18:18:08 +000035800 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035801 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035802 -) cat "$tmp/out"; rm -f "$tmp/out";;
35803 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035804 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035805 ;;
35806 :H)
35807 #
35808 # CONFIG_HEADER
35809 #
John Criswell7a73b802003-06-30 21:59:07 +000035810_ACEOF
35811
Reid Spencera773bd52006-08-04 18:18:08 +000035812# Transform confdefs.h into a sed script `conftest.defines', that
35813# substitutes the proper values into config.h.in to produce config.h.
35814rm -f conftest.defines conftest.tail
35815# First, append a space to every undef/define line, to ease matching.
35816echo 's/$/ /' >conftest.defines
35817# Then, protect against being on the right side of a sed subst, or in
35818# an unquoted here document, in config.status. If some macros were
35819# called several times there might be several #defines for the same
35820# symbol, which is useless. But do not sort them, since the last
35821# AC_DEFINE must be honored.
35822ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35823# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35824# NAME is the cpp macro being defined, VALUE is the value it is being given.
35825# PARAMS is the parameter list in the macro definition--in most cases, it's
35826# just an empty string.
35827ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35828ac_dB='\\)[ (].*,\\1define\\2'
35829ac_dC=' '
35830ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035831
Reid Spencera773bd52006-08-04 18:18:08 +000035832uniq confdefs.h |
35833 sed -n '
35834 t rset
35835 :rset
35836 s/^[ ]*#[ ]*define[ ][ ]*//
35837 t ok
35838 d
35839 :ok
35840 s/[\\&,]/\\&/g
35841 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35842 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35843 ' >>conftest.defines
35844
35845# Remove the space that was appended to ease matching.
35846# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035847# example, in the case of _POSIX_SOURCE, which is predefined and required
35848# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035849# (The regexp can be short, since the line contains either #define or #undef.)
35850echo 's/ $//
35851s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035852
Reid Spencera773bd52006-08-04 18:18:08 +000035853# Break up conftest.defines:
35854ac_max_sed_lines=50
35855
35856# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35857# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35858# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35859# et cetera.
35860ac_in='$ac_file_inputs'
35861ac_out='"$tmp/out1"'
35862ac_nxt='"$tmp/out2"'
35863
35864while :
John Criswell7a73b802003-06-30 21:59:07 +000035865do
Reid Spencera773bd52006-08-04 18:18:08 +000035866 # Write a here document:
35867 cat >>$CONFIG_STATUS <<_ACEOF
35868 # First, check the format of the line:
35869 cat >"\$tmp/defines.sed" <<\\CEOF
35870/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35871/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35872b
35873:def
35874_ACEOF
35875 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035876 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035877 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35878 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35879 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35880 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035881 rm -f conftest.defines
35882 mv conftest.tail conftest.defines
35883done
Reid Spencera773bd52006-08-04 18:18:08 +000035884rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035885
Reid Spencera773bd52006-08-04 18:18:08 +000035886echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035887cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035888 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035889 echo "/* $configure_input */" >"$tmp/config.h"
35890 cat "$ac_result" >>"$tmp/config.h"
35891 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035892 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35893echo "$as_me: $ac_file is unchanged" >&6;}
35894 else
John Criswell7a73b802003-06-30 21:59:07 +000035895 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035896 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035897 fi
35898 else
Reid Spencera773bd52006-08-04 18:18:08 +000035899 echo "/* $configure_input */"
35900 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035901 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035902 rm -f "$tmp/out12"
35903 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035904
Reid Spencera773bd52006-08-04 18:18:08 +000035905 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35906echo "$as_me: executing $ac_file commands" >&6;}
35907 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035908 esac
John Criswell7a73b802003-06-30 21:59:07 +000035909
Reid Spencera773bd52006-08-04 18:18:08 +000035910
35911 case $ac_file$ac_mode in
35912 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35913 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35914 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35915 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35916 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35917 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35918 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35919 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035920 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35921 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035922 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35923 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35924 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35925 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035926 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35927 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035928 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35929 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35930 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35931 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35932 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35933 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035934 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35935 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35936 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35937 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035938
35939 esac
35940done # for ac_tag
35941
John Criswell7a73b802003-06-30 21:59:07 +000035942
35943{ (exit 0); exit 0; }
35944_ACEOF
35945chmod +x $CONFIG_STATUS
35946ac_clean_files=$ac_clean_files_save
35947
35948
35949# configure is writing to config.log, and then calls config.status.
35950# config.status does its own redirection, appending to config.log.
35951# Unfortunately, on DOS this fails, as config.log is still kept open
35952# by configure, so config.status won't be able to write to it; its
35953# output is simply discarded. So we exec the FD to /dev/null,
35954# effectively closing config.log, so it can be properly (re)opened and
35955# appended to by config.status. When coming back to configure, we
35956# need to make the FD available again.
35957if test "$no_create" != yes; then
35958 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035959 ac_config_status_args=
35960 test "$silent" = yes &&
35961 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035962 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035964 exec 5>>config.log
35965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35966 # would make configure fail if this is the last instruction.
35967 $ac_cs_success || { (exit 1); exit 1; }
35968fi
35969
John Criswell12399a12003-09-30 15:55:44 +000035970#
35971# CONFIG_SUBDIRS section.
35972#
35973if test "$no_recursion" != yes; then
35974
35975 # Remove --cache-file and --srcdir arguments so they do not pile up.
35976 ac_sub_configure_args=
35977 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035978 eval "set x $ac_configure_args"
35979 shift
35980 for ac_arg
35981 do
John Criswell12399a12003-09-30 15:55:44 +000035982 if test -n "$ac_prev"; then
35983 ac_prev=
35984 continue
35985 fi
35986 case $ac_arg in
35987 -cache-file | --cache-file | --cache-fil | --cache-fi \
35988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35989 ac_prev=cache_file ;;
35990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35992 | --c=*)
35993 ;;
35994 --config-cache | -C)
35995 ;;
35996 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35997 ac_prev=srcdir ;;
35998 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35999 ;;
36000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36001 ac_prev=prefix ;;
36002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36003 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036004 *)
36005 case $ac_arg in
36006 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36007 esac
36008 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036009 esac
36010 done
36011
36012 # Always prepend --prefix to ensure using the same prefix
36013 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036014 ac_arg="--prefix=$prefix"
36015 case $ac_arg in
36016 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36017 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000036018 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036019
36020 ac_popdir=`pwd`
36021 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36022
36023 # Do not complain, so a configure script can configure whichever
36024 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036025 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036026
Reid Spencera773bd52006-08-04 18:18:08 +000036027 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36028 echo "$as_me:$LINENO: $ac_msg" >&5
36029 echo "$ac_msg" >&6
36030 { as_dir="$ac_dir"
36031 case $as_dir in #(
36032 -*) as_dir=./$as_dir;;
36033 esac
36034 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036035 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036036 while :; do
36037 case $as_dir in #(
36038 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36039 *) as_qdir=$as_dir;;
36040 esac
36041 as_dirs="'$as_qdir' $as_dirs"
36042 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036044 X"$as_dir" : 'X\(//\)[^/]' \| \
36045 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036047echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36049 s//\1/
36050 q
36051 }
36052 /^X\(\/\/\)[^/].*/{
36053 s//\1/
36054 q
36055 }
36056 /^X\(\/\/\)$/{
36057 s//\1/
36058 q
36059 }
36060 /^X\(\/\).*/{
36061 s//\1/
36062 q
36063 }
36064 s/.*/./; q'`
36065 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036066 done
Reid Spencera773bd52006-08-04 18:18:08 +000036067 test -z "$as_dirs" || eval "mkdir $as_dirs"
36068 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36069echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036070 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036071 ac_builddir=.
36072
Reid Spencera773bd52006-08-04 18:18:08 +000036073case "$ac_dir" in
36074.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36075*)
John Criswell12399a12003-09-30 15:55:44 +000036076 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036077 # A ".." for each directory in $ac_dir_suffix.
36078 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36079 case $ac_top_builddir_sub in
36080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36082 esac ;;
36083esac
36084ac_abs_top_builddir=$ac_pwd
36085ac_abs_builddir=$ac_pwd$ac_dir_suffix
36086# for backward compatibility:
36087ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036088
36089case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036090 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036091 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036092 ac_top_srcdir=$ac_top_builddir_sub
36093 ac_abs_top_srcdir=$ac_pwd ;;
36094 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036095 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036096 ac_top_srcdir=$srcdir
36097 ac_abs_top_srcdir=$srcdir ;;
36098 *) # Relative name.
36099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36100 ac_top_srcdir=$ac_top_build_prefix$srcdir
36101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036102esac
Reid Spencera773bd52006-08-04 18:18:08 +000036103ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036104
36105
Reid Spencera773bd52006-08-04 18:18:08 +000036106 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036107
36108 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036109 if test -f "$ac_srcdir/configure.gnu"; then
36110 ac_sub_configure=$ac_srcdir/configure.gnu
36111 elif test -f "$ac_srcdir/configure"; then
36112 ac_sub_configure=$ac_srcdir/configure
36113 elif test -f "$ac_srcdir/configure.in"; then
36114 # This should be Cygnus configure.
36115 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036116 else
36117 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36118echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36119 ac_sub_configure=
36120 fi
36121
36122 # The recursion is here.
36123 if test -n "$ac_sub_configure"; then
36124 # Make the cache file name correct relative to the subdirectory.
36125 case $cache_file in
36126 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036127 *) # Relative name.
36128 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036129 esac
36130
Reid Spencera773bd52006-08-04 18:18:08 +000036131 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36132echo "$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 +000036133 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036134 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36135 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036136 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036137echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36138 { (exit 1); exit 1; }; }
36139 fi
36140
Reid Spencera773bd52006-08-04 18:18:08 +000036141 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036142 done
36143fi
36144