blob: d18ff11eda225e76c24cdffa295344dc8554a57f [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
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +0000910HAVE_FFI
Reid Spencerb2ed05262006-11-03 18:04:08 +0000911HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000912ALLOCA
913MMAP_FILE
914LLVMCC1
915LLVMCC1PLUS
916LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000917LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000918LLVMGCC_VERSION
919LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000920LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000921SHLIBEXT
922LLVM_PREFIX
923LLVM_BINDIR
924LLVM_LIBDIR
925LLVM_DATADIR
926LLVM_DOCSDIR
927LLVM_ETCDIR
928LLVM_INCLUDEDIR
929LLVM_INFODIR
930LLVM_MANDIR
931LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000932BINDINGS_TO_BUILD
933ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000934OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000935ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000936LIBOBJS
937LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000938ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000939 ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
945CPPFLAGS
946CPP
947CXX
948CXXFLAGS
949CCC
950YACC
951YFLAGS
952CXXCPP
953F77
954FFLAGS'
955ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000956projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000957projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000958projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000959projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000960projects/llvm-reopt
961projects/llvm-gcc
962projects/llvm-java
963projects/llvm-tv
964projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000965projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000966projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000967
968# Initialize some variables set by options.
969ac_init_help=
970ac_init_version=false
971# The variables have the same names as the options, with
972# dashes changed to underlines.
973cache_file=/dev/null
974exec_prefix=NONE
975no_create=
976no_recursion=
977prefix=NONE
978program_prefix=NONE
979program_suffix=NONE
980program_transform_name=s,x,x,
981silent=
982site=
983srcdir=
984verbose=
985x_includes=NONE
986x_libraries=NONE
987
988# Installation directory options.
989# These are left unexpanded so users can "make install exec_prefix=/foo"
990# and all the variables that are supposed to be based on exec_prefix
991# by default will actually change.
992# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000993# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000994bindir='${exec_prefix}/bin'
995sbindir='${exec_prefix}/sbin'
996libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000997datarootdir='${prefix}/share'
998datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000999sysconfdir='${prefix}/etc'
1000sharedstatedir='${prefix}/com'
1001localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001002includedir='${prefix}/include'
1003oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001004docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1005infodir='${datarootdir}/info'
1006htmldir='${docdir}'
1007dvidir='${docdir}'
1008pdfdir='${docdir}'
1009psdir='${docdir}'
1010libdir='${exec_prefix}/lib'
1011localedir='${datarootdir}/locale'
1012mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001013
1014ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001015ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001016for ac_option
1017do
1018 # If the previous option needs an argument, assign it.
1019 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001020 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001021 ac_prev=
1022 continue
1023 fi
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_option in
1026 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1027 *) ac_optarg=yes ;;
1028 esac
John Criswell7a73b802003-06-30 21:59:07 +00001029
1030 # Accept the important Cygnus configure options, so we can diagnose typos.
1031
Reid Spencera773bd52006-08-04 18:18:08 +00001032 case $ac_dashdash$ac_option in
1033 --)
1034 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001035
1036 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1037 ac_prev=bindir ;;
1038 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1039 bindir=$ac_optarg ;;
1040
1041 -build | --build | --buil | --bui | --bu)
1042 ac_prev=build_alias ;;
1043 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1044 build_alias=$ac_optarg ;;
1045
1046 -cache-file | --cache-file | --cache-fil | --cache-fi \
1047 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1048 ac_prev=cache_file ;;
1049 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1050 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1051 cache_file=$ac_optarg ;;
1052
1053 --config-cache | -C)
1054 cache_file=config.cache ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001057 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001059 datadir=$ac_optarg ;;
1060
Reid Spencera773bd52006-08-04 18:18:08 +00001061 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1062 | --dataroo | --dataro | --datar)
1063 ac_prev=datarootdir ;;
1064 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1065 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1066 datarootdir=$ac_optarg ;;
1067
John Criswell7a73b802003-06-30 21:59:07 +00001068 -disable-* | --disable-*)
1069 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001071 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001072 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001074 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001075 eval enable_$ac_feature=no ;;
1076
1077 -docdir | --docdir | --docdi | --doc | --do)
1078 ac_prev=docdir ;;
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1081
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1083 ac_prev=dvidir ;;
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001086
1087 -enable-* | --enable-*)
1088 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001090 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001091 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1092 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001093 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001094 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001095
1096 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1097 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1098 | --exec | --exe | --ex)
1099 ac_prev=exec_prefix ;;
1100 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1101 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1102 | --exec=* | --exe=* | --ex=*)
1103 exec_prefix=$ac_optarg ;;
1104
1105 -gas | --gas | --ga | --g)
1106 # Obsolete; use --with-gas.
1107 with_gas=yes ;;
1108
1109 -help | --help | --hel | --he | -h)
1110 ac_init_help=long ;;
1111 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1112 ac_init_help=recursive ;;
1113 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1114 ac_init_help=short ;;
1115
1116 -host | --host | --hos | --ho)
1117 ac_prev=host_alias ;;
1118 -host=* | --host=* | --hos=* | --ho=*)
1119 host_alias=$ac_optarg ;;
1120
Reid Spencera773bd52006-08-04 18:18:08 +00001121 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 ac_prev=htmldir ;;
1123 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 | --ht=*)
1125 htmldir=$ac_optarg ;;
1126
John Criswell7a73b802003-06-30 21:59:07 +00001127 -includedir | --includedir | --includedi | --included | --include \
1128 | --includ | --inclu | --incl | --inc)
1129 ac_prev=includedir ;;
1130 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1131 | --includ=* | --inclu=* | --incl=* | --inc=*)
1132 includedir=$ac_optarg ;;
1133
1134 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 ac_prev=infodir ;;
1136 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1137 infodir=$ac_optarg ;;
1138
1139 -libdir | --libdir | --libdi | --libd)
1140 ac_prev=libdir ;;
1141 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1142 libdir=$ac_optarg ;;
1143
1144 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1145 | --libexe | --libex | --libe)
1146 ac_prev=libexecdir ;;
1147 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1148 | --libexe=* | --libex=* | --libe=*)
1149 libexecdir=$ac_optarg ;;
1150
Reid Spencera773bd52006-08-04 18:18:08 +00001151 -localedir | --localedir | --localedi | --localed | --locale)
1152 ac_prev=localedir ;;
1153 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1154 localedir=$ac_optarg ;;
1155
John Criswell7a73b802003-06-30 21:59:07 +00001156 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001158 ac_prev=localstatedir ;;
1159 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001160 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001161 localstatedir=$ac_optarg ;;
1162
1163 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 ac_prev=mandir ;;
1165 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1166 mandir=$ac_optarg ;;
1167
1168 -nfp | --nfp | --nf)
1169 # Obsolete; use --without-fp.
1170 with_fp=no ;;
1171
1172 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1173 | --no-cr | --no-c | -n)
1174 no_create=yes ;;
1175
1176 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1177 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1178 no_recursion=yes ;;
1179
1180 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1181 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1182 | --oldin | --oldi | --old | --ol | --o)
1183 ac_prev=oldincludedir ;;
1184 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1185 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1186 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1187 oldincludedir=$ac_optarg ;;
1188
1189 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 ac_prev=prefix ;;
1191 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1192 prefix=$ac_optarg ;;
1193
1194 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1195 | --program-pre | --program-pr | --program-p)
1196 ac_prev=program_prefix ;;
1197 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1198 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1199 program_prefix=$ac_optarg ;;
1200
1201 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1202 | --program-suf | --program-su | --program-s)
1203 ac_prev=program_suffix ;;
1204 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1205 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1206 program_suffix=$ac_optarg ;;
1207
1208 -program-transform-name | --program-transform-name \
1209 | --program-transform-nam | --program-transform-na \
1210 | --program-transform-n | --program-transform- \
1211 | --program-transform | --program-transfor \
1212 | --program-transfo | --program-transf \
1213 | --program-trans | --program-tran \
1214 | --progr-tra | --program-tr | --program-t)
1215 ac_prev=program_transform_name ;;
1216 -program-transform-name=* | --program-transform-name=* \
1217 | --program-transform-nam=* | --program-transform-na=* \
1218 | --program-transform-n=* | --program-transform-=* \
1219 | --program-transform=* | --program-transfor=* \
1220 | --program-transfo=* | --program-transf=* \
1221 | --program-trans=* | --program-tran=* \
1222 | --progr-tra=* | --program-tr=* | --program-t=*)
1223 program_transform_name=$ac_optarg ;;
1224
Reid Spencera773bd52006-08-04 18:18:08 +00001225 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 ac_prev=pdfdir ;;
1227 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1228 pdfdir=$ac_optarg ;;
1229
1230 -psdir | --psdir | --psdi | --psd | --ps)
1231 ac_prev=psdir ;;
1232 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1233 psdir=$ac_optarg ;;
1234
John Criswell7a73b802003-06-30 21:59:07 +00001235 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1236 | -silent | --silent | --silen | --sile | --sil)
1237 silent=yes ;;
1238
1239 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 ac_prev=sbindir ;;
1241 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 | --sbi=* | --sb=*)
1243 sbindir=$ac_optarg ;;
1244
1245 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1246 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1247 | --sharedst | --shareds | --shared | --share | --shar \
1248 | --sha | --sh)
1249 ac_prev=sharedstatedir ;;
1250 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1251 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1252 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 | --sha=* | --sh=*)
1254 sharedstatedir=$ac_optarg ;;
1255
1256 -site | --site | --sit)
1257 ac_prev=site ;;
1258 -site=* | --site=* | --sit=*)
1259 site=$ac_optarg ;;
1260
1261 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 ac_prev=srcdir ;;
1263 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1264 srcdir=$ac_optarg ;;
1265
1266 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1267 | --syscon | --sysco | --sysc | --sys | --sy)
1268 ac_prev=sysconfdir ;;
1269 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1270 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1271 sysconfdir=$ac_optarg ;;
1272
1273 -target | --target | --targe | --targ | --tar | --ta | --t)
1274 ac_prev=target_alias ;;
1275 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1276 target_alias=$ac_optarg ;;
1277
1278 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 verbose=yes ;;
1280
1281 -version | --version | --versio | --versi | --vers | -V)
1282 ac_init_version=: ;;
1283
1284 -with-* | --with-*)
1285 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1286 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001290 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001291 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001292
1293 -without-* | --without-*)
1294 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001296 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001299 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001300 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001301
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1305
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1311 x_includes=$ac_optarg ;;
1312
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1318 x_libraries=$ac_optarg ;;
1319
1320 -*) { echo "$as_me: error: unrecognized option: $ac_option
1321Try \`$0 --help' for more information." >&2
1322 { (exit 1); exit 1; }; }
1323 ;;
1324
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001331 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001332 export $ac_envvar ;;
1333
1334 *)
1335 # FIXME: should be removed in autoconf 3.0.
1336 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1338 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1340 ;;
1341
1342 esac
1343done
1344
1345if test -n "$ac_prev"; then
1346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1347 { echo "$as_me: error: missing argument to $ac_option" >&2
1348 { (exit 1); exit 1; }; }
1349fi
1350
Reid Spencera773bd52006-08-04 18:18:08 +00001351# Be sure to have absolute directory names.
1352for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001356do
Reid Spencera773bd52006-08-04 18:18:08 +00001357 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001358 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001359 [\\/$]* | ?:[\\/]* ) continue;;
1360 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001361 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001362 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1363 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375 if test "x$build_alias" = x; then
1376 cross_compiling=maybe
1377 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378 If a cross compiler is detected then cross compile mode will be used." >&2
1379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1381 fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
Reid Spencera773bd52006-08-04 18:18:08 +00001390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393 { echo "$as_me: error: Working directory cannot be determined" >&2
1394 { (exit 1); exit 1; }; }
1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396 { echo "$as_me: error: pwd does not report name of working directory" >&2
1397 { (exit 1); exit 1; }; }
1398
1399
John Criswell7a73b802003-06-30 21:59:07 +00001400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001405$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001406 X"$0" : 'X\(//\)[^/]' \| \
1407 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001409echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001427 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001428 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001429 srcdir=..
1430 fi
1431else
1432 ac_srcdir_defaulted=no
1433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1436 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001437 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001438fi
Reid Spencera773bd52006-08-04 18:18:08 +00001439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
1441 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001442 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001443 pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1467 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001468\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE. See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487
John Criswell7a73b802003-06-30 21:59:07 +00001488Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001490 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001492 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001521_ACEOF
1522
1523 cat <<\_ACEOF
1524
1525System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1529_ACEOF
1530fi
1531
1532if test -n "$ac_init_help"; then
1533 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001534 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001535 esac
1536 cat <<\_ACEOF
1537
1538Optional Features:
1539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001541 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001542 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001543 --enable-expensive-checks
1544
Reid Spencer8b2e1412006-11-17 03:32:33 +00001545 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001546 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001547 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001548 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001549 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001550 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001551 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001552 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001553 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1554 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001555 --enable-bindings Build specific language bindings:
1556 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001557 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001560 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001562 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001563 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001564 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001565 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001566
1567Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001570 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1571 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001572 --with-llvmgcc Specify location of llvm-gcc driver (default
1573 searches PATH)
1574 --with-llvmgxx Specify location of llvm-g++ driver (default
1575 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001576 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001577 --with-ocaml-libdir Specify install location for ocaml bindings (default
1578 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001579 --with-binutils-include Specify path to binutils/include/ containing
1580 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001581 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001585 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001586 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001587
1588Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CC C compiler command
1590 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1594 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001595 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001596 CXX C++ compiler command
1597 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001598 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1599 the first program found out of: `bison -y', `byacc', `yacc'.
1600 YFLAGS The list of arguments that will be passed by default to $YACC.
1601 This script will default YFLAGS to the empty string to avoid a
1602 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001603 CXXCPP C++ preprocessor
1604 F77 Fortran 77 compiler command
1605 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
1610Report bugs to <llvmbugs@cs.uiuc.edu>.
1611_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001612ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001618 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001619 ac_builddir=.
1620
Reid Spencera773bd52006-08-04 18:18:08 +00001621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
John Criswell7a73b802003-06-30 21:59:07 +00001624 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630 esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001636
1637case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001638 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001639 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001640 ac_top_srcdir=$ac_top_builddir_sub
1641 ac_abs_top_srcdir=$ac_pwd ;;
1642 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001643 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001644 ac_top_srcdir=$srcdir
1645 ac_abs_top_srcdir=$srcdir ;;
1646 *) # Relative name.
1647 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001650esac
Reid Spencera773bd52006-08-04 18:18:08 +00001651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001652
Reid Spencera773bd52006-08-04 18:18:08 +00001653 cd "$ac_dir" || { ac_status=$?; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1659 echo &&
1660 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001661 else
1662 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001663 fi || ac_status=$?
1664 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001665 done
1666fi
1667
Reid Spencera773bd52006-08-04 18:18:08 +00001668test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001669if $ac_init_version; then
1670 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001671llvm configure 2.6svn
1672generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001673
Reid Spencera773bd52006-08-04 18:18:08 +00001674Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16752002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001678
Tanya Lattnercf067672008-01-17 05:57:22 +00001679Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001681 exit
John Criswell7a73b802003-06-30 21:59:07 +00001682fi
Reid Spencera773bd52006-08-04 18:18:08 +00001683cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001684This file contains any messages produced by compilers while
1685running configure, to aid debugging if configure makes a mistake.
1686
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001687It was created by llvm $as_me 2.6svn, which was
1688generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001689
1690 $ $0 $@
1691
1692_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001693exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001694{
1695cat <<_ASUNAME
1696## --------- ##
1697## Platform. ##
1698## --------- ##
1699
1700hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708
1709/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001712/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001713/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716
1717_ASUNAME
1718
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 echo "PATH: $as_dir"
1725done
Reid Spencera773bd52006-08-04 18:18:08 +00001726IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001727
1728} >&5
1729
1730cat >&5 <<_ACEOF
1731
1732
1733## ----------- ##
1734## Core tests. ##
1735## ----------- ##
1736
1737_ACEOF
1738
1739
1740# Keep a trace of the command line.
1741# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001742# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001743# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001744# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001745ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001746ac_configure_args0=
1747ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001748ac_must_keep_next=false
1749for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001750do
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 for ac_arg
1752 do
1753 case $ac_arg in
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1757 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001758 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001759 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 esac
1761 case $ac_pass in
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 2)
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001766 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001768 case $ac_arg in
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775 esac
1776 ;;
1777 -* ) ac_must_keep_next=true ;;
1778 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001779 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001780 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001781 ;;
1782 esac
1783 done
John Criswell7a73b802003-06-30 21:59:07 +00001784done
John Criswell0c38eaf2003-09-10 15:17:25 +00001785$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1786$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 +00001787
1788# When interrupted or exit'd, cleanup temporary files, and complete
1789# config.log. We remove comments because anyway the quotes in there
1790# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001791# WARNING: Use '\'' to represent an apostrophe within the trap.
1792# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001793trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
1795 {
1796 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001797
John Criswell7a73b802003-06-30 21:59:07 +00001798 cat <<\_ASBOX
1799## ---------------- ##
1800## Cache variables. ##
1801## ---------------- ##
1802_ASBOX
1803 echo
1804 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001805(
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in #(
1809 *${as_nl}*)
1810 case $ac_var in #(
1811 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1812echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1813 esac
1814 case $ac_var in #(
1815 _ | IFS | as_nl) ;; #(
1816 *) $as_unset $ac_var ;;
1817 esac ;;
1818 esac
1819 done
John Criswell7a73b802003-06-30 21:59:07 +00001820 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001821 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1822 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001823 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001824 "s/'\''/'\''\\\\'\'''\''/g;
1825 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1826 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001827 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001828 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001830 esac |
1831 sort
1832)
John Criswell7a73b802003-06-30 21:59:07 +00001833 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001834
1835 cat <<\_ASBOX
1836## ----------------- ##
1837## Output variables. ##
1838## ----------------- ##
1839_ASBOX
1840 echo
1841 for ac_var in $ac_subst_vars
1842 do
Reid Spencera773bd52006-08-04 18:18:08 +00001843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001848 done | sort
1849 echo
1850
1851 if test -n "$ac_subst_files"; then
1852 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001853## ------------------- ##
1854## File substitutions. ##
1855## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001856_ASBOX
1857 echo
1858 for ac_var in $ac_subst_files
1859 do
Reid Spencera773bd52006-08-04 18:18:08 +00001860 eval ac_val=\$$ac_var
1861 case $ac_val in
1862 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 esac
1864 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001865 done | sort
1866 echo
1867 fi
1868
John Criswell7a73b802003-06-30 21:59:07 +00001869 if test -s confdefs.h; then
1870 cat <<\_ASBOX
1871## ----------- ##
1872## confdefs.h. ##
1873## ----------- ##
1874_ASBOX
1875 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001876 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001877 echo
1878 fi
1879 test "$ac_signal" != 0 &&
1880 echo "$as_me: caught signal $ac_signal"
1881 echo "$as_me: exit $exit_status"
1882 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001883 rm -f core *.core core.conftest.* &&
1884 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001885 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001886' 0
John Criswell7a73b802003-06-30 21:59:07 +00001887for ac_signal in 1 2 13 15; do
1888 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1889done
1890ac_signal=0
1891
1892# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001893rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001894
1895# Predefined preprocessor variables.
1896
1897cat >>confdefs.h <<_ACEOF
1898#define PACKAGE_NAME "$PACKAGE_NAME"
1899_ACEOF
1900
1901
1902cat >>confdefs.h <<_ACEOF
1903#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904_ACEOF
1905
1906
1907cat >>confdefs.h <<_ACEOF
1908#define PACKAGE_VERSION "$PACKAGE_VERSION"
1909_ACEOF
1910
1911
1912cat >>confdefs.h <<_ACEOF
1913#define PACKAGE_STRING "$PACKAGE_STRING"
1914_ACEOF
1915
1916
1917cat >>confdefs.h <<_ACEOF
1918#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1919_ACEOF
1920
1921
1922# Let the site file select an alternate cache file if it wants to.
1923# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001924if test -n "$CONFIG_SITE"; then
1925 set x "$CONFIG_SITE"
1926elif test "x$prefix" != xNONE; then
1927 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1928else
1929 set x "$ac_default_prefix/share/config.site" \
1930 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001931fi
Reid Spencera773bd52006-08-04 18:18:08 +00001932shift
1933for ac_site_file
1934do
John Criswell7a73b802003-06-30 21:59:07 +00001935 if test -r "$ac_site_file"; then
1936 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1937echo "$as_me: loading site script $ac_site_file" >&6;}
1938 sed 's/^/| /' "$ac_site_file" >&5
1939 . "$ac_site_file"
1940 fi
1941done
1942
1943if test -r "$cache_file"; then
1944 # Some versions of bash will fail to source /dev/null (special
1945 # files actually), so we avoid doing that.
1946 if test -f "$cache_file"; then
1947 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1948echo "$as_me: loading cache $cache_file" >&6;}
1949 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001950 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1951 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001952 esac
1953 fi
1954else
1955 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1956echo "$as_me: creating cache $cache_file" >&6;}
1957 >$cache_file
1958fi
1959
1960# Check that the precious variables saved in the cache have kept the same
1961# value.
1962ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001963for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001964 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1965 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001966 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1967 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001968 case $ac_old_set,$ac_new_set in
1969 set,)
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1971echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,set)
1974 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1975echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1976 ac_cache_corrupted=: ;;
1977 ,);;
1978 *)
1979 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001980 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001982 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001983echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001984 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001985echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001986 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001987 fi;;
1988 esac
1989 # Pass precious variables to config.status.
1990 if test "$ac_new_set" = set; then
1991 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001992 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001993 *) ac_arg=$ac_var=$ac_new_val ;;
1994 esac
1995 case " $ac_configure_args " in
1996 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1997 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1998 esac
1999 fi
2000done
2001if $ac_cache_corrupted; then
2002 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2007fi
2008
Reid Spencera773bd52006-08-04 18:18:08 +00002009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
John Criswell7a73b802003-06-30 21:59:07 +00002033ac_ext=c
2034ac_cpp='$CPP $CPPFLAGS'
2035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040
Tanya Lattnercf067672008-01-17 05:57:22 +00002041LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002042
2043
2044
2045
2046
2047
2048
John Criswell7a73b802003-06-30 21:59:07 +00002049ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002050for ac_dir in autoconf "$srcdir"/autoconf; do
2051 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install-sh -c"
2054 break
Reid Spencera773bd52006-08-04 18:18:08 +00002055 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/install.sh -c"
2058 break
Reid Spencera773bd52006-08-04 18:18:08 +00002059 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002060 ac_aux_dir=$ac_dir
2061 ac_install_sh="$ac_aux_dir/shtool install -c"
2062 break
2063 fi
2064done
2065if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002066 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2067echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002068 { (exit 1); exit 1; }; }
2069fi
Reid Spencera773bd52006-08-04 18:18:08 +00002070
2071# These three variables are undocumented and unsupported,
2072# and are intended to be withdrawn in a future Autoconf release.
2073# They can cause serious problems if a builder's source tree is in a directory
2074# whose full name contains unusual characters.
2075ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078
John Criswell7a73b802003-06-30 21:59:07 +00002079
John Criswell392aaa32003-07-22 19:18:09 +00002080
Reid Spencer2706f8c2004-09-19 23:53:36 +00002081if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2083 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002084echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2085 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002086 fi
John Criswell93e1c722003-09-15 17:04:06 +00002087fi
2088
John Criswell33a911a2003-11-25 20:36:46 +00002089for i in `ls ${srcdir}/projects`
2090do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 if test -d ${srcdir}/projects/${i} ; then
2092 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 CVS) ;;
2094 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002099 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002100 # llvm-test is the old name of the test-suite, kept here for backwards
2101 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002102 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002104 test-suite) subdirs="$subdirs projects/test-suite"
2105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002110 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002111 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002112 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002115 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002116 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002117 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002118 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002119 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002121 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2122echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002123 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 esac
John Criswell33a911a2003-11-25 20:36:46 +00002125 fi
2126done
John Criswell559a6c12003-09-30 16:31:48 +00002127
John Criswell7a73b802003-06-30 21:59:07 +00002128
2129# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002130$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002133 { (exit 1); exit 1; }; }
2134
Reid Spencera773bd52006-08-04 18:18:08 +00002135{ echo "$as_me:$LINENO: checking build system type" >&5
2136echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002137if test "${ac_cv_build+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
Reid Spencera773bd52006-08-04 18:18:08 +00002140 ac_build_alias=$build_alias
2141test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002144 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002147ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2149echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002150 { (exit 1); exit 1; }; }
2151
2152fi
Reid Spencera773bd52006-08-04 18:18:08 +00002153{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154echo "${ECHO_T}$ac_cv_build" >&6; }
2155case $ac_cv_build in
2156*-*-*) ;;
2157*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2160esac
John Criswell7a73b802003-06-30 21:59:07 +00002161build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002162ac_save_IFS=$IFS; IFS='-'
2163set x $ac_cv_build
2164shift
2165build_cpu=$1
2166build_vendor=$2
2167shift; shift
2168# Remember, the first character of IFS is used to create $*,
2169# except with old shells:
2170build_os=$*
2171IFS=$ac_save_IFS
2172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002173
2174
Reid Spencera773bd52006-08-04 18:18:08 +00002175{ echo "$as_me:$LINENO: checking host system type" >&5
2176echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002177if test "${ac_cv_host+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
Reid Spencera773bd52006-08-04 18:18:08 +00002180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2182else
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2185echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002186 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002187fi
John Criswell7a73b802003-06-30 21:59:07 +00002188
2189fi
Reid Spencera773bd52006-08-04 18:18:08 +00002190{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191echo "${ECHO_T}$ac_cv_host" >&6; }
2192case $ac_cv_host in
2193*-*-*) ;;
2194*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2197esac
John Criswell7a73b802003-06-30 21:59:07 +00002198host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_host
2201shift
2202host_cpu=$1
2203host_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207host_os=$*
2208IFS=$ac_save_IFS
2209case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002210
2211
Reid Spencera773bd52006-08-04 18:18:08 +00002212{ echo "$as_me:$LINENO: checking target system type" >&5
2213echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002214if test "${ac_cv_target+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216else
Reid Spencera773bd52006-08-04 18:18:08 +00002217 if test "x$target_alias" = x; then
2218 ac_cv_target=$ac_cv_host
2219else
2220 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2221 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2222echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002223 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002224fi
John Criswell7a73b802003-06-30 21:59:07 +00002225
2226fi
Reid Spencera773bd52006-08-04 18:18:08 +00002227{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2228echo "${ECHO_T}$ac_cv_target" >&6; }
2229case $ac_cv_target in
2230*-*-*) ;;
2231*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2232echo "$as_me: error: invalid value of canonical target" >&2;}
2233 { (exit 1); exit 1; }; };;
2234esac
John Criswell7a73b802003-06-30 21:59:07 +00002235target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002236ac_save_IFS=$IFS; IFS='-'
2237set x $ac_cv_target
2238shift
2239target_cpu=$1
2240target_vendor=$2
2241shift; shift
2242# Remember, the first character of IFS is used to create $*,
2243# except with old shells:
2244target_os=$*
2245IFS=$ac_save_IFS
2246case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002247
2248
2249# The aliases save the names the user supplied, while $host etc.
2250# will get canonicalized.
2251test -n "$target_alias" &&
2252 test "$program_prefix$program_suffix$program_transform_name" = \
2253 NONENONEs,x,x, &&
2254 program_prefix=${target_alias}-
2255
Reid Spencera773bd52006-08-04 18:18:08 +00002256{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2257echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002261 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 llvm_cv_os_type="AIX"
2266 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002267 *-*-irix*)
2268 llvm_cv_link_all_option="-Wl,--whole-archive"
2269 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2270 llvm_cv_os_type="IRIX"
2271 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="Cygwin"
2276 llvm_cv_platform_type="Unix" ;;
2277 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002279 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="Darwin"
2281 llvm_cv_platform_type="Unix" ;;
2282 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option="-Wl,--whole-archive"
2284 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 llvm_cv_os_type="FreeBSD"
2286 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002287 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002288 llvm_cv_link_all_option="-Wl,--whole-archive"
2289 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002290 llvm_cv_os_type="OpenBSD"
2291 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002292 *-*-netbsd*)
2293 llvm_cv_link_all_option="-Wl,--whole-archive"
2294 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2295 llvm_cv_os_type="NetBSD"
2296 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002297 *-*-dragonfly*)
2298 llvm_cv_link_all_option="-Wl,--whole-archive"
2299 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2300 llvm_cv_os_type="DragonFly"
2301 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002302 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002303 llvm_cv_link_all_option="-Wl,--whole-archive"
2304 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002305 llvm_cv_os_type="HP-UX"
2306 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002308 llvm_cv_link_all_option="-Wl,--whole-archive"
2309 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310 llvm_cv_os_type="Interix"
2311 llvm_cv_platform_type="Unix" ;;
2312 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002313 llvm_cv_link_all_option="-Wl,--whole-archive"
2314 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002315 llvm_cv_os_type="Linux"
2316 llvm_cv_platform_type="Unix" ;;
2317 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002318 llvm_cv_link_all_option="-Wl,-z,allextract"
2319 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002320 llvm_cv_os_type="SunOS"
2321 llvm_cv_platform_type="Unix" ;;
2322 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002323 llvm_cv_link_all_option="-Wl,--whole-archive"
2324 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 llvm_cv_os_type="Win32"
2326 llvm_cv_platform_type="Win32" ;;
2327 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002328 llvm_cv_link_all_option="-Wl,--whole-archive"
2329 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330 llvm_cv_os_type="MingW"
2331 llvm_cv_platform_type="Win32" ;;
2332 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002333 llvm_cv_link_all_option=""
2334 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335 llvm_cv_os_type="Unknown"
2336 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002337esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002338fi
Reid Spencera773bd52006-08-04 18:18:08 +00002339{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2340echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342if test "$llvm_cv_os_type" = "Unknown" ; then
2343 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2344echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002345 { (exit 1); exit 1; }; }
2346fi
2347
Reid Spencer7b3e8512004-12-24 06:29:05 +00002348OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349
2350
Reid Spencera773bd52006-08-04 18:18:08 +00002351LINKALL=$llvm_cv_link_all_option
2352
2353NOLINKALL=$llvm_cv_no_link_all_option
2354
2355
Reid Spencer7b3e8512004-12-24 06:29:05 +00002356case $llvm_cv_platform_type in
2357 Unix)
2358
2359cat >>confdefs.h <<\_ACEOF
2360#define LLVM_ON_UNIX 1
2361_ACEOF
2362
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002363 LLVM_ON_UNIX=1
2364
2365 LLVM_ON_WIN32=0
2366
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367 ;;
2368 Win32)
2369
2370cat >>confdefs.h <<\_ACEOF
2371#define LLVM_ON_WIN32 1
2372_ACEOF
2373
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002374 LLVM_ON_UNIX=0
2375
2376 LLVM_ON_WIN32=1
2377
Reid Spencer7b3e8512004-12-24 06:29:05 +00002378 ;;
2379esac
2380
Reid Spencera773bd52006-08-04 18:18:08 +00002381{ echo "$as_me:$LINENO: checking target architecture" >&5
2382echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383if test "${llvm_cv_target_arch+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2385else
2386 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002387 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002388 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002389 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2390 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002391 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002392 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002393 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002394 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002395 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002396 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002397 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002398esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399fi
Reid Spencera773bd52006-08-04 18:18:08 +00002400{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2401echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403if test "$llvm_cv_target_arch" = "Unknown" ; then
2404 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2405echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2406fi
John Criswell76595452003-07-01 22:07:39 +00002407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002409
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002410
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411ac_ext=c
2412ac_cpp='$CPP $CPPFLAGS'
2413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002416if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2418set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002419{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421if test "${ac_cv_prog_CC+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2426else
2427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428for as_dir in $PATH
2429do
2430 IFS=$as_save_IFS
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002433 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 +00002434 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 break 2
2437 fi
2438done
2439done
Reid Spencera773bd52006-08-04 18:18:08 +00002440IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441
2442fi
2443fi
2444CC=$ac_cv_prog_CC
2445if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002446 { echo "$as_me:$LINENO: result: $CC" >&5
2447echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448else
Reid Spencera773bd52006-08-04 18:18:08 +00002449 { echo "$as_me:$LINENO: result: no" >&5
2450echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451fi
2452
Reid Spencera773bd52006-08-04 18:18:08 +00002453
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454fi
2455if test -z "$ac_cv_prog_CC"; then
2456 ac_ct_CC=$CC
2457 # Extract the first word of "gcc", so it can be a program name with args.
2458set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002473 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 +00002474 ac_cv_prog_ac_ct_CC="gcc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2477 fi
2478done
2479done
Reid Spencera773bd52006-08-04 18:18:08 +00002480IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481
2482fi
2483fi
2484ac_ct_CC=$ac_cv_prog_ac_ct_CC
2485if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002486 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2487echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
Reid Spencera773bd52006-08-04 18:18:08 +00002489 { echo "$as_me:$LINENO: result: no" >&5
2490echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491fi
2492
Reid Spencera773bd52006-08-04 18:18:08 +00002493 if test "x$ac_ct_CC" = x; then
2494 CC=""
2495 else
2496 case $cross_compiling:$ac_tool_warned in
2497yes:)
2498{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2499whose name does not start with the host triplet. If you think this
2500configuration is useful to you, please write to autoconf@gnu.org." >&5
2501echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2502whose name does not start with the host triplet. If you think this
2503configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2504ac_tool_warned=yes ;;
2505esac
2506 CC=$ac_ct_CC
2507 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508else
2509 CC="$ac_cv_prog_CC"
2510fi
2511
2512if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002513 if test -n "$ac_tool_prefix"; then
2514 # 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 +00002515set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518if test "${ac_cv_prog_CC+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523else
2524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525for as_dir in $PATH
2526do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002530 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 +00002531 ac_cv_prog_CC="${ac_tool_prefix}cc"
2532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535done
2536done
Reid Spencera773bd52006-08-04 18:18:08 +00002537IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002543 { echo "$as_me:$LINENO: result: $CC" >&5
2544echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545else
Reid Spencera773bd52006-08-04 18:18:08 +00002546 { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548fi
2549
Reid Spencera773bd52006-08-04 18:18:08 +00002550
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552fi
2553if test -z "$CC"; then
2554 # Extract the first word of "cc", so it can be a program name with args.
2555set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563else
2564 ac_prog_rejected=no
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002571 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 +00002572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2573 ac_prog_rejected=yes
2574 continue
2575 fi
2576 ac_cv_prog_CC="cc"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580done
2581done
Reid Spencera773bd52006-08-04 18:18:08 +00002582IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583
2584if test $ac_prog_rejected = yes; then
2585 # We found a bogon in the path, so make sure we never use it.
2586 set dummy $ac_cv_prog_CC
2587 shift
2588 if test $# != 0; then
2589 # We chose a different compiler from the bogus one.
2590 # However, it has the same basename, so the bogon will be chosen
2591 # first if we set CC to just the basename; use the full file name.
2592 shift
2593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594 fi
2595fi
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002600 { echo "$as_me:$LINENO: result: $CC" >&5
2601echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602else
Reid Spencera773bd52006-08-04 18:18:08 +00002603 { echo "$as_me:$LINENO: result: no" >&5
2604echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605fi
2606
Reid Spencera773bd52006-08-04 18:18:08 +00002607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608fi
2609if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002611 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002612 do
2613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002615{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002617if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002629 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 +00002630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
Reid Spencera773bd52006-08-04 18:18:08 +00002636IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002637
2638fi
2639fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640CC=$ac_cv_prog_CC
2641if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002642 { echo "$as_me:$LINENO: result: $CC" >&5
2643echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002644else
Reid Spencera773bd52006-08-04 18:18:08 +00002645 { echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002647fi
2648
Reid Spencera773bd52006-08-04 18:18:08 +00002649
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002651 done
2652fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653if test -z "$CC"; then
2654 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002655 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002656do
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002662 echo $ECHO_N "(cached) $ECHO_C" >&6
2663else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002666else
2667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668for as_dir in $PATH
2669do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002673 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 +00002674 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678done
2679done
Reid Spencera773bd52006-08-04 18:18:08 +00002680IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002681
2682fi
2683fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002686 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002688else
Reid Spencera773bd52006-08-04 18:18:08 +00002689 { echo "$as_me:$LINENO: result: no" >&5
2690echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002691fi
2692
Reid Spencera773bd52006-08-04 18:18:08 +00002693
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002694 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002695done
John Criswell7a73b802003-06-30 21:59:07 +00002696
Reid Spencera773bd52006-08-04 18:18:08 +00002697 if test "x$ac_ct_CC" = x; then
2698 CC=""
2699 else
2700 case $cross_compiling:$ac_tool_warned in
2701yes:)
2702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2703whose name does not start with the host triplet. If you think this
2704configuration is useful to you, please write to autoconf@gnu.org." >&5
2705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2706whose name does not start with the host triplet. If you think this
2707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2708ac_tool_warned=yes ;;
2709esac
2710 CC=$ac_ct_CC
2711 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002712fi
2713
John Criswell7a73b802003-06-30 21:59:07 +00002714fi
2715
2716
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2718See \`config.log' for more details." >&5
2719echo "$as_me: error: no acceptable C compiler found in \$PATH
2720See \`config.log' for more details." >&2;}
2721 { (exit 1); exit 1; }; }
2722
John Criswell7a73b802003-06-30 21:59:07 +00002723# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002724echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002725ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002726{ (ac_try="$ac_compiler --version >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002736{ (ac_try="$ac_compiler -v >&5"
2737case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740esac
2741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002743 ac_status=$?
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002746{ (ac_try="$ac_compiler -V >&5"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
2756
2757cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002758/* confdefs.h. */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002763
John Criswell7a73b802003-06-30 21:59:07 +00002764int
2765main ()
2766{
2767
2768 ;
2769 return 0;
2770}
2771_ACEOF
2772ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002773ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002774# Try to create an executable without -o first, disregard a.out.
2775# It will help us diagnose broken compilers, and finding out an intuition
2776# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002777{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2778echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002779ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002780#
2781# List of possible output files, starting from the most likely.
2782# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2783# only as a last resort. b.out is created by i960 compilers.
2784ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2785#
2786# The IRIX 6 linker writes into existing files which may not be
2787# executable, retaining their permissions. Remove them first so a
2788# subsequent execution test works.
2789ac_rmfiles=
2790for ac_file in $ac_files
2791do
2792 case $ac_file in
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2794 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2795 esac
2796done
2797rm -f $ac_rmfiles
2798
2799if { (ac_try="$ac_link_default"
2800case "(($ac_try" in
2801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802 *) ac_try_echo=$ac_try;;
2803esac
2804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811# in a Makefile. We should not override ac_cv_exeext if it was cached,
2812# so that the user can short-circuit this test for compilers unknown to
2813# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002814for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002815do
2816 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002817 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002819 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002820 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002821 # We found the default executable, but exeext='' is most
2822 # certainly right.
2823 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002824 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2826 then :; else
2827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 fi
2829 # We set ac_cv_exeext here because the later test for it is not
2830 # safe: cross compilers may not add the suffix if given an `-o'
2831 # argument, so we may need to know it at that point already.
2832 # Even if this section looks crufty: it has the advantage of
2833 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002834 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002835 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002836 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002837 esac
2838done
Reid Spencera773bd52006-08-04 18:18:08 +00002839test "$ac_cv_exeext" = no && ac_cv_exeext=
2840
John Criswell7a73b802003-06-30 21:59:07 +00002841else
2842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002843sed 's/^/| /' conftest.$ac_ext >&5
2844
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002845{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002846See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002847echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002848See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002849 { (exit 77); exit 77; }; }
2850fi
2851
2852ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002853{ echo "$as_me:$LINENO: result: $ac_file" >&5
2854echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002855
Reid Spencera773bd52006-08-04 18:18:08 +00002856# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002857# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002858{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2859echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002860# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2861# If not cross compiling, check that we can run a simple program.
2862if test "$cross_compiling" != yes; then
2863 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002864 { (case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867esac
2868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2869 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 cross_compiling=no
2874 else
2875 if test "$cross_compiling" = maybe; then
2876 cross_compiling=yes
2877 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002878 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002879If you meant to cross compile, use \`--host'.
2880See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002881echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002882If you meant to cross compile, use \`--host'.
2883See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002884 { (exit 1); exit 1; }; }
2885 fi
2886 fi
2887fi
Reid Spencera773bd52006-08-04 18:18:08 +00002888{ echo "$as_me:$LINENO: result: yes" >&5
2889echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002890
John Criswell0c38eaf2003-09-10 15:17:25 +00002891rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002892ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002893# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002894# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002895{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2896echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2897{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2898echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002899
Reid Spencera773bd52006-08-04 18:18:08 +00002900{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2901echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2902if { (ac_try="$ac_link"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
2907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2913# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2914# work properly (i.e., refer to `conftest.exe'), while it won't with
2915# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002916for ac_file in conftest.exe conftest conftest.*; do
2917 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002918 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002921 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002922 * ) break;;
2923 esac
2924done
2925else
John Criswell0c38eaf2003-09-10 15:17:25 +00002926 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2929See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002930 { (exit 1); exit 1; }; }
2931fi
2932
2933rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002934{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2935echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002936
2937rm -f conftest.$ac_ext
2938EXEEXT=$ac_cv_exeext
2939ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002940{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2941echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002942if test "${ac_cv_objext+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002946/* confdefs.h. */
2947_ACEOF
2948cat confdefs.h >>conftest.$ac_ext
2949cat >>conftest.$ac_ext <<_ACEOF
2950/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002951
John Criswell7a73b802003-06-30 21:59:07 +00002952int
2953main ()
2954{
2955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002961if { (ac_try="$ac_compile"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002971 for ac_file in conftest.o conftest.obj conftest.*; do
2972 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002973 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976 break;;
2977 esac
2978done
2979else
2980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2984See \`config.log' for more details." >&5
2985echo "$as_me: error: cannot compute suffix of object files: cannot compile
2986See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002987 { (exit 1); exit 1; }; }
2988fi
2989
2990rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991fi
Reid Spencera773bd52006-08-04 18:18:08 +00002992{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2993echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002994OBJEXT=$ac_cv_objext
2995ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002996{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2997echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002998if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000else
3001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003002/* confdefs.h. */
3003_ACEOF
3004cat confdefs.h >>conftest.$ac_ext
3005cat >>conftest.$ac_ext <<_ACEOF
3006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003007
John Criswell7a73b802003-06-30 21:59:07 +00003008int
3009main ()
3010{
3011#ifndef __GNUC__
3012 choke me
3013#endif
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003020if { (ac_try="$ac_compile"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003027 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037esac
3038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; } &&
3043 { ac_try='test -s conftest.$ac_objext'
3044 { (case "(($ac_try" in
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3047esac
3048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_try") 2>&5
3050 ac_status=$?
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003053 ac_compiler_gnu=yes
3054else
3055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003056sed 's/^/| /' conftest.$ac_ext >&5
3057
Reid Spencera773bd52006-08-04 18:18:08 +00003058 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003059fi
Reid Spencera773bd52006-08-04 18:18:08 +00003060
3061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003062ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003063
3064fi
Reid Spencera773bd52006-08-04 18:18:08 +00003065{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3066echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003067GCC=`test $ac_compiler_gnu = yes && echo yes`
3068ac_test_CFLAGS=${CFLAGS+set}
3069ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003070{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3071echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003073 echo $ECHO_N "(cached) $ECHO_C" >&6
3074else
Reid Spencera773bd52006-08-04 18:18:08 +00003075 ac_save_c_werror_flag=$ac_c_werror_flag
3076 ac_c_werror_flag=yes
3077 ac_cv_prog_cc_g=no
3078 CFLAGS="-g"
3079 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003085
John Criswell7a73b802003-06-30 21:59:07 +00003086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003128 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003129else
3130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003131sed 's/^/| /' conftest.$ac_ext >&5
3132
Reid Spencera773bd52006-08-04 18:18:08 +00003133 CFLAGS=""
3134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140
3141int
3142main ()
3143{
3144
3145 ;
3146 return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext
3150if { (ac_try="$ac_compile"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167esac
3168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003183 :
3184else
3185 echo "$as_me: failed program was:" >&5
3186sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 ac_c_werror_flag=$ac_save_c_werror_flag
3189 CFLAGS="-g"
3190 cat >conftest.$ac_ext <<_ACEOF
3191/* confdefs.h. */
3192_ACEOF
3193cat confdefs.h >>conftest.$ac_ext
3194cat >>conftest.$ac_ext <<_ACEOF
3195/* end confdefs.h. */
3196
3197int
3198main ()
3199{
3200
3201 ;
3202 return 0;
3203}
3204_ACEOF
3205rm -f conftest.$ac_objext
3206if { (ac_try="$ac_compile"
3207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_compile") 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003218 (exit $ac_status); } &&
3219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; } &&
3229 { ac_try='test -s conftest.$ac_objext'
3230 { (case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233esac
3234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_try") 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003239 ac_cv_prog_cc_g=yes
3240else
3241 echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244
John Criswell7a73b802003-06-30 21:59:07 +00003245fi
Reid Spencera773bd52006-08-04 18:18:08 +00003246
3247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003248fi
Reid Spencera773bd52006-08-04 18:18:08 +00003249
3250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251fi
3252
3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3254 ac_c_werror_flag=$ac_save_c_werror_flag
3255fi
3256{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3257echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258if test "$ac_test_CFLAGS" = set; then
3259 CFLAGS=$ac_save_CFLAGS
3260elif test $ac_cv_prog_cc_g = yes; then
3261 if test "$GCC" = yes; then
3262 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003263 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003265 fi
3266else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267 if test "$GCC" = yes; then
3268 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003269 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003270 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003271 fi
3272fi
Reid Spencera773bd52006-08-04 18:18:08 +00003273{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3274echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3275if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
Reid Spencera773bd52006-08-04 18:18:08 +00003278 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003279ac_save_CC=$CC
3280cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <stdarg.h>
3287#include <stdio.h>
3288#include <sys/types.h>
3289#include <sys/stat.h>
3290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3291struct buf { int x; };
3292FILE * (*rcsopen) (struct buf *, struct stat *, int);
3293static char *e (p, i)
3294 char **p;
3295 int i;
3296{
3297 return p[i];
3298}
3299static char *f (char * (*g) (char **, int), char **p, ...)
3300{
3301 char *s;
3302 va_list v;
3303 va_start (v,p);
3304 s = g (p, va_arg (v,int));
3305 va_end (v);
3306 return s;
3307}
3308
3309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3310 function prototypes and stuff, but not '\xHH' hex character constants.
3311 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003312 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3314 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003315 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003316int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3317
Reid Spencera773bd52006-08-04 18:18:08 +00003318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3319 inside strings and character constants. */
3320#define FOO(x) 'x'
3321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3322
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003323int test (int i, double x);
3324struct s1 {int (*f) (int a);};
3325struct s2 {int (*f) (double a);};
3326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3327int argc;
3328char **argv;
3329int
3330main ()
3331{
3332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3333 ;
3334 return 0;
3335}
3336_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339do
3340 CC="$ac_save_CC $ac_arg"
3341 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003342if { (ac_try="$ac_compile"
3343case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003349 ac_status=$?
3350 grep -v '^ *+' conftest.er1 >conftest.err
3351 rm -f conftest.er1
3352 cat conftest.err >&5
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003354 (exit $ac_status); } &&
3355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3356 { (case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359esac
3360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_try") 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3371 (eval "$ac_try") 2>&5
3372 ac_status=$?
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003375 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003376else
3377 echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
Reid Spencera773bd52006-08-04 18:18:08 +00003380
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381fi
Reid Spencera773bd52006-08-04 18:18:08 +00003382
3383rm -f core conftest.err conftest.$ac_objext
3384 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385done
Reid Spencera773bd52006-08-04 18:18:08 +00003386rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003387CC=$ac_save_CC
3388
3389fi
Reid Spencera773bd52006-08-04 18:18:08 +00003390# AC_CACHE_VAL
3391case "x$ac_cv_prog_cc_c89" in
3392 x)
3393 { echo "$as_me:$LINENO: result: none needed" >&5
3394echo "${ECHO_T}none needed" >&6; } ;;
3395 xno)
3396 { echo "$as_me:$LINENO: result: unsupported" >&5
3397echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003399 CC="$CC $ac_cv_prog_cc_c89"
3400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3401echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402esac
3403
John Criswell0c38eaf2003-09-10 15:17:25 +00003404
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405ac_ext=c
3406ac_cpp='$CPP $CPPFLAGS'
3407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410
3411
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003412ac_ext=c
3413ac_cpp='$CPP $CPPFLAGS'
3414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003417{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3418echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003419# On Suns, sometimes $CPP names a directory.
3420if test -n "$CPP" && test -d "$CPP"; then
3421 CPP=
3422fi
3423if test -z "$CPP"; then
3424 if test "${ac_cv_prog_CPP+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 # Double quotes because CPP needs to be expanded
3428 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3429 do
3430 ac_preproc_ok=false
3431for ac_c_preproc_warn_flag in '' yes
3432do
3433 # Use a header file that comes with gcc, so configuring glibc
3434 # with a fresh cross-compiler works.
3435 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436 # <limits.h> exists even on freestanding compilers.
3437 # On the NeXT, cc -E runs the code through the compiler's parser,
3438 # not just through cpp. "Syntax error" is here to catch this case.
3439 cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h. */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h. */
3445#ifdef __STDC__
3446# include <limits.h>
3447#else
3448# include <assert.h>
3449#endif
3450 Syntax error
3451_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003452if { (ac_try="$ac_cpp conftest.$ac_ext"
3453case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
3457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003459 ac_status=$?
3460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
3463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003464 (exit $ac_status); } >/dev/null; then
3465 if test -s conftest.err; then
3466 ac_cpp_err=$ac_c_preproc_warn_flag
3467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468 else
3469 ac_cpp_err=
3470 fi
3471else
3472 ac_cpp_err=yes
3473fi
3474if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003475 :
3476else
3477 echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 # Broken: fails on valid input.
3481continue
3482fi
Reid Spencera773bd52006-08-04 18:18:08 +00003483
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003484rm -f conftest.err conftest.$ac_ext
3485
Reid Spencera773bd52006-08-04 18:18:08 +00003486 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003487 # can be detected and how.
3488 cat >conftest.$ac_ext <<_ACEOF
3489/* confdefs.h. */
3490_ACEOF
3491cat confdefs.h >>conftest.$ac_ext
3492cat >>conftest.$ac_ext <<_ACEOF
3493/* end confdefs.h. */
3494#include <ac_nonexistent.h>
3495_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003496if { (ac_try="$ac_cpp conftest.$ac_ext"
3497case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
3501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003503 ac_status=$?
3504 grep -v '^ *+' conftest.er1 >conftest.err
3505 rm -f conftest.er1
3506 cat conftest.err >&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003508 (exit $ac_status); } >/dev/null; then
3509 if test -s conftest.err; then
3510 ac_cpp_err=$ac_c_preproc_warn_flag
3511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3512 else
3513 ac_cpp_err=
3514 fi
3515else
3516 ac_cpp_err=yes
3517fi
3518if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003519 # Broken: success on invalid input.
3520continue
3521else
3522 echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525 # Passes both tests.
3526ac_preproc_ok=:
3527break
3528fi
Reid Spencera773bd52006-08-04 18:18:08 +00003529
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003530rm -f conftest.err conftest.$ac_ext
3531
3532done
3533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534rm -f conftest.err conftest.$ac_ext
3535if $ac_preproc_ok; then
3536 break
3537fi
3538
3539 done
3540 ac_cv_prog_CPP=$CPP
3541
3542fi
3543 CPP=$ac_cv_prog_CPP
3544else
3545 ac_cv_prog_CPP=$CPP
3546fi
Reid Spencera773bd52006-08-04 18:18:08 +00003547{ echo "$as_me:$LINENO: result: $CPP" >&5
3548echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549ac_preproc_ok=false
3550for ac_c_preproc_warn_flag in '' yes
3551do
3552 # Use a header file that comes with gcc, so configuring glibc
3553 # with a fresh cross-compiler works.
3554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3555 # <limits.h> exists even on freestanding compilers.
3556 # On the NeXT, cc -E runs the code through the compiler's parser,
3557 # not just through cpp. "Syntax error" is here to catch this case.
3558 cat >conftest.$ac_ext <<_ACEOF
3559/* confdefs.h. */
3560_ACEOF
3561cat confdefs.h >>conftest.$ac_ext
3562cat >>conftest.$ac_ext <<_ACEOF
3563/* end confdefs.h. */
3564#ifdef __STDC__
3565# include <limits.h>
3566#else
3567# include <assert.h>
3568#endif
3569 Syntax error
3570_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003571if { (ac_try="$ac_cpp conftest.$ac_ext"
3572case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575esac
3576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003578 ac_status=$?
3579 grep -v '^ *+' conftest.er1 >conftest.err
3580 rm -f conftest.er1
3581 cat conftest.err >&5
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003583 (exit $ac_status); } >/dev/null; then
3584 if test -s conftest.err; then
3585 ac_cpp_err=$ac_c_preproc_warn_flag
3586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3587 else
3588 ac_cpp_err=
3589 fi
3590else
3591 ac_cpp_err=yes
3592fi
3593if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003594 :
3595else
3596 echo "$as_me: failed program was:" >&5
3597sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 # Broken: fails on valid input.
3600continue
3601fi
Reid Spencera773bd52006-08-04 18:18:08 +00003602
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003603rm -f conftest.err conftest.$ac_ext
3604
Reid Spencera773bd52006-08-04 18:18:08 +00003605 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003606 # can be detected and how.
3607 cat >conftest.$ac_ext <<_ACEOF
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613#include <ac_nonexistent.h>
3614_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003615if { (ac_try="$ac_cpp conftest.$ac_ext"
3616case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619esac
3620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_c_preproc_warn_flag
3630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3631 else
3632 ac_cpp_err=
3633 fi
3634else
3635 ac_cpp_err=yes
3636fi
3637if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003638 # Broken: success on invalid input.
3639continue
3640else
3641 echo "$as_me: failed program was:" >&5
3642sed 's/^/| /' conftest.$ac_ext >&5
3643
3644 # Passes both tests.
3645ac_preproc_ok=:
3646break
3647fi
Reid Spencera773bd52006-08-04 18:18:08 +00003648
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003649rm -f conftest.err conftest.$ac_ext
3650
3651done
3652# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3653rm -f conftest.err conftest.$ac_ext
3654if $ac_preproc_ok; then
3655 :
3656else
3657 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3658See \`config.log' for more details." >&5
3659echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3660See \`config.log' for more details." >&2;}
3661 { (exit 1); exit 1; }; }
3662fi
3663
John Criswell7a73b802003-06-30 21:59:07 +00003664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
John Criswell7a73b802003-06-30 21:59:07 +00003670
Reid Spencera773bd52006-08-04 18:18:08 +00003671{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3672echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673if test "${ac_cv_path_GREP+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675else
Reid Spencera773bd52006-08-04 18:18:08 +00003676 # Extract the first word of "grep ggrep" to use in msg output
3677if test -z "$GREP"; then
3678set dummy grep ggrep; ac_prog_name=$2
3679if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680 echo $ECHO_N "(cached) $ECHO_C" >&6
3681else
Reid Spencera773bd52006-08-04 18:18:08 +00003682 ac_path_GREP_found=false
3683# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003685for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003686do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003689 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003690 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003691 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003692 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003693 # Check for GNU ac_path_GREP and select it if it is found.
3694 # Check for GNU $ac_path_GREP
3695case `"$ac_path_GREP" --version 2>&1` in
3696*GNU*)
3697 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3698*)
3699 ac_count=0
3700 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3701 while :
3702 do
3703 cat "conftest.in" "conftest.in" >"conftest.tmp"
3704 mv "conftest.tmp" "conftest.in"
3705 cp "conftest.in" "conftest.nl"
3706 echo 'GREP' >> "conftest.nl"
3707 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3709 ac_count=`expr $ac_count + 1`
3710 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3711 # Best one so far, save it but keep looking for a better one
3712 ac_cv_path_GREP="$ac_path_GREP"
3713 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003714 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003715 # 10*(2^10) chars as input seems more than enough
3716 test $ac_count -gt 10 && break
3717 done
3718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3719esac
3720
3721
3722 $ac_path_GREP_found && break 3
3723 done
3724done
3725
3726done
3727IFS=$as_save_IFS
3728
3729
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003730fi
Reid Spencera773bd52006-08-04 18:18:08 +00003731
3732GREP="$ac_cv_path_GREP"
3733if test -z "$GREP"; then
3734 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3735echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3736 { (exit 1); exit 1; }; }
3737fi
3738
3739else
3740 ac_cv_path_GREP=$GREP
3741fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003742
John Criswell7a73b802003-06-30 21:59:07 +00003743
Reid Spencera773bd52006-08-04 18:18:08 +00003744fi
3745{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3746echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3747 GREP="$ac_cv_path_GREP"
3748
3749
3750{ echo "$as_me:$LINENO: checking for egrep" >&5
3751echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3752if test "${ac_cv_path_EGREP+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3756 then ac_cv_path_EGREP="$GREP -E"
3757 else
3758 # Extract the first word of "egrep" to use in msg output
3759if test -z "$EGREP"; then
3760set dummy egrep; ac_prog_name=$2
3761if test "${ac_cv_path_EGREP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3763else
3764 ac_path_EGREP_found=false
3765# Loop through the user's path and test for each of PROGNAME-LIST
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_prog in egrep; do
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003774 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003775 # Check for GNU ac_path_EGREP and select it if it is found.
3776 # Check for GNU $ac_path_EGREP
3777case `"$ac_path_EGREP" --version 2>&1` in
3778*GNU*)
3779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3780*)
3781 ac_count=0
3782 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3783 while :
3784 do
3785 cat "conftest.in" "conftest.in" >"conftest.tmp"
3786 mv "conftest.tmp" "conftest.in"
3787 cp "conftest.in" "conftest.nl"
3788 echo 'EGREP' >> "conftest.nl"
3789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3791 ac_count=`expr $ac_count + 1`
3792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3793 # Best one so far, save it but keep looking for a better one
3794 ac_cv_path_EGREP="$ac_path_EGREP"
3795 ac_path_EGREP_max=$ac_count
3796 fi
3797 # 10*(2^10) chars as input seems more than enough
3798 test $ac_count -gt 10 && break
3799 done
3800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3801esac
3802
3803
3804 $ac_path_EGREP_found && break 3
3805 done
3806done
3807
3808done
3809IFS=$as_save_IFS
3810
3811
3812fi
3813
3814EGREP="$ac_cv_path_EGREP"
3815if test -z "$EGREP"; then
3816 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3817echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3818 { (exit 1); exit 1; }; }
3819fi
3820
3821else
3822 ac_cv_path_EGREP=$EGREP
3823fi
3824
3825
3826 fi
3827fi
3828{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3830 EGREP="$ac_cv_path_EGREP"
3831
3832
3833{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003835if test "${ac_cv_header_stdc+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837else
3838 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003839/* confdefs.h. */
3840_ACEOF
3841cat confdefs.h >>conftest.$ac_ext
3842cat >>conftest.$ac_ext <<_ACEOF
3843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003844#include <stdlib.h>
3845#include <stdarg.h>
3846#include <string.h>
3847#include <float.h>
3848
John Criswell0c38eaf2003-09-10 15:17:25 +00003849int
3850main ()
3851{
3852
3853 ;
3854 return 0;
3855}
John Criswell7a73b802003-06-30 21:59:07 +00003856_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003857rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003858if { (ac_try="$ac_compile"
3859case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003870 (exit $ac_status); } &&
3871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3872 { (case "(($ac_try" in
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877 (eval "$ac_try") 2>&5
3878 ac_status=$?
3879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880 (exit $ac_status); }; } &&
3881 { ac_try='test -s conftest.$ac_objext'
3882 { (case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_try") 2>&5
3888 ac_status=$?
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003891 ac_cv_header_stdc=yes
3892else
3893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003894sed 's/^/| /' conftest.$ac_ext >&5
3895
Reid Spencera773bd52006-08-04 18:18:08 +00003896 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003897fi
Reid Spencera773bd52006-08-04 18:18:08 +00003898
3899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003900
3901if test $ac_cv_header_stdc = yes; then
3902 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3903 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003909#include <string.h>
3910
3911_ACEOF
3912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003913 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003914 :
3915else
3916 ac_cv_header_stdc=no
3917fi
3918rm -f conftest*
3919
3920fi
3921
3922if test $ac_cv_header_stdc = yes; then
3923 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3924 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003925/* confdefs.h. */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003930#include <stdlib.h>
3931
3932_ACEOF
3933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003934 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003935 :
3936else
3937 ac_cv_header_stdc=no
3938fi
3939rm -f conftest*
3940
3941fi
3942
3943if test $ac_cv_header_stdc = yes; then
3944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3945 if test "$cross_compiling" = yes; then
3946 :
3947else
3948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003954#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003955#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003956#if ((' ' & 0x0FF) == 0x020)
3957# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3958# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3959#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003960# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003961 (('a' <= (c) && (c) <= 'i') \
3962 || ('j' <= (c) && (c) <= 'r') \
3963 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003964# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3965#endif
3966
3967#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3968int
3969main ()
3970{
3971 int i;
3972 for (i = 0; i < 256; i++)
3973 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003974 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003975 return 2;
3976 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003977}
3978_ACEOF
3979rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003980if { (ac_try="$ac_link"
3981case "(($ac_try" in
3982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3983 *) ac_try_echo=$ac_try;;
3984esac
3985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3986 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003990 { (case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993esac
3994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 :
4000else
4001 echo "$as_me: program exited with status $ac_status" >&5
4002echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004003sed 's/^/| /' conftest.$ac_ext >&5
4004
John Criswell7a73b802003-06-30 21:59:07 +00004005( exit $ac_status )
4006ac_cv_header_stdc=no
4007fi
Reid Spencera773bd52006-08-04 18:18:08 +00004008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4009fi
4010
4011
John Criswell7a73b802003-06-30 21:59:07 +00004012fi
4013fi
Reid Spencera773bd52006-08-04 18:18:08 +00004014{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4015echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004016if test $ac_cv_header_stdc = yes; then
4017
4018cat >>confdefs.h <<\_ACEOF
4019#define STDC_HEADERS 1
4020_ACEOF
4021
4022fi
4023
Reid Spencera773bd52006-08-04 18:18:08 +00004024# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4035 inttypes.h stdint.h unistd.h
4036do
4037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4038{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4041 echo $ECHO_N "(cached) $ECHO_C" >&6
4042else
4043 cat >conftest.$ac_ext <<_ACEOF
4044/* confdefs.h. */
4045_ACEOF
4046cat confdefs.h >>conftest.$ac_ext
4047cat >>conftest.$ac_ext <<_ACEOF
4048/* end confdefs.h. */
4049$ac_includes_default
4050
4051#include <$ac_header>
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (ac_try="$ac_compile"
4055case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4061 ac_status=$?
4062 grep -v '^ *+' conftest.er1 >conftest.err
4063 rm -f conftest.er1
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004066 (exit $ac_status); } &&
4067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4068 { (case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest.$ac_objext'
4078 { (case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_try") 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004087 eval "$as_ac_Header=yes"
4088else
4089 echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092 eval "$as_ac_Header=no"
4093fi
4094
4095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096fi
4097ac_res=`eval echo '${'$as_ac_Header'}'`
4098 { echo "$as_me:$LINENO: result: $ac_res" >&5
4099echo "${ECHO_T}$ac_res" >&6; }
4100if test `eval echo '${'$as_ac_Header'}'` = yes; then
4101 cat >>confdefs.h <<_ACEOF
4102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4103_ACEOF
4104
4105fi
4106
4107done
4108
4109
4110{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4111echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4112if test "${ac_cv_c_bigendian+set}" = set; then
4113 echo $ECHO_N "(cached) $ECHO_C" >&6
4114else
4115 # See if sys/param.h defines the BYTE_ORDER macro.
4116cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
4122#include <sys/types.h>
4123#include <sys/param.h>
4124
4125int
4126main ()
4127{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004128#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004129 bogus endian macros
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004170 # It does; now see whether it defined to BIG_ENDIAN or not.
4171cat >conftest.$ac_ext <<_ACEOF
4172/* confdefs.h. */
4173_ACEOF
4174cat confdefs.h >>conftest.$ac_ext
4175cat >>conftest.$ac_ext <<_ACEOF
4176/* end confdefs.h. */
4177#include <sys/types.h>
4178#include <sys/param.h>
4179
4180int
4181main ()
4182{
4183#if BYTE_ORDER != BIG_ENDIAN
4184 not big endian
4185#endif
4186
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191rm -f conftest.$ac_objext
4192if { (ac_try="$ac_compile"
4193case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_compile") 2>conftest.er1
4199 ac_status=$?
4200 grep -v '^ *+' conftest.er1 >conftest.err
4201 rm -f conftest.er1
4202 cat conftest.err >&5
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004204 (exit $ac_status); } &&
4205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4206 { (case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_try") 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_try") 2>&5
4222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004225 ac_cv_c_bigendian=yes
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 ac_cv_c_bigendian=no
4231fi
4232
4233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234else
4235 echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 # It does not; compile a test program.
4239if test "$cross_compiling" = yes; then
4240 # try to guess the endianness by grepping values into an object file
4241 ac_cv_c_bigendian=unknown
4242 cat >conftest.$ac_ext <<_ACEOF
4243/* confdefs.h. */
4244_ACEOF
4245cat confdefs.h >>conftest.$ac_ext
4246cat >>conftest.$ac_ext <<_ACEOF
4247/* end confdefs.h. */
4248short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4249short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4250void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4251short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4252short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4253void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4254int
4255main ()
4256{
4257 _ascii (); _ebcdic ();
4258 ;
4259 return 0;
4260}
4261_ACEOF
4262rm -f conftest.$ac_objext
4263if { (ac_try="$ac_compile"
4264case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_compile") 2>conftest.er1
4270 ac_status=$?
4271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004275 (exit $ac_status); } &&
4276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4277 { (case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4282 (eval "$ac_try") 2>&5
4283 ac_status=$?
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); }; } &&
4286 { ac_try='test -s conftest.$ac_objext'
4287 { (case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_try") 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004296 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4297 ac_cv_c_bigendian=yes
4298fi
4299if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4300 if test "$ac_cv_c_bigendian" = unknown; then
4301 ac_cv_c_bigendian=no
4302 else
4303 # finding both strings is unlikely to happen, but who knows?
4304 ac_cv_c_bigendian=unknown
4305 fi
4306fi
4307else
4308 echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311
4312fi
4313
4314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315else
4316 cat >conftest.$ac_ext <<_ACEOF
4317/* confdefs.h. */
4318_ACEOF
4319cat confdefs.h >>conftest.$ac_ext
4320cat >>conftest.$ac_ext <<_ACEOF
4321/* end confdefs.h. */
4322$ac_includes_default
4323int
4324main ()
4325{
4326
4327 /* Are we little or big endian? From Harbison&Steele. */
4328 union
4329 {
4330 long int l;
4331 char c[sizeof (long int)];
4332 } u;
4333 u.l = 1;
4334 return u.c[sizeof (long int) - 1] == 1;
4335
4336 ;
4337 return 0;
4338}
4339_ACEOF
4340rm -f conftest$ac_exeext
4341if { (ac_try="$ac_link"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347 (eval "$ac_link") 2>&5
4348 ac_status=$?
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4351 { (case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4354esac
4355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_try") 2>&5
4357 ac_status=$?
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; }; then
4360 ac_cv_c_bigendian=no
4361else
4362 echo "$as_me: program exited with status $ac_status" >&5
4363echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366( exit $ac_status )
4367ac_cv_c_bigendian=yes
4368fi
4369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4370fi
4371
4372
4373fi
4374
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376fi
4377{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4378echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4379case $ac_cv_c_bigendian in
4380 yes)
4381 ENDIAN=big
4382 ;;
4383 no)
4384 ENDIAN=little
4385 ;;
4386 *)
4387 { { echo "$as_me:$LINENO: error: unknown endianness
4388presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4389echo "$as_me: error: unknown endianness
4390presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4391 { (exit 1); exit 1; }; } ;;
4392esac
4393
4394
4395if test "$cross_compiling" = yes; then
4396 LLVM_CROSS_COMPILING=1
4397
4398
4399{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4400echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4401if test "${ac_cv_build_exeext+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4405 ac_cv_build_exeext=.exe
4406else
4407 ac_build_prefix=${build_alias}-
4408
4409 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4410set dummy ${ac_build_prefix}gcc; ac_word=$2
4411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415else
4416 if test -n "$BUILD_CC"; then
4417 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4418else
4419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420for as_dir in $PATH
4421do
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004425 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 +00004426 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4429 fi
4430done
4431done
4432IFS=$as_save_IFS
4433
4434fi
4435fi
4436BUILD_CC=$ac_cv_prog_BUILD_CC
4437if test -n "$BUILD_CC"; then
4438 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4439echo "${ECHO_T}$BUILD_CC" >&6; }
4440else
4441 { echo "$as_me:$LINENO: result: no" >&5
4442echo "${ECHO_T}no" >&6; }
4443fi
4444
4445
4446 if test -z "$BUILD_CC"; then
4447 # Extract the first word of "gcc", so it can be a program name with args.
4448set dummy gcc; ac_word=$2
4449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453else
4454 if test -n "$BUILD_CC"; then
4455 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4456else
4457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004463 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 +00004464 ac_cv_prog_BUILD_CC="gcc"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470IFS=$as_save_IFS
4471
4472fi
4473fi
4474BUILD_CC=$ac_cv_prog_BUILD_CC
4475if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477echo "${ECHO_T}$BUILD_CC" >&6; }
4478else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6; }
4481fi
4482
4483
4484 if test -z "$BUILD_CC"; then
4485 # Extract the first word of "cc", so it can be a program name with args.
4486set dummy cc; ac_word=$2
4487{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4489if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4490 echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492 if test -n "$BUILD_CC"; then
4493 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4494else
4495 ac_prog_rejected=no
4496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004502 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 +00004503 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504 ac_prog_rejected=yes
4505 continue
4506 fi
4507 ac_cv_prog_BUILD_CC="cc"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511done
4512done
4513IFS=$as_save_IFS
4514
4515if test $ac_prog_rejected = yes; then
4516 # We found a bogon in the path, so make sure we never use it.
4517 set dummy $ac_cv_prog_BUILD_CC
4518 shift
4519 if test $# != 0; then
4520 # We chose a different compiler from the bogus one.
4521 # However, it has the same basename, so the bogon will be chosen
4522 # first if we set BUILD_CC to just the basename; use the full file name.
4523 shift
4524 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4525 fi
4526fi
4527fi
4528fi
4529BUILD_CC=$ac_cv_prog_BUILD_CC
4530if test -n "$BUILD_CC"; then
4531 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4532echo "${ECHO_T}$BUILD_CC" >&6; }
4533else
4534 { echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6; }
4536fi
4537
4538
4539 fi
4540 fi
4541 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4542echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4543 { (exit 1); exit 1; }; }
4544 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4545 rm -f conftest*
4546 echo 'int main () { return 0; }' > conftest.$ac_ext
4547 ac_cv_build_exeext=
4548 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4549 (eval $ac_build_link) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; then
4553 for file in conftest.*; do
4554 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004555 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004556 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4557 esac
4558 done
4559 else
4560 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4561echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4562 { (exit 1); exit 1; }; }
4563 fi
4564 rm -f conftest*
4565 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4566fi
4567fi
4568
4569BUILD_EXEEXT=""
4570test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4571{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4572echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4573ac_build_exeext=$BUILD_EXEEXT
4574
Jim Grosbach673612e2008-10-02 22:56:44 +00004575 ac_build_prefix=${build_alias}-
4576 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4577set dummy ${ac_build_prefix}g++; ac_word=$2
4578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4580if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583 if test -n "$BUILD_CXX"; then
4584 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4585else
4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587for as_dir in $PATH
4588do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004592 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 +00004593 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4596 fi
4597done
4598done
4599IFS=$as_save_IFS
4600
4601fi
4602fi
4603BUILD_CXX=$ac_cv_prog_BUILD_CXX
4604if test -n "$BUILD_CXX"; then
4605 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4606echo "${ECHO_T}$BUILD_CXX" >&6; }
4607else
4608 { echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6; }
4610fi
4611
4612
4613 if test -z "$BUILD_CXX"; then
4614 # Extract the first word of "g++", so it can be a program name with args.
4615set dummy g++; ac_word=$2
4616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4618if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620else
4621 if test -n "$BUILD_CXX"; then
4622 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4623else
4624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625for as_dir in $PATH
4626do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004630 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 +00004631 ac_cv_prog_BUILD_CXX="g++"
4632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4634 fi
4635done
4636done
4637IFS=$as_save_IFS
4638
4639fi
4640fi
4641BUILD_CXX=$ac_cv_prog_BUILD_CXX
4642if test -n "$BUILD_CXX"; then
4643 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4644echo "${ECHO_T}$BUILD_CXX" >&6; }
4645else
4646 { echo "$as_me:$LINENO: result: no" >&5
4647echo "${ECHO_T}no" >&6; }
4648fi
4649
4650
4651 if test -z "$BUILD_CXX"; then
4652 # Extract the first word of "c++", so it can be a program name with args.
4653set dummy c++; ac_word=$2
4654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659 if test -n "$BUILD_CXX"; then
4660 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4661else
4662 ac_prog_rejected=no
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004669 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 +00004670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4671 ac_prog_rejected=yes
4672 continue
4673 fi
4674 ac_cv_prog_BUILD_CXX="c++"
4675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4676 break 2
4677 fi
4678done
4679done
4680IFS=$as_save_IFS
4681
4682if test $ac_prog_rejected = yes; then
4683 # We found a bogon in the path, so make sure we never use it.
4684 set dummy $ac_cv_prog_BUILD_CXX
4685 shift
4686 if test $# != 0; then
4687 # We chose a different compiler from the bogus one.
4688 # However, it has the same basename, so the bogon will be chosen
4689 # first if we set BUILD_CXX to just the basename; use the full file name.
4690 shift
4691 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4692 fi
4693fi
4694fi
4695fi
4696BUILD_CXX=$ac_cv_prog_BUILD_CXX
4697if test -n "$BUILD_CXX"; then
4698 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4699echo "${ECHO_T}$BUILD_CXX" >&6; }
4700else
4701 { echo "$as_me:$LINENO: result: no" >&5
4702echo "${ECHO_T}no" >&6; }
4703fi
4704
4705
4706 fi
4707 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004708else
4709 LLVM_CROSS_COMPILING=0
4710
4711fi
4712
Reid Spencer0b1e4662007-04-02 15:41:39 +00004713if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004714 cvsbuild="yes"
4715 optimize="no"
4716 CVSBUILD=CVSBUILD=1
4717
4718else
4719 cvsbuild="no"
4720 optimize="yes"
4721fi
4722
4723
4724# Check whether --enable-optimized was given.
4725if test "${enable_optimized+set}" = set; then
4726 enableval=$enable_optimized;
4727else
4728 enableval=$optimize
4729fi
4730
4731if test ${enableval} = "no" ; then
4732 ENABLE_OPTIMIZED=
4733
4734else
4735 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4736
4737fi
4738
4739# Check whether --enable-assertions was given.
4740if test "${enable_assertions+set}" = set; then
4741 enableval=$enable_assertions;
4742else
4743 enableval="yes"
4744fi
4745
4746if test ${enableval} = "yes" ; then
4747 DISABLE_ASSERTIONS=
4748
4749else
4750 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4751
4752fi
4753
David Greenea696d242007-06-28 19:36:08 +00004754# Check whether --enable-expensive-checks was given.
4755if test "${enable_expensive_checks+set}" = set; then
4756 enableval=$enable_expensive_checks;
4757else
4758 enableval="no"
4759fi
4760
4761if test ${enableval} = "yes" ; then
4762 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4763
4764 EXPENSIVE_CHECKS=yes
4765
4766else
4767 ENABLE_EXPENSIVE_CHECKS=
4768
4769 EXPENSIVE_CHECKS=no
4770
4771fi
4772
Reid Spencer8b2e1412006-11-17 03:32:33 +00004773# Check whether --enable-debug-runtime was given.
4774if test "${enable_debug_runtime+set}" = set; then
4775 enableval=$enable_debug_runtime;
4776else
4777 enableval=no
4778fi
4779
4780if test ${enableval} = "no" ; then
4781 DEBUG_RUNTIME=
4782
4783else
4784 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4785
4786fi
4787
Reid Spencera773bd52006-08-04 18:18:08 +00004788# Check whether --enable-jit was given.
4789if test "${enable_jit+set}" = set; then
4790 enableval=$enable_jit;
4791else
4792 enableval=default
4793fi
4794
4795if test ${enableval} = "no"
4796then
4797 JIT=
4798
4799else
4800 case "$llvm_cv_target_arch" in
4801 x86) TARGET_HAS_JIT=1
4802 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004803 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004804 ;;
4805 PowerPC) TARGET_HAS_JIT=1
4806 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004807 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004808 ;;
4809 Alpha) TARGET_HAS_JIT=1
4810 ;;
4811 IA64) TARGET_HAS_JIT=0
4812 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004813 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004814 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004815 Mips) TARGET_HAS_JIT=0
4816 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004817 PIC16) TARGET_HAS_JIT=0
4818 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004819 XCore) TARGET_HAS_JIT=0
4820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004821 *) TARGET_HAS_JIT=0
4822 ;;
4823 esac
4824fi
4825
4826# Check whether --enable-doxygen was given.
4827if test "${enable_doxygen+set}" = set; then
4828 enableval=$enable_doxygen;
4829else
4830 enableval=default
4831fi
4832
4833case "$enableval" in
4834 yes) ENABLE_DOXYGEN=1
4835 ;;
4836 no) ENABLE_DOXYGEN=0
4837 ;;
4838 default) ENABLE_DOXYGEN=0
4839 ;;
4840 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4841echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4842 { (exit 1); exit 1; }; } ;;
4843esac
4844
4845# Check whether --enable-threads was given.
4846if test "${enable_threads+set}" = set; then
4847 enableval=$enable_threads;
4848else
Reid Spencer65c5d752006-11-05 17:08:18 +00004849 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004850fi
4851
4852case "$enableval" in
4853 yes) ENABLE_THREADS=1
4854 ;;
4855 no) ENABLE_THREADS=0
4856 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004857 default) ENABLE_THREADS=1
4858 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004859 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4860echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4861 { (exit 1); exit 1; }; } ;;
4862esac
4863
4864cat >>confdefs.h <<_ACEOF
4865#define ENABLE_THREADS $ENABLE_THREADS
4866_ACEOF
4867
4868
Reid Spencer89b0d992006-12-16 22:07:52 +00004869# Check whether --enable-pic was given.
4870if test "${enable_pic+set}" = set; then
4871 enableval=$enable_pic;
4872else
4873 enableval=default
4874fi
4875
4876case "$enableval" in
4877 yes) ENABLE_PIC=1
4878 ;;
4879 no) ENABLE_PIC=0
4880 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004881 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004882 ;;
4883 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4884echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4886esac
4887
4888cat >>confdefs.h <<_ACEOF
4889#define ENABLE_PIC $ENABLE_PIC
4890_ACEOF
4891
4892
Reid Spencera773bd52006-08-04 18:18:08 +00004893TARGETS_TO_BUILD=""
4894# Check whether --enable-targets was given.
4895if test "${enable_targets+set}" = set; then
4896 enableval=$enable_targets;
4897else
4898 enableval=all
4899fi
4900
4901case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004902 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004903 host-only)
4904 case "$llvm_cv_target_arch" in
4905 x86) TARGETS_TO_BUILD="X86" ;;
4906 x86_64) TARGETS_TO_BUILD="X86" ;;
4907 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4908 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4909 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4910 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004911 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004912 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004913 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004914 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004915 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004916 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4917echo "$as_me: error: Can not set target to build" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4919 esac
4920 ;;
4921 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4922 case "$a_target" in
4923 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4924 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4925 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4926 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4927 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4928 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004929 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004930 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004931 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004932 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004933 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004934 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4935 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004936 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004937 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4938echo "$as_me: error: Unrecognized target $a_target" >&2;}
4939 { (exit 1); exit 1; }; } ;;
4940 esac
4941 done
4942 ;;
4943esac
Reid Spencera773bd52006-08-04 18:18:08 +00004944TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4945
4946
Reid Spencer65c5d752006-11-05 17:08:18 +00004947# Check whether --enable-cbe-printf-a was given.
4948if test "${enable_cbe_printf_a+set}" = set; then
4949 enableval=$enable_cbe_printf_a;
4950else
4951 enableval=default
4952fi
4953
4954case "$enableval" in
4955 yes) ENABLE_CBE_PRINTF_A=1
4956 ;;
4957 no) ENABLE_CBE_PRINTF_A=0
4958 ;;
4959 default) ENABLE_CBE_PRINTF_A=1
4960 ;;
4961 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4962echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964esac
4965
4966cat >>confdefs.h <<_ACEOF
4967#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4968_ACEOF
4969
4970
Reid Spencera773bd52006-08-04 18:18:08 +00004971
4972# Check whether --with-llvmgccdir was given.
4973if test "${with_llvmgccdir+set}" = set; then
4974 withval=$with_llvmgccdir;
4975else
4976 withval=default
4977fi
4978
4979case "$withval" in
4980 default) WITH_LLVMGCCDIR=default ;;
4981 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4982 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4983echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4984 { (exit 1); exit 1; }; } ;;
4985esac
4986
4987
Devang Patel5d28b882007-12-04 22:54:47 +00004988# Check whether --with-llvmgcc was given.
4989if test "${with_llvmgcc+set}" = set; then
4990 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4991 WITH_LLVMGCCDIR=""
4992fi
4993
4994
4995
4996# Check whether --with-llvmgxx was given.
4997if test "${with_llvmgxx+set}" = set; then
4998 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4999 WITH_LLVMGCCDIR=""
5000fi
5001
5002
5003if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5004 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5005echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5006 { (exit 1); exit 1; }; };
5007fi
5008
5009if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5010 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5011echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5012 { (exit 1); exit 1; }; };
5013fi
5014
5015
Reid Spencera773bd52006-08-04 18:18:08 +00005016# Check whether --with-extra-options was given.
5017if test "${with_extra_options+set}" = set; then
5018 withval=$with_extra_options;
5019else
5020 withval=default
5021fi
5022
5023case "$withval" in
5024 default) EXTRA_OPTIONS= ;;
5025 *) EXTRA_OPTIONS=$withval ;;
5026esac
5027EXTRA_OPTIONS=$EXTRA_OPTIONS
5028
5029
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005030# Check whether --enable-bindings was given.
5031if test "${enable_bindings+set}" = set; then
5032 enableval=$enable_bindings;
5033else
5034 enableval=default
5035fi
5036
5037BINDINGS_TO_BUILD=""
5038case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005039 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005040 all ) BINDINGS_TO_BUILD="ocaml" ;;
5041 none | no) BINDINGS_TO_BUILD="" ;;
5042 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5043 case "$a_binding" in
5044 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5045 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5046echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5047 { (exit 1); exit 1; }; } ;;
5048 esac
5049 done
5050 ;;
5051esac
5052
Reid Spencera773bd52006-08-04 18:18:08 +00005053
Gordon Henriksenf0915682007-10-02 16:42:22 +00005054# Check whether --with-ocaml-libdir was given.
5055if test "${with_ocaml_libdir+set}" = set; then
5056 withval=$with_ocaml_libdir;
5057else
5058 withval=auto
5059fi
5060
5061case "$withval" in
5062 auto) with_ocaml_libdir="$withval" ;;
5063 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5064 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5065echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067esac
5068
5069
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005070# Check whether --with-binutils-include was given.
5071if test "${with_binutils_include+set}" = set; then
5072 withval=$with_binutils_include;
5073else
5074 withval=default
5075fi
5076
5077case "$withval" in
5078 default) WITH_BINUTILS_INCDIR=default ;;
5079 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5080 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5081echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5082 { (exit 1); exit 1; }; } ;;
5083esac
5084if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5085 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5086
5087 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5088 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5089 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5090echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5091 { (exit 1); exit 1; }; };
5092 fi
5093fi
5094
5095
Reid Spencera773bd52006-08-04 18:18:08 +00005096ac_ext=c
5097ac_cpp='$CPP $CPPFLAGS'
5098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5100ac_compiler_gnu=$ac_cv_c_compiler_gnu
5101{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5102echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5103# On Suns, sometimes $CPP names a directory.
5104if test -n "$CPP" && test -d "$CPP"; then
5105 CPP=
5106fi
5107if test -z "$CPP"; then
5108 if test "${ac_cv_prog_CPP+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111 # Double quotes because CPP needs to be expanded
5112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5113 do
5114 ac_preproc_ok=false
5115for ac_c_preproc_warn_flag in '' yes
5116do
5117 # Use a header file that comes with gcc, so configuring glibc
5118 # with a fresh cross-compiler works.
5119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120 # <limits.h> exists even on freestanding compilers.
5121 # On the NeXT, cc -E runs the code through the compiler's parser,
5122 # not just through cpp. "Syntax error" is here to catch this case.
5123 cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h. */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h. */
5129#ifdef __STDC__
5130# include <limits.h>
5131#else
5132# include <assert.h>
5133#endif
5134 Syntax error
5135_ACEOF
5136if { (ac_try="$ac_cpp conftest.$ac_ext"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005148 (exit $ac_status); } >/dev/null; then
5149 if test -s conftest.err; then
5150 ac_cpp_err=$ac_c_preproc_warn_flag
5151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5152 else
5153 ac_cpp_err=
5154 fi
5155else
5156 ac_cpp_err=yes
5157fi
5158if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005159 :
5160else
5161 echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164 # Broken: fails on valid input.
5165continue
5166fi
5167
5168rm -f conftest.err conftest.$ac_ext
5169
5170 # OK, works on sane cases. Now check whether nonexistent headers
5171 # can be detected and how.
5172 cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h. */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h. */
5178#include <ac_nonexistent.h>
5179_ACEOF
5180if { (ac_try="$ac_cpp conftest.$ac_ext"
5181case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005192 (exit $ac_status); } >/dev/null; then
5193 if test -s conftest.err; then
5194 ac_cpp_err=$ac_c_preproc_warn_flag
5195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5196 else
5197 ac_cpp_err=
5198 fi
5199else
5200 ac_cpp_err=yes
5201fi
5202if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005203 # Broken: success on invalid input.
5204continue
5205else
5206 echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 # Passes both tests.
5210ac_preproc_ok=:
5211break
5212fi
5213
5214rm -f conftest.err conftest.$ac_ext
5215
5216done
5217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5218rm -f conftest.err conftest.$ac_ext
5219if $ac_preproc_ok; then
5220 break
5221fi
5222
5223 done
5224 ac_cv_prog_CPP=$CPP
5225
5226fi
5227 CPP=$ac_cv_prog_CPP
5228else
5229 ac_cv_prog_CPP=$CPP
5230fi
5231{ echo "$as_me:$LINENO: result: $CPP" >&5
5232echo "${ECHO_T}$CPP" >&6; }
5233ac_preproc_ok=false
5234for ac_c_preproc_warn_flag in '' yes
5235do
5236 # Use a header file that comes with gcc, so configuring glibc
5237 # with a fresh cross-compiler works.
5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5239 # <limits.h> exists even on freestanding compilers.
5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5241 # not just through cpp. "Syntax error" is here to catch this case.
5242 cat >conftest.$ac_ext <<_ACEOF
5243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
5248#ifdef __STDC__
5249# include <limits.h>
5250#else
5251# include <assert.h>
5252#endif
5253 Syntax error
5254_ACEOF
5255if { (ac_try="$ac_cpp conftest.$ac_ext"
5256case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005267 (exit $ac_status); } >/dev/null; then
5268 if test -s conftest.err; then
5269 ac_cpp_err=$ac_c_preproc_warn_flag
5270 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5271 else
5272 ac_cpp_err=
5273 fi
5274else
5275 ac_cpp_err=yes
5276fi
5277if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005278 :
5279else
5280 echo "$as_me: failed program was:" >&5
5281sed 's/^/| /' conftest.$ac_ext >&5
5282
5283 # Broken: fails on valid input.
5284continue
5285fi
5286
5287rm -f conftest.err conftest.$ac_ext
5288
5289 # OK, works on sane cases. Now check whether nonexistent headers
5290 # can be detected and how.
5291 cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297#include <ac_nonexistent.h>
5298_ACEOF
5299if { (ac_try="$ac_cpp conftest.$ac_ext"
5300case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303esac
5304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5315 else
5316 ac_cpp_err=
5317 fi
5318else
5319 ac_cpp_err=yes
5320fi
5321if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005322 # Broken: success on invalid input.
5323continue
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 # Passes both tests.
5329ac_preproc_ok=:
5330break
5331fi
5332
5333rm -f conftest.err conftest.$ac_ext
5334
5335done
5336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5337rm -f conftest.err conftest.$ac_ext
5338if $ac_preproc_ok; then
5339 :
5340else
5341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5342See \`config.log' for more details." >&5
5343echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5344See \`config.log' for more details." >&2;}
5345 { (exit 1); exit 1; }; }
5346fi
5347
5348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353
5354ac_ext=c
5355ac_cpp='$CPP $CPPFLAGS'
5356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5358ac_compiler_gnu=$ac_cv_c_compiler_gnu
5359if test -n "$ac_tool_prefix"; then
5360 for ac_prog in gcc
5361 do
5362 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5366if test "${ac_cv_prog_CC+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005378 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 +00005379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389CC=$ac_cv_prog_CC
5390if test -n "$CC"; then
5391 { echo "$as_me:$LINENO: result: $CC" >&5
5392echo "${ECHO_T}$CC" >&6; }
5393else
5394 { echo "$as_me:$LINENO: result: no" >&5
5395echo "${ECHO_T}no" >&6; }
5396fi
5397
5398
5399 test -n "$CC" && break
5400 done
5401fi
5402if test -z "$CC"; then
5403 ac_ct_CC=$CC
5404 for ac_prog in gcc
5405do
5406 # Extract the first word of "$ac_prog", so it can be a program name with args.
5407set dummy $ac_prog; ac_word=$2
5408{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5409echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413 if test -n "$ac_ct_CC"; then
5414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5415else
5416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417for as_dir in $PATH
5418do
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005422 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 +00005423 ac_cv_prog_ac_ct_CC="$ac_prog"
5424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5426 fi
5427done
5428done
5429IFS=$as_save_IFS
5430
5431fi
5432fi
5433ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434if test -n "$ac_ct_CC"; then
5435 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5436echo "${ECHO_T}$ac_ct_CC" >&6; }
5437else
5438 { echo "$as_me:$LINENO: result: no" >&5
5439echo "${ECHO_T}no" >&6; }
5440fi
5441
5442
5443 test -n "$ac_ct_CC" && break
5444done
5445
5446 if test "x$ac_ct_CC" = x; then
5447 CC=""
5448 else
5449 case $cross_compiling:$ac_tool_warned in
5450yes:)
5451{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5452whose name does not start with the host triplet. If you think this
5453configuration is useful to you, please write to autoconf@gnu.org." >&5
5454echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5455whose name does not start with the host triplet. If you think this
5456configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5457ac_tool_warned=yes ;;
5458esac
5459 CC=$ac_ct_CC
5460 fi
5461fi
5462
5463
5464test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5465See \`config.log' for more details." >&5
5466echo "$as_me: error: no acceptable C compiler found in \$PATH
5467See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5469
5470# Provide some information about the compiler.
5471echo "$as_me:$LINENO: checking for C compiler version" >&5
5472ac_compiler=`set X $ac_compile; echo $2`
5473{ (ac_try="$ac_compiler --version >&5"
5474case "(($ac_try" in
5475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5476 *) ac_try_echo=$ac_try;;
5477esac
5478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5479 (eval "$ac_compiler --version >&5") 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }
5483{ (ac_try="$ac_compiler -v >&5"
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compiler -v >&5") 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }
5493{ (ac_try="$ac_compiler -V >&5"
5494case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compiler -V >&5") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }
5503
5504{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5505echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5506if test "${ac_cv_c_compiler_gnu+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509 cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
5516int
5517main ()
5518{
5519#ifndef __GNUC__
5520 choke me
5521#endif
5522
5523 ;
5524 return 0;
5525}
5526_ACEOF
5527rm -f conftest.$ac_objext
5528if { (ac_try="$ac_compile"
5529case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5542 { (case "(($ac_try" in
5543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544 *) ac_try_echo=$ac_try;;
5545esac
5546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547 (eval "$ac_try") 2>&5
5548 ac_status=$?
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); }; } &&
5551 { ac_try='test -s conftest.$ac_objext'
5552 { (case "(($ac_try" in
5553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554 *) ac_try_echo=$ac_try;;
5555esac
5556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557 (eval "$ac_try") 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005561 ac_compiler_gnu=yes
5562else
5563 echo "$as_me: failed program was:" >&5
5564sed 's/^/| /' conftest.$ac_ext >&5
5565
5566 ac_compiler_gnu=no
5567fi
5568
5569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5570ac_cv_c_compiler_gnu=$ac_compiler_gnu
5571
5572fi
5573{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5574echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5575GCC=`test $ac_compiler_gnu = yes && echo yes`
5576ac_test_CFLAGS=${CFLAGS+set}
5577ac_save_CFLAGS=$CFLAGS
5578{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5579echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5580if test "${ac_cv_prog_cc_g+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583 ac_save_c_werror_flag=$ac_c_werror_flag
5584 ac_c_werror_flag=yes
5585 ac_cv_prog_cc_g=no
5586 CFLAGS="-g"
5587 cat >conftest.$ac_ext <<_ACEOF
5588/* confdefs.h. */
5589_ACEOF
5590cat confdefs.h >>conftest.$ac_ext
5591cat >>conftest.$ac_ext <<_ACEOF
5592/* end confdefs.h. */
5593
5594int
5595main ()
5596{
5597
5598 ;
5599 return 0;
5600}
5601_ACEOF
5602rm -f conftest.$ac_objext
5603if { (ac_try="$ac_compile"
5604case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005615 (exit $ac_status); } &&
5616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5617 { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; } &&
5626 { ac_try='test -s conftest.$ac_objext'
5627 { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_try") 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005636 ac_cv_prog_cc_g=yes
5637else
5638 echo "$as_me: failed program was:" >&5
5639sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 CFLAGS=""
5642 cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h. */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h. */
5648
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
5658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005670 (exit $ac_status); } &&
5671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5672 { (case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675esac
5676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_try") 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest.$ac_objext'
5682 { (case "(($ac_try" in
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5685esac
5686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_try") 2>&5
5688 ac_status=$?
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005691 :
5692else
5693 echo "$as_me: failed program was:" >&5
5694sed 's/^/| /' conftest.$ac_ext >&5
5695
5696 ac_c_werror_flag=$ac_save_c_werror_flag
5697 CFLAGS="-g"
5698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704
5705int
5706main ()
5707{
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5713rm -f conftest.$ac_objext
5714if { (ac_try="$ac_compile"
5715case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compile") 2>conftest.er1
5721 ac_status=$?
5722 grep -v '^ *+' conftest.er1 >conftest.err
5723 rm -f conftest.er1
5724 cat conftest.err >&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005726 (exit $ac_status); } &&
5727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5728 { (case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731esac
5732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_try") 2>&5
5734 ac_status=$?
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }; } &&
5737 { ac_try='test -s conftest.$ac_objext'
5738 { (case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741esac
5742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_try") 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005747 ac_cv_prog_cc_g=yes
5748else
5749 echo "$as_me: failed program was:" >&5
5750sed 's/^/| /' conftest.$ac_ext >&5
5751
5752
5753fi
5754
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756fi
5757
5758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759fi
5760
5761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_c_werror_flag=$ac_save_c_werror_flag
5763fi
5764{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5765echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5766if test "$ac_test_CFLAGS" = set; then
5767 CFLAGS=$ac_save_CFLAGS
5768elif test $ac_cv_prog_cc_g = yes; then
5769 if test "$GCC" = yes; then
5770 CFLAGS="-g -O2"
5771 else
5772 CFLAGS="-g"
5773 fi
5774else
5775 if test "$GCC" = yes; then
5776 CFLAGS="-O2"
5777 else
5778 CFLAGS=
5779 fi
5780fi
5781{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5782echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5783if test "${ac_cv_prog_cc_c89+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 ac_cv_prog_cc_c89=no
5787ac_save_CC=$CC
5788cat >conftest.$ac_ext <<_ACEOF
5789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
5794#include <stdarg.h>
5795#include <stdio.h>
5796#include <sys/types.h>
5797#include <sys/stat.h>
5798/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5799struct buf { int x; };
5800FILE * (*rcsopen) (struct buf *, struct stat *, int);
5801static char *e (p, i)
5802 char **p;
5803 int i;
5804{
5805 return p[i];
5806}
5807static char *f (char * (*g) (char **, int), char **p, ...)
5808{
5809 char *s;
5810 va_list v;
5811 va_start (v,p);
5812 s = g (p, va_arg (v,int));
5813 va_end (v);
5814 return s;
5815}
5816
5817/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5818 function prototypes and stuff, but not '\xHH' hex character constants.
5819 These don't provoke an error unfortunately, instead are silently treated
5820 as 'x'. The following induces an error, until -std is added to get
5821 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5822 array size at least. It's necessary to write '\x00'==0 to get something
5823 that's true only with -std. */
5824int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5825
5826/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5827 inside strings and character constants. */
5828#define FOO(x) 'x'
5829int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5830
5831int test (int i, double x);
5832struct s1 {int (*f) (int a);};
5833struct s2 {int (*f) (double a);};
5834int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5835int argc;
5836char **argv;
5837int
5838main ()
5839{
5840return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5846 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5847do
5848 CC="$ac_save_CC $ac_arg"
5849 rm -f conftest.$ac_objext
5850if { (ac_try="$ac_compile"
5851case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005862 (exit $ac_status); } &&
5863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5864 { (case "(($ac_try" in
5865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866 *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869 (eval "$ac_try") 2>&5
5870 ac_status=$?
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (case "(($ac_try" in
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5877esac
5878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$ac_try") 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005883 ac_cv_prog_cc_c89=$ac_arg
5884else
5885 echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext
5892 test "x$ac_cv_prog_cc_c89" != "xno" && break
5893done
5894rm -f conftest.$ac_ext
5895CC=$ac_save_CC
5896
5897fi
5898# AC_CACHE_VAL
5899case "x$ac_cv_prog_cc_c89" in
5900 x)
5901 { echo "$as_me:$LINENO: result: none needed" >&5
5902echo "${ECHO_T}none needed" >&6; } ;;
5903 xno)
5904 { echo "$as_me:$LINENO: result: unsupported" >&5
5905echo "${ECHO_T}unsupported" >&6; } ;;
5906 *)
5907 CC="$CC $ac_cv_prog_cc_c89"
5908 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5909echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5910esac
5911
5912
5913ac_ext=c
5914ac_cpp='$CPP $CPPFLAGS'
5915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5917ac_compiler_gnu=$ac_cv_c_compiler_gnu
5918
5919ac_ext=cpp
5920ac_cpp='$CXXCPP $CPPFLAGS'
5921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5924if test -z "$CXX"; then
5925 if test -n "$CCC"; then
5926 CXX=$CCC
5927 else
5928 if test -n "$ac_tool_prefix"; then
5929 for ac_prog in g++
5930 do
5931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5933{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935if test "${ac_cv_prog_CXX+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5937else
5938 if test -n "$CXX"; then
5939 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5940else
5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942for as_dir in $PATH
5943do
5944 IFS=$as_save_IFS
5945 test -z "$as_dir" && as_dir=.
5946 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005947 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 +00005948 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 break 2
5951 fi
5952done
5953done
5954IFS=$as_save_IFS
5955
5956fi
5957fi
5958CXX=$ac_cv_prog_CXX
5959if test -n "$CXX"; then
5960 { echo "$as_me:$LINENO: result: $CXX" >&5
5961echo "${ECHO_T}$CXX" >&6; }
5962else
5963 { echo "$as_me:$LINENO: result: no" >&5
5964echo "${ECHO_T}no" >&6; }
5965fi
5966
5967
5968 test -n "$CXX" && break
5969 done
5970fi
5971if test -z "$CXX"; then
5972 ac_ct_CXX=$CXX
5973 for ac_prog in g++
5974do
5975 # Extract the first word of "$ac_prog", so it can be a program name with args.
5976set dummy $ac_prog; ac_word=$2
5977{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5979if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5980 echo $ECHO_N "(cached) $ECHO_C" >&6
5981else
5982 if test -n "$ac_ct_CXX"; then
5983 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5984else
5985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986for as_dir in $PATH
5987do
5988 IFS=$as_save_IFS
5989 test -z "$as_dir" && as_dir=.
5990 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005991 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 +00005992 ac_cv_prog_ac_ct_CXX="$ac_prog"
5993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 break 2
5995 fi
5996done
5997done
5998IFS=$as_save_IFS
5999
6000fi
6001fi
6002ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6003if test -n "$ac_ct_CXX"; then
6004 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6005echo "${ECHO_T}$ac_ct_CXX" >&6; }
6006else
6007 { echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6; }
6009fi
6010
6011
6012 test -n "$ac_ct_CXX" && break
6013done
6014
6015 if test "x$ac_ct_CXX" = x; then
6016 CXX="g++"
6017 else
6018 case $cross_compiling:$ac_tool_warned in
6019yes:)
6020{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6021whose name does not start with the host triplet. If you think this
6022configuration is useful to you, please write to autoconf@gnu.org." >&5
6023echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6024whose name does not start with the host triplet. If you think this
6025configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6026ac_tool_warned=yes ;;
6027esac
6028 CXX=$ac_ct_CXX
6029 fi
6030fi
6031
6032 fi
6033fi
6034# Provide some information about the compiler.
6035echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6036ac_compiler=`set X $ac_compile; echo $2`
6037{ (ac_try="$ac_compiler --version >&5"
6038case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041esac
6042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compiler --version >&5") 2>&5
6044 ac_status=$?
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); }
6047{ (ac_try="$ac_compiler -v >&5"
6048case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051esac
6052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_compiler -v >&5") 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }
6057{ (ac_try="$ac_compiler -V >&5"
6058case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_compiler -V >&5") 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }
6067
6068{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6069echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6070if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
6073 cat >conftest.$ac_ext <<_ACEOF
6074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
6079
6080int
6081main ()
6082{
6083#ifndef __GNUC__
6084 choke me
6085#endif
6086
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext
6092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6106 { (case "(($ac_try" in
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6109esac
6110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_try") 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; } &&
6115 { ac_try='test -s conftest.$ac_objext'
6116 { (case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_try") 2>&5
6122 ac_status=$?
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006125 ac_compiler_gnu=yes
6126else
6127 echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130 ac_compiler_gnu=no
6131fi
6132
6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6135
6136fi
6137{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6138echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6139GXX=`test $ac_compiler_gnu = yes && echo yes`
6140ac_test_CXXFLAGS=${CXXFLAGS+set}
6141ac_save_CXXFLAGS=$CXXFLAGS
6142{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6143echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6144if test "${ac_cv_prog_cxx_g+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6148 ac_cxx_werror_flag=yes
6149 ac_cv_prog_cxx_g=no
6150 CXXFLAGS="-g"
6151 cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h. */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h. */
6157
6158int
6159main ()
6160{
6161
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext
6167if { (ac_try="$ac_compile"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest.$ac_objext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006200 ac_cv_prog_cxx_g=yes
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 CXXFLAGS=""
6206 cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h. */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h. */
6212
6213int
6214main ()
6215{
6216
6217 ;
6218 return 0;
6219}
6220_ACEOF
6221rm -f conftest.$ac_objext
6222if { (ac_try="$ac_compile"
6223case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_compile") 2>conftest.er1
6229 ac_status=$?
6230 grep -v '^ *+' conftest.er1 >conftest.err
6231 rm -f conftest.er1
6232 cat conftest.err >&5
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006234 (exit $ac_status); } &&
6235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6236 { (case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_try") 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249esac
6250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_try") 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006255 :
6256else
6257 echo "$as_me: failed program was:" >&5
6258sed 's/^/| /' conftest.$ac_ext >&5
6259
6260 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6261 CXXFLAGS="-g"
6262 cat >conftest.$ac_ext <<_ACEOF
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
6268
6269int
6270main ()
6271{
6272
6273 ;
6274 return 0;
6275}
6276_ACEOF
6277rm -f conftest.$ac_objext
6278if { (ac_try="$ac_compile"
6279case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6292 { (case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
6296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_try") 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (case "(($ac_try" in
6303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6304 *) ac_try_echo=$ac_try;;
6305esac
6306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6307 (eval "$ac_try") 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006311 ac_cv_prog_cxx_g=yes
6312else
6313 echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6327fi
6328{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6329echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6330if test "$ac_test_CXXFLAGS" = set; then
6331 CXXFLAGS=$ac_save_CXXFLAGS
6332elif test $ac_cv_prog_cxx_g = yes; then
6333 if test "$GXX" = yes; then
6334 CXXFLAGS="-g -O2"
6335 else
6336 CXXFLAGS="-g"
6337 fi
6338else
6339 if test "$GXX" = yes; then
6340 CXXFLAGS="-O2"
6341 else
6342 CXXFLAGS=
6343 fi
6344fi
6345ac_ext=c
6346ac_cpp='$CPP $CPPFLAGS'
6347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349ac_compiler_gnu=$ac_cv_c_compiler_gnu
6350
6351{ echo "$as_me:$LINENO: checking " >&5
6352echo $ECHO_N "checking ... $ECHO_C" >&6; }
6353if test "${ac_cv_has_flex+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355else
6356 for ac_prog in flex lex
6357do
6358 # Extract the first word of "$ac_prog", so it can be a program name with args.
6359set dummy $ac_prog; ac_word=$2
6360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362if test "${ac_cv_prog_LEX+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365 if test -n "$LEX"; then
6366 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006374 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 +00006375 ac_cv_prog_LEX="$ac_prog"
6376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379done
6380done
6381IFS=$as_save_IFS
6382
6383fi
6384fi
6385LEX=$ac_cv_prog_LEX
6386if test -n "$LEX"; then
6387 { echo "$as_me:$LINENO: result: $LEX" >&5
6388echo "${ECHO_T}$LEX" >&6; }
6389else
6390 { echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6; }
6392fi
6393
6394
6395 test -n "$LEX" && break
6396done
6397test -n "$LEX" || LEX=":"
6398
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006399if test -z "$LEXLIB"
6400then
6401 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6402echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6403if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406 ac_check_lib_save_LIBS=$LIBS
6407LIBS="-lfl $LIBS"
6408cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h. */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h. */
6414
6415/* Override any GCC internal prototype to avoid an error.
6416 Use char because int might match the return type of a GCC
6417 builtin and then its argument prototype would still apply. */
6418#ifdef __cplusplus
6419extern "C"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006420#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006421char yywrap ();
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006422int
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006423main ()
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006424{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006425return yywrap ();
6426 ;
6427 return 0;
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006428}
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006429_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006430rm -f conftest.$ac_objext conftest$ac_exeext
6431if { (ac_try="$ac_link"
6432case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_link") 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
6449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_lib_fl_yywrap=yes
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469 ac_cv_lib_fl_yywrap=no
6470fi
6471
6472rm -f core conftest.err conftest.$ac_objext \
6473 conftest$ac_exeext conftest.$ac_ext
6474LIBS=$ac_check_lib_save_LIBS
6475fi
6476{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6477echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6478if test $ac_cv_lib_fl_yywrap = yes; then
6479 LEXLIB="-lfl"
6480else
6481 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6482echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6483if test "${ac_cv_lib_l_yywrap+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6485else
6486 ac_check_lib_save_LIBS=$LIBS
6487LIBS="-ll $LIBS"
6488cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h. */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */
6494
6495/* Override any GCC internal prototype to avoid an error.
6496 Use char because int might match the return type of a GCC
6497 builtin and then its argument prototype would still apply. */
6498#ifdef __cplusplus
6499extern "C"
6500#endif
6501char yywrap ();
6502int
6503main ()
6504{
6505return yywrap ();
6506 ;
6507 return 0;
6508}
6509_ACEOF
6510rm -f conftest.$ac_objext conftest$ac_exeext
6511if { (ac_try="$ac_link"
6512case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_link") 2>conftest.er1
6518 ac_status=$?
6519 grep -v '^ *+' conftest.er1 >conftest.err
6520 rm -f conftest.er1
6521 cat conftest.err >&5
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6525 { (case "(($ac_try" in
6526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6527 *) ac_try_echo=$ac_try;;
6528esac
6529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_try") 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest$ac_exeext'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 ac_cv_lib_l_yywrap=yes
6545else
6546 echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_lib_l_yywrap=no
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554LIBS=$ac_check_lib_save_LIBS
6555fi
6556{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6557echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6558if test $ac_cv_lib_l_yywrap = yes; then
6559 LEXLIB="-ll"
6560fi
6561
6562fi
6563
6564fi
6565
6566if test "x$LEX" != "x:"; then
6567 { echo "$as_me:$LINENO: checking lex output file root" >&5
6568echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6569if test "${ac_cv_prog_lex_root+set}" = set; then
6570 echo $ECHO_N "(cached) $ECHO_C" >&6
6571else
6572 # The minimal lex program is just a single line: %%. But some broken lexes
6573# (Solaris, I think it was) want two %% lines, so accommodate them.
6574cat >conftest.l <<_ACEOF
6575%%
6576%%
6577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006578{ (ac_try="$LEX conftest.l"
6579case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582esac
6583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$LEX conftest.l") 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }
6588if test -f lex.yy.c; then
6589 ac_cv_prog_lex_root=lex.yy
6590elif test -f lexyy.c; then
6591 ac_cv_prog_lex_root=lexyy
6592else
6593 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6594echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6595 { (exit 1); exit 1; }; }
6596fi
6597fi
6598{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6599echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006600rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006601LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6602
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006603{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6604echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6605if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607else
6608 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006609# default is implementation-dependent. Figure out which it is, since
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006610# not all implementations provide the %pointer and %array declarations.
6611ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006612echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006613ac_save_LIBS=$LIBS
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006614LIBS="$LIBS $LEXLIB"
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006615cat >conftest.$ac_ext <<_ACEOF
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006616`cat $LEX_OUTPUT_ROOT.c`
6617_ACEOF
6618rm -f conftest.$ac_objext conftest$ac_exeext
6619if { (ac_try="$ac_link"
6620case "(($ac_try" in
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6623esac
6624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006625 (eval "$ac_link") 2>conftest.er1
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006626 ac_status=$?
Nick Lewycky2ab1d862009-01-20 00:52:24 +00006627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633 { (case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636esac
6637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6638 (eval "$ac_try") 2>&5
6639 ac_status=$?
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); }; } &&
6642 { ac_try='test -s conftest$ac_exeext'
6643 { (case "(($ac_try" in
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6646esac
6647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6649 ac_status=$?
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006652 ac_cv_prog_lex_yytext_pointer=yes
6653else
6654 echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657
6658fi
6659
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006660rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006661 conftest$ac_exeext conftest.$ac_ext
6662LIBS=$ac_save_LIBS
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006663rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006664
6665fi
6666{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6667echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6668if test $ac_cv_prog_lex_yytext_pointer = yes; then
6669
6670cat >>confdefs.h <<\_ACEOF
6671#define YYTEXT_POINTER 1
6672_ACEOF
6673
6674fi
6675
6676fi
6677
6678fi
6679{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6680echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6681if test "$LEX" != "flex"; then
6682 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6683echo "$as_me: error: flex not found but required" >&2;}
6684 { (exit 1); exit 1; }; }
6685else
6686 FLEX=flex
6687
6688fi
6689
6690{ echo "$as_me:$LINENO: checking " >&5
6691echo $ECHO_N "checking ... $ECHO_C" >&6; }
6692if test "${llvm_cv_has_bison+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694else
6695 for ac_prog in 'bison -y' byacc
6696do
6697 # Extract the first word of "$ac_prog", so it can be a program name with args.
6698set dummy $ac_prog; ac_word=$2
6699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6701if test "${ac_cv_prog_YACC+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703else
6704 if test -n "$YACC"; then
6705 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006713 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 +00006714 ac_cv_prog_YACC="$ac_prog"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724YACC=$ac_cv_prog_YACC
6725if test -n "$YACC"; then
6726 { echo "$as_me:$LINENO: result: $YACC" >&5
6727echo "${ECHO_T}$YACC" >&6; }
6728else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
6731fi
6732
6733
6734 test -n "$YACC" && break
6735done
6736test -n "$YACC" || YACC="yacc"
6737
6738fi
6739{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6740echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6741if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006742
6743 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6744echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006745else
6746 BISON=bison
6747
6748fi
6749
6750{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6751echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6752if test "${lt_cv_path_NM+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755 if test -n "$NM"; then
6756 # Let the user override the test.
6757 lt_cv_path_NM="$NM"
6758else
6759 lt_nm_to_check="${ac_tool_prefix}nm"
6760 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6761 lt_nm_to_check="$lt_nm_to_check nm"
6762 fi
6763 for lt_tmp_nm in $lt_nm_to_check; do
6764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6765 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6766 IFS="$lt_save_ifs"
6767 test -z "$ac_dir" && ac_dir=.
6768 tmp_nm="$ac_dir/$lt_tmp_nm"
6769 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6770 # Check to see if the nm accepts a BSD-compat flag.
6771 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6772 # nm: unknown option "B" ignored
6773 # Tru64's nm complains that /dev/null is an invalid object file
6774 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6775 */dev/null* | *'Invalid file or object type'*)
6776 lt_cv_path_NM="$tmp_nm -B"
6777 break
6778 ;;
6779 *)
6780 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6781 */dev/null*)
6782 lt_cv_path_NM="$tmp_nm -p"
6783 break
6784 ;;
6785 *)
6786 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6787 continue # so that we can try to find one that supports BSD flags
6788 ;;
6789 esac
6790 ;;
6791 esac
6792 fi
6793 done
6794 IFS="$lt_save_ifs"
6795 done
6796 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6797fi
6798fi
6799{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6800echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6801NM="$lt_cv_path_NM"
6802
6803
6804
6805{ echo "$as_me:$LINENO: checking for GNU make" >&5
6806echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6807if test "${llvm_cv_gnu_make_command+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809else
6810 llvm_cv_gnu_make_command=''
6811 for a in "$MAKE" make gmake gnumake ; do
6812 if test -z "$a" ; then continue ; fi ;
6813 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6814 then
6815 llvm_cv_gnu_make_command=$a ;
6816 break;
6817 fi
6818 done
6819fi
6820{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6821echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6822 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6823 ifGNUmake='' ;
6824 else
6825 ifGNUmake='#' ;
6826 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6827echo "${ECHO_T}\"Not found\"" >&6; };
6828 fi
6829
6830
6831{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6832echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6833LN_S=$as_ln_s
6834if test "$LN_S" = "ln -s"; then
6835 { echo "$as_me:$LINENO: result: yes" >&5
6836echo "${ECHO_T}yes" >&6; }
6837else
6838 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6839echo "${ECHO_T}no, using $LN_S" >&6; }
6840fi
6841
6842# Extract the first word of "cmp", so it can be a program name with args.
6843set dummy cmp; ac_word=$2
6844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846if test "${ac_cv_path_CMP+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6848else
6849 case $CMP in
6850 [\\/]* | ?:[\\/]*)
6851 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6852 ;;
6853 *)
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006860 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 +00006861 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867IFS=$as_save_IFS
6868
6869 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6870 ;;
6871esac
6872fi
6873CMP=$ac_cv_path_CMP
6874if test -n "$CMP"; then
6875 { echo "$as_me:$LINENO: result: $CMP" >&5
6876echo "${ECHO_T}$CMP" >&6; }
6877else
6878 { echo "$as_me:$LINENO: result: no" >&5
6879echo "${ECHO_T}no" >&6; }
6880fi
6881
6882
6883# Extract the first word of "cp", so it can be a program name with args.
6884set dummy cp; ac_word=$2
6885{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887if test "${ac_cv_path_CP+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6889else
6890 case $CP in
6891 [\\/]* | ?:[\\/]*)
6892 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6893 ;;
6894 *)
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006901 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 +00006902 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906done
6907done
6908IFS=$as_save_IFS
6909
6910 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6911 ;;
6912esac
6913fi
6914CP=$ac_cv_path_CP
6915if test -n "$CP"; then
6916 { echo "$as_me:$LINENO: result: $CP" >&5
6917echo "${ECHO_T}$CP" >&6; }
6918else
6919 { echo "$as_me:$LINENO: result: no" >&5
6920echo "${ECHO_T}no" >&6; }
6921fi
6922
6923
6924# Extract the first word of "date", so it can be a program name with args.
6925set dummy date; ac_word=$2
6926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928if test "${ac_cv_path_DATE+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930else
6931 case $DATE in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6934 ;;
6935 *)
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937for as_dir in $PATH
6938do
6939 IFS=$as_save_IFS
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006942 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 +00006943 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 break 2
6946 fi
6947done
6948done
6949IFS=$as_save_IFS
6950
6951 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6952 ;;
6953esac
6954fi
6955DATE=$ac_cv_path_DATE
6956if test -n "$DATE"; then
6957 { echo "$as_me:$LINENO: result: $DATE" >&5
6958echo "${ECHO_T}$DATE" >&6; }
6959else
6960 { echo "$as_me:$LINENO: result: no" >&5
6961echo "${ECHO_T}no" >&6; }
6962fi
6963
6964
6965# Extract the first word of "find", so it can be a program name with args.
6966set dummy find; ac_word=$2
6967{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969if test "${ac_cv_path_FIND+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972 case $FIND in
6973 [\\/]* | ?:[\\/]*)
6974 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6975 ;;
6976 *)
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978for as_dir in $PATH
6979do
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006983 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 +00006984 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6987 fi
6988done
6989done
6990IFS=$as_save_IFS
6991
6992 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6993 ;;
6994esac
6995fi
6996FIND=$ac_cv_path_FIND
6997if test -n "$FIND"; then
6998 { echo "$as_me:$LINENO: result: $FIND" >&5
6999echo "${ECHO_T}$FIND" >&6; }
7000else
7001 { echo "$as_me:$LINENO: result: no" >&5
7002echo "${ECHO_T}no" >&6; }
7003fi
7004
7005
7006# Extract the first word of "grep", so it can be a program name with args.
7007set dummy grep; ac_word=$2
7008{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010if test "${ac_cv_path_GREP+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013 case $GREP in
7014 [\\/]* | ?:[\\/]*)
7015 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
7016 ;;
7017 *)
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007024 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 +00007025 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
7026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7034 ;;
7035esac
7036fi
7037GREP=$ac_cv_path_GREP
7038if test -n "$GREP"; then
7039 { echo "$as_me:$LINENO: result: $GREP" >&5
7040echo "${ECHO_T}$GREP" >&6; }
7041else
7042 { echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6; }
7044fi
7045
7046
7047# Extract the first word of "mkdir", so it can be a program name with args.
7048set dummy mkdir; ac_word=$2
7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_MKDIR+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 case $MKDIR in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7057 ;;
7058 *)
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007065 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 +00007066 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070done
7071done
7072IFS=$as_save_IFS
7073
7074 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7075 ;;
7076esac
7077fi
7078MKDIR=$ac_cv_path_MKDIR
7079if test -n "$MKDIR"; then
7080 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7081echo "${ECHO_T}$MKDIR" >&6; }
7082else
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
7085fi
7086
7087
7088# Extract the first word of "mv", so it can be a program name with args.
7089set dummy mv; ac_word=$2
7090{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7092if test "${ac_cv_path_MV+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095 case $MV in
7096 [\\/]* | ?:[\\/]*)
7097 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7098 ;;
7099 *)
7100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101for as_dir in $PATH
7102do
7103 IFS=$as_save_IFS
7104 test -z "$as_dir" && as_dir=.
7105 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007106 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 +00007107 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7109 break 2
7110 fi
7111done
7112done
7113IFS=$as_save_IFS
7114
7115 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7116 ;;
7117esac
7118fi
7119MV=$ac_cv_path_MV
7120if test -n "$MV"; then
7121 { echo "$as_me:$LINENO: result: $MV" >&5
7122echo "${ECHO_T}$MV" >&6; }
7123else
7124 { echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6; }
7126fi
7127
7128
7129if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7131set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7132{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134if test "${ac_cv_prog_RANLIB+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137 if test -n "$RANLIB"; then
7138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7139else
7140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141for as_dir in $PATH
7142do
7143 IFS=$as_save_IFS
7144 test -z "$as_dir" && as_dir=.
7145 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007146 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 +00007147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7149 break 2
7150 fi
7151done
7152done
7153IFS=$as_save_IFS
7154
7155fi
7156fi
7157RANLIB=$ac_cv_prog_RANLIB
7158if test -n "$RANLIB"; then
7159 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7160echo "${ECHO_T}$RANLIB" >&6; }
7161else
7162 { echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6; }
7164fi
7165
7166
7167fi
7168if test -z "$ac_cv_prog_RANLIB"; then
7169 ac_ct_RANLIB=$RANLIB
7170 # Extract the first word of "ranlib", so it can be a program name with args.
7171set dummy ranlib; ac_word=$2
7172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7176else
7177 if test -n "$ac_ct_RANLIB"; then
7178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7179else
7180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181for as_dir in $PATH
7182do
7183 IFS=$as_save_IFS
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007186 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 +00007187 ac_cv_prog_ac_ct_RANLIB="ranlib"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 break 2
7190 fi
7191done
7192done
7193IFS=$as_save_IFS
7194
7195fi
7196fi
7197ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7198if test -n "$ac_ct_RANLIB"; then
7199 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7200echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7201else
7202 { echo "$as_me:$LINENO: result: no" >&5
7203echo "${ECHO_T}no" >&6; }
7204fi
7205
7206 if test "x$ac_ct_RANLIB" = x; then
7207 RANLIB=":"
7208 else
7209 case $cross_compiling:$ac_tool_warned in
7210yes:)
7211{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212whose name does not start with the host triplet. If you think this
7213configuration is useful to you, please write to autoconf@gnu.org." >&5
7214echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215whose name does not start with the host triplet. If you think this
7216configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217ac_tool_warned=yes ;;
7218esac
7219 RANLIB=$ac_ct_RANLIB
7220 fi
7221else
7222 RANLIB="$ac_cv_prog_RANLIB"
7223fi
7224
7225# Extract the first word of "rm", so it can be a program name with args.
7226set dummy rm; ac_word=$2
7227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229if test "${ac_cv_path_RM+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232 case $RM in
7233 [\\/]* | ?:[\\/]*)
7234 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7235 ;;
7236 *)
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in $PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007243 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 +00007244 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246 break 2
7247 fi
7248done
7249done
7250IFS=$as_save_IFS
7251
7252 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7253 ;;
7254esac
7255fi
7256RM=$ac_cv_path_RM
7257if test -n "$RM"; then
7258 { echo "$as_me:$LINENO: result: $RM" >&5
7259echo "${ECHO_T}$RM" >&6; }
7260else
7261 { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265
7266# Extract the first word of "sed", so it can be a program name with args.
7267set dummy sed; ac_word=$2
7268{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270if test "${ac_cv_path_SED+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 case $SED in
7274 [\\/]* | ?:[\\/]*)
7275 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7276 ;;
7277 *)
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279for as_dir in $PATH
7280do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007284 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 +00007285 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289done
7290done
7291IFS=$as_save_IFS
7292
7293 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7294 ;;
7295esac
7296fi
7297SED=$ac_cv_path_SED
7298if test -n "$SED"; then
7299 { echo "$as_me:$LINENO: result: $SED" >&5
7300echo "${ECHO_T}$SED" >&6; }
7301else
7302 { echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6; }
7304fi
7305
7306
7307# Extract the first word of "tar", so it can be a program name with args.
7308set dummy tar; ac_word=$2
7309{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311if test "${ac_cv_path_TAR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7313else
7314 case $TAR in
7315 [\\/]* | ?:[\\/]*)
7316 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7317 ;;
7318 *)
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320for as_dir in $PATH
7321do
7322 IFS=$as_save_IFS
7323 test -z "$as_dir" && as_dir=.
7324 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007325 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 +00007326 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7328 break 2
7329 fi
7330done
7331done
7332IFS=$as_save_IFS
7333
7334 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7335 ;;
7336esac
7337fi
7338TAR=$ac_cv_path_TAR
7339if test -n "$TAR"; then
7340 { echo "$as_me:$LINENO: result: $TAR" >&5
7341echo "${ECHO_T}$TAR" >&6; }
7342else
7343 { echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6; }
7345fi
7346
7347
7348# Extract the first word of "pwd", so it can be a program name with args.
7349set dummy pwd; ac_word=$2
7350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352if test "${ac_cv_path_BINPWD+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 case $BINPWD in
7356 [\\/]* | ?:[\\/]*)
7357 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7358 ;;
7359 *)
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007366 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 +00007367 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 break 2
7370 fi
7371done
7372done
7373IFS=$as_save_IFS
7374
7375 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7376 ;;
7377esac
7378fi
7379BINPWD=$ac_cv_path_BINPWD
7380if test -n "$BINPWD"; then
7381 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382echo "${ECHO_T}$BINPWD" >&6; }
7383else
7384 { echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6; }
7386fi
7387
7388
7389
7390# Extract the first word of "Graphviz", so it can be a program name with args.
7391set dummy Graphviz; ac_word=$2
7392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396else
7397 case $GRAPHVIZ in
7398 [\\/]* | ?:[\\/]*)
7399 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7400 ;;
7401 *)
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403for as_dir in $PATH
7404do
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007408 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 +00007409 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7412 fi
7413done
7414done
7415IFS=$as_save_IFS
7416
7417 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7418 ;;
7419esac
7420fi
7421GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7422if test -n "$GRAPHVIZ"; then
7423 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424echo "${ECHO_T}$GRAPHVIZ" >&6; }
7425else
7426 { echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6; }
7428fi
7429
7430
7431if test "$GRAPHVIZ" != "echo Graphviz" ; then
7432
7433cat >>confdefs.h <<\_ACEOF
7434#define HAVE_GRAPHVIZ 1
7435_ACEOF
7436
Jeff Cohen28783c32007-01-12 18:22:38 +00007437 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007438 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7439 fi
7440
7441cat >>confdefs.h <<_ACEOF
7442#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7443_ACEOF
7444
7445fi
7446# Extract the first word of "dot", so it can be a program name with args.
7447set dummy dot; ac_word=$2
7448{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450if test "${ac_cv_path_DOT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 case $DOT in
7454 [\\/]* | ?:[\\/]*)
7455 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7456 ;;
7457 *)
7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459for as_dir in $PATH
7460do
7461 IFS=$as_save_IFS
7462 test -z "$as_dir" && as_dir=.
7463 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007464 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 +00007465 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7467 break 2
7468 fi
7469done
7470done
7471IFS=$as_save_IFS
7472
7473 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7474 ;;
7475esac
7476fi
7477DOT=$ac_cv_path_DOT
7478if test -n "$DOT"; then
7479 { echo "$as_me:$LINENO: result: $DOT" >&5
7480echo "${ECHO_T}$DOT" >&6; }
7481else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487if test "$DOT" != "echo dot" ; then
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define HAVE_DOT 1
7491_ACEOF
7492
Jeff Cohen28783c32007-01-12 18:22:38 +00007493 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007494 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7495 fi
7496
7497cat >>confdefs.h <<_ACEOF
7498#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7499_ACEOF
7500
7501fi
7502for ac_prog in gv gsview32
7503do
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505set dummy $ac_prog; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_GV+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $GV in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007522 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 +00007523 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531 ;;
7532esac
7533fi
7534GV=$ac_cv_path_GV
7535if test -n "$GV"; then
7536 { echo "$as_me:$LINENO: result: $GV" >&5
7537echo "${ECHO_T}$GV" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544 test -n "$GV" && break
7545done
7546test -n "$GV" || GV="echo gv"
7547
7548if test "$GV" != "echo gv" ; then
7549
7550cat >>confdefs.h <<\_ACEOF
7551#define HAVE_GV 1
7552_ACEOF
7553
Jeff Cohen28783c32007-01-12 18:22:38 +00007554 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007555 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7556 fi
7557
7558cat >>confdefs.h <<_ACEOF
7559#define LLVM_PATH_GV "$GV${EXEEXT}"
7560_ACEOF
7561
7562fi
7563# Extract the first word of "dotty", so it can be a program name with args.
7564set dummy dotty; ac_word=$2
7565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7567if test "${ac_cv_path_DOTTY+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570 case $DOTTY in
7571 [\\/]* | ?:[\\/]*)
7572 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7573 ;;
7574 *)
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576for as_dir in $PATH
7577do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007581 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 +00007582 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586done
7587done
7588IFS=$as_save_IFS
7589
7590 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7591 ;;
7592esac
7593fi
7594DOTTY=$ac_cv_path_DOTTY
7595if test -n "$DOTTY"; then
7596 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7597echo "${ECHO_T}$DOTTY" >&6; }
7598else
7599 { echo "$as_me:$LINENO: result: no" >&5
7600echo "${ECHO_T}no" >&6; }
7601fi
7602
7603
7604if test "$DOTTY" != "echo dotty" ; then
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_DOTTY 1
7608_ACEOF
7609
Jeff Cohen28783c32007-01-12 18:22:38 +00007610 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007611 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7612 fi
7613
7614cat >>confdefs.h <<_ACEOF
7615#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7616_ACEOF
7617
7618fi
7619
7620
7621# Extract the first word of "perl", so it can be a program name with args.
7622set dummy perl; ac_word=$2
7623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7625if test "${ac_cv_path_PERL+set}" = set; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 case $PERL in
7629 [\\/]* | ?:[\\/]*)
7630 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7631 ;;
7632 *)
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007640 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645done
7646IFS=$as_save_IFS
7647
7648 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7649 ;;
7650esac
7651fi
7652PERL=$ac_cv_path_PERL
7653if test -n "$PERL"; then
7654 { echo "$as_me:$LINENO: result: $PERL" >&5
7655echo "${ECHO_T}$PERL" >&6; }
7656else
7657 { echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6; }
7659fi
7660
7661
7662if test "$PERL" != "none"; then
7663 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7664echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7665 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7666 { echo "$as_me:$LINENO: result: yes" >&5
7667echo "${ECHO_T}yes" >&6; }
7668 else
7669 PERL=none
7670 { echo "$as_me:$LINENO: result: not found" >&5
7671echo "${ECHO_T}not found" >&6; }
7672 fi
7673fi
7674
7675
7676if test x"$PERL" = xnone; then
7677 HAVE_PERL=0
7678
Reid Spencer59807fa2007-05-17 18:11:03 +00007679 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7680echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7681 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007682else
7683 HAVE_PERL=1
7684
7685fi
7686
7687# Find a good install program. We prefer a C program (faster),
7688# so one script is as good as another. But avoid the broken or
7689# incompatible versions:
7690# SysV /etc/install, /usr/sbin/install
7691# SunOS /usr/etc/install
7692# IRIX /sbin/install
7693# AIX /bin/install
7694# AmigaOS /C/install, which installs bootblocks on floppy discs
7695# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7696# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7697# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7698# OS/2's system install, which has a completely different semantic
7699# ./install, which can be erroneously created by make from ./install.sh.
7700{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7701echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7702if test -z "$INSTALL"; then
7703if test "${ac_cv_path_install+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 # Account for people who put trailing slashes in PATH elements.
7712case $as_dir/ in
7713 ./ | .// | /cC/* | \
7714 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7715 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7716 /usr/ucb/* ) ;;
7717 *)
7718 # OSF1 and SCO ODT 3.0 have their own names for install.
7719 # Don't use installbsd from OSF since it installs stuff as root
7720 # by default.
7721 for ac_prog in ginstall scoinst install; do
7722 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007723 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 +00007724 if test $ac_prog = install &&
7725 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7726 # AIX install. It has an incompatible calling convention.
7727 :
7728 elif test $ac_prog = install &&
7729 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7730 # program-specific install script used by HP pwplus--don't use.
7731 :
7732 else
7733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7734 break 3
7735 fi
7736 fi
7737 done
7738 done
7739 ;;
7740esac
7741done
7742IFS=$as_save_IFS
7743
7744
7745fi
7746 if test "${ac_cv_path_install+set}" = set; then
7747 INSTALL=$ac_cv_path_install
7748 else
7749 # As a last resort, use the slow shell script. Don't cache a
7750 # value for INSTALL within a source directory, because that will
7751 # break other packages using the cache if that directory is
7752 # removed, or if the value is a relative name.
7753 INSTALL=$ac_install_sh
7754 fi
7755fi
7756{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7757echo "${ECHO_T}$INSTALL" >&6; }
7758
7759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7760# It thinks the first close brace ends the variable substitution.
7761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7762
7763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7764
7765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7766
7767
7768# Extract the first word of "bzip2", so it can be a program name with args.
7769set dummy bzip2; ac_word=$2
7770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772if test "${ac_cv_path_BZIP2+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775 case $BZIP2 in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007786 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 +00007787 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792done
7793IFS=$as_save_IFS
7794
Reid Spencera773bd52006-08-04 18:18:08 +00007795 ;;
7796esac
7797fi
7798BZIP2=$ac_cv_path_BZIP2
7799if test -n "$BZIP2"; then
7800 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7801echo "${ECHO_T}$BZIP2" >&6; }
7802else
7803 { echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6; }
7805fi
7806
7807
7808# Extract the first word of "doxygen", so it can be a program name with args.
7809set dummy doxygen; ac_word=$2
7810{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7812if test "${ac_cv_path_DOXYGEN+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815 case $DOXYGEN in
7816 [\\/]* | ?:[\\/]*)
7817 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7818 ;;
7819 *)
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007826 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 +00007827 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832done
7833IFS=$as_save_IFS
7834
Reid Spencera773bd52006-08-04 18:18:08 +00007835 ;;
7836esac
7837fi
7838DOXYGEN=$ac_cv_path_DOXYGEN
7839if test -n "$DOXYGEN"; then
7840 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7841echo "${ECHO_T}$DOXYGEN" >&6; }
7842else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844echo "${ECHO_T}no" >&6; }
7845fi
7846
7847
Reid Spencera773bd52006-08-04 18:18:08 +00007848# Extract the first word of "groff", so it can be a program name with args.
7849set dummy groff; ac_word=$2
7850{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7852if test "${ac_cv_path_GROFF+set}" = set; then
7853 echo $ECHO_N "(cached) $ECHO_C" >&6
7854else
7855 case $GROFF in
7856 [\\/]* | ?:[\\/]*)
7857 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7858 ;;
7859 *)
7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007866 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 +00007867 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872done
7873IFS=$as_save_IFS
7874
Reid Spencera773bd52006-08-04 18:18:08 +00007875 ;;
7876esac
7877fi
7878GROFF=$ac_cv_path_GROFF
7879if test -n "$GROFF"; then
7880 { echo "$as_me:$LINENO: result: $GROFF" >&5
7881echo "${ECHO_T}$GROFF" >&6; }
7882else
7883 { echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6; }
7885fi
7886
7887
7888# Extract the first word of "gzip", so it can be a program name with args.
7889set dummy gzip; ac_word=$2
7890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7892if test "${ac_cv_path_GZIP+set}" = set; then
7893 echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895 case $GZIP in
7896 [\\/]* | ?:[\\/]*)
7897 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7898 ;;
7899 *)
7900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7901for as_dir in $PATH
7902do
7903 IFS=$as_save_IFS
7904 test -z "$as_dir" && as_dir=.
7905 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007906 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 +00007907 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7909 break 2
7910 fi
7911done
7912done
7913IFS=$as_save_IFS
7914
Reid Spencera773bd52006-08-04 18:18:08 +00007915 ;;
7916esac
7917fi
7918GZIP=$ac_cv_path_GZIP
7919if test -n "$GZIP"; then
7920 { echo "$as_me:$LINENO: result: $GZIP" >&5
7921echo "${ECHO_T}$GZIP" >&6; }
7922else
7923 { echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6; }
7925fi
7926
7927
7928# Extract the first word of "pod2html", so it can be a program name with args.
7929set dummy pod2html; ac_word=$2
7930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7932if test "${ac_cv_path_POD2HTML+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7934else
7935 case $POD2HTML in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7938 ;;
7939 *)
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007946 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 +00007947 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7950 fi
7951done
7952done
7953IFS=$as_save_IFS
7954
Reid Spencera773bd52006-08-04 18:18:08 +00007955 ;;
7956esac
7957fi
7958POD2HTML=$ac_cv_path_POD2HTML
7959if test -n "$POD2HTML"; then
7960 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7961echo "${ECHO_T}$POD2HTML" >&6; }
7962else
7963 { echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6; }
7965fi
7966
7967
7968# Extract the first word of "pod2man", so it can be a program name with args.
7969set dummy pod2man; ac_word=$2
7970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7972if test "${ac_cv_path_POD2MAN+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 case $POD2MAN in
7976 [\\/]* | ?:[\\/]*)
7977 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7978 ;;
7979 *)
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007986 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 +00007987 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7990 fi
7991done
7992done
7993IFS=$as_save_IFS
7994
Reid Spencera773bd52006-08-04 18:18:08 +00007995 ;;
7996esac
7997fi
7998POD2MAN=$ac_cv_path_POD2MAN
7999if test -n "$POD2MAN"; then
8000 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8001echo "${ECHO_T}$POD2MAN" >&6; }
8002else
8003 { echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6; }
8005fi
8006
8007
8008# Extract the first word of "runtest", so it can be a program name with args.
8009set dummy runtest; ac_word=$2
8010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012if test "${ac_cv_path_RUNTEST+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 case $RUNTEST in
8016 [\\/]* | ?:[\\/]*)
8017 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8018 ;;
8019 *)
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
8025 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008026 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 +00008027 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 break 2
8030 fi
8031done
8032done
8033IFS=$as_save_IFS
8034
Reid Spencera773bd52006-08-04 18:18:08 +00008035 ;;
8036esac
8037fi
8038RUNTEST=$ac_cv_path_RUNTEST
8039if test -n "$RUNTEST"; then
8040 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8041echo "${ECHO_T}$RUNTEST" >&6; }
8042else
8043 { echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6; }
8045fi
8046
8047
8048
8049no_itcl=true
8050{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8051echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8052
8053# Check whether --with-tclinclude was given.
8054if test "${with_tclinclude+set}" = set; then
8055 withval=$with_tclinclude; with_tclinclude=${withval}
8056else
8057 with_tclinclude=''
8058fi
8059
8060if test "${ac_cv_path_tclsh+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8062else
8063
8064if test x"${with_tclinclude}" != x ; then
8065 if test -f ${with_tclinclude}/tclsh ; then
8066 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8067 elif test -f ${with_tclinclude}/src/tclsh ; then
8068 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8069 else
8070 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8071echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8072 { (exit 1); exit 1; }; }
8073 fi
8074fi
8075
8076if test x"${ac_cv_path_tclsh}" = x ; then
8077 { echo "$as_me:$LINENO: result: none" >&5
8078echo "${ECHO_T}none" >&6; }
8079 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
8080do
8081 # Extract the first word of "$ac_prog", so it can be a program name with args.
8082set dummy $ac_prog; ac_word=$2
8083{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8085if test "${ac_cv_path_TCLSH+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 case $TCLSH in
8089 [\\/]* | ?:[\\/]*)
8090 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8091 ;;
8092 *)
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008099 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 +00008100 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8103 fi
8104done
8105done
8106IFS=$as_save_IFS
8107
8108 ;;
8109esac
8110fi
8111TCLSH=$ac_cv_path_TCLSH
8112if test -n "$TCLSH"; then
8113 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8114echo "${ECHO_T}$TCLSH" >&6; }
8115else
8116 { echo "$as_me:$LINENO: result: no" >&5
8117echo "${ECHO_T}no" >&6; }
8118fi
8119
8120
8121 test -n "$TCLSH" && break
8122done
8123
8124 if test x"${TCLSH}" = x ; then
8125 ac_cv_path_tclsh='';
8126 else
8127 ac_cv_path_tclsh="${TCLSH}";
8128 fi
8129else
8130 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8131echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8132 TCLSH="${ac_cv_path_tclsh}"
8133
8134fi
8135
8136fi
8137
8138# Extract the first word of "zip", so it can be a program name with args.
8139set dummy zip; ac_word=$2
8140{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8142if test "${ac_cv_path_ZIP+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8144else
8145 case $ZIP in
8146 [\\/]* | ?:[\\/]*)
8147 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8148 ;;
8149 *)
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008156 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 +00008157 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8160 fi
8161done
8162done
8163IFS=$as_save_IFS
8164
Reid Spencera773bd52006-08-04 18:18:08 +00008165 ;;
8166esac
8167fi
8168ZIP=$ac_cv_path_ZIP
8169if test -n "$ZIP"; then
8170 { echo "$as_me:$LINENO: result: $ZIP" >&5
8171echo "${ECHO_T}$ZIP" >&6; }
8172else
8173 { echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6; }
8175fi
8176
8177
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008178for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008179do
8180 # Extract the first word of "$ac_prog", so it can be a program name with args.
8181set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8184if test "${ac_cv_path_OCAMLC+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 case $OCAMLC in
8188 [\\/]* | ?:[\\/]*)
8189 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8190 ;;
8191 *)
8192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193for as_dir in $PATH
8194do
8195 IFS=$as_save_IFS
8196 test -z "$as_dir" && as_dir=.
8197 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008198 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 +00008199 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 break 2
8202 fi
8203done
8204done
8205IFS=$as_save_IFS
8206
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008207 ;;
8208esac
8209fi
8210OCAMLC=$ac_cv_path_OCAMLC
8211if test -n "$OCAMLC"; then
8212 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8213echo "${ECHO_T}$OCAMLC" >&6; }
8214else
8215 { echo "$as_me:$LINENO: result: no" >&5
8216echo "${ECHO_T}no" >&6; }
8217fi
8218
8219
Gordon Henriksene7072162008-03-07 18:20:01 +00008220 test -n "$OCAMLC" && break
8221done
8222
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008223for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008224do
8225 # Extract the first word of "$ac_prog", so it can be a program name with args.
8226set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8231else
8232 case $OCAMLOPT in
8233 [\\/]* | ?:[\\/]*)
8234 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8235 ;;
8236 *)
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238for as_dir in $PATH
8239do
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008243 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 +00008244 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8247 fi
8248done
8249done
8250IFS=$as_save_IFS
8251
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008252 ;;
8253esac
8254fi
8255OCAMLOPT=$ac_cv_path_OCAMLOPT
8256if test -n "$OCAMLOPT"; then
8257 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8258echo "${ECHO_T}$OCAMLOPT" >&6; }
8259else
8260 { echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6; }
8262fi
8263
8264
Gordon Henriksene7072162008-03-07 18:20:01 +00008265 test -n "$OCAMLOPT" && break
8266done
8267
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008268for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008269do
8270 # Extract the first word of "$ac_prog", so it can be a program name with args.
8271set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8274if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276else
8277 case $OCAMLDEP in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8280 ;;
8281 *)
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008288 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 +00008289 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8292 fi
8293done
8294done
8295IFS=$as_save_IFS
8296
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008297 ;;
8298esac
8299fi
8300OCAMLDEP=$ac_cv_path_OCAMLDEP
8301if test -n "$OCAMLDEP"; then
8302 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8303echo "${ECHO_T}$OCAMLDEP" >&6; }
8304else
8305 { echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6; }
8307fi
8308
8309
Gordon Henriksene7072162008-03-07 18:20:01 +00008310 test -n "$OCAMLDEP" && break
8311done
8312
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008313for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008314do
8315 # Extract the first word of "$ac_prog", so it can be a program name with args.
8316set dummy $ac_prog; ac_word=$2
8317{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8318echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8319if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8320 echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322 case $OCAMLDOC in
8323 [\\/]* | ?:[\\/]*)
8324 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8325 ;;
8326 *)
8327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328for as_dir in $PATH
8329do
8330 IFS=$as_save_IFS
8331 test -z "$as_dir" && as_dir=.
8332 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008333 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 +00008334 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 break 2
8337 fi
8338done
8339done
8340IFS=$as_save_IFS
8341
8342 ;;
8343esac
8344fi
8345OCAMLDOC=$ac_cv_path_OCAMLDOC
8346if test -n "$OCAMLDOC"; then
8347 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8348echo "${ECHO_T}$OCAMLDOC" >&6; }
8349else
8350 { echo "$as_me:$LINENO: result: no" >&5
8351echo "${ECHO_T}no" >&6; }
8352fi
8353
8354
8355 test -n "$OCAMLDOC" && break
8356done
8357
Torok Edwincc499a42008-10-22 09:56:27 +00008358for ac_prog in gas as
8359do
8360 # Extract the first word of "$ac_prog", so it can be a program name with args.
8361set dummy $ac_prog; ac_word=$2
8362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8364if test "${ac_cv_path_GAS+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 case $GAS in
8368 [\\/]* | ?:[\\/]*)
8369 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8370 ;;
8371 *)
8372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8373for as_dir in $PATH
8374do
8375 IFS=$as_save_IFS
8376 test -z "$as_dir" && as_dir=.
8377 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008378 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 +00008379 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 break 2
8382 fi
8383done
8384done
8385IFS=$as_save_IFS
8386
8387 ;;
8388esac
8389fi
8390GAS=$ac_cv_path_GAS
8391if test -n "$GAS"; then
8392 { echo "$as_me:$LINENO: result: $GAS" >&5
8393echo "${ECHO_T}$GAS" >&6; }
8394else
8395 { echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6; }
8397fi
8398
8399
8400 test -n "$GAS" && break
8401done
8402
Reid Spencera773bd52006-08-04 18:18:08 +00008403
8404{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8405echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8406if test "${llvm_cv_link_use_r+set}" = set; then
8407 echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409 ac_ext=c
8410ac_cpp='$CPP $CPPFLAGS'
8411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8413ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414
8415 oldcflags="$CFLAGS"
8416 CFLAGS="$CFLAGS -Wl,-R."
8417 cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423
8424int
8425main ()
8426{
8427int main() { return 0; }
8428 ;
8429 return 0;
8430}
8431_ACEOF
8432rm -f conftest.$ac_objext conftest$ac_exeext
8433if { (ac_try="$ac_link"
8434case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8437esac
8438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_link") 2>conftest.er1
8440 ac_status=$?
8441 grep -v '^ *+' conftest.er1 >conftest.err
8442 rm -f conftest.er1
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8450esac
8451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460esac
8461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8463 ac_status=$?
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008466 llvm_cv_link_use_r=yes
8467else
8468 echo "$as_me: failed program was:" >&5
8469sed 's/^/| /' conftest.$ac_ext >&5
8470
8471 llvm_cv_link_use_r=no
8472fi
8473
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008474rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008475 conftest$ac_exeext conftest.$ac_ext
8476 CFLAGS="$oldcflags"
8477 ac_ext=c
8478ac_cpp='$CPP $CPPFLAGS'
8479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483
8484fi
8485{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8486echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8487if test "$llvm_cv_link_use_r" = yes ; then
8488
8489cat >>confdefs.h <<\_ACEOF
8490#define HAVE_LINK_R 1
8491_ACEOF
8492
8493 fi
8494
8495
8496
8497
8498{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8499echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8500if test "${ac_cv_c_const+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h. */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h. */
8509
8510int
8511main ()
8512{
8513/* FIXME: Include the comments suggested by Paul. */
8514#ifndef __cplusplus
8515 /* Ultrix mips cc rejects this. */
8516 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008517 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008518 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008519 char const *const *ccp;
8520 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008521 /* NEC SVR4.0.2 mips cc rejects this. */
8522 struct point {int x, y;};
8523 static struct point const zero = {0,0};
8524 /* AIX XL C 1.02.0.0 rejects this.
8525 It does not let you subtract one const X* pointer from another in
8526 an arm of an if-expression whose if-part is not a constant
8527 expression */
8528 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008529 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008530 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008531 ++ccp;
8532 p = (char**) ccp;
8533 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008534 { /* SCO 3.2v4 cc rejects this. */
8535 char *t;
8536 char const *s = 0 ? (char *) 0 : (char const *) 0;
8537
8538 *t++ = 0;
8539 if (s) return 0;
8540 }
8541 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8542 int x[] = {25, 17};
8543 const int *foo = &x[0];
8544 ++foo;
8545 }
8546 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8547 typedef const int *iptr;
8548 iptr p = 0;
8549 ++p;
8550 }
8551 { /* AIX XL C 1.02.0.0 rejects this saying
8552 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8553 struct s { int j; const int *ap[3]; };
8554 struct s *b; b->j = 5;
8555 }
8556 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8557 const int foo = 10;
8558 if (!foo) return 0;
8559 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008560 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008561#endif
8562
8563 ;
8564 return 0;
8565}
8566_ACEOF
8567rm -f conftest.$ac_objext
8568if { (ac_try="$ac_compile"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008601 ac_cv_c_const=yes
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606 ac_cv_c_const=no
8607fi
8608
8609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610fi
8611{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8612echo "${ECHO_T}$ac_cv_c_const" >&6; }
8613if test $ac_cv_c_const = no; then
8614
8615cat >>confdefs.h <<\_ACEOF
8616#define const
8617_ACEOF
8618
8619fi
8620
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008621
8622
8623
8624
8625
8626ac_header_dirent=no
8627for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8628 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008629{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8630echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h. */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h. */
8640#include <sys/types.h>
8641#include <$ac_hdr>
8642
8643int
8644main ()
8645{
8646if ((DIR *) 0)
8647return 0;
8648 ;
8649 return 0;
8650}
8651_ACEOF
8652rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008653if { (ac_try="$ac_compile"
8654case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8657esac
8658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008660 ac_status=$?
8661 grep -v '^ *+' conftest.er1 >conftest.err
8662 rm -f conftest.er1
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008665 (exit $ac_status); } &&
8666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8667 { (case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
8671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_try") 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); }; } &&
8676 { ac_try='test -s conftest.$ac_objext'
8677 { (case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_try") 2>&5
8683 ac_status=$?
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686 eval "$as_ac_Header=yes"
8687else
8688 echo "$as_me: failed program was:" >&5
8689sed 's/^/| /' conftest.$ac_ext >&5
8690
Reid Spencera773bd52006-08-04 18:18:08 +00008691 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008692fi
Reid Spencera773bd52006-08-04 18:18:08 +00008693
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008695fi
Reid Spencera773bd52006-08-04 18:18:08 +00008696ac_res=`eval echo '${'$as_ac_Header'}'`
8697 { echo "$as_me:$LINENO: result: $ac_res" >&5
8698echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699if test `eval echo '${'$as_ac_Header'}'` = yes; then
8700 cat >>confdefs.h <<_ACEOF
8701#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8702_ACEOF
8703
8704ac_header_dirent=$ac_hdr; break
8705fi
8706
8707done
8708# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8709if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008710 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8711echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008712if test "${ac_cv_search_opendir+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8714else
8715 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008716cat >conftest.$ac_ext <<_ACEOF
8717/* confdefs.h. */
8718_ACEOF
8719cat confdefs.h >>conftest.$ac_ext
8720cat >>conftest.$ac_ext <<_ACEOF
8721/* end confdefs.h. */
8722
Reid Spencera773bd52006-08-04 18:18:08 +00008723/* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008726#ifdef __cplusplus
8727extern "C"
8728#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008729char opendir ();
8730int
8731main ()
8732{
Reid Spencera773bd52006-08-04 18:18:08 +00008733return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008734 ;
8735 return 0;
8736}
8737_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008738for ac_lib in '' dir; do
8739 if test -z "$ac_lib"; then
8740 ac_res="none required"
8741 else
8742 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008743 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008744 fi
8745 rm -f conftest.$ac_objext conftest$ac_exeext
8746if { (ac_try="$ac_link"
8747case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750esac
8751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008758 (exit $ac_status); } &&
8759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8760 { (case "(($ac_try" in
8761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8763esac
8764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; } &&
8769 { ac_try='test -s conftest$ac_exeext'
8770 { (case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_try") 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008779 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780else
8781 echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008784
8785fi
8786
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008787rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008788 conftest$ac_exeext
8789 if test "${ac_cv_search_opendir+set}" = set; then
8790 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008791fi
John Criswell7a73b802003-06-30 21:59:07 +00008792done
Reid Spencera773bd52006-08-04 18:18:08 +00008793if test "${ac_cv_search_opendir+set}" = set; then
8794 :
8795else
8796 ac_cv_search_opendir=no
8797fi
8798rm conftest.$ac_ext
8799LIBS=$ac_func_search_save_LIBS
8800fi
8801{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8802echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8803ac_res=$ac_cv_search_opendir
8804if test "$ac_res" != no; then
8805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008806
Reid Spencera773bd52006-08-04 18:18:08 +00008807fi
8808
8809else
8810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8811echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8812if test "${ac_cv_search_opendir+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815 ac_func_search_save_LIBS=$LIBS
8816cat >conftest.$ac_ext <<_ACEOF
8817/* confdefs.h. */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h. */
8822
8823/* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8826#ifdef __cplusplus
8827extern "C"
8828#endif
8829char opendir ();
8830int
8831main ()
8832{
8833return opendir ();
8834 ;
8835 return 0;
8836}
8837_ACEOF
8838for ac_lib in '' x; do
8839 if test -z "$ac_lib"; then
8840 ac_res="none required"
8841 else
8842 ac_res=-l$ac_lib
8843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8844 fi
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
8851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008858 (exit $ac_status); } &&
8859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8863esac
8864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8866 ac_status=$?
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; } &&
8869 { ac_try='test -s conftest$ac_exeext'
8870 { (case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873esac
8874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_try") 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008879 ac_cv_search_opendir=$ac_res
8880else
8881 echo "$as_me: failed program was:" >&5
8882sed 's/^/| /' conftest.$ac_ext >&5
8883
8884
8885fi
8886
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008887rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008888 conftest$ac_exeext
8889 if test "${ac_cv_search_opendir+set}" = set; then
8890 break
8891fi
8892done
8893if test "${ac_cv_search_opendir+set}" = set; then
8894 :
8895else
8896 ac_cv_search_opendir=no
8897fi
8898rm conftest.$ac_ext
8899LIBS=$ac_func_search_save_LIBS
8900fi
8901{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8902echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8903ac_res=$ac_cv_search_opendir
8904if test "$ac_res" != no; then
8905 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8906
8907fi
8908
8909fi
John Criswell7a73b802003-06-30 21:59:07 +00008910
8911
8912for ac_header in dlfcn.h
8913do
8914as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008919 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008920fi
Reid Spencera773bd52006-08-04 18:18:08 +00008921ac_res=`eval echo '${'$as_ac_Header'}'`
8922 { echo "$as_me:$LINENO: result: $ac_res" >&5
8923echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008924else
Brian Gaeke0a621332004-09-08 20:38:05 +00008925 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008926{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008928cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008929/* confdefs.h. */
8930_ACEOF
8931cat confdefs.h >>conftest.$ac_ext
8932cat >>conftest.$ac_ext <<_ACEOF
8933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008934$ac_includes_default
8935#include <$ac_header>
8936_ACEOF
8937rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008938if { (ac_try="$ac_compile"
8939case "(($ac_try" in
8940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8942esac
8943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955esac
8956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (case "(($ac_try" in
8963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8965esac
8966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8968 ac_status=$?
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008971 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008972else
8973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008974sed 's/^/| /' conftest.$ac_ext >&5
8975
Reid Spencera773bd52006-08-04 18:18:08 +00008976 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008977fi
Reid Spencera773bd52006-08-04 18:18:08 +00008978
8979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008982
8983# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008984{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008986cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008987/* confdefs.h. */
8988_ACEOF
8989cat confdefs.h >>conftest.$ac_ext
8990cat >>conftest.$ac_ext <<_ACEOF
8991/* end confdefs.h. */
8992#include <$ac_header>
8993_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008994if { (ac_try="$ac_cpp conftest.$ac_ext"
8995case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009001 ac_status=$?
9002 grep -v '^ *+' conftest.er1 >conftest.err
9003 rm -f conftest.er1
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009006 (exit $ac_status); } >/dev/null; then
9007 if test -s conftest.err; then
9008 ac_cpp_err=$ac_c_preproc_warn_flag
9009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9010 else
9011 ac_cpp_err=
9012 fi
9013else
9014 ac_cpp_err=yes
9015fi
9016if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009017 ac_header_preproc=yes
9018else
9019 echo "$as_me: failed program was:" >&5
9020sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 ac_header_preproc=no
9023fi
Reid Spencera773bd52006-08-04 18:18:08 +00009024
Brian Gaeke0a621332004-09-08 20:38:05 +00009025rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009026{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9027echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009028
9029# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9031 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9033echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9035echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9036 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009037 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009038 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9040echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9042echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9044echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9046echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9048echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9050echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009051 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009052## ----------------------------------- ##
9053## Report this to llvmbugs@cs.uiuc.edu ##
9054## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009055_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009056 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009057 ;;
9058esac
Reid Spencera773bd52006-08-04 18:18:08 +00009059{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009062 echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009064 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009065fi
Reid Spencera773bd52006-08-04 18:18:08 +00009066ac_res=`eval echo '${'$as_ac_Header'}'`
9067 { echo "$as_me:$LINENO: result: $ac_res" >&5
9068echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009069
9070fi
John Criswell7a73b802003-06-30 21:59:07 +00009071if test `eval echo '${'$as_ac_Header'}'` = yes; then
9072 cat >>confdefs.h <<_ACEOF
9073#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9074_ACEOF
9075
9076fi
9077
9078done
9079
Reid Spencera773bd52006-08-04 18:18:08 +00009080# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009081if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009082 enableval=$enable_ltdl_install;
9083fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009085
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009086
9087
9088if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009089 INSTALL_LTDL_TRUE=
9090 INSTALL_LTDL_FALSE='#'
9091else
9092 INSTALL_LTDL_TRUE='#'
9093 INSTALL_LTDL_FALSE=
9094fi
9095
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009096
9097
9098if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009099 CONVENIENCE_LTDL_TRUE=
9100 CONVENIENCE_LTDL_FALSE='#'
9101else
9102 CONVENIENCE_LTDL_TRUE='#'
9103 CONVENIENCE_LTDL_FALSE=
9104fi
9105
9106
Reid Spencera773bd52006-08-04 18:18:08 +00009107{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9108echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009109library_names_spec=
9110libname_spec='lib$name'
9111soname_spec=
9112shrext_cmds=".so"
9113postinstall_cmds=
9114postuninstall_cmds=
9115finish_cmds=
9116finish_eval=
9117shlibpath_var=
9118shlibpath_overrides_runpath=unknown
9119version_type=none
9120dynamic_linker="$host_os ld.so"
9121sys_lib_dlsearch_path_spec="/lib /usr/lib"
9122if test "$GCC" = yes; then
9123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9124 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9125 # if the path contains ";" then we assume it to be the separator
9126 # otherwise default to the standard path separator (i.e. ":") - it is
9127 # assumed that no part of a normal pathname contains ";" but that should
9128 # okay in the real world where ";" in dirpaths is itself problematic.
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9130 else
9131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9132 fi
9133else
9134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9135fi
9136need_lib_prefix=unknown
9137hardcode_into_libs=no
9138
9139# when you set need_version to no, make sure it does not cause -set_version
9140# flags to be left without arguments
9141need_version=unknown
9142
9143case $host_os in
9144aix3*)
9145 version_type=linux
9146 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9147 shlibpath_var=LIBPATH
9148
9149 # AIX 3 has no versioning support, so we append a major version to the name.
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 ;;
9152
9153aix4* | aix5*)
9154 version_type=linux
9155 need_lib_prefix=no
9156 need_version=no
9157 hardcode_into_libs=yes
9158 if test "$host_cpu" = ia64; then
9159 # AIX 5 supports IA64
9160 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9161 shlibpath_var=LD_LIBRARY_PATH
9162 else
9163 # With GCC up to 2.95.x, collect2 would create an import file
9164 # for dependence libraries. The import file would start with
9165 # the line `#! .'. This would cause the generated library to
9166 # depend on `.', always an invalid library. This was fixed in
9167 # development snapshots of GCC prior to 3.0.
9168 case $host_os in
9169 aix4 | aix4.[01] | aix4.[01].*)
9170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9171 echo ' yes '
9172 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9173 :
9174 else
9175 can_build_shared=no
9176 fi
9177 ;;
9178 esac
9179 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9180 # soname into executable. Probably we can add versioning support to
9181 # collect2, so additional links can be useful in future.
9182 if test "$aix_use_runtimelinking" = yes; then
9183 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9184 # instead of lib<name>.a to let people know that these are not
9185 # typical AIX shared libraries.
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 else
9188 # We preserve .a as extension for shared libraries through AIX4.2
9189 # and later when we are not doing run time linking.
9190 library_names_spec='${libname}${release}.a $libname.a'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 fi
9193 shlibpath_var=LIBPATH
9194 fi
9195 ;;
9196
9197amigaos*)
9198 library_names_spec='$libname.ixlibrary $libname.a'
9199 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9200 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'
9201 ;;
9202
9203beos*)
9204 library_names_spec='${libname}${shared_ext}'
9205 dynamic_linker="$host_os ld.so"
9206 shlibpath_var=LIBRARY_PATH
9207 ;;
9208
9209bsdi[45]*)
9210 version_type=linux
9211 need_version=no
9212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9213 soname_spec='${libname}${release}${shared_ext}$major'
9214 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9215 shlibpath_var=LD_LIBRARY_PATH
9216 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9217 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9218 # the default ld.so.conf also contains /usr/contrib/lib and
9219 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9220 # libtool to hard-code these into programs
9221 ;;
9222
9223cygwin* | mingw* | pw32*)
9224 version_type=windows
9225 shrext_cmds=".dll"
9226 need_version=no
9227 need_lib_prefix=no
9228
9229 case $GCC,$host_os in
9230 yes,cygwin* | yes,mingw* | yes,pw32*)
9231 library_names_spec='$libname.dll.a'
9232 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9233 postinstall_cmds='base_file=`basename \${file}`~
9234 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9235 dldir=$destdir/`dirname \$dlpath`~
9236 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009237 $install_prog $dir/$dlname \$dldir/$dlname~
9238 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009239 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9240 dlpath=$dir/\$dldll~
9241 $rm \$dlpath'
9242 shlibpath_overrides_runpath=yes
9243
9244 case $host_os in
9245 cygwin*)
9246 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9247 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9248 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9249 ;;
9250 mingw*)
9251 # MinGW DLLs use traditional 'lib' prefix
9252 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9253 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9254 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9255 # It is most probably a Windows format PATH printed by
9256 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9257 # path with ; separators, and with drive letters. We can handle the
9258 # drive letters (cygwin fileutils understands them), so leave them,
9259 # especially as we might pass files found there to a mingw objdump,
9260 # which wouldn't understand a cygwinified path. Ahh.
9261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9262 else
9263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9264 fi
9265 ;;
9266 pw32*)
9267 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009268 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 +00009269 ;;
9270 esac
9271 ;;
9272
9273 *)
9274 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9275 ;;
9276 esac
9277 dynamic_linker='Win32 ld.exe'
9278 # FIXME: first we should search . and the directory the executable is in
9279 shlibpath_var=PATH
9280 ;;
9281
9282darwin* | rhapsody*)
9283 dynamic_linker="$host_os dyld"
9284 version_type=darwin
9285 need_lib_prefix=no
9286 need_version=no
9287 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9288 soname_spec='${libname}${release}${major}$shared_ext'
9289 shlibpath_overrides_runpath=yes
9290 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009291 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9293 if test "$GCC" = yes; then
9294 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"`
9295 else
9296 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9297 fi
9298 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9299 ;;
9300
9301dgux*)
9302 version_type=linux
9303 need_lib_prefix=no
9304 need_version=no
9305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9306 soname_spec='${libname}${release}${shared_ext}$major'
9307 shlibpath_var=LD_LIBRARY_PATH
9308 ;;
9309
9310freebsd1*)
9311 dynamic_linker=no
9312 ;;
9313
9314kfreebsd*-gnu)
9315 version_type=linux
9316 need_lib_prefix=no
9317 need_version=no
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 shlibpath_overrides_runpath=no
9322 hardcode_into_libs=yes
9323 dynamic_linker='GNU ld.so'
9324 ;;
9325
Reid Spencera773bd52006-08-04 18:18:08 +00009326freebsd* | dragonfly*)
9327 # DragonFly does not have aout. When/if they implement a new
9328 # versioning mechanism, adjust this.
9329 if test -x /usr/bin/objformat; then
9330 objformat=`/usr/bin/objformat`
9331 else
9332 case $host_os in
9333 freebsd[123]*) objformat=aout ;;
9334 *) objformat=elf ;;
9335 esac
9336 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 version_type=freebsd-$objformat
9338 case $version_type in
9339 freebsd-elf*)
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9341 need_version=no
9342 need_lib_prefix=no
9343 ;;
9344 freebsd-*)
9345 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9346 need_version=yes
9347 ;;
9348 esac
9349 shlibpath_var=LD_LIBRARY_PATH
9350 case $host_os in
9351 freebsd2*)
9352 shlibpath_overrides_runpath=yes
9353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009354 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360 shlibpath_overrides_runpath=no
9361 hardcode_into_libs=yes
9362 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009363 freebsd*) # from 4.6 on
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9366 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009367 esac
9368 ;;
9369
9370gnu*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 hardcode_into_libs=yes
9378 ;;
9379
9380hpux9* | hpux10* | hpux11*)
9381 # Give a soname corresponding to the major version so that dld.sl refuses to
9382 # link against other versions.
9383 version_type=sunos
9384 need_lib_prefix=no
9385 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009386 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009387 ia64*)
9388 shrext_cmds='.so'
9389 hardcode_into_libs=yes
9390 dynamic_linker="$host_os dld.so"
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 if test "X$HPUX_IA64_MODE" = X32; then
9396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9397 else
9398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9399 fi
9400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9401 ;;
9402 hppa*64*)
9403 shrext_cmds='.sl'
9404 hardcode_into_libs=yes
9405 dynamic_linker="$host_os dld.sl"
9406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9412 ;;
9413 *)
9414 shrext_cmds='.sl'
9415 dynamic_linker="$host_os dld.sl"
9416 shlibpath_var=SHLIB_PATH
9417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 ;;
9421 esac
9422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9423 postinstall_cmds='chmod 555 $lib'
9424 ;;
9425
Reid Spencera773bd52006-08-04 18:18:08 +00009426interix3*)
9427 version_type=linux
9428 need_lib_prefix=no
9429 need_version=no
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=no
9435 hardcode_into_libs=yes
9436 ;;
9437
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438irix5* | irix6* | nonstopux*)
9439 case $host_os in
9440 nonstopux*) version_type=nonstopux ;;
9441 *)
9442 if test "$lt_cv_prog_gnu_ld" = yes; then
9443 version_type=linux
9444 else
9445 version_type=irix
9446 fi ;;
9447 esac
9448 need_lib_prefix=no
9449 need_version=no
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9452 case $host_os in
9453 irix5* | nonstopux*)
9454 libsuff= shlibsuff=
9455 ;;
9456 *)
9457 case $LD in # libtool.m4 will add one of these switches to LD
9458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9459 libsuff= shlibsuff= libmagic=32-bit;;
9460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9461 libsuff=32 shlibsuff=N32 libmagic=N32;;
9462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9464 *) libsuff= shlibsuff= libmagic=never-match;;
9465 esac
9466 ;;
9467 esac
9468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9469 shlibpath_overrides_runpath=no
9470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9472 hardcode_into_libs=yes
9473 ;;
9474
9475# No shared lib support for Linux oldld, aout, or coff.
9476linux*oldld* | linux*aout* | linux*coff*)
9477 dynamic_linker=no
9478 ;;
9479
9480# This must be Linux ELF.
9481linux*)
9482 version_type=linux
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 # This implies no fast_install, which is unacceptable.
9491 # Some rework will be needed to allow for fast_install
9492 # before this can be enabled.
9493 hardcode_into_libs=yes
9494
9495 # Append ld.so.conf contents to the search path
9496 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009497 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 +00009498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9499 fi
9500
9501 # We used to test for /lib/ld.so.1 and disable shared libraries on
9502 # powerpc, because MkLinux only supported shared libraries with the
9503 # GNU dynamic linker. Since this was broken with cross compilers,
9504 # most powerpc-linux boxes support dynamic linking these days and
9505 # people can always --disable-shared, the test was removed, and we
9506 # assume the GNU/Linux dynamic linker is in use.
9507 dynamic_linker='GNU/Linux ld.so'
9508 ;;
9509
9510knetbsd*-gnu)
9511 version_type=linux
9512 need_lib_prefix=no
9513 need_version=no
9514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9515 soname_spec='${libname}${release}${shared_ext}$major'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 shlibpath_overrides_runpath=no
9518 hardcode_into_libs=yes
9519 dynamic_linker='GNU ld.so'
9520 ;;
9521
9522netbsd*)
9523 version_type=sunos
9524 need_lib_prefix=no
9525 need_version=no
9526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9529 dynamic_linker='NetBSD (a.out) ld.so'
9530 else
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 dynamic_linker='NetBSD ld.elf_so'
9534 fi
9535 shlibpath_var=LD_LIBRARY_PATH
9536 shlibpath_overrides_runpath=yes
9537 hardcode_into_libs=yes
9538 ;;
9539
9540newsos6)
9541 version_type=linux
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 shlibpath_overrides_runpath=yes
9545 ;;
9546
9547nto-qnx*)
9548 version_type=linux
9549 need_lib_prefix=no
9550 need_version=no
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=yes
9555 ;;
9556
9557openbsd*)
9558 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009559 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562 case $host_os in
9563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9564 *) need_version=no ;;
9565 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570 case $host_os in
9571 openbsd2.[89] | openbsd2.[89].*)
9572 shlibpath_overrides_runpath=no
9573 ;;
9574 *)
9575 shlibpath_overrides_runpath=yes
9576 ;;
9577 esac
9578 else
9579 shlibpath_overrides_runpath=yes
9580 fi
9581 ;;
9582
9583os2*)
9584 libname_spec='$name'
9585 shrext_cmds=".dll"
9586 need_lib_prefix=no
9587 library_names_spec='$libname${shared_ext} $libname.a'
9588 dynamic_linker='OS/2 ld.exe'
9589 shlibpath_var=LIBPATH
9590 ;;
9591
9592osf3* | osf4* | osf5*)
9593 version_type=osf
9594 need_lib_prefix=no
9595 need_version=no
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601 ;;
9602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009603solaris*)
9604 version_type=linux
9605 need_lib_prefix=no
9606 need_version=no
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=yes
9611 hardcode_into_libs=yes
9612 # ldd complains unless libraries are executable
9613 postinstall_cmds='chmod +x $lib'
9614 ;;
9615
9616sunos4*)
9617 version_type=sunos
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9619 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9620 shlibpath_var=LD_LIBRARY_PATH
9621 shlibpath_overrides_runpath=yes
9622 if test "$with_gnu_ld" = yes; then
9623 need_lib_prefix=no
9624 fi
9625 need_version=yes
9626 ;;
9627
Reid Spencera773bd52006-08-04 18:18:08 +00009628sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009629 version_type=linux
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 soname_spec='${libname}${release}${shared_ext}$major'
9632 shlibpath_var=LD_LIBRARY_PATH
9633 case $host_vendor in
9634 sni)
9635 shlibpath_overrides_runpath=no
9636 need_lib_prefix=no
9637 export_dynamic_flag_spec='${wl}-Blargedynsym'
9638 runpath_var=LD_RUN_PATH
9639 ;;
9640 siemens)
9641 need_lib_prefix=no
9642 ;;
9643 motorola)
9644 need_lib_prefix=no
9645 need_version=no
9646 shlibpath_overrides_runpath=no
9647 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9648 ;;
9649 esac
9650 ;;
9651
9652sysv4*MP*)
9653 if test -d /usr/nec ;then
9654 version_type=linux
9655 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9656 soname_spec='$libname${shared_ext}.$major'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 fi
9659 ;;
9660
Reid Spencera773bd52006-08-04 18:18:08 +00009661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9662 version_type=freebsd-elf
9663 need_lib_prefix=no
9664 need_version=no
9665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9666 soname_spec='${libname}${release}${shared_ext}$major'
9667 shlibpath_var=LD_LIBRARY_PATH
9668 hardcode_into_libs=yes
9669 if test "$with_gnu_ld" = yes; then
9670 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9671 shlibpath_overrides_runpath=no
9672 else
9673 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9674 shlibpath_overrides_runpath=yes
9675 case $host_os in
9676 sco3.2v5*)
9677 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9678 ;;
9679 esac
9680 fi
9681 sys_lib_dlsearch_path_spec='/usr/lib'
9682 ;;
9683
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009684uts4*)
9685 version_type=linux
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9689 ;;
9690
9691*)
9692 dynamic_linker=no
9693 ;;
9694esac
Reid Spencera773bd52006-08-04 18:18:08 +00009695{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009697test "$dynamic_linker" = no && can_build_shared=no
9698
Reid Spencera773bd52006-08-04 18:18:08 +00009699variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700if test "$GCC" = yes; then
9701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9702fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703
Reid Spencera773bd52006-08-04 18:18:08 +00009704
9705{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9706echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009707if test "${libltdl_cv_shlibext+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709else
9710
9711module=yes
9712eval libltdl_cv_shlibext=$shrext_cmds
9713
9714fi
Reid Spencera773bd52006-08-04 18:18:08 +00009715{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9716echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009717if test -n "$libltdl_cv_shlibext"; then
9718
9719cat >>confdefs.h <<_ACEOF
9720#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9721_ACEOF
9722
9723fi
9724
9725
Reid Spencera773bd52006-08-04 18:18:08 +00009726{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9727echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728if test "${libltdl_cv_shlibpath_var+set}" = set; then
9729 echo $ECHO_N "(cached) $ECHO_C" >&6
9730else
9731 libltdl_cv_shlibpath_var="$shlibpath_var"
9732fi
Reid Spencera773bd52006-08-04 18:18:08 +00009733{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9734echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735if test -n "$libltdl_cv_shlibpath_var"; then
9736
9737cat >>confdefs.h <<_ACEOF
9738#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9739_ACEOF
9740
9741fi
9742
9743
Reid Spencera773bd52006-08-04 18:18:08 +00009744{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9745echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009746if test "${libltdl_cv_sys_search_path+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9748else
9749 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9750fi
Reid Spencera773bd52006-08-04 18:18:08 +00009751{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9752echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753if test -n "$libltdl_cv_sys_search_path"; then
9754 sys_search_path=
9755 for dir in $libltdl_cv_sys_search_path; do
9756 if test -z "$sys_search_path"; then
9757 sys_search_path="$dir"
9758 else
9759 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9760 fi
9761 done
9762
9763cat >>confdefs.h <<_ACEOF
9764#define LTDL_SYSSEARCHPATH "$sys_search_path"
9765_ACEOF
9766
9767fi
9768
Reid Spencera773bd52006-08-04 18:18:08 +00009769{ echo "$as_me:$LINENO: checking for objdir" >&5
9770echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771if test "${libltdl_cv_objdir+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774 libltdl_cv_objdir="$objdir"
9775 if test -n "$objdir"; then
9776 :
9777 else
9778 rm -f .libs 2>/dev/null
9779 mkdir .libs 2>/dev/null
9780 if test -d .libs; then
9781 libltdl_cv_objdir=.libs
9782 else
9783 # MS-DOS does not allow filenames that begin with a dot.
9784 libltdl_cv_objdir=_libs
9785 fi
9786 rmdir .libs 2>/dev/null
9787 fi
9788
9789fi
Reid Spencera773bd52006-08-04 18:18:08 +00009790{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9791echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009792
9793cat >>confdefs.h <<_ACEOF
9794#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9795_ACEOF
9796
9797
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009798
9799
9800
9801
9802# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009803{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9804echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009805if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9806 echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808
9809# These are sane defaults that work on at least a few old systems.
9810# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9811
9812# Character class describing NM global symbol codes.
9813symcode='[BCDEGRST]'
9814
9815# Regexp to match symbols that can be accessed directly from C.
9816sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9817
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818# Transform an extracted symbol line into a proper C declaration
9819lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9820
9821# Transform an extracted symbol line into symbol name and symbol address
9822lt_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'"
9823
9824# Define system-specific variables.
9825case $host_os in
9826aix*)
9827 symcode='[BCDT]'
9828 ;;
9829cygwin* | mingw* | pw32*)
9830 symcode='[ABCDGISTW]'
9831 ;;
9832hpux*) # Its linker distinguishes data from code symbols
9833 if test "$host_cpu" = ia64; then
9834 symcode='[ABCDEGRST]'
9835 fi
9836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9837 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'"
9838 ;;
9839linux*)
9840 if test "$host_cpu" = ia64; then
9841 symcode='[ABCDGIRSTW]'
9842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9843 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'"
9844 fi
9845 ;;
9846irix* | nonstopux*)
9847 symcode='[BCDEGRST]'
9848 ;;
9849osf*)
9850 symcode='[BCDEGQRST]'
9851 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009852solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853 symcode='[BDRT]'
9854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009855sco3.2v5*)
9856 symcode='[DT]'
9857 ;;
9858sysv4.2uw2*)
9859 symcode='[DT]'
9860 ;;
9861sysv5* | sco5v6* | unixware* | OpenUNIX*)
9862 symcode='[ABDT]'
9863 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864sysv4)
9865 symcode='[DFNSTU]'
9866 ;;
9867esac
9868
9869# Handle CRLF in mingw tool chain
9870opt_cr=
9871case $build_os in
9872mingw*)
9873 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9874 ;;
9875esac
9876
9877# If we're using GNU nm, then use its standard symbol codes.
9878case `$NM -V 2>&1` in
9879*GNU* | *'with BFD'*)
9880 symcode='[ABCDGIRSTW]' ;;
9881esac
9882
9883# Try without a prefix undercore, then with it.
9884for ac_symprfx in "" "_"; do
9885
Reid Spencera773bd52006-08-04 18:18:08 +00009886 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9887 symxfrm="\\1 $ac_symprfx\\2 \\2"
9888
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009890 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 +00009891
9892 # Check to see that the pipe works correctly.
9893 pipe_works=no
9894
9895 rm -f conftest*
9896 cat > conftest.$ac_ext <<EOF
9897#ifdef __cplusplus
9898extern "C" {
9899#endif
9900char nm_test_var;
9901void nm_test_func(){}
9902#ifdef __cplusplus
9903}
9904#endif
9905int main(){nm_test_var='a';nm_test_func();return(0);}
9906EOF
9907
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>&5
9910 ac_status=$?
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; then
9913 # Now try to grab the symbols.
9914 nlist=conftest.nm
9915 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9916 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); } && test -s "$nlist"; then
9920 # Try sorting and uniquifying the output.
9921 if sort "$nlist" | uniq > "$nlist"T; then
9922 mv -f "$nlist"T "$nlist"
9923 else
9924 rm -f "$nlist"T
9925 fi
9926
9927 # Make sure that we snagged all the symbols we need.
9928 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9929 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9930 cat <<EOF > conftest.$ac_ext
9931#ifdef __cplusplus
9932extern "C" {
9933#endif
9934
9935EOF
9936 # Now generate the symbol file.
9937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9938
9939 cat <<EOF >> conftest.$ac_ext
9940#if defined (__STDC__) && __STDC__
9941# define lt_ptr_t void *
9942#else
9943# define lt_ptr_t char *
9944# define const
9945#endif
9946
9947/* The mapping between symbol names and symbols. */
9948const struct {
9949 const char *name;
9950 lt_ptr_t address;
9951}
9952lt_preloaded_symbols[] =
9953{
9954EOF
9955 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9956 cat <<\EOF >> conftest.$ac_ext
9957 {0, (lt_ptr_t) 0}
9958};
9959
9960#ifdef __cplusplus
9961}
9962#endif
9963EOF
9964 # Now try linking the two files.
9965 mv conftest.$ac_objext conftstm.$ac_objext
9966 lt_save_LIBS="$LIBS"
9967 lt_save_CFLAGS="$CFLAGS"
9968 LIBS="conftstm.$ac_objext"
9969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9975 pipe_works=yes
9976 fi
9977 LIBS="$lt_save_LIBS"
9978 CFLAGS="$lt_save_CFLAGS"
9979 else
9980 echo "cannot find nm_test_func in $nlist" >&5
9981 fi
9982 else
9983 echo "cannot find nm_test_var in $nlist" >&5
9984 fi
9985 else
9986 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9987 fi
9988 else
9989 echo "$progname: failed program was:" >&5
9990 cat conftest.$ac_ext >&5
9991 fi
9992 rm -f conftest* conftst*
9993
9994 # Do not use the global_symbol_pipe unless it works.
9995 if test "$pipe_works" = yes; then
9996 break
9997 else
9998 lt_cv_sys_global_symbol_pipe=
9999 fi
10000done
10001
10002fi
10003
10004if test -z "$lt_cv_sys_global_symbol_pipe"; then
10005 lt_cv_sys_global_symbol_to_cdecl=
10006fi
10007if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010008 { echo "$as_me:$LINENO: result: failed" >&5
10009echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010else
Reid Spencera773bd52006-08-04 18:18:08 +000010011 { echo "$as_me:$LINENO: result: ok" >&5
10012echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010013fi
10014
10015
Reid Spencera773bd52006-08-04 18:18:08 +000010016{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10017echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10022 libltdl_cv_preloaded_symbols=yes
10023 else
10024 libltdl_cv_preloaded_symbols=no
10025 fi
10026
10027fi
Reid Spencera773bd52006-08-04 18:18:08 +000010028{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10029echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10031
10032cat >>confdefs.h <<\_ACEOF
10033#define HAVE_PRELOADED_SYMBOLS 1
10034_ACEOF
10035
10036fi
10037
10038LIBADD_DL=
10039
10040ac_ext=c
10041ac_cpp='$CPP $CPPFLAGS'
10042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044ac_compiler_gnu=$ac_cv_c_compiler_gnu
10045
10046
Reid Spencera773bd52006-08-04 18:18:08 +000010047{ echo "$as_me:$LINENO: checking for shl_load" >&5
10048echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010049if test "${ac_cv_func_shl_load+set}" = set; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10051else
10052 cat >conftest.$ac_ext <<_ACEOF
10053/* confdefs.h. */
10054_ACEOF
10055cat confdefs.h >>conftest.$ac_ext
10056cat >>conftest.$ac_ext <<_ACEOF
10057/* end confdefs.h. */
10058/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10060#define shl_load innocuous_shl_load
10061
10062/* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char shl_load (); below.
10064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10065 <limits.h> exists even on freestanding compilers. */
10066
10067#ifdef __STDC__
10068# include <limits.h>
10069#else
10070# include <assert.h>
10071#endif
10072
10073#undef shl_load
10074
Reid Spencera773bd52006-08-04 18:18:08 +000010075/* Override any GCC internal prototype to avoid an error.
10076 Use char because int might match the return type of a GCC
10077 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078#ifdef __cplusplus
10079extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081char shl_load ();
10082/* The GNU C library defines this for functions which it implements
10083 to always fail with ENOSYS. Some functions are actually named
10084 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010085#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010087#endif
10088
10089int
10090main ()
10091{
Reid Spencera773bd52006-08-04 18:18:08 +000010092return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 ;
10094 return 0;
10095}
10096_ACEOF
10097rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010098if { (ac_try="$ac_link"
10099case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 ac_status=$?
10106 grep -v '^ *+' conftest.er1 >conftest.err
10107 rm -f conftest.er1
10108 cat conftest.err >&5
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010110 (exit $ac_status); } &&
10111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10112 { (case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115esac
10116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_try") 2>&5
10118 ac_status=$?
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; } &&
10121 { ac_try='test -s conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125esac
10126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131 ac_cv_func_shl_load=yes
10132else
10133 echo "$as_me: failed program was:" >&5
10134sed 's/^/| /' conftest.$ac_ext >&5
10135
Reid Spencera773bd52006-08-04 18:18:08 +000010136 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137fi
Reid Spencera773bd52006-08-04 18:18:08 +000010138
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010139rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010140 conftest$ac_exeext conftest.$ac_ext
10141fi
Reid Spencera773bd52006-08-04 18:18:08 +000010142{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10143echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144if test $ac_cv_func_shl_load = yes; then
10145
10146cat >>confdefs.h <<\_ACEOF
10147#define HAVE_SHL_LOAD 1
10148_ACEOF
10149
10150else
Reid Spencera773bd52006-08-04 18:18:08 +000010151 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10152echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156 ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldld $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164
Reid Spencera773bd52006-08-04 18:18:08 +000010165/* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168#ifdef __cplusplus
10169extern "C"
10170#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171char shl_load ();
10172int
10173main ()
10174{
Reid Spencera773bd52006-08-04 18:18:08 +000010175return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176 ;
10177 return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010181if { (ac_try="$ac_link"
10182case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185esac
10186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188 ac_status=$?
10189 grep -v '^ *+' conftest.er1 >conftest.err
10190 rm -f conftest.er1
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195 { (case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_try") 2>&5
10201 ac_status=$?
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); }; } &&
10204 { ac_try='test -s conftest$ac_exeext'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 ac_cv_lib_dld_shl_load=yes
10215else
10216 echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
Reid Spencera773bd52006-08-04 18:18:08 +000010219 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220fi
Reid Spencera773bd52006-08-04 18:18:08 +000010221
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223 conftest$ac_exeext conftest.$ac_ext
10224LIBS=$ac_check_lib_save_LIBS
10225fi
Reid Spencera773bd52006-08-04 18:18:08 +000010226{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10227echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010228if test $ac_cv_lib_dld_shl_load = yes; then
10229
10230cat >>confdefs.h <<\_ACEOF
10231#define HAVE_SHL_LOAD 1
10232_ACEOF
10233
10234 LIBADD_DL="$LIBADD_DL -ldld"
10235else
Reid Spencera773bd52006-08-04 18:18:08 +000010236 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10237echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240else
10241 ac_check_lib_save_LIBS=$LIBS
10242LIBS="-ldl $LIBS"
10243cat >conftest.$ac_ext <<_ACEOF
10244/* confdefs.h. */
10245_ACEOF
10246cat confdefs.h >>conftest.$ac_ext
10247cat >>conftest.$ac_ext <<_ACEOF
10248/* end confdefs.h. */
10249
Reid Spencera773bd52006-08-04 18:18:08 +000010250/* Override any GCC internal prototype to avoid an error.
10251 Use char because int might match the return type of a GCC
10252 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253#ifdef __cplusplus
10254extern "C"
10255#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256char dlopen ();
10257int
10258main ()
10259{
Reid Spencera773bd52006-08-04 18:18:08 +000010260return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261 ;
10262 return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010266if { (ac_try="$ac_link"
10267case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010278 (exit $ac_status); } &&
10279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10280 { (case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_try") 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; } &&
10289 { ac_try='test -s conftest$ac_exeext'
10290 { (case "(($ac_try" in
10291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10293esac
10294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_try") 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299 ac_cv_lib_dl_dlopen=yes
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
Reid Spencera773bd52006-08-04 18:18:08 +000010304 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305fi
Reid Spencera773bd52006-08-04 18:18:08 +000010306
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010307rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308 conftest$ac_exeext conftest.$ac_ext
10309LIBS=$ac_check_lib_save_LIBS
10310fi
Reid Spencera773bd52006-08-04 18:18:08 +000010311{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10312echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313if test $ac_cv_lib_dl_dlopen = yes; then
10314
10315cat >>confdefs.h <<\_ACEOF
10316#define HAVE_LIBDL 1
10317_ACEOF
10318
10319 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10320else
10321 cat >conftest.$ac_ext <<_ACEOF
10322/* confdefs.h. */
10323_ACEOF
10324cat confdefs.h >>conftest.$ac_ext
10325cat >>conftest.$ac_ext <<_ACEOF
10326/* end confdefs.h. */
10327#if HAVE_DLFCN_H
10328# include <dlfcn.h>
10329#endif
10330
10331int
10332main ()
10333{
10334dlopen(0, 0);
10335 ;
10336 return 0;
10337}
10338_ACEOF
10339rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010340if { (ac_try="$ac_link"
10341case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010352 (exit $ac_status); } &&
10353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10354 { (case "(($ac_try" in
10355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356 *) ac_try_echo=$ac_try;;
10357esac
10358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359 (eval "$ac_try") 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; } &&
10363 { ac_try='test -s conftest$ac_exeext'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373
10374cat >>confdefs.h <<\_ACEOF
10375#define HAVE_LIBDL 1
10376_ACEOF
10377 libltdl_cv_func_dlopen="yes"
10378else
10379 echo "$as_me: failed program was:" >&5
10380sed 's/^/| /' conftest.$ac_ext >&5
10381
Reid Spencera773bd52006-08-04 18:18:08 +000010382 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10383echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010384if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387 ac_check_lib_save_LIBS=$LIBS
10388LIBS="-lsvld $LIBS"
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
10395
Reid Spencera773bd52006-08-04 18:18:08 +000010396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399#ifdef __cplusplus
10400extern "C"
10401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402char dlopen ();
10403int
10404main ()
10405{
Reid Spencera773bd52006-08-04 18:18:08 +000010406return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
10417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010424 (exit $ac_status); } &&
10425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10426 { (case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_try") 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest$ac_exeext'
10436 { (case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10439esac
10440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_try") 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 ac_cv_lib_svld_dlopen=yes
10446else
10447 echo "$as_me: failed program was:" >&5
10448sed 's/^/| /' conftest.$ac_ext >&5
10449
Reid Spencera773bd52006-08-04 18:18:08 +000010450 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010451fi
Reid Spencera773bd52006-08-04 18:18:08 +000010452
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010453rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454 conftest$ac_exeext conftest.$ac_ext
10455LIBS=$ac_check_lib_save_LIBS
10456fi
Reid Spencera773bd52006-08-04 18:18:08 +000010457{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10458echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010459if test $ac_cv_lib_svld_dlopen = yes; then
10460
10461cat >>confdefs.h <<\_ACEOF
10462#define HAVE_LIBDL 1
10463_ACEOF
10464
10465 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10466else
Reid Spencera773bd52006-08-04 18:18:08 +000010467 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10468echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010469if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10471else
10472 ac_check_lib_save_LIBS=$LIBS
10473LIBS="-ldld $LIBS"
10474cat >conftest.$ac_ext <<_ACEOF
10475/* confdefs.h. */
10476_ACEOF
10477cat confdefs.h >>conftest.$ac_ext
10478cat >>conftest.$ac_ext <<_ACEOF
10479/* end confdefs.h. */
10480
Reid Spencera773bd52006-08-04 18:18:08 +000010481/* Override any GCC internal prototype to avoid an error.
10482 Use char because int might match the return type of a GCC
10483 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484#ifdef __cplusplus
10485extern "C"
10486#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487char dld_link ();
10488int
10489main ()
10490{
Reid Spencera773bd52006-08-04 18:18:08 +000010491return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 ;
10493 return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010497if { (ac_try="$ac_link"
10498case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501esac
10502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010509 (exit $ac_status); } &&
10510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10511 { (case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10514esac
10515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_try") 2>&5
10517 ac_status=$?
10518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519 (exit $ac_status); }; } &&
10520 { ac_try='test -s conftest$ac_exeext'
10521 { (case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524esac
10525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_try") 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 ac_cv_lib_dld_dld_link=yes
10531else
10532 echo "$as_me: failed program was:" >&5
10533sed 's/^/| /' conftest.$ac_ext >&5
10534
Reid Spencera773bd52006-08-04 18:18:08 +000010535 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536fi
Reid Spencera773bd52006-08-04 18:18:08 +000010537
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010538rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539 conftest$ac_exeext conftest.$ac_ext
10540LIBS=$ac_check_lib_save_LIBS
10541fi
Reid Spencera773bd52006-08-04 18:18:08 +000010542{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10543echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010544if test $ac_cv_lib_dld_dld_link = yes; then
10545
10546cat >>confdefs.h <<\_ACEOF
10547#define HAVE_DLD 1
10548_ACEOF
10549
10550 LIBADD_DL="$LIBADD_DL -ldld"
10551else
Reid Spencera773bd52006-08-04 18:18:08 +000010552 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10553echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 cat >conftest.$ac_ext <<_ACEOF
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10565#define _dyld_func_lookup innocuous__dyld_func_lookup
10566
10567/* System header to define __stub macros and hopefully few prototypes,
10568 which can conflict with char _dyld_func_lookup (); below.
10569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10570 <limits.h> exists even on freestanding compilers. */
10571
10572#ifdef __STDC__
10573# include <limits.h>
10574#else
10575# include <assert.h>
10576#endif
10577
10578#undef _dyld_func_lookup
10579
Reid Spencera773bd52006-08-04 18:18:08 +000010580/* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010583#ifdef __cplusplus
10584extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010585#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586char _dyld_func_lookup ();
10587/* The GNU C library defines this for functions which it implements
10588 to always fail with ENOSYS. Some functions are actually named
10589 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010590#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010592#endif
10593
10594int
10595main ()
10596{
Reid Spencera773bd52006-08-04 18:18:08 +000010597return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010598 ;
10599 return 0;
10600}
10601_ACEOF
10602rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010603if { (ac_try="$ac_link"
10604case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607esac
10608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010615 (exit $ac_status); } &&
10616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
10621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_try") 2>&5
10623 ac_status=$?
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; } &&
10626 { ac_try='test -s conftest$ac_exeext'
10627 { (case "(($ac_try" in
10628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10630esac
10631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_try") 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636 ac_cv_func__dyld_func_lookup=yes
10637else
10638 echo "$as_me: failed program was:" >&5
10639sed 's/^/| /' conftest.$ac_ext >&5
10640
Reid Spencera773bd52006-08-04 18:18:08 +000010641 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642fi
Reid Spencera773bd52006-08-04 18:18:08 +000010643
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010644rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010645 conftest$ac_exeext conftest.$ac_ext
10646fi
Reid Spencera773bd52006-08-04 18:18:08 +000010647{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10648echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649if test $ac_cv_func__dyld_func_lookup = yes; then
10650
10651cat >>confdefs.h <<\_ACEOF
10652#define HAVE_DYLD 1
10653_ACEOF
10654
10655fi
10656
10657
10658fi
10659
10660
10661fi
10662
10663
10664fi
Reid Spencera773bd52006-08-04 18:18:08 +000010665
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010666rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010667 conftest$ac_exeext conftest.$ac_ext
10668
10669fi
10670
10671
10672fi
10673
10674
10675fi
10676
10677
10678if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10679then
10680 lt_save_LIBS="$LIBS"
10681 LIBS="$LIBS $LIBADD_DL"
10682
10683for ac_func in dlerror
10684do
10685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010686{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10688if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691 cat >conftest.$ac_ext <<_ACEOF
10692/* confdefs.h. */
10693_ACEOF
10694cat confdefs.h >>conftest.$ac_ext
10695cat >>conftest.$ac_ext <<_ACEOF
10696/* end confdefs.h. */
10697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10699#define $ac_func innocuous_$ac_func
10700
10701/* System header to define __stub macros and hopefully few prototypes,
10702 which can conflict with char $ac_func (); below.
10703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10704 <limits.h> exists even on freestanding compilers. */
10705
10706#ifdef __STDC__
10707# include <limits.h>
10708#else
10709# include <assert.h>
10710#endif
10711
10712#undef $ac_func
10713
Reid Spencera773bd52006-08-04 18:18:08 +000010714/* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717#ifdef __cplusplus
10718extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720char $ac_func ();
10721/* The GNU C library defines this for functions which it implements
10722 to always fail with ENOSYS. Some functions are actually named
10723 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010724#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010726#endif
10727
10728int
10729main ()
10730{
Reid Spencera773bd52006-08-04 18:18:08 +000010731return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732 ;
10733 return 0;
10734}
10735_ACEOF
10736rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010737if { (ac_try="$ac_link"
10738case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10743 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 ac_status=$?
10745 grep -v '^ *+' conftest.er1 >conftest.err
10746 rm -f conftest.er1
10747 cat conftest.err >&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010749 (exit $ac_status); } &&
10750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10751 { (case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10756 (eval "$ac_try") 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest$ac_exeext'
10761 { (case "(($ac_try" in
10762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10763 *) ac_try_echo=$ac_try;;
10764esac
10765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10766 (eval "$ac_try") 2>&5
10767 ac_status=$?
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770 eval "$as_ac_var=yes"
10771else
10772 echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
Reid Spencera773bd52006-08-04 18:18:08 +000010775 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776fi
Reid Spencera773bd52006-08-04 18:18:08 +000010777
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010778rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010779 conftest$ac_exeext conftest.$ac_ext
10780fi
Reid Spencera773bd52006-08-04 18:18:08 +000010781ac_res=`eval echo '${'$as_ac_var'}'`
10782 { echo "$as_me:$LINENO: result: $ac_res" >&5
10783echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784if test `eval echo '${'$as_ac_var'}'` = yes; then
10785 cat >>confdefs.h <<_ACEOF
10786#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10787_ACEOF
10788
10789fi
10790done
10791
10792 LIBS="$lt_save_LIBS"
10793fi
10794ac_ext=c
10795ac_cpp='$CPP $CPPFLAGS'
10796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10798ac_compiler_gnu=$ac_cv_c_compiler_gnu
10799
10800
10801
Reid Spencera773bd52006-08-04 18:18:08 +000010802{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10803echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10806else
10807 ac_cv_sys_symbol_underscore=no
10808 cat > conftest.$ac_ext <<EOF
10809void nm_test_func(){}
10810int main(){nm_test_func;return 0;}
10811EOF
10812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10813 (eval $ac_compile) 2>&5
10814 ac_status=$?
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 (exit $ac_status); }; then
10817 # Now try to grab the symbols.
10818 ac_nlist=conftest.nm
10819 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10820 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10821 ac_status=$?
10822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823 (exit $ac_status); } && test -s "$ac_nlist"; then
10824 # See whether the symbols have a leading underscore.
10825 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10826 ac_cv_sys_symbol_underscore=yes
10827 else
10828 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10829 :
10830 else
10831 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10832 fi
10833 fi
10834 else
10835 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10836 fi
10837 else
10838 echo "configure: failed program was:" >&5
10839 cat conftest.c >&5
10840 fi
10841 rm -rf conftest*
10842
10843fi
Reid Spencera773bd52006-08-04 18:18:08 +000010844{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10845echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010846
10847
10848if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10849 if test x"$libltdl_cv_func_dlopen" = xyes ||
10850 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010851 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10852echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010853if test "${libltdl_cv_need_uscore+set}" = set; then
10854 echo $ECHO_N "(cached) $ECHO_C" >&6
10855else
10856 libltdl_cv_need_uscore=unknown
10857 save_LIBS="$LIBS"
10858 LIBS="$LIBS $LIBADD_DL"
10859 if test "$cross_compiling" = yes; then :
10860 libltdl_cv_need_uscore=cross
10861else
10862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10863 lt_status=$lt_dlunknown
10864 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000010865#line 10865 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010866#include "confdefs.h"
10867
10868#if HAVE_DLFCN_H
10869#include <dlfcn.h>
10870#endif
10871
10872#include <stdio.h>
10873
10874#ifdef RTLD_GLOBAL
10875# define LT_DLGLOBAL RTLD_GLOBAL
10876#else
10877# ifdef DL_GLOBAL
10878# define LT_DLGLOBAL DL_GLOBAL
10879# else
10880# define LT_DLGLOBAL 0
10881# endif
10882#endif
10883
10884/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10885 find out it does not work in some platform. */
10886#ifndef LT_DLLAZY_OR_NOW
10887# ifdef RTLD_LAZY
10888# define LT_DLLAZY_OR_NOW RTLD_LAZY
10889# else
10890# ifdef DL_LAZY
10891# define LT_DLLAZY_OR_NOW DL_LAZY
10892# else
10893# ifdef RTLD_NOW
10894# define LT_DLLAZY_OR_NOW RTLD_NOW
10895# else
10896# ifdef DL_NOW
10897# define LT_DLLAZY_OR_NOW DL_NOW
10898# else
10899# define LT_DLLAZY_OR_NOW 0
10900# endif
10901# endif
10902# endif
10903# endif
10904#endif
10905
10906#ifdef __cplusplus
10907extern "C" void exit (int);
10908#endif
10909
10910void fnord() { int i=42;}
10911int main ()
10912{
10913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10914 int status = $lt_dlunknown;
10915
10916 if (self)
10917 {
10918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10920 /* dlclose (self); */
10921 }
Reid Spencera773bd52006-08-04 18:18:08 +000010922 else
10923 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010924
10925 exit (status);
10926}
10927EOF
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>&5
10930 ac_status=$?
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010933 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010934 lt_status=$?
10935 case x$lt_status in
10936 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10937 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010938 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939 esac
10940 else :
10941 # compilation failed
10942
10943 fi
10944fi
10945rm -fr conftest*
10946
10947 LIBS="$save_LIBS"
10948
10949fi
Reid Spencera773bd52006-08-04 18:18:08 +000010950{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10951echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010952 fi
10953fi
10954
10955if test x"$libltdl_cv_need_uscore" = xyes; then
10956
10957cat >>confdefs.h <<\_ACEOF
10958#define NEED_USCORE 1
10959_ACEOF
10960
10961fi
10962
10963
Reid Spencera773bd52006-08-04 18:18:08 +000010964{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10965echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 # PORTME does your system automatically load deplibs for dlopen?
10970 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10971 # For now, we just catch OSes we know something about -- in the
10972 # future, we'll try test this programmatically.
10973 libltdl_cv_sys_dlopen_deplibs=unknown
10974 case "$host_os" in
10975 aix3*|aix4.1.*|aix4.2.*)
10976 # Unknown whether this is true for these versions of AIX, but
10977 # we want this `case' here to explicitly catch those versions.
10978 libltdl_cv_sys_dlopen_deplibs=unknown
10979 ;;
10980 aix[45]*)
10981 libltdl_cv_sys_dlopen_deplibs=yes
10982 ;;
10983 darwin*)
10984 # Assuming the user has installed a libdl from somewhere, this is true
10985 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10986 libltdl_cv_sys_dlopen_deplibs=yes
10987 ;;
10988 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10989 # GNU and its variants, using gnu ld.so (Glibc)
10990 libltdl_cv_sys_dlopen_deplibs=yes
10991 ;;
10992 hpux10*|hpux11*)
10993 libltdl_cv_sys_dlopen_deplibs=yes
10994 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010995 interix*)
10996 libltdl_cv_sys_dlopen_deplibs=yes
10997 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998 irix[12345]*|irix6.[01]*)
10999 # Catch all versions of IRIX before 6.2, and indicate that we don't
11000 # know how it worked for any of those versions.
11001 libltdl_cv_sys_dlopen_deplibs=unknown
11002 ;;
11003 irix*)
11004 # The case above catches anything before 6.2, and it's known that
11005 # at 6.2 and later dlopen does load deplibs.
11006 libltdl_cv_sys_dlopen_deplibs=yes
11007 ;;
11008 netbsd*)
11009 libltdl_cv_sys_dlopen_deplibs=yes
11010 ;;
11011 openbsd*)
11012 libltdl_cv_sys_dlopen_deplibs=yes
11013 ;;
11014 osf[1234]*)
11015 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11016 # it did *not* use an RPATH in a shared library to find objects the
11017 # library depends on, so we explictly say `no'.
11018 libltdl_cv_sys_dlopen_deplibs=no
11019 ;;
11020 osf5.0|osf5.0a|osf5.1)
11021 # dlopen *does* load deplibs and with the right loader patch applied
11022 # it even uses RPATH in a shared library to search for shared objects
11023 # that the library depends on, but there's no easy way to know if that
11024 # patch is installed. Since this is the case, all we can really
11025 # say is unknown -- it depends on the patch being installed. If
11026 # it is, this changes to `yes'. Without it, it would be `no'.
11027 libltdl_cv_sys_dlopen_deplibs=unknown
11028 ;;
11029 osf*)
11030 # the two cases above should catch all versions of osf <= 5.1. Read
11031 # the comments above for what we know about them.
11032 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11033 # is used to find them so we can finally say `yes'.
11034 libltdl_cv_sys_dlopen_deplibs=yes
11035 ;;
11036 solaris*)
11037 libltdl_cv_sys_dlopen_deplibs=yes
11038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011039 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11040 libltdl_cv_sys_dlopen_deplibs=yes
11041 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042 esac
11043
11044fi
Reid Spencera773bd52006-08-04 18:18:08 +000011045{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11046echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011047if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11048
11049cat >>confdefs.h <<\_ACEOF
11050#define LTDL_DLOPEN_DEPLIBS 1
11051_ACEOF
11052
11053fi
11054
11055
11056for ac_header in argz.h
11057do
11058as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11061echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11062if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063 echo $ECHO_N "(cached) $ECHO_C" >&6
11064fi
Reid Spencera773bd52006-08-04 18:18:08 +000011065ac_res=`eval echo '${'$as_ac_Header'}'`
11066 { echo "$as_me:$LINENO: result: $ac_res" >&5
11067echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068else
11069 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011070{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072cat >conftest.$ac_ext <<_ACEOF
11073/* confdefs.h. */
11074_ACEOF
11075cat confdefs.h >>conftest.$ac_ext
11076cat >>conftest.$ac_ext <<_ACEOF
11077/* end confdefs.h. */
11078$ac_includes_default
11079#include <$ac_header>
11080_ACEOF
11081rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011082if { (ac_try="$ac_compile"
11083case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11086esac
11087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011094 (exit $ac_status); } &&
11095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11096 { (case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_try") 2>&5
11102 ac_status=$?
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); }; } &&
11105 { ac_try='test -s conftest.$ac_objext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109esac
11110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115 ac_header_compiler=yes
11116else
11117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
Reid Spencera773bd52006-08-04 18:18:08 +000011120 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121fi
Reid Spencera773bd52006-08-04 18:18:08 +000011122
11123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11124{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11125echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126
11127# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011128{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11129echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136#include <$ac_header>
11137_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011138if { (ac_try="$ac_cpp conftest.$ac_ext"
11139case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11142esac
11143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145 ac_status=$?
11146 grep -v '^ *+' conftest.er1 >conftest.err
11147 rm -f conftest.er1
11148 cat conftest.err >&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011150 (exit $ac_status); } >/dev/null; then
11151 if test -s conftest.err; then
11152 ac_cpp_err=$ac_c_preproc_warn_flag
11153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11154 else
11155 ac_cpp_err=
11156 fi
11157else
11158 ac_cpp_err=yes
11159fi
11160if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161 ac_header_preproc=yes
11162else
11163 echo "$as_me: failed program was:" >&5
11164sed 's/^/| /' conftest.$ac_ext >&5
11165
11166 ac_header_preproc=no
11167fi
Reid Spencera773bd52006-08-04 18:18:08 +000011168
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011170{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11171echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172
11173# So? What about this header?
11174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11175 yes:no: )
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11177echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11179echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11180 ac_header_preproc=yes
11181 ;;
11182 no:yes:* )
11183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11184echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11186echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11188echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11190echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11194echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011195 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196## ----------------------------------- ##
11197## Report this to llvmbugs@cs.uiuc.edu ##
11198## ----------------------------------- ##
11199_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011200 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201 ;;
11202esac
Reid Spencera773bd52006-08-04 18:18:08 +000011203{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 eval "$as_ac_Header=\$ac_header_preproc"
11209fi
Reid Spencera773bd52006-08-04 18:18:08 +000011210ac_res=`eval echo '${'$as_ac_Header'}'`
11211 { echo "$as_me:$LINENO: result: $ac_res" >&5
11212echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011213
11214fi
11215if test `eval echo '${'$as_ac_Header'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11218_ACEOF
11219
11220fi
11221
11222done
11223
11224
Reid Spencera773bd52006-08-04 18:18:08 +000011225{ echo "$as_me:$LINENO: checking for error_t" >&5
11226echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227if test "${ac_cv_type_error_t+set}" = set; then
11228 echo $ECHO_N "(cached) $ECHO_C" >&6
11229else
11230 cat >conftest.$ac_ext <<_ACEOF
11231/* confdefs.h. */
11232_ACEOF
11233cat confdefs.h >>conftest.$ac_ext
11234cat >>conftest.$ac_ext <<_ACEOF
11235/* end confdefs.h. */
11236#if HAVE_ARGZ_H
11237# include <argz.h>
11238#endif
11239
Reid Spencera773bd52006-08-04 18:18:08 +000011240typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241int
11242main ()
11243{
Reid Spencera773bd52006-08-04 18:18:08 +000011244if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011246if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247 return 0;
11248 ;
11249 return 0;
11250}
11251_ACEOF
11252rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011253if { (ac_try="$ac_compile"
11254case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11257esac
11258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011260 ac_status=$?
11261 grep -v '^ *+' conftest.er1 >conftest.err
11262 rm -f conftest.er1
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11280esac
11281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11283 ac_status=$?
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286 ac_cv_type_error_t=yes
11287else
11288 echo "$as_me: failed program was:" >&5
11289sed 's/^/| /' conftest.$ac_ext >&5
11290
Reid Spencera773bd52006-08-04 18:18:08 +000011291 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292fi
Reid Spencera773bd52006-08-04 18:18:08 +000011293
11294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295fi
Reid Spencera773bd52006-08-04 18:18:08 +000011296{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11297echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298if test $ac_cv_type_error_t = yes; then
11299
11300cat >>confdefs.h <<_ACEOF
11301#define HAVE_ERROR_T 1
11302_ACEOF
11303
11304
11305else
11306
11307cat >>confdefs.h <<\_ACEOF
11308#define error_t int
11309_ACEOF
11310
11311fi
11312
11313
11314
11315
11316
11317
11318
11319for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11320do
11321as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011322{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11323echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11324if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326else
11327 cat >conftest.$ac_ext <<_ACEOF
11328/* confdefs.h. */
11329_ACEOF
11330cat confdefs.h >>conftest.$ac_ext
11331cat >>conftest.$ac_ext <<_ACEOF
11332/* end confdefs.h. */
11333/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11335#define $ac_func innocuous_$ac_func
11336
11337/* System header to define __stub macros and hopefully few prototypes,
11338 which can conflict with char $ac_func (); below.
11339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11340 <limits.h> exists even on freestanding compilers. */
11341
11342#ifdef __STDC__
11343# include <limits.h>
11344#else
11345# include <assert.h>
11346#endif
11347
11348#undef $ac_func
11349
Reid Spencera773bd52006-08-04 18:18:08 +000011350/* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353#ifdef __cplusplus
11354extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011355#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356char $ac_func ();
11357/* The GNU C library defines this for functions which it implements
11358 to always fail with ENOSYS. Some functions are actually named
11359 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011360#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362#endif
11363
11364int
11365main ()
11366{
Reid Spencera773bd52006-08-04 18:18:08 +000011367return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011368 ;
11369 return 0;
11370}
11371_ACEOF
11372rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011373if { (ac_try="$ac_link"
11374case "(($ac_try" in
11375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376 *) ac_try_echo=$ac_try;;
11377esac
11378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380 ac_status=$?
11381 grep -v '^ *+' conftest.er1 >conftest.err
11382 rm -f conftest.er1
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11387 { (case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11390esac
11391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_try") 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11400esac
11401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11403 ac_status=$?
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406 eval "$as_ac_var=yes"
11407else
11408 echo "$as_me: failed program was:" >&5
11409sed 's/^/| /' conftest.$ac_ext >&5
11410
Reid Spencera773bd52006-08-04 18:18:08 +000011411 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412fi
Reid Spencera773bd52006-08-04 18:18:08 +000011413
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011414rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 conftest$ac_exeext conftest.$ac_ext
11416fi
Reid Spencera773bd52006-08-04 18:18:08 +000011417ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423_ACEOF
11424
11425fi
11426done
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
11454
11455for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11456 stdio.h unistd.h
11457do
11458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464fi
Reid Spencera773bd52006-08-04 18:18:08 +000011465ac_res=`eval echo '${'$as_ac_Header'}'`
11466 { echo "$as_me:$LINENO: result: $ac_res" >&5
11467echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468else
11469 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011470{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472cat >conftest.$ac_ext <<_ACEOF
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478$ac_includes_default
11479#include <$ac_header>
11480_ACEOF
11481rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011482if { (ac_try="$ac_compile"
11483case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496 { (case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_try") 2>&5
11502 ac_status=$?
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }; } &&
11505 { ac_try='test -s conftest.$ac_objext'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11509esac
11510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11512 ac_status=$?
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515 ac_header_compiler=yes
11516else
11517 echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
Reid Spencera773bd52006-08-04 18:18:08 +000011520 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011521fi
Reid Spencera773bd52006-08-04 18:18:08 +000011522
11523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11524{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526
11527# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011528{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530cat >conftest.$ac_ext <<_ACEOF
11531/* confdefs.h. */
11532_ACEOF
11533cat confdefs.h >>conftest.$ac_ext
11534cat >>conftest.$ac_ext <<_ACEOF
11535/* end confdefs.h. */
11536#include <$ac_header>
11537_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011538if { (ac_try="$ac_cpp conftest.$ac_ext"
11539case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542esac
11543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545 ac_status=$?
11546 grep -v '^ *+' conftest.er1 >conftest.err
11547 rm -f conftest.er1
11548 cat conftest.err >&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011550 (exit $ac_status); } >/dev/null; then
11551 if test -s conftest.err; then
11552 ac_cpp_err=$ac_c_preproc_warn_flag
11553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11554 else
11555 ac_cpp_err=
11556 fi
11557else
11558 ac_cpp_err=yes
11559fi
11560if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561 ac_header_preproc=yes
11562else
11563 echo "$as_me: failed program was:" >&5
11564sed 's/^/| /' conftest.$ac_ext >&5
11565
11566 ac_header_preproc=no
11567fi
Reid Spencera773bd52006-08-04 18:18:08 +000011568
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011570{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572
11573# So? What about this header?
11574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575 yes:no: )
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580 ac_header_preproc=yes
11581 ;;
11582 no:yes:* )
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011595 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596## ----------------------------------- ##
11597## Report this to llvmbugs@cs.uiuc.edu ##
11598## ----------------------------------- ##
11599_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011600 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601 ;;
11602esac
Reid Spencera773bd52006-08-04 18:18:08 +000011603{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 echo $ECHO_N "(cached) $ECHO_C" >&6
11607else
11608 eval "$as_ac_Header=\$ac_header_preproc"
11609fi
Reid Spencera773bd52006-08-04 18:18:08 +000011610ac_res=`eval echo '${'$as_ac_Header'}'`
11611 { echo "$as_me:$LINENO: result: $ac_res" >&5
11612echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613
11614fi
11615if test `eval echo '${'$as_ac_Header'}'` = yes; then
11616 cat >>confdefs.h <<_ACEOF
11617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11618_ACEOF
11619
11620fi
11621
11622done
11623
11624
11625
11626
11627
11628for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11629do
11630as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636fi
Reid Spencera773bd52006-08-04 18:18:08 +000011637ac_res=`eval echo '${'$as_ac_Header'}'`
11638 { echo "$as_me:$LINENO: result: $ac_res" >&5
11639echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640else
11641 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011642{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644cat >conftest.$ac_ext <<_ACEOF
11645/* confdefs.h. */
11646_ACEOF
11647cat confdefs.h >>conftest.$ac_ext
11648cat >>conftest.$ac_ext <<_ACEOF
11649/* end confdefs.h. */
11650$ac_includes_default
11651#include <$ac_header>
11652_ACEOF
11653rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011654if { (ac_try="$ac_compile"
11655case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 ac_status=$?
11662 grep -v '^ *+' conftest.er1 >conftest.err
11663 rm -f conftest.er1
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11671esac
11672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest.$ac_objext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687 ac_header_compiler=yes
11688else
11689 echo "$as_me: failed program was:" >&5
11690sed 's/^/| /' conftest.$ac_ext >&5
11691
Reid Spencera773bd52006-08-04 18:18:08 +000011692 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693fi
Reid Spencera773bd52006-08-04 18:18:08 +000011694
11695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11696{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698
11699# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011700{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11701echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702cat >conftest.$ac_ext <<_ACEOF
11703/* confdefs.h. */
11704_ACEOF
11705cat confdefs.h >>conftest.$ac_ext
11706cat >>conftest.$ac_ext <<_ACEOF
11707/* end confdefs.h. */
11708#include <$ac_header>
11709_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011710if { (ac_try="$ac_cpp conftest.$ac_ext"
11711case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011722 (exit $ac_status); } >/dev/null; then
11723 if test -s conftest.err; then
11724 ac_cpp_err=$ac_c_preproc_warn_flag
11725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11726 else
11727 ac_cpp_err=
11728 fi
11729else
11730 ac_cpp_err=yes
11731fi
11732if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733 ac_header_preproc=yes
11734else
11735 echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738 ac_header_preproc=no
11739fi
Reid Spencera773bd52006-08-04 18:18:08 +000011740
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011742{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11743echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744
11745# So? What about this header?
11746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11747 yes:no: )
11748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11752 ac_header_preproc=yes
11753 ;;
11754 no:yes:* )
11755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11758echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11762echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011767 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768## ----------------------------------- ##
11769## Report this to llvmbugs@cs.uiuc.edu ##
11770## ----------------------------------- ##
11771_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011772 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 ;;
11774esac
Reid Spencera773bd52006-08-04 18:18:08 +000011775{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778 echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780 eval "$as_ac_Header=\$ac_header_preproc"
11781fi
Reid Spencera773bd52006-08-04 18:18:08 +000011782ac_res=`eval echo '${'$as_ac_Header'}'`
11783 { echo "$as_me:$LINENO: result: $ac_res" >&5
11784echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785
11786fi
11787if test `eval echo '${'$as_ac_Header'}'` = yes; then
11788 cat >>confdefs.h <<_ACEOF
11789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11790_ACEOF
11791
11792fi
11793
11794done
11795
11796
11797
11798for ac_header in string.h strings.h
11799do
11800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 echo $ECHO_N "(cached) $ECHO_C" >&6
11806fi
Reid Spencera773bd52006-08-04 18:18:08 +000011807ac_res=`eval echo '${'$as_ac_Header'}'`
11808 { echo "$as_me:$LINENO: result: $ac_res" >&5
11809echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810else
11811 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011812{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
11820$ac_includes_default
11821#include <$ac_header>
11822_ACEOF
11823rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011824if { (ac_try="$ac_compile"
11825case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828esac
11829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (case "(($ac_try" in
11839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11841esac
11842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_try") 2>&5
11844 ac_status=$?
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); }; } &&
11847 { ac_try='test -s conftest.$ac_objext'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 ac_header_compiler=yes
11858else
11859 echo "$as_me: failed program was:" >&5
11860sed 's/^/| /' conftest.$ac_ext >&5
11861
Reid Spencera773bd52006-08-04 18:18:08 +000011862 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863fi
Reid Spencera773bd52006-08-04 18:18:08 +000011864
11865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11867echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868
11869# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011870{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11871echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872cat >conftest.$ac_ext <<_ACEOF
11873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <$ac_header>
11879_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011880if { (ac_try="$ac_cpp conftest.$ac_ext"
11881case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884esac
11885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011892 (exit $ac_status); } >/dev/null; then
11893 if test -s conftest.err; then
11894 ac_cpp_err=$ac_c_preproc_warn_flag
11895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11896 else
11897 ac_cpp_err=
11898 fi
11899else
11900 ac_cpp_err=yes
11901fi
11902if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903 ac_header_preproc=yes
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 ac_header_preproc=no
11909fi
Reid Spencera773bd52006-08-04 18:18:08 +000011910
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011911rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011912{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914
11915# So? What about this header?
11916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917 yes:no: )
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922 ac_header_preproc=yes
11923 ;;
11924 no:yes:* )
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011937 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938## ----------------------------------- ##
11939## Report this to llvmbugs@cs.uiuc.edu ##
11940## ----------------------------------- ##
11941_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011942 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 ;;
11944esac
Reid Spencera773bd52006-08-04 18:18:08 +000011945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949else
11950 eval "$as_ac_Header=\$ac_header_preproc"
11951fi
Reid Spencera773bd52006-08-04 18:18:08 +000011952ac_res=`eval echo '${'$as_ac_Header'}'`
11953 { echo "$as_me:$LINENO: result: $ac_res" >&5
11954echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955
11956fi
11957if test `eval echo '${'$as_ac_Header'}'` = yes; then
11958 cat >>confdefs.h <<_ACEOF
11959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11960_ACEOF
11961 break
11962fi
11963
11964done
11965
11966
11967
11968
11969for ac_func in strchr index
11970do
11971as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011972{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11973echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11974if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 echo $ECHO_N "(cached) $ECHO_C" >&6
11976else
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11985#define $ac_func innocuous_$ac_func
11986
11987/* System header to define __stub macros and hopefully few prototypes,
11988 which can conflict with char $ac_func (); below.
11989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11990 <limits.h> exists even on freestanding compilers. */
11991
11992#ifdef __STDC__
11993# include <limits.h>
11994#else
11995# include <assert.h>
11996#endif
11997
11998#undef $ac_func
11999
Reid Spencera773bd52006-08-04 18:18:08 +000012000/* Override any GCC internal prototype to avoid an error.
12001 Use char because int might match the return type of a GCC
12002 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012003#ifdef __cplusplus
12004extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006char $ac_func ();
12007/* The GNU C library defines this for functions which it implements
12008 to always fail with ENOSYS. Some functions are actually named
12009 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012010#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012#endif
12013
12014int
12015main ()
12016{
Reid Spencera773bd52006-08-04 18:18:08 +000012017return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018 ;
12019 return 0;
12020}
12021_ACEOF
12022rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012023if { (ac_try="$ac_link"
12024case "(($ac_try" in
12025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12026 *) ac_try_echo=$ac_try;;
12027esac
12028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12029 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030 ac_status=$?
12031 grep -v '^ *+' conftest.er1 >conftest.err
12032 rm -f conftest.er1
12033 cat conftest.err >&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012035 (exit $ac_status); } &&
12036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12037 { (case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040esac
12041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_try") 2>&5
12043 ac_status=$?
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest$ac_exeext'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056 eval "$as_ac_var=yes"
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
Reid Spencera773bd52006-08-04 18:18:08 +000012061 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062fi
Reid Spencera773bd52006-08-04 18:18:08 +000012063
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012064rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012065 conftest$ac_exeext conftest.$ac_ext
12066fi
Reid Spencera773bd52006-08-04 18:18:08 +000012067ac_res=`eval echo '${'$as_ac_var'}'`
12068 { echo "$as_me:$LINENO: result: $ac_res" >&5
12069echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012070if test `eval echo '${'$as_ac_var'}'` = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12073_ACEOF
12074 break
12075fi
12076done
12077
12078
12079
12080for ac_func in strrchr rindex
12081do
12082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12096#define $ac_func innocuous_$ac_func
12097
12098/* System header to define __stub macros and hopefully few prototypes,
12099 which can conflict with char $ac_func (); below.
12100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12101 <limits.h> exists even on freestanding compilers. */
12102
12103#ifdef __STDC__
12104# include <limits.h>
12105#else
12106# include <assert.h>
12107#endif
12108
12109#undef $ac_func
12110
Reid Spencera773bd52006-08-04 18:18:08 +000012111/* Override any GCC internal prototype to avoid an error.
12112 Use char because int might match the return type of a GCC
12113 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012114#ifdef __cplusplus
12115extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117char $ac_func ();
12118/* The GNU C library defines this for functions which it implements
12119 to always fail with ENOSYS. Some functions are actually named
12120 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012121#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012123#endif
12124
12125int
12126main ()
12127{
Reid Spencera773bd52006-08-04 18:18:08 +000012128return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129 ;
12130 return 0;
12131}
12132_ACEOF
12133rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012134if { (ac_try="$ac_link"
12135case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12138esac
12139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012141 ac_status=$?
12142 grep -v '^ *+' conftest.er1 >conftest.err
12143 rm -f conftest.er1
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12148 { (case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_try") 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; } &&
12157 { ac_try='test -s conftest$ac_exeext'
12158 { (case "(($ac_try" in
12159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12160 *) ac_try_echo=$ac_try;;
12161esac
12162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12163 (eval "$ac_try") 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167 eval "$as_ac_var=yes"
12168else
12169 echo "$as_me: failed program was:" >&5
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
Reid Spencera773bd52006-08-04 18:18:08 +000012172 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173fi
Reid Spencera773bd52006-08-04 18:18:08 +000012174
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012175rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176 conftest$ac_exeext conftest.$ac_ext
12177fi
Reid Spencera773bd52006-08-04 18:18:08 +000012178ac_res=`eval echo '${'$as_ac_var'}'`
12179 { echo "$as_me:$LINENO: result: $ac_res" >&5
12180echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181if test `eval echo '${'$as_ac_var'}'` = yes; then
12182 cat >>confdefs.h <<_ACEOF
12183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12184_ACEOF
12185 break
12186fi
12187done
12188
12189
12190
12191for ac_func in memcpy bcopy
12192do
12193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012194{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12196if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199 cat >conftest.$ac_ext <<_ACEOF
12200/* confdefs.h. */
12201_ACEOF
12202cat confdefs.h >>conftest.$ac_ext
12203cat >>conftest.$ac_ext <<_ACEOF
12204/* end confdefs.h. */
12205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12207#define $ac_func innocuous_$ac_func
12208
12209/* System header to define __stub macros and hopefully few prototypes,
12210 which can conflict with char $ac_func (); below.
12211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12212 <limits.h> exists even on freestanding compilers. */
12213
12214#ifdef __STDC__
12215# include <limits.h>
12216#else
12217# include <assert.h>
12218#endif
12219
12220#undef $ac_func
12221
Reid Spencera773bd52006-08-04 18:18:08 +000012222/* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012225#ifdef __cplusplus
12226extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228char $ac_func ();
12229/* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012232#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234#endif
12235
12236int
12237main ()
12238{
Reid Spencera773bd52006-08-04 18:18:08 +000012239return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240 ;
12241 return 0;
12242}
12243_ACEOF
12244rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012245if { (ac_try="$ac_link"
12246case "(($ac_try" in
12247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12249esac
12250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12259 { (case "(($ac_try" in
12260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12261 *) ac_try_echo=$ac_try;;
12262esac
12263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12264 (eval "$ac_try") 2>&5
12265 ac_status=$?
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); }; } &&
12268 { ac_try='test -s conftest$ac_exeext'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12272esac
12273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 eval "$as_ac_var=yes"
12279else
12280 echo "$as_me: failed program was:" >&5
12281sed 's/^/| /' conftest.$ac_ext >&5
12282
Reid Spencera773bd52006-08-04 18:18:08 +000012283 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284fi
Reid Spencera773bd52006-08-04 18:18:08 +000012285
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012286rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012287 conftest$ac_exeext conftest.$ac_ext
12288fi
Reid Spencera773bd52006-08-04 18:18:08 +000012289ac_res=`eval echo '${'$as_ac_var'}'`
12290 { echo "$as_me:$LINENO: result: $ac_res" >&5
12291echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292if test `eval echo '${'$as_ac_var'}'` = yes; then
12293 cat >>confdefs.h <<_ACEOF
12294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12295_ACEOF
12296 break
12297fi
12298done
12299
12300
12301
12302for ac_func in memmove strcmp
12303do
12304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012305{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12307if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309else
12310 cat >conftest.$ac_ext <<_ACEOF
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12318#define $ac_func innocuous_$ac_func
12319
12320/* System header to define __stub macros and hopefully few prototypes,
12321 which can conflict with char $ac_func (); below.
12322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12323 <limits.h> exists even on freestanding compilers. */
12324
12325#ifdef __STDC__
12326# include <limits.h>
12327#else
12328# include <assert.h>
12329#endif
12330
12331#undef $ac_func
12332
Reid Spencera773bd52006-08-04 18:18:08 +000012333/* Override any GCC internal prototype to avoid an error.
12334 Use char because int might match the return type of a GCC
12335 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336#ifdef __cplusplus
12337extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012339char $ac_func ();
12340/* The GNU C library defines this for functions which it implements
12341 to always fail with ENOSYS. Some functions are actually named
12342 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012343#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345#endif
12346
12347int
12348main ()
12349{
Reid Spencera773bd52006-08-04 18:18:08 +000012350return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012351 ;
12352 return 0;
12353}
12354_ACEOF
12355rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012356if { (ac_try="$ac_link"
12357case "(($ac_try" in
12358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12360esac
12361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012363 ac_status=$?
12364 grep -v '^ *+' conftest.er1 >conftest.err
12365 rm -f conftest.er1
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12370 { (case "(($ac_try" in
12371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12372 *) ac_try_echo=$ac_try;;
12373esac
12374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12375 (eval "$ac_try") 2>&5
12376 ac_status=$?
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; } &&
12379 { ac_try='test -s conftest$ac_exeext'
12380 { (case "(($ac_try" in
12381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12382 *) ac_try_echo=$ac_try;;
12383esac
12384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12385 (eval "$ac_try") 2>&5
12386 ac_status=$?
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389 eval "$as_ac_var=yes"
12390else
12391 echo "$as_me: failed program was:" >&5
12392sed 's/^/| /' conftest.$ac_ext >&5
12393
Reid Spencera773bd52006-08-04 18:18:08 +000012394 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395fi
Reid Spencera773bd52006-08-04 18:18:08 +000012396
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012397rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012398 conftest$ac_exeext conftest.$ac_ext
12399fi
Reid Spencera773bd52006-08-04 18:18:08 +000012400ac_res=`eval echo '${'$as_ac_var'}'`
12401 { echo "$as_me:$LINENO: result: $ac_res" >&5
12402echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012403if test `eval echo '${'$as_ac_var'}'` = yes; then
12404 cat >>confdefs.h <<_ACEOF
12405#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12406_ACEOF
12407
12408fi
12409done
12410
12411
12412
12413
12414for ac_func in closedir opendir readdir
12415do
12416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012417{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12419if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12430#define $ac_func innocuous_$ac_func
12431
12432/* System header to define __stub macros and hopefully few prototypes,
12433 which can conflict with char $ac_func (); below.
12434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12435 <limits.h> exists even on freestanding compilers. */
12436
12437#ifdef __STDC__
12438# include <limits.h>
12439#else
12440# include <assert.h>
12441#endif
12442
12443#undef $ac_func
12444
Reid Spencera773bd52006-08-04 18:18:08 +000012445/* Override any GCC internal prototype to avoid an error.
12446 Use char because int might match the return type of a GCC
12447 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448#ifdef __cplusplus
12449extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451char $ac_func ();
12452/* The GNU C library defines this for functions which it implements
12453 to always fail with ENOSYS. Some functions are actually named
12454 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012455#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012456choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012457#endif
12458
12459int
12460main ()
12461{
Reid Spencera773bd52006-08-04 18:18:08 +000012462return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012463 ;
12464 return 0;
12465}
12466_ACEOF
12467rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012468if { (ac_try="$ac_link"
12469case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472esac
12473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012480 (exit $ac_status); } &&
12481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12485esac
12486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12488 ac_status=$?
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; } &&
12491 { ac_try='test -s conftest$ac_exeext'
12492 { (case "(($ac_try" in
12493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12495esac
12496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_try") 2>&5
12498 ac_status=$?
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501 eval "$as_ac_var=yes"
12502else
12503 echo "$as_me: failed program was:" >&5
12504sed 's/^/| /' conftest.$ac_ext >&5
12505
Reid Spencera773bd52006-08-04 18:18:08 +000012506 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012507fi
Reid Spencera773bd52006-08-04 18:18:08 +000012508
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012509rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012510 conftest$ac_exeext conftest.$ac_ext
12511fi
Reid Spencera773bd52006-08-04 18:18:08 +000012512ac_res=`eval echo '${'$as_ac_var'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012515if test `eval echo '${'$as_ac_var'}'` = yes; then
12516 cat >>confdefs.h <<_ACEOF
12517#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12518_ACEOF
12519
12520fi
12521done
12522
12523
Reid Spencera773bd52006-08-04 18:18:08 +000012524# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012525if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012526 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012527 case $enableval in
12528 yes) enable_shared=yes ;;
12529 no) enable_shared=no ;;
12530 *)
12531 enable_shared=no
12532 # Look at the argument we got. We use all the common list separators.
12533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12534 for pkg in $enableval; do
12535 IFS="$lt_save_ifs"
12536 if test "X$pkg" = "X$p"; then
12537 enable_shared=yes
12538 fi
12539 done
12540 IFS="$lt_save_ifs"
12541 ;;
12542 esac
12543else
12544 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012545fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012546
Reid Spencera773bd52006-08-04 18:18:08 +000012547
12548# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012549if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012550 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012551 case $enableval in
12552 yes) enable_static=yes ;;
12553 no) enable_static=no ;;
12554 *)
12555 enable_static=no
12556 # Look at the argument we got. We use all the common list separators.
12557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12558 for pkg in $enableval; do
12559 IFS="$lt_save_ifs"
12560 if test "X$pkg" = "X$p"; then
12561 enable_static=yes
12562 fi
12563 done
12564 IFS="$lt_save_ifs"
12565 ;;
12566 esac
12567else
12568 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012569fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570
Reid Spencera773bd52006-08-04 18:18:08 +000012571
12572# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012573if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012574 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012575 case $enableval in
12576 yes) enable_fast_install=yes ;;
12577 no) enable_fast_install=no ;;
12578 *)
12579 enable_fast_install=no
12580 # Look at the argument we got. We use all the common list separators.
12581 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12582 for pkg in $enableval; do
12583 IFS="$lt_save_ifs"
12584 if test "X$pkg" = "X$p"; then
12585 enable_fast_install=yes
12586 fi
12587 done
12588 IFS="$lt_save_ifs"
12589 ;;
12590 esac
12591else
12592 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012593fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012594
Reid Spencera773bd52006-08-04 18:18:08 +000012595
12596{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12597echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012598if test "${lt_cv_path_SED+set}" = set; then
12599 echo $ECHO_N "(cached) $ECHO_C" >&6
12600else
12601 # Loop through the user's path and test for sed and gsed.
12602# Then use that list of sed's as ones to test for truncation.
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
12608 for lt_ac_prog in sed gsed; do
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12611 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12612 fi
12613 done
12614 done
12615done
12616lt_ac_max=0
12617lt_ac_count=0
12618# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12619# along with /bin/sed that truncates output.
12620for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012621 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622 cat /dev/null > conftest.in
12623 lt_ac_count=0
12624 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12625 # Check for GNU sed and select it if it is found.
12626 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12627 lt_cv_path_SED=$lt_ac_sed
12628 break
12629 fi
12630 while true; do
12631 cat conftest.in conftest.in >conftest.tmp
12632 mv conftest.tmp conftest.in
12633 cp conftest.in conftest.nl
12634 echo >>conftest.nl
12635 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12636 cmp -s conftest.out conftest.nl || break
12637 # 10000 chars as input seems more than enough
12638 test $lt_ac_count -gt 10 && break
12639 lt_ac_count=`expr $lt_ac_count + 1`
12640 if test $lt_ac_count -gt $lt_ac_max; then
12641 lt_ac_max=$lt_ac_count
12642 lt_cv_path_SED=$lt_ac_sed
12643 fi
12644 done
12645done
12646
12647fi
12648
12649SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012650{ echo "$as_me:$LINENO: result: $SED" >&5
12651echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012652
12653
Reid Spencera773bd52006-08-04 18:18:08 +000012654# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012655if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012656 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657else
12658 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012659fi
12660
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661ac_prog=ld
12662if test "$GCC" = yes; then
12663 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012664 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12665echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012666 case $host in
12667 *-*-mingw*)
12668 # gcc leaves a trailing carriage return which upsets mingw
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12670 *)
12671 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672 esac
12673 case $ac_prog in
12674 # Accept absolute paths.
12675 [\\/]* | ?:[\\/]*)
12676 re_direlt='/[^/][^/]*/\.\./'
12677 # Canonicalize the pathname of ld
12678 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12679 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12680 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12681 done
12682 test -z "$LD" && LD="$ac_prog"
12683 ;;
12684 "")
12685 # If it fails, then pretend we aren't using GCC.
12686 ac_prog=ld
12687 ;;
12688 *)
12689 # If it is relative, then search for the first ld in PATH.
12690 with_gnu_ld=unknown
12691 ;;
12692 esac
12693elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012694 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12695echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012696else
Reid Spencera773bd52006-08-04 18:18:08 +000012697 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12698echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012699fi
12700if test "${lt_cv_path_LD+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12702else
12703 if test -z "$LD"; then
12704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12705 for ac_dir in $PATH; do
12706 IFS="$lt_save_ifs"
12707 test -z "$ac_dir" && ac_dir=.
12708 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12709 lt_cv_path_LD="$ac_dir/$ac_prog"
12710 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012711 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712 # Break only if it was the GNU/non-GNU ld that we prefer.
12713 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12714 *GNU* | *'with BFD'*)
12715 test "$with_gnu_ld" != no && break
12716 ;;
12717 *)
12718 test "$with_gnu_ld" != yes && break
12719 ;;
12720 esac
12721 fi
12722 done
12723 IFS="$lt_save_ifs"
12724else
12725 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12726fi
12727fi
12728
12729LD="$lt_cv_path_LD"
12730if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012731 { echo "$as_me:$LINENO: result: $LD" >&5
12732echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012733else
Reid Spencera773bd52006-08-04 18:18:08 +000012734 { echo "$as_me:$LINENO: result: no" >&5
12735echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012736fi
12737test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12738echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12739 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012740{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12741echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742if test "${lt_cv_prog_gnu_ld+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12744else
Reid Spencera773bd52006-08-04 18:18:08 +000012745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012746case `$LD -v 2>&1 </dev/null` in
12747*GNU* | *'with BFD'*)
12748 lt_cv_prog_gnu_ld=yes
12749 ;;
12750*)
12751 lt_cv_prog_gnu_ld=no
12752 ;;
12753esac
12754fi
Reid Spencera773bd52006-08-04 18:18:08 +000012755{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12756echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757with_gnu_ld=$lt_cv_prog_gnu_ld
12758
12759
Reid Spencera773bd52006-08-04 18:18:08 +000012760{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12761echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012762if test "${lt_cv_ld_reload_flag+set}" = set; then
12763 echo $ECHO_N "(cached) $ECHO_C" >&6
12764else
12765 lt_cv_ld_reload_flag='-r'
12766fi
Reid Spencera773bd52006-08-04 18:18:08 +000012767{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12768echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012769reload_flag=$lt_cv_ld_reload_flag
12770case $reload_flag in
12771"" | " "*) ;;
12772*) reload_flag=" $reload_flag" ;;
12773esac
12774reload_cmds='$LD$reload_flag -o $output$reload_objs'
12775case $host_os in
12776 darwin*)
12777 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012779 else
12780 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12781 fi
12782 ;;
12783esac
12784
Reid Spencera773bd52006-08-04 18:18:08 +000012785{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12786echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787if test "${lt_cv_deplibs_check_method+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12789else
12790 lt_cv_file_magic_cmd='$MAGIC_CMD'
12791lt_cv_file_magic_test_file=
12792lt_cv_deplibs_check_method='unknown'
12793# Need to set the preceding variable on all platforms that support
12794# interlibrary dependencies.
12795# 'none' -- dependencies not supported.
12796# `unknown' -- same as none, but documents that we really don't know.
12797# 'pass_all' -- all dependencies passed with no checks.
12798# 'test_compile' -- check by making test program.
12799# 'file_magic [[regex]]' -- check by looking for files in library path
12800# which responds to the $file_magic_cmd with a given extended regex.
12801# If you have `file' or equivalent on your system and you're not sure
12802# whether `pass_all' will *always* work, you probably want this one.
12803
12804case $host_os in
12805aix4* | aix5*)
12806 lt_cv_deplibs_check_method=pass_all
12807 ;;
12808
12809beos*)
12810 lt_cv_deplibs_check_method=pass_all
12811 ;;
12812
12813bsdi[45]*)
12814 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12815 lt_cv_file_magic_cmd='/usr/bin/file -L'
12816 lt_cv_file_magic_test_file=/shlib/libc.so
12817 ;;
12818
12819cygwin*)
12820 # func_win32_libid is a shell function defined in ltmain.sh
12821 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12822 lt_cv_file_magic_cmd='func_win32_libid'
12823 ;;
12824
12825mingw* | pw32*)
12826 # Base MSYS/MinGW do not provide the 'file' command needed by
12827 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12828 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12829 lt_cv_file_magic_cmd='$OBJDUMP -f'
12830 ;;
12831
12832darwin* | rhapsody*)
12833 lt_cv_deplibs_check_method=pass_all
12834 ;;
12835
Reid Spencera773bd52006-08-04 18:18:08 +000012836freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012837 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12838 case $host_cpu in
12839 i*86 )
12840 # Not sure whether the presence of OpenBSD here was a mistake.
12841 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012842 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 +000012843 lt_cv_file_magic_cmd=/usr/bin/file
12844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12845 ;;
12846 esac
12847 else
12848 lt_cv_deplibs_check_method=pass_all
12849 fi
12850 ;;
12851
12852gnu*)
12853 lt_cv_deplibs_check_method=pass_all
12854 ;;
12855
12856hpux10.20* | hpux11*)
12857 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012858 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012859 ia64*)
12860 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12861 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12862 ;;
12863 hppa*64*)
12864 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]'
12865 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12866 ;;
12867 *)
12868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12869 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12870 ;;
12871 esac
12872 ;;
12873
Reid Spencera773bd52006-08-04 18:18:08 +000012874interix3*)
12875 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12877 ;;
12878
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012879irix5* | irix6* | nonstopux*)
12880 case $LD in
12881 *-32|*"-32 ") libmagic=32-bit;;
12882 *-n32|*"-n32 ") libmagic=N32;;
12883 *-64|*"-64 ") libmagic=64-bit;;
12884 *) libmagic=never-match;;
12885 esac
12886 lt_cv_deplibs_check_method=pass_all
12887 ;;
12888
12889# This must be Linux ELF.
12890linux*)
12891 lt_cv_deplibs_check_method=pass_all
12892 ;;
12893
12894netbsd*)
12895 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12896 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12897 else
12898 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12899 fi
12900 ;;
12901
12902newos6*)
12903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12904 lt_cv_file_magic_cmd=/usr/bin/file
12905 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12906 ;;
12907
12908nto-qnx*)
12909 lt_cv_deplibs_check_method=unknown
12910 ;;
12911
12912openbsd*)
12913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12915 else
12916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12917 fi
12918 ;;
12919
12920osf3* | osf4* | osf5*)
12921 lt_cv_deplibs_check_method=pass_all
12922 ;;
12923
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012924solaris*)
12925 lt_cv_deplibs_check_method=pass_all
12926 ;;
12927
Reid Spencera773bd52006-08-04 18:18:08 +000012928sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 case $host_vendor in
12930 motorola)
12931 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]'
12932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12933 ;;
12934 ncr)
12935 lt_cv_deplibs_check_method=pass_all
12936 ;;
12937 sequent)
12938 lt_cv_file_magic_cmd='/bin/file'
12939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12940 ;;
12941 sni)
12942 lt_cv_file_magic_cmd='/bin/file'
12943 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12944 lt_cv_file_magic_test_file=/lib/libc.so
12945 ;;
12946 siemens)
12947 lt_cv_deplibs_check_method=pass_all
12948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012949 pc)
12950 lt_cv_deplibs_check_method=pass_all
12951 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012952 esac
12953 ;;
12954
Reid Spencera773bd52006-08-04 18:18:08 +000012955sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012956 lt_cv_deplibs_check_method=pass_all
12957 ;;
12958esac
12959
12960fi
Reid Spencera773bd52006-08-04 18:18:08 +000012961{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12962echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012963file_magic_cmd=$lt_cv_file_magic_cmd
12964deplibs_check_method=$lt_cv_deplibs_check_method
12965test -z "$deplibs_check_method" && deplibs_check_method=unknown
12966
12967
12968
12969# If no C compiler was specified, use CC.
12970LTCC=${LTCC-"$CC"}
12971
Reid Spencera773bd52006-08-04 18:18:08 +000012972# If no C compiler flags were specified, use CFLAGS.
12973LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012975# Allow CC to be a program name with arguments.
12976compiler=$CC
12977
Reid Spencera773bd52006-08-04 18:18:08 +000012978# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012979if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012980 enableval=$enable_libtool_lock;
12981fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012982
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012983test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12984
12985# Some flags need to be propagated to the compiler or linker for good
12986# libtool support.
12987case $host in
12988ia64-*-hpux*)
12989 # Find out which ABI we are using.
12990 echo 'int i;' > conftest.$ac_ext
12991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12992 (eval $ac_compile) 2>&5
12993 ac_status=$?
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; then
12996 case `/usr/bin/file conftest.$ac_objext` in
12997 *ELF-32*)
12998 HPUX_IA64_MODE="32"
12999 ;;
13000 *ELF-64*)
13001 HPUX_IA64_MODE="64"
13002 ;;
13003 esac
13004 fi
13005 rm -rf conftest*
13006 ;;
13007*-*-irix6*)
13008 # Find out which ABI we are using.
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000013009 echo '#line 13009 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13011 (eval $ac_compile) 2>&5
13012 ac_status=$?
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014 (exit $ac_status); }; then
13015 if test "$lt_cv_prog_gnu_ld" = yes; then
13016 case `/usr/bin/file conftest.$ac_objext` in
13017 *32-bit*)
13018 LD="${LD-ld} -melf32bsmip"
13019 ;;
13020 *N32*)
13021 LD="${LD-ld} -melf32bmipn32"
13022 ;;
13023 *64-bit*)
13024 LD="${LD-ld} -melf64bmip"
13025 ;;
13026 esac
13027 else
13028 case `/usr/bin/file conftest.$ac_objext` in
13029 *32-bit*)
13030 LD="${LD-ld} -32"
13031 ;;
13032 *N32*)
13033 LD="${LD-ld} -n32"
13034 ;;
13035 *64-bit*)
13036 LD="${LD-ld} -64"
13037 ;;
13038 esac
13039 fi
13040 fi
13041 rm -rf conftest*
13042 ;;
13043
13044x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13045 # Find out which ABI we are using.
13046 echo 'int i;' > conftest.$ac_ext
13047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13048 (eval $ac_compile) 2>&5
13049 ac_status=$?
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013052 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013053 *32-bit*)
13054 case $host in
13055 x86_64-*linux*)
13056 LD="${LD-ld} -m elf_i386"
13057 ;;
13058 ppc64-*linux*|powerpc64-*linux*)
13059 LD="${LD-ld} -m elf32ppclinux"
13060 ;;
13061 s390x-*linux*)
13062 LD="${LD-ld} -m elf_s390"
13063 ;;
13064 sparc64-*linux*)
13065 LD="${LD-ld} -m elf32_sparc"
13066 ;;
13067 esac
13068 ;;
13069 *64-bit*)
13070 case $host in
13071 x86_64-*linux*)
13072 LD="${LD-ld} -m elf_x86_64"
13073 ;;
13074 ppc*-*linux*|powerpc*-*linux*)
13075 LD="${LD-ld} -m elf64ppc"
13076 ;;
13077 s390*-*linux*)
13078 LD="${LD-ld} -m elf64_s390"
13079 ;;
13080 sparc*-*linux*)
13081 LD="${LD-ld} -m elf64_sparc"
13082 ;;
13083 esac
13084 ;;
13085 esac
13086 fi
13087 rm -rf conftest*
13088 ;;
13089
13090*-*-sco3.2v5*)
13091 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13092 SAVE_CFLAGS="$CFLAGS"
13093 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013094 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13095echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013096if test "${lt_cv_cc_needs_belf+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13098else
13099 ac_ext=c
13100ac_cpp='$CPP $CPPFLAGS'
13101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104
13105 cat >conftest.$ac_ext <<_ACEOF
13106/* confdefs.h. */
13107_ACEOF
13108cat confdefs.h >>conftest.$ac_ext
13109cat >>conftest.$ac_ext <<_ACEOF
13110/* end confdefs.h. */
13111
Reid Spencera773bd52006-08-04 18:18:08 +000013112int
13113main ()
13114{
13115
13116 ;
13117 return 0;
13118}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013119_ACEOF
13120rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013121if { (ac_try="$ac_link"
13122case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013128 ac_status=$?
13129 grep -v '^ *+' conftest.er1 >conftest.err
13130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138esac
13139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13141 ac_status=$?
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13148esac
13149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13151 ac_status=$?
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013154 lt_cv_cc_needs_belf=yes
13155else
13156 echo "$as_me: failed program was:" >&5
13157sed 's/^/| /' conftest.$ac_ext >&5
13158
Reid Spencera773bd52006-08-04 18:18:08 +000013159 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013160fi
Reid Spencera773bd52006-08-04 18:18:08 +000013161
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013162rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013163 conftest$ac_exeext conftest.$ac_ext
13164 ac_ext=c
13165ac_cpp='$CPP $CPPFLAGS'
13166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
13170fi
Reid Spencera773bd52006-08-04 18:18:08 +000013171{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13172echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013173 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13174 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13175 CFLAGS="$SAVE_CFLAGS"
13176 fi
13177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013178sparc*-*solaris*)
13179 # Find out which ABI we are using.
13180 echo 'int i;' > conftest.$ac_ext
13181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13182 (eval $ac_compile) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; then
13186 case `/usr/bin/file conftest.o` in
13187 *64-bit*)
13188 case $lt_cv_prog_gnu_ld in
13189 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13190 *) LD="${LD-ld} -64" ;;
13191 esac
13192 ;;
13193 esac
13194 fi
13195 rm -rf conftest*
13196 ;;
13197
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013198
13199esac
13200
13201need_locks="$enable_libtool_lock"
13202
13203
Reid Spencer2706f8c2004-09-19 23:53:36 +000013204
13205
13206if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13207 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13208 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013209 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013210ac_cpp='$CXXCPP $CPPFLAGS'
13211ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13212ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13213ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013214{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13215echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013216if test -z "$CXXCPP"; then
13217 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
John Criswell47fdd832003-07-14 16:52:07 +000013220 # Double quotes because CXXCPP needs to be expanded
13221 for CXXCPP in "$CXX -E" "/lib/cpp"
13222 do
13223 ac_preproc_ok=false
13224for ac_cxx_preproc_warn_flag in '' yes
13225do
13226 # Use a header file that comes with gcc, so configuring glibc
13227 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13229 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013230 # On the NeXT, cc -E runs the code through the compiler's parser,
13231 # not just through cpp. "Syntax error" is here to catch this case.
13232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013233/* confdefs.h. */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
13237/* end confdefs.h. */
13238#ifdef __STDC__
13239# include <limits.h>
13240#else
13241# include <assert.h>
13242#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013243 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013244_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013245if { (ac_try="$ac_cpp conftest.$ac_ext"
13246case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249esac
13250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013252 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013253 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013257 (exit $ac_status); } >/dev/null; then
13258 if test -s conftest.err; then
13259 ac_cpp_err=$ac_cxx_preproc_warn_flag
13260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13261 else
13262 ac_cpp_err=
13263 fi
13264else
13265 ac_cpp_err=yes
13266fi
13267if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013268 :
13269else
13270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013271sed 's/^/| /' conftest.$ac_ext >&5
13272
John Criswell47fdd832003-07-14 16:52:07 +000013273 # Broken: fails on valid input.
13274continue
13275fi
Reid Spencera773bd52006-08-04 18:18:08 +000013276
John Criswell47fdd832003-07-14 16:52:07 +000013277rm -f conftest.err conftest.$ac_ext
13278
Reid Spencera773bd52006-08-04 18:18:08 +000013279 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013280 # can be detected and how.
13281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013282/* confdefs.h. */
13283_ACEOF
13284cat confdefs.h >>conftest.$ac_ext
13285cat >>conftest.$ac_ext <<_ACEOF
13286/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013287#include <ac_nonexistent.h>
13288_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013289if { (ac_try="$ac_cpp conftest.$ac_ext"
13290case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13293esac
13294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013296 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013297 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013298 rm -f conftest.er1
13299 cat conftest.err >&5
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013301 (exit $ac_status); } >/dev/null; then
13302 if test -s conftest.err; then
13303 ac_cpp_err=$ac_cxx_preproc_warn_flag
13304 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13305 else
13306 ac_cpp_err=
13307 fi
13308else
13309 ac_cpp_err=yes
13310fi
13311if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013312 # Broken: success on invalid input.
13313continue
13314else
13315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013316sed 's/^/| /' conftest.$ac_ext >&5
13317
John Criswell47fdd832003-07-14 16:52:07 +000013318 # Passes both tests.
13319ac_preproc_ok=:
13320break
13321fi
Reid Spencera773bd52006-08-04 18:18:08 +000013322
John Criswell47fdd832003-07-14 16:52:07 +000013323rm -f conftest.err conftest.$ac_ext
13324
13325done
13326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13327rm -f conftest.err conftest.$ac_ext
13328if $ac_preproc_ok; then
13329 break
John Criswell7a73b802003-06-30 21:59:07 +000013330fi
13331
John Criswell47fdd832003-07-14 16:52:07 +000013332 done
13333 ac_cv_prog_CXXCPP=$CXXCPP
13334
13335fi
13336 CXXCPP=$ac_cv_prog_CXXCPP
13337else
13338 ac_cv_prog_CXXCPP=$CXXCPP
13339fi
Reid Spencera773bd52006-08-04 18:18:08 +000013340{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13341echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013342ac_preproc_ok=false
13343for ac_cxx_preproc_warn_flag in '' yes
13344do
13345 # Use a header file that comes with gcc, so configuring glibc
13346 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013347 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13348 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013349 # On the NeXT, cc -E runs the code through the compiler's parser,
13350 # not just through cpp. "Syntax error" is here to catch this case.
13351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013352/* confdefs.h. */
13353_ACEOF
13354cat confdefs.h >>conftest.$ac_ext
13355cat >>conftest.$ac_ext <<_ACEOF
13356/* end confdefs.h. */
13357#ifdef __STDC__
13358# include <limits.h>
13359#else
13360# include <assert.h>
13361#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013362 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013363_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013364if { (ac_try="$ac_cpp conftest.$ac_ext"
13365case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013371 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013372 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013376 (exit $ac_status); } >/dev/null; then
13377 if test -s conftest.err; then
13378 ac_cpp_err=$ac_cxx_preproc_warn_flag
13379 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13380 else
13381 ac_cpp_err=
13382 fi
13383else
13384 ac_cpp_err=yes
13385fi
13386if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013387 :
13388else
13389 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013390sed 's/^/| /' conftest.$ac_ext >&5
13391
John Criswell47fdd832003-07-14 16:52:07 +000013392 # Broken: fails on valid input.
13393continue
13394fi
Reid Spencera773bd52006-08-04 18:18:08 +000013395
John Criswell47fdd832003-07-14 16:52:07 +000013396rm -f conftest.err conftest.$ac_ext
13397
Reid Spencera773bd52006-08-04 18:18:08 +000013398 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013399 # can be detected and how.
13400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013406#include <ac_nonexistent.h>
13407_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013408if { (ac_try="$ac_cpp conftest.$ac_ext"
13409case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13412esac
13413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013415 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013416 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013417 rm -f conftest.er1
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013420 (exit $ac_status); } >/dev/null; then
13421 if test -s conftest.err; then
13422 ac_cpp_err=$ac_cxx_preproc_warn_flag
13423 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13424 else
13425 ac_cpp_err=
13426 fi
13427else
13428 ac_cpp_err=yes
13429fi
13430if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013431 # Broken: success on invalid input.
13432continue
13433else
13434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013435sed 's/^/| /' conftest.$ac_ext >&5
13436
John Criswell47fdd832003-07-14 16:52:07 +000013437 # Passes both tests.
13438ac_preproc_ok=:
13439break
13440fi
Reid Spencera773bd52006-08-04 18:18:08 +000013441
John Criswell47fdd832003-07-14 16:52:07 +000013442rm -f conftest.err conftest.$ac_ext
13443
13444done
13445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13446rm -f conftest.err conftest.$ac_ext
13447if $ac_preproc_ok; then
13448 :
13449else
John Criswell0c38eaf2003-09-10 15:17:25 +000013450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13451See \`config.log' for more details." >&5
13452echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13453See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013454 { (exit 1); exit 1; }; }
13455fi
13456
Reid Spencera773bd52006-08-04 18:18:08 +000013457ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013458ac_cpp='$CXXCPP $CPPFLAGS'
13459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13462
Reid Spencer2706f8c2004-09-19 23:53:36 +000013463fi
13464
John Criswell47fdd832003-07-14 16:52:07 +000013465
13466ac_ext=f
13467ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13468ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13469ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13470if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013471 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 +000013472 do
13473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13474set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013477if test "${ac_cv_prog_F77+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13479else
13480 if test -n "$F77"; then
13481 ac_cv_prog_F77="$F77" # Let the user override the test.
13482else
13483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13484for as_dir in $PATH
13485do
13486 IFS=$as_save_IFS
13487 test -z "$as_dir" && as_dir=.
13488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013489 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 +000013490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13492 break 2
13493 fi
13494done
13495done
Reid Spencera773bd52006-08-04 18:18:08 +000013496IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013497
13498fi
13499fi
13500F77=$ac_cv_prog_F77
13501if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013502 { echo "$as_me:$LINENO: result: $F77" >&5
13503echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013504else
Reid Spencera773bd52006-08-04 18:18:08 +000013505 { echo "$as_me:$LINENO: result: no" >&5
13506echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013507fi
13508
Reid Spencera773bd52006-08-04 18:18:08 +000013509
John Criswell47fdd832003-07-14 16:52:07 +000013510 test -n "$F77" && break
13511 done
13512fi
13513if test -z "$F77"; then
13514 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013515 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 +000013516do
13517 # Extract the first word of "$ac_prog", so it can be a program name with args.
13518set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013521if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
13524 if test -n "$ac_ct_F77"; then
13525 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013533 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 +000013534 ac_cv_prog_ac_ct_F77="$ac_prog"
13535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538done
13539done
Reid Spencera773bd52006-08-04 18:18:08 +000013540IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013541
13542fi
13543fi
13544ac_ct_F77=$ac_cv_prog_ac_ct_F77
13545if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013546 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13547echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013548else
Reid Spencera773bd52006-08-04 18:18:08 +000013549 { echo "$as_me:$LINENO: result: no" >&5
13550echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013551fi
13552
Reid Spencera773bd52006-08-04 18:18:08 +000013553
John Criswell47fdd832003-07-14 16:52:07 +000013554 test -n "$ac_ct_F77" && break
13555done
13556
Reid Spencera773bd52006-08-04 18:18:08 +000013557 if test "x$ac_ct_F77" = x; then
13558 F77=""
13559 else
13560 case $cross_compiling:$ac_tool_warned in
13561yes:)
13562{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13563whose name does not start with the host triplet. If you think this
13564configuration is useful to you, please write to autoconf@gnu.org." >&5
13565echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13566whose name does not start with the host triplet. If you think this
13567configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13568ac_tool_warned=yes ;;
13569esac
13570 F77=$ac_ct_F77
13571 fi
John Criswell47fdd832003-07-14 16:52:07 +000013572fi
13573
13574
13575# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013576echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013577ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013578{ (ac_try="$ac_compiler --version >&5"
13579case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13582esac
13583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013585 ac_status=$?
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013588{ (ac_try="$ac_compiler -v >&5"
13589case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013595 ac_status=$?
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013598{ (ac_try="$ac_compiler -V >&5"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013608rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013609
13610# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013611# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013612ac_save_ext=$ac_ext
13613ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013614{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13615echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013616if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13618else
13619 cat >conftest.$ac_ext <<_ACEOF
13620 program main
13621#ifndef __GNUC__
13622 choke me
13623#endif
13624
13625 end
13626_ACEOF
13627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013628if { (ac_try="$ac_compile"
13629case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13632esac
13633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013640 (exit $ac_status); } &&
13641 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13642 { (case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645esac
13646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_try") 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; } &&
13651 { ac_try='test -s conftest.$ac_objext'
13652 { (case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655esac
13656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_try") 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013661 ac_compiler_gnu=yes
13662else
13663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013664sed 's/^/| /' conftest.$ac_ext >&5
13665
Reid Spencera773bd52006-08-04 18:18:08 +000013666 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013667fi
Reid Spencera773bd52006-08-04 18:18:08 +000013668
13669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013670ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13671
13672fi
Reid Spencera773bd52006-08-04 18:18:08 +000013673{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13674echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013675ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013676ac_test_FFLAGS=${FFLAGS+set}
13677ac_save_FFLAGS=$FFLAGS
13678FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013679{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13680echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013681if test "${ac_cv_prog_f77_g+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 FFLAGS=-g
13685cat >conftest.$ac_ext <<_ACEOF
13686 program main
13687
13688 end
13689_ACEOF
13690rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013691if { (ac_try="$ac_compile"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest.$ac_objext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718esac
13719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013724 ac_cv_prog_f77_g=yes
13725else
13726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013727sed 's/^/| /' conftest.$ac_ext >&5
13728
Reid Spencera773bd52006-08-04 18:18:08 +000013729 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013730fi
Reid Spencera773bd52006-08-04 18:18:08 +000013731
13732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013733
13734fi
Reid Spencera773bd52006-08-04 18:18:08 +000013735{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13736echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013737if test "$ac_test_FFLAGS" = set; then
13738 FFLAGS=$ac_save_FFLAGS
13739elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013740 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013741 FFLAGS="-g -O2"
13742 else
13743 FFLAGS="-g"
13744 fi
13745else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013747 FFLAGS="-O2"
13748 else
13749 FFLAGS=
13750 fi
13751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013752
13753G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013754ac_ext=c
13755ac_cpp='$CPP $CPPFLAGS'
13756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759
13760
13761
13762# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13763
13764# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013765{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13766echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013767if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013772
13773 case $build_os in
13774 msdosdjgpp*)
13775 # On DJGPP, this test can blow up pretty badly due to problems in libc
13776 # (any single argument exceeding 2000 bytes causes a buffer overrun
13777 # during glob expansion). Even if it were fixed, the result of this
13778 # check would be larger than it should be.
13779 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13780 ;;
13781
13782 gnu*)
13783 # Under GNU Hurd, this test is not required because there is
13784 # no limit to the length of command line arguments.
13785 # Libtool will interpret -1 as no limit whatsoever
13786 lt_cv_sys_max_cmd_len=-1;
13787 ;;
13788
13789 cygwin* | mingw*)
13790 # On Win9x/ME, this test blows up -- it succeeds, but takes
13791 # about 5 minutes as the teststring grows exponentially.
13792 # Worse, since 9x/ME are not pre-emptively multitasking,
13793 # you end up with a "frozen" computer, even though with patience
13794 # the test eventually succeeds (with a max line length of 256k).
13795 # Instead, let's just punt: use the minimum linelength reported by
13796 # all of the supported platforms: 8192 (on NT/2K/XP).
13797 lt_cv_sys_max_cmd_len=8192;
13798 ;;
13799
Reid Spencer2706f8c2004-09-19 23:53:36 +000013800 amigaos*)
13801 # On AmigaOS with pdksh, this test takes hours, literally.
13802 # So we just punt and use a minimum line length of 8192.
13803 lt_cv_sys_max_cmd_len=8192;
13804 ;;
13805
Reid Spencera773bd52006-08-04 18:18:08 +000013806 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013807 # This has been around since 386BSD, at least. Likely further.
13808 if test -x /sbin/sysctl; then
13809 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13810 elif test -x /usr/sbin/sysctl; then
13811 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13812 else
Reid Spencera773bd52006-08-04 18:18:08 +000013813 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013814 fi
13815 # And add a safety zone
13816 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013817 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818 ;;
13819
Reid Spencera773bd52006-08-04 18:18:08 +000013820 interix*)
13821 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13822 lt_cv_sys_max_cmd_len=196608
13823 ;;
13824
13825 osf*)
13826 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13827 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13828 # nice to cause kernel panics so lets avoid the loop below.
13829 # First set a reasonable default.
13830 lt_cv_sys_max_cmd_len=16384
13831 #
13832 if test -x /sbin/sysconfig; then
13833 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13834 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13835 esac
13836 fi
13837 ;;
13838 sco3.2v5*)
13839 lt_cv_sys_max_cmd_len=102400
13840 ;;
13841 sysv5* | sco5v6* | sysv4.2uw2*)
13842 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13843 if test -n "$kargmax"; then
13844 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13845 else
13846 lt_cv_sys_max_cmd_len=32768
13847 fi
13848 ;;
13849 *)
John Criswell47fdd832003-07-14 16:52:07 +000013850 # If test is not a shell built-in, we'll probably end up computing a
13851 # maximum length that is only half of the actual maximum length, but
13852 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013853 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13854 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13855 = "XX$teststring") >/dev/null 2>&1 &&
13856 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013857 lt_cv_sys_max_cmd_len=$new_result &&
13858 test $i != 17 # 1/2 MB should be enough
13859 do
13860 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013861 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013862 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013863 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013864 # Add a significant safety factor because C++ compilers can tack on massive
13865 # amounts of additional arguments before passing them to the linker.
13866 # It appears as though 1/2 is a usable value.
13867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13868 ;;
13869 esac
13870
13871fi
13872
13873if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013874 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13875echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013876else
Reid Spencera773bd52006-08-04 18:18:08 +000013877 { echo "$as_me:$LINENO: result: none" >&5
13878echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013879fi
13880
13881
13882
13883
13884# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013885{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13886echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013887if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890
13891# These are sane defaults that work on at least a few old systems.
13892# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13893
13894# Character class describing NM global symbol codes.
13895symcode='[BCDEGRST]'
13896
13897# Regexp to match symbols that can be accessed directly from C.
13898sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13899
John Criswell47fdd832003-07-14 16:52:07 +000013900# Transform an extracted symbol line into a proper C declaration
13901lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13902
13903# Transform an extracted symbol line into symbol name and symbol address
13904lt_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'"
13905
13906# Define system-specific variables.
13907case $host_os in
13908aix*)
13909 symcode='[BCDT]'
13910 ;;
13911cygwin* | mingw* | pw32*)
13912 symcode='[ABCDGISTW]'
13913 ;;
13914hpux*) # Its linker distinguishes data from code symbols
13915 if test "$host_cpu" = ia64; then
13916 symcode='[ABCDEGRST]'
13917 fi
13918 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13919 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'"
13920 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013921linux*)
13922 if test "$host_cpu" = ia64; then
13923 symcode='[ABCDGIRSTW]'
13924 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13925 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'"
13926 fi
13927 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013928irix* | nonstopux*)
13929 symcode='[BCDEGRST]'
13930 ;;
13931osf*)
13932 symcode='[BCDEGQRST]'
13933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013934solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013935 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013937sco3.2v5*)
13938 symcode='[DT]'
13939 ;;
13940sysv4.2uw2*)
13941 symcode='[DT]'
13942 ;;
13943sysv5* | sco5v6* | unixware* | OpenUNIX*)
13944 symcode='[ABDT]'
13945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013946sysv4)
13947 symcode='[DFNSTU]'
13948 ;;
13949esac
13950
13951# Handle CRLF in mingw tool chain
13952opt_cr=
13953case $build_os in
13954mingw*)
13955 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13956 ;;
13957esac
13958
13959# If we're using GNU nm, then use its standard symbol codes.
13960case `$NM -V 2>&1` in
13961*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013962 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013963esac
13964
13965# Try without a prefix undercore, then with it.
13966for ac_symprfx in "" "_"; do
13967
Reid Spencera773bd52006-08-04 18:18:08 +000013968 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13969 symxfrm="\\1 $ac_symprfx\\2 \\2"
13970
John Criswell47fdd832003-07-14 16:52:07 +000013971 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013972 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 +000013973
13974 # Check to see that the pipe works correctly.
13975 pipe_works=no
13976
13977 rm -f conftest*
13978 cat > conftest.$ac_ext <<EOF
13979#ifdef __cplusplus
13980extern "C" {
13981#endif
13982char nm_test_var;
13983void nm_test_func(){}
13984#ifdef __cplusplus
13985}
13986#endif
13987int main(){nm_test_var='a';nm_test_func();return(0);}
13988EOF
13989
13990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; then
13995 # Now try to grab the symbols.
13996 nlist=conftest.nm
13997 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13998 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13999 ac_status=$?
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } && test -s "$nlist"; then
14002 # Try sorting and uniquifying the output.
14003 if sort "$nlist" | uniq > "$nlist"T; then
14004 mv -f "$nlist"T "$nlist"
14005 else
14006 rm -f "$nlist"T
14007 fi
14008
14009 # Make sure that we snagged all the symbols we need.
14010 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14011 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14012 cat <<EOF > conftest.$ac_ext
14013#ifdef __cplusplus
14014extern "C" {
14015#endif
14016
14017EOF
14018 # Now generate the symbol file.
14019 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14020
14021 cat <<EOF >> conftest.$ac_ext
14022#if defined (__STDC__) && __STDC__
14023# define lt_ptr_t void *
14024#else
14025# define lt_ptr_t char *
14026# define const
14027#endif
14028
14029/* The mapping between symbol names and symbols. */
14030const struct {
14031 const char *name;
14032 lt_ptr_t address;
14033}
14034lt_preloaded_symbols[] =
14035{
14036EOF
14037 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14038 cat <<\EOF >> conftest.$ac_ext
14039 {0, (lt_ptr_t) 0}
14040};
14041
14042#ifdef __cplusplus
14043}
14044#endif
14045EOF
14046 # Now try linking the two files.
14047 mv conftest.$ac_objext conftstm.$ac_objext
14048 lt_save_LIBS="$LIBS"
14049 lt_save_CFLAGS="$CFLAGS"
14050 LIBS="conftstm.$ac_objext"
14051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14053 (eval $ac_link) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14057 pipe_works=yes
14058 fi
14059 LIBS="$lt_save_LIBS"
14060 CFLAGS="$lt_save_CFLAGS"
14061 else
14062 echo "cannot find nm_test_func in $nlist" >&5
14063 fi
14064 else
14065 echo "cannot find nm_test_var in $nlist" >&5
14066 fi
14067 else
14068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14069 fi
14070 else
14071 echo "$progname: failed program was:" >&5
14072 cat conftest.$ac_ext >&5
14073 fi
14074 rm -f conftest* conftst*
14075
14076 # Do not use the global_symbol_pipe unless it works.
14077 if test "$pipe_works" = yes; then
14078 break
14079 else
14080 lt_cv_sys_global_symbol_pipe=
14081 fi
14082done
14083
14084fi
14085
14086if test -z "$lt_cv_sys_global_symbol_pipe"; then
14087 lt_cv_sys_global_symbol_to_cdecl=
14088fi
14089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014090 { echo "$as_me:$LINENO: result: failed" >&5
14091echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014092else
Reid Spencera773bd52006-08-04 18:18:08 +000014093 { echo "$as_me:$LINENO: result: ok" >&5
14094echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014095fi
14096
Reid Spencera773bd52006-08-04 18:18:08 +000014097{ echo "$as_me:$LINENO: checking for objdir" >&5
14098echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014099if test "${lt_cv_objdir+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14101else
14102 rm -f .libs 2>/dev/null
14103mkdir .libs 2>/dev/null
14104if test -d .libs; then
14105 lt_cv_objdir=.libs
14106else
14107 # MS-DOS does not allow filenames that begin with a dot.
14108 lt_cv_objdir=_libs
14109fi
14110rmdir .libs 2>/dev/null
14111fi
Reid Spencera773bd52006-08-04 18:18:08 +000014112{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14113echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014114objdir=$lt_cv_objdir
14115
14116
14117
14118
14119
14120case $host_os in
14121aix3*)
14122 # AIX sometimes has problems with the GCC collect2 program. For some
14123 # reason, if we set the COLLECT_NAMES environment variable, the problems
14124 # vanish in a puff of smoke.
14125 if test "X${COLLECT_NAMES+set}" != Xset; then
14126 COLLECT_NAMES=
14127 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014128 fi
14129 ;;
14130esac
14131
John Criswell47fdd832003-07-14 16:52:07 +000014132# Sed substitution that helps us do robust quoting. It backslashifies
14133# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014134Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014135sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14136
14137# Same as above, but do not quote variable references.
14138double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14139
14140# Sed substitution to delay expansion of an escaped shell variable in a
14141# double_quote_subst'ed string.
14142delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14143
14144# Sed substitution to avoid accidental globbing in evaled expressions
14145no_glob_subst='s/\*/\\\*/g'
14146
14147# Constants:
14148rm="rm -f"
14149
14150# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014151default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014152can_build_shared=yes
14153
Reid Spencera773bd52006-08-04 18:18:08 +000014154# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014155# which needs '.lib').
14156libext=a
14157ltmain="$ac_aux_dir/ltmain.sh"
14158ofile="$default_ofile"
14159with_gnu_ld="$lt_cv_prog_gnu_ld"
14160
14161if test -n "$ac_tool_prefix"; then
14162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14163set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014164{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014166if test "${ac_cv_prog_AR+set}" = set; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14168else
14169 if test -n "$AR"; then
14170 ac_cv_prog_AR="$AR" # Let the user override the test.
14171else
14172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173for as_dir in $PATH
14174do
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014178 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 +000014179 ac_cv_prog_AR="${ac_tool_prefix}ar"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14182 fi
14183done
14184done
Reid Spencera773bd52006-08-04 18:18:08 +000014185IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014186
14187fi
14188fi
14189AR=$ac_cv_prog_AR
14190if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014191 { echo "$as_me:$LINENO: result: $AR" >&5
14192echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014193else
Reid Spencera773bd52006-08-04 18:18:08 +000014194 { echo "$as_me:$LINENO: result: no" >&5
14195echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014196fi
14197
Reid Spencera773bd52006-08-04 18:18:08 +000014198
John Criswell47fdd832003-07-14 16:52:07 +000014199fi
14200if test -z "$ac_cv_prog_AR"; then
14201 ac_ct_AR=$AR
14202 # Extract the first word of "ar", so it can be a program name with args.
14203set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014206if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14208else
14209 if test -n "$ac_ct_AR"; then
14210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14211else
14212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213for as_dir in $PATH
14214do
14215 IFS=$as_save_IFS
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014218 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 +000014219 ac_cv_prog_ac_ct_AR="ar"
14220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14221 break 2
14222 fi
14223done
14224done
Reid Spencera773bd52006-08-04 18:18:08 +000014225IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014226
John Criswell47fdd832003-07-14 16:52:07 +000014227fi
14228fi
14229ac_ct_AR=$ac_cv_prog_ac_ct_AR
14230if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014231 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14232echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014233else
Reid Spencera773bd52006-08-04 18:18:08 +000014234 { echo "$as_me:$LINENO: result: no" >&5
14235echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014236fi
14237
Reid Spencera773bd52006-08-04 18:18:08 +000014238 if test "x$ac_ct_AR" = x; then
14239 AR="false"
14240 else
14241 case $cross_compiling:$ac_tool_warned in
14242yes:)
14243{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14244whose name does not start with the host triplet. If you think this
14245configuration is useful to you, please write to autoconf@gnu.org." >&5
14246echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14247whose name does not start with the host triplet. If you think this
14248configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14249ac_tool_warned=yes ;;
14250esac
14251 AR=$ac_ct_AR
14252 fi
John Criswell47fdd832003-07-14 16:52:07 +000014253else
14254 AR="$ac_cv_prog_AR"
14255fi
14256
John Criswell7a73b802003-06-30 21:59:07 +000014257if test -n "$ac_tool_prefix"; then
14258 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14259set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014262if test "${ac_cv_prog_RANLIB+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264else
14265 if test -n "$RANLIB"; then
14266 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14267else
14268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269for as_dir in $PATH
14270do
14271 IFS=$as_save_IFS
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014274 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 +000014275 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14277 break 2
14278 fi
14279done
14280done
Reid Spencera773bd52006-08-04 18:18:08 +000014281IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014282
14283fi
14284fi
14285RANLIB=$ac_cv_prog_RANLIB
14286if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014287 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14288echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014289else
Reid Spencera773bd52006-08-04 18:18:08 +000014290 { echo "$as_me:$LINENO: result: no" >&5
14291echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014292fi
14293
Reid Spencera773bd52006-08-04 18:18:08 +000014294
John Criswell7a73b802003-06-30 21:59:07 +000014295fi
14296if test -z "$ac_cv_prog_RANLIB"; then
14297 ac_ct_RANLIB=$RANLIB
14298 # Extract the first word of "ranlib", so it can be a program name with args.
14299set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014302if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 if test -n "$ac_ct_RANLIB"; then
14306 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14307else
14308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309for as_dir in $PATH
14310do
14311 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014314 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 +000014315 ac_cv_prog_ac_ct_RANLIB="ranlib"
14316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2
14318 fi
14319done
14320done
Reid Spencera773bd52006-08-04 18:18:08 +000014321IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014322
John Criswell7a73b802003-06-30 21:59:07 +000014323fi
14324fi
14325ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14326if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014327 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14328echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014329else
Reid Spencera773bd52006-08-04 18:18:08 +000014330 { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014332fi
14333
Reid Spencera773bd52006-08-04 18:18:08 +000014334 if test "x$ac_ct_RANLIB" = x; then
14335 RANLIB=":"
14336 else
14337 case $cross_compiling:$ac_tool_warned in
14338yes:)
14339{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14340whose name does not start with the host triplet. If you think this
14341configuration is useful to you, please write to autoconf@gnu.org." >&5
14342echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14343whose name does not start with the host triplet. If you think this
14344configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14345ac_tool_warned=yes ;;
14346esac
14347 RANLIB=$ac_ct_RANLIB
14348 fi
John Criswell7a73b802003-06-30 21:59:07 +000014349else
14350 RANLIB="$ac_cv_prog_RANLIB"
14351fi
14352
14353if test -n "$ac_tool_prefix"; then
14354 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14355set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014358if test "${ac_cv_prog_STRIP+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14360else
14361 if test -n "$STRIP"; then
14362 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14363else
14364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365for as_dir in $PATH
14366do
14367 IFS=$as_save_IFS
14368 test -z "$as_dir" && as_dir=.
14369 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014370 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 +000014371 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373 break 2
14374 fi
14375done
14376done
Reid Spencera773bd52006-08-04 18:18:08 +000014377IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014378
14379fi
14380fi
14381STRIP=$ac_cv_prog_STRIP
14382if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014383 { echo "$as_me:$LINENO: result: $STRIP" >&5
14384echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014385else
Reid Spencera773bd52006-08-04 18:18:08 +000014386 { echo "$as_me:$LINENO: result: no" >&5
14387echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014388fi
14389
Reid Spencera773bd52006-08-04 18:18:08 +000014390
John Criswell7a73b802003-06-30 21:59:07 +000014391fi
14392if test -z "$ac_cv_prog_STRIP"; then
14393 ac_ct_STRIP=$STRIP
14394 # Extract the first word of "strip", so it can be a program name with args.
14395set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014398if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 if test -n "$ac_ct_STRIP"; then
14402 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14403else
14404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014410 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 +000014411 ac_cv_prog_ac_ct_STRIP="strip"
14412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 break 2
14414 fi
14415done
14416done
Reid Spencera773bd52006-08-04 18:18:08 +000014417IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014418
John Criswell7a73b802003-06-30 21:59:07 +000014419fi
14420fi
14421ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14422if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014423 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14424echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014425else
Reid Spencera773bd52006-08-04 18:18:08 +000014426 { echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014428fi
14429
Reid Spencera773bd52006-08-04 18:18:08 +000014430 if test "x$ac_ct_STRIP" = x; then
14431 STRIP=":"
14432 else
14433 case $cross_compiling:$ac_tool_warned in
14434yes:)
14435{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14436whose name does not start with the host triplet. If you think this
14437configuration is useful to you, please write to autoconf@gnu.org." >&5
14438echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14439whose name does not start with the host triplet. If you think this
14440configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14441ac_tool_warned=yes ;;
14442esac
14443 STRIP=$ac_ct_STRIP
14444 fi
John Criswell7a73b802003-06-30 21:59:07 +000014445else
14446 STRIP="$ac_cv_prog_STRIP"
14447fi
14448
14449
John Criswell7a73b802003-06-30 21:59:07 +000014450old_CC="$CC"
14451old_CFLAGS="$CFLAGS"
14452
14453# Set sane defaults for various variables
14454test -z "$AR" && AR=ar
14455test -z "$AR_FLAGS" && AR_FLAGS=cru
14456test -z "$AS" && AS=as
14457test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014458test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014459test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014460test -z "$DLLTOOL" && DLLTOOL=dlltool
14461test -z "$LD" && LD=ld
14462test -z "$LN_S" && LN_S="ln -s"
14463test -z "$MAGIC_CMD" && MAGIC_CMD=file
14464test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014465test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014466test -z "$OBJDUMP" && OBJDUMP=objdump
14467test -z "$RANLIB" && RANLIB=:
14468test -z "$STRIP" && STRIP=:
14469test -z "$ac_objext" && ac_objext=o
14470
John Criswell7a73b802003-06-30 21:59:07 +000014471# Determine commands to create old-style static archives.
14472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14473old_postinstall_cmds='chmod 644 $oldlib'
14474old_postuninstall_cmds=
14475
14476if test -n "$RANLIB"; then
14477 case $host_os in
14478 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014480 ;;
14481 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014483 ;;
14484 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014486fi
14487
Reid Spencera773bd52006-08-04 18:18:08 +000014488for cc_temp in $compiler""; do
14489 case $cc_temp in
14490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14492 \-*) ;;
14493 *) break;;
14494 esac
14495done
14496cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14497
Reid Spencer2706f8c2004-09-19 23:53:36 +000014498
John Criswell47fdd832003-07-14 16:52:07 +000014499# Only perform the check for file, if the check method requires it
14500case $deplibs_check_method in
14501file_magic*)
14502 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014503 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14504echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014505if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014507else
John Criswell47fdd832003-07-14 16:52:07 +000014508 case $MAGIC_CMD in
14509[\\/*] | ?:[\\/]*)
14510 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14511 ;;
14512*)
14513 lt_save_MAGIC_CMD="$MAGIC_CMD"
14514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14515 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14516 for ac_dir in $ac_dummy; do
14517 IFS="$lt_save_ifs"
14518 test -z "$ac_dir" && ac_dir=.
14519 if test -f $ac_dir/${ac_tool_prefix}file; then
14520 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14521 if test -n "$file_magic_test_file"; then
14522 case $deplibs_check_method in
14523 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014524 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14526 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14527 $EGREP "$file_magic_regex" > /dev/null; then
14528 :
14529 else
14530 cat <<EOF 1>&2
14531
14532*** Warning: the command libtool uses to detect shared libraries,
14533*** $file_magic_cmd, produces output that libtool cannot recognize.
14534*** The result is that libtool may fail to recognize shared libraries
14535*** as such. This will affect the creation of libtool libraries that
14536*** depend on shared libraries, but programs linked with such libtool
14537*** libraries will work regardless of this problem. Nevertheless, you
14538*** may want to report the problem to your system manager and/or to
14539*** bug-libtool@gnu.org
14540
14541EOF
14542 fi ;;
14543 esac
14544 fi
14545 break
14546 fi
14547 done
14548 IFS="$lt_save_ifs"
14549 MAGIC_CMD="$lt_save_MAGIC_CMD"
14550 ;;
14551esac
John Criswell7a73b802003-06-30 21:59:07 +000014552fi
John Criswell7a73b802003-06-30 21:59:07 +000014553
John Criswell47fdd832003-07-14 16:52:07 +000014554MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14555if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014556 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14557echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014558else
Reid Spencera773bd52006-08-04 18:18:08 +000014559 { echo "$as_me:$LINENO: result: no" >&5
14560echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014561fi
John Criswell7a73b802003-06-30 21:59:07 +000014562
John Criswell47fdd832003-07-14 16:52:07 +000014563if test -z "$lt_cv_path_MAGIC_CMD"; then
14564 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014565 { echo "$as_me:$LINENO: checking for file" >&5
14566echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014567if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570 case $MAGIC_CMD in
14571[\\/*] | ?:[\\/]*)
14572 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14573 ;;
14574*)
14575 lt_save_MAGIC_CMD="$MAGIC_CMD"
14576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14577 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14578 for ac_dir in $ac_dummy; do
14579 IFS="$lt_save_ifs"
14580 test -z "$ac_dir" && ac_dir=.
14581 if test -f $ac_dir/file; then
14582 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14583 if test -n "$file_magic_test_file"; then
14584 case $deplibs_check_method in
14585 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014586 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014587 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14588 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14589 $EGREP "$file_magic_regex" > /dev/null; then
14590 :
14591 else
14592 cat <<EOF 1>&2
14593
14594*** Warning: the command libtool uses to detect shared libraries,
14595*** $file_magic_cmd, produces output that libtool cannot recognize.
14596*** The result is that libtool may fail to recognize shared libraries
14597*** as such. This will affect the creation of libtool libraries that
14598*** depend on shared libraries, but programs linked with such libtool
14599*** libraries will work regardless of this problem. Nevertheless, you
14600*** may want to report the problem to your system manager and/or to
14601*** bug-libtool@gnu.org
14602
14603EOF
14604 fi ;;
14605 esac
14606 fi
14607 break
14608 fi
14609 done
14610 IFS="$lt_save_ifs"
14611 MAGIC_CMD="$lt_save_MAGIC_CMD"
14612 ;;
14613esac
14614fi
14615
14616MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14617if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014618 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14619echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014620else
Reid Spencera773bd52006-08-04 18:18:08 +000014621 { echo "$as_me:$LINENO: result: no" >&5
14622echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014623fi
14624
14625 else
14626 MAGIC_CMD=:
14627 fi
14628fi
14629
14630 fi
14631 ;;
14632esac
14633
Reid Spencer17795972004-11-18 09:47:37 +000014634enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014635enable_win32_dll=no
14636
Reid Spencera773bd52006-08-04 18:18:08 +000014637# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014638if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014639 enableval=$enable_libtool_lock;
14640fi
John Criswell47fdd832003-07-14 16:52:07 +000014641
John Criswell47fdd832003-07-14 16:52:07 +000014642test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14643
John Criswell7a73b802003-06-30 21:59:07 +000014644
Reid Spencera773bd52006-08-04 18:18:08 +000014645# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014646if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014647 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014648else
14649 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014650fi
14651
John Criswell7a73b802003-06-30 21:59:07 +000014652test -z "$pic_mode" && pic_mode=default
14653
John Criswell47fdd832003-07-14 16:52:07 +000014654# Use C for the default configuration in the libtool script
14655tagname=
14656lt_save_CC="$CC"
14657ac_ext=c
14658ac_cpp='$CPP $CPPFLAGS'
14659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14661ac_compiler_gnu=$ac_cv_c_compiler_gnu
14662
14663
14664# Source file extension for C test sources.
14665ac_ext=c
14666
14667# Object file extension for compiled C test sources.
14668objext=o
14669objext=$objext
14670
14671# Code to be used in simple compile tests
14672lt_simple_compile_test_code="int some_variable = 0;\n"
14673
14674# Code to be used in simple link tests
14675lt_simple_link_test_code='int main(){return(0);}\n'
14676
14677
14678# If no C compiler was specified, use CC.
14679LTCC=${LTCC-"$CC"}
14680
Reid Spencera773bd52006-08-04 18:18:08 +000014681# If no C compiler flags were specified, use CFLAGS.
14682LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14683
John Criswell47fdd832003-07-14 16:52:07 +000014684# Allow CC to be a program name with arguments.
14685compiler=$CC
14686
14687
Reid Spencera773bd52006-08-04 18:18:08 +000014688# save warnings/boilerplate of simple test code
14689ac_outfile=conftest.$ac_objext
14690printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14691eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14692_lt_compiler_boilerplate=`cat conftest.err`
14693$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014694
Reid Spencera773bd52006-08-04 18:18:08 +000014695ac_outfile=conftest.$ac_objext
14696printf "$lt_simple_link_test_code" >conftest.$ac_ext
14697eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14698_lt_linker_boilerplate=`cat conftest.err`
14699$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014700
14701
John Criswell47fdd832003-07-14 16:52:07 +000014702
14703lt_prog_compiler_no_builtin_flag=
14704
14705if test "$GCC" = yes; then
14706 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14707
Reid Spencer2706f8c2004-09-19 23:53:36 +000014708
Reid Spencera773bd52006-08-04 18:18:08 +000014709{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14710echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014711if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14713else
14714 lt_cv_prog_compiler_rtti_exceptions=no
14715 ac_outfile=conftest.$ac_objext
14716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14717 lt_compiler_flag="-fno-rtti -fno-exceptions"
14718 # Insert the option either (1) after the last *FLAGS variable, or
14719 # (2) before a word containing "conftest.", or (3) at the end.
14720 # Note that $ac_compile itself does not contain backslashes and begins
14721 # with a dollar sign (not a hyphen), so the echo should work correctly.
14722 # The option is referenced via a variable to avoid confusing sed.
14723 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014724 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14726 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000014727 (eval echo "\"\$as_me:14727: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014728 (eval "$lt_compile" 2>conftest.err)
14729 ac_status=$?
14730 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000014731 echo "$as_me:14731: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014732 if (exit $ac_status) && test -s "$ac_outfile"; then
14733 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014734 # So say no if there are warnings other than the usual output.
14735 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14736 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14737 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014738 lt_cv_prog_compiler_rtti_exceptions=yes
14739 fi
14740 fi
14741 $rm conftest*
14742
14743fi
Reid Spencera773bd52006-08-04 18:18:08 +000014744{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14745echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014746
14747if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14748 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14749else
14750 :
14751fi
14752
14753fi
14754
14755lt_prog_compiler_wl=
14756lt_prog_compiler_pic=
14757lt_prog_compiler_static=
14758
Reid Spencera773bd52006-08-04 18:18:08 +000014759{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14760echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014761
14762 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014763 lt_prog_compiler_wl='-Wl,'
14764 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014765
14766 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014767 aix*)
14768 # All AIX code is PIC.
14769 if test "$host_cpu" = ia64; then
14770 # AIX 5 now supports IA64 processor
14771 lt_prog_compiler_static='-Bstatic'
14772 fi
John Criswell7a73b802003-06-30 21:59:07 +000014773 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014774
John Criswell7a73b802003-06-30 21:59:07 +000014775 amigaos*)
14776 # FIXME: we need at least 68020 code to build shared libraries, but
14777 # adding the `-m68020' flag to GCC prevents building anything better,
14778 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014779 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014780 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014781
14782 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014783 # PIC is the default for these OSes.
14784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014785
14786 mingw* | pw32* | os2*)
14787 # This hack is so that the source file can tell whether it is being
14788 # built for inclusion in a dll (and should export symbols for example).
14789 lt_prog_compiler_pic='-DDLL_EXPORT'
14790 ;;
14791
John Criswell7a73b802003-06-30 21:59:07 +000014792 darwin* | rhapsody*)
14793 # PIC is the default on this platform
14794 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014795 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014796 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014797
Reid Spencera773bd52006-08-04 18:18:08 +000014798 interix3*)
14799 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14800 # Instead, we relocate shared libraries at runtime.
14801 ;;
14802
John Criswell47fdd832003-07-14 16:52:07 +000014803 msdosdjgpp*)
14804 # Just because we use GCC doesn't mean we suddenly get shared libraries
14805 # on systems that don't support them.
14806 lt_prog_compiler_can_build_shared=no
14807 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014809
John Criswell7a73b802003-06-30 21:59:07 +000014810 sysv4*MP*)
14811 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014812 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014813 fi
14814 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014815
14816 hpux*)
14817 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14818 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014819 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014820 hppa*64*|ia64*)
14821 # +Z the default
14822 ;;
14823 *)
14824 lt_prog_compiler_pic='-fPIC'
14825 ;;
14826 esac
14827 ;;
14828
John Criswell7a73b802003-06-30 21:59:07 +000014829 *)
John Criswell47fdd832003-07-14 16:52:07 +000014830 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014831 ;;
14832 esac
14833 else
John Criswell47fdd832003-07-14 16:52:07 +000014834 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014835 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014836 aix*)
14837 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014838 if test "$host_cpu" = ia64; then
14839 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014840 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014841 else
John Criswell47fdd832003-07-14 16:52:07 +000014842 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014843 fi
14844 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014845 darwin*)
14846 # PIC is the default on this platform
14847 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014848 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014849 xlc*)
14850 lt_prog_compiler_pic='-qnocommon'
14851 lt_prog_compiler_wl='-Wl,'
14852 ;;
14853 esac
14854 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014855
John Criswell47fdd832003-07-14 16:52:07 +000014856 mingw* | pw32* | os2*)
14857 # This hack is so that the source file can tell whether it is being
14858 # built for inclusion in a dll (and should export symbols for example).
14859 lt_prog_compiler_pic='-DDLL_EXPORT'
14860 ;;
14861
John Criswell7a73b802003-06-30 21:59:07 +000014862 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014863 lt_prog_compiler_wl='-Wl,'
14864 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14865 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014866 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014867 hppa*64*|ia64*)
14868 # +Z the default
14869 ;;
14870 *)
14871 lt_prog_compiler_pic='+Z'
14872 ;;
14873 esac
14874 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14875 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014876 ;;
14877
John Criswell47fdd832003-07-14 16:52:07 +000014878 irix5* | irix6* | nonstopux*)
14879 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014880 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014881 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014882 ;;
14883
14884 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014885 lt_prog_compiler_pic='-KPIC'
14886 lt_prog_compiler_static='-Bstatic'
14887 ;;
14888
14889 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014890 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014891 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014892 lt_prog_compiler_wl='-Wl,'
14893 lt_prog_compiler_pic='-KPIC'
14894 lt_prog_compiler_static='-static'
14895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014896 pgcc* | pgf77* | pgf90* | pgf95*)
14897 # Portland Group compilers (*not* the Pentium gcc compiler,
14898 # which looks to be a dead project)
14899 lt_prog_compiler_wl='-Wl,'
14900 lt_prog_compiler_pic='-fpic'
14901 lt_prog_compiler_static='-Bstatic'
14902 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014903 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014904 lt_prog_compiler_wl='-Wl,'
14905 # All Alpha code is PIC.
14906 lt_prog_compiler_static='-non_shared'
14907 ;;
14908 esac
John Criswell7a73b802003-06-30 21:59:07 +000014909 ;;
14910
14911 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014912 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014913 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014914 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014915 ;;
14916
John Criswell7a73b802003-06-30 21:59:07 +000014917 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014918 lt_prog_compiler_pic='-KPIC'
14919 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014920 case $cc_basename in
14921 f77* | f90* | f95*)
14922 lt_prog_compiler_wl='-Qoption ld ';;
14923 *)
14924 lt_prog_compiler_wl='-Wl,';;
14925 esac
John Criswell7a73b802003-06-30 21:59:07 +000014926 ;;
14927
14928 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014929 lt_prog_compiler_wl='-Qoption ld '
14930 lt_prog_compiler_pic='-PIC'
14931 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014932 ;;
14933
Reid Spencera773bd52006-08-04 18:18:08 +000014934 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014935 lt_prog_compiler_wl='-Wl,'
14936 lt_prog_compiler_pic='-KPIC'
14937 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014938 ;;
14939
14940 sysv4*MP*)
14941 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014942 lt_prog_compiler_pic='-Kconform_pic'
14943 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014944 fi
14945 ;;
14946
Reid Spencera773bd52006-08-04 18:18:08 +000014947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14948 lt_prog_compiler_wl='-Wl,'
14949 lt_prog_compiler_pic='-KPIC'
14950 lt_prog_compiler_static='-Bstatic'
14951 ;;
14952
14953 unicos*)
14954 lt_prog_compiler_wl='-Wl,'
14955 lt_prog_compiler_can_build_shared=no
14956 ;;
14957
John Criswell47fdd832003-07-14 16:52:07 +000014958 uts4*)
14959 lt_prog_compiler_pic='-pic'
14960 lt_prog_compiler_static='-Bstatic'
14961 ;;
14962
John Criswell7a73b802003-06-30 21:59:07 +000014963 *)
John Criswell47fdd832003-07-14 16:52:07 +000014964 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014965 ;;
14966 esac
14967 fi
14968
Reid Spencera773bd52006-08-04 18:18:08 +000014969{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14970echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014971
John Criswell47fdd832003-07-14 16:52:07 +000014972#
14973# Check to make sure the PIC flag actually works.
14974#
14975if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014976
Reid Spencera773bd52006-08-04 18:18:08 +000014977{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14978echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014979if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014980 echo $ECHO_N "(cached) $ECHO_C" >&6
14981else
John Criswell47fdd832003-07-14 16:52:07 +000014982 lt_prog_compiler_pic_works=no
14983 ac_outfile=conftest.$ac_objext
14984 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14985 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14986 # Insert the option either (1) after the last *FLAGS variable, or
14987 # (2) before a word containing "conftest.", or (3) at the end.
14988 # Note that $ac_compile itself does not contain backslashes and begins
14989 # with a dollar sign (not a hyphen), so the echo should work correctly.
14990 # The option is referenced via a variable to avoid confusing sed.
14991 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014992 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014993 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14994 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000014995 (eval echo "\"\$as_me:14995: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014996 (eval "$lt_compile" 2>conftest.err)
14997 ac_status=$?
14998 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000014999 echo "$as_me:14999: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015000 if (exit $ac_status) && test -s "$ac_outfile"; then
15001 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015002 # So say no if there are warnings other than the usual output.
15003 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015006 lt_prog_compiler_pic_works=yes
15007 fi
15008 fi
15009 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015010
John Criswell47fdd832003-07-14 16:52:07 +000015011fi
Reid Spencera773bd52006-08-04 18:18:08 +000015012{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15013echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015014
John Criswell47fdd832003-07-14 16:52:07 +000015015if test x"$lt_prog_compiler_pic_works" = xyes; then
15016 case $lt_prog_compiler_pic in
15017 "" | " "*) ;;
15018 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15019 esac
John Criswell7a73b802003-06-30 21:59:07 +000015020else
John Criswell47fdd832003-07-14 16:52:07 +000015021 lt_prog_compiler_pic=
15022 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015023fi
15024
John Criswell7a73b802003-06-30 21:59:07 +000015025fi
Reid Spencera773bd52006-08-04 18:18:08 +000015026case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015027 # For platforms which do not support PIC, -DPIC is meaningless:
15028 *djgpp*)
15029 lt_prog_compiler_pic=
15030 ;;
15031 *)
15032 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15033 ;;
15034esac
John Criswell7a73b802003-06-30 21:59:07 +000015035
Reid Spencera773bd52006-08-04 18:18:08 +000015036#
15037# Check to make sure the static flag actually works.
15038#
15039wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15040{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15041echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15042if test "${lt_prog_compiler_static_works+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15044else
15045 lt_prog_compiler_static_works=no
15046 save_LDFLAGS="$LDFLAGS"
15047 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15048 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15049 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15050 # The linker can only warn and ignore the option if not recognized
15051 # So say no if there are warnings
15052 if test -s conftest.err; then
15053 # Append any errors to the config.log.
15054 cat conftest.err 1>&5
15055 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15057 if diff conftest.exp conftest.er2 >/dev/null; then
15058 lt_prog_compiler_static_works=yes
15059 fi
15060 else
15061 lt_prog_compiler_static_works=yes
15062 fi
15063 fi
15064 $rm conftest*
15065 LDFLAGS="$save_LDFLAGS"
15066
15067fi
15068{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15069echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15070
15071if test x"$lt_prog_compiler_static_works" = xyes; then
15072 :
15073else
15074 lt_prog_compiler_static=
15075fi
15076
15077
15078{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15079echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015080if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
John Criswell47fdd832003-07-14 16:52:07 +000015083 lt_cv_prog_compiler_c_o=no
15084 $rm -r conftest 2>/dev/null
15085 mkdir conftest
15086 cd conftest
15087 mkdir out
15088 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015089
John Criswell47fdd832003-07-14 16:52:07 +000015090 lt_compiler_flag="-o out/conftest2.$ac_objext"
15091 # Insert the option either (1) after the last *FLAGS variable, or
15092 # (2) before a word containing "conftest.", or (3) at the end.
15093 # Note that $ac_compile itself does not contain backslashes and begins
15094 # with a dollar sign (not a hyphen), so the echo should work correctly.
15095 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015096 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015097 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15098 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015099 (eval echo "\"\$as_me:15099: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015100 (eval "$lt_compile" 2>out/conftest.err)
15101 ac_status=$?
15102 cat out/conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000015103 echo "$as_me:15103: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015104 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15105 then
15106 # The compiler can only warn and ignore the option if not recognized
15107 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015108 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15109 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15110 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015111 lt_cv_prog_compiler_c_o=yes
15112 fi
15113 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015114 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015115 $rm conftest*
15116 # SGI C++ compiler will create directory out/ii_files/ for
15117 # template instantiation
15118 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15119 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015120 cd ..
15121 rmdir conftest
15122 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015123
15124fi
Reid Spencera773bd52006-08-04 18:18:08 +000015125{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15126echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015127
John Criswell7a73b802003-06-30 21:59:07 +000015128
John Criswell7a73b802003-06-30 21:59:07 +000015129hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015130if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015131 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015132 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15133echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015134 hard_links=yes
15135 $rm conftest*
15136 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15137 touch conftest.a
15138 ln conftest.a conftest.b 2>&5 || hard_links=no
15139 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015140 { echo "$as_me:$LINENO: result: $hard_links" >&5
15141echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015142 if test "$hard_links" = no; then
15143 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15144echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15145 need_locks=warn
15146 fi
15147else
15148 need_locks=no
15149fi
John Criswell7a73b802003-06-30 21:59:07 +000015150
Reid Spencera773bd52006-08-04 18:18:08 +000015151{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15152echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015153
15154 runpath_var=
15155 allow_undefined_flag=
15156 enable_shared_with_static_runtimes=no
15157 archive_cmds=
15158 archive_expsym_cmds=
15159 old_archive_From_new_cmds=
15160 old_archive_from_expsyms_cmds=
15161 export_dynamic_flag_spec=
15162 whole_archive_flag_spec=
15163 thread_safe_flag_spec=
15164 hardcode_libdir_flag_spec=
15165 hardcode_libdir_flag_spec_ld=
15166 hardcode_libdir_separator=
15167 hardcode_direct=no
15168 hardcode_minus_L=no
15169 hardcode_shlibpath_var=unsupported
15170 link_all_deplibs=unknown
15171 hardcode_automatic=no
15172 module_cmds=
15173 module_expsym_cmds=
15174 always_export_symbols=no
15175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15176 # include_expsyms should be a list of space-separated symbols to be *always*
15177 # included in the symbol list
15178 include_expsyms=
15179 # exclude_expsyms can be an extended regexp of symbols to exclude
15180 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15181 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15182 # as well as any symbol that contains `d'.
15183 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15184 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15185 # platforms (ab)use it in PIC code, but their linkers get confused if
15186 # the symbol is explicitly referenced. Since portable code cannot
15187 # rely on this symbol name, it's probably fine to never include it in
15188 # preloaded symbol tables.
15189 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015190 # Just being paranoid about ensuring that cc_basename is set.
15191 for cc_temp in $compiler""; do
15192 case $cc_temp in
15193 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15194 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15195 \-*) ;;
15196 *) break;;
15197 esac
15198done
15199cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015200
15201 case $host_os in
15202 cygwin* | mingw* | pw32*)
15203 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15204 # When not using gcc, we currently assume that we are using
15205 # Microsoft Visual C++.
15206 if test "$GCC" != yes; then
15207 with_gnu_ld=no
15208 fi
15209 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015210 interix*)
15211 # we just hope/assume this is gcc and not c89 (= MSVC++)
15212 with_gnu_ld=yes
15213 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015214 openbsd*)
15215 with_gnu_ld=no
15216 ;;
15217 esac
15218
15219 ld_shlibs=yes
15220 if test "$with_gnu_ld" = yes; then
15221 # If archive_cmds runs LD, not CC, wlarc should be empty
15222 wlarc='${wl}'
15223
Reid Spencera773bd52006-08-04 18:18:08 +000015224 # Set some defaults for GNU ld with shared library support. These
15225 # are reset later if shared libraries are not supported. Putting them
15226 # here allows them to be overridden if necessary.
15227 runpath_var=LD_RUN_PATH
15228 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15229 export_dynamic_flag_spec='${wl}--export-dynamic'
15230 # ancient GNU ld didn't support --whole-archive et. al.
15231 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15233 else
15234 whole_archive_flag_spec=
15235 fi
15236 supports_anon_versioning=no
15237 case `$LD -v 2>/dev/null` in
15238 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15239 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15240 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15241 *\ 2.11.*) ;; # other 2.11 versions
15242 *) supports_anon_versioning=yes ;;
15243 esac
15244
John Criswell47fdd832003-07-14 16:52:07 +000015245 # See if GNU ld supports shared libraries.
15246 case $host_os in
15247 aix3* | aix4* | aix5*)
15248 # On AIX/PPC, the GNU linker is very broken
15249 if test "$host_cpu" != ia64; then
15250 ld_shlibs=no
15251 cat <<EOF 1>&2
15252
15253*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15254*** to be unable to reliably create shared libraries on AIX.
15255*** Therefore, libtool is disabling shared libraries support. If you
15256*** really care for shared libraries, you may want to modify your PATH
15257*** so that a non-GNU linker is found, and then restart.
15258
15259EOF
15260 fi
15261 ;;
15262
15263 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015264 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 +000015265 hardcode_libdir_flag_spec='-L$libdir'
15266 hardcode_minus_L=yes
15267
15268 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15269 # that the semantics of dynamic libraries on AmigaOS, at least up
15270 # to version 4, is to share data among multiple programs linked
15271 # with the same dynamic library. Since this doesn't match the
15272 # behavior of shared libraries on other platforms, we can't use
15273 # them.
15274 ld_shlibs=no
15275 ;;
15276
15277 beos*)
15278 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15279 allow_undefined_flag=unsupported
15280 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15281 # support --undefined. This deserves some investigation. FIXME
15282 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15283 else
15284 ld_shlibs=no
15285 fi
15286 ;;
15287
15288 cygwin* | mingw* | pw32*)
15289 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15290 # as there is no search path for DLLs.
15291 hardcode_libdir_flag_spec='-L$libdir'
15292 allow_undefined_flag=unsupported
15293 always_export_symbols=no
15294 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015295 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 +000015296
15297 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015298 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 +000015299 # If the export-symbols file already is a .def file (1st line
15300 # is EXPORTS), use it as is; otherwise, prepend...
15301 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15302 cp $export_symbols $output_objdir/$soname.def;
15303 else
15304 echo EXPORTS > $output_objdir/$soname.def;
15305 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015306 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015307 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15308 else
15309 ld_shlibs=no
15310 fi
15311 ;;
15312
15313 interix3*)
15314 hardcode_direct=no
15315 hardcode_shlibpath_var=no
15316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15317 export_dynamic_flag_spec='${wl}-E'
15318 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15319 # Instead, shared libraries are loaded at an image base (0x10000000 by
15320 # default) and relocated if they conflict, which is a slow very memory
15321 # consuming and fragmenting process. To avoid this, we pick a random,
15322 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15323 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15324 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15325 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'
15326 ;;
15327
15328 linux*)
15329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330 tmp_addflag=
15331 case $cc_basename,$host_cpu in
15332 pgcc*) # Portland Group C compiler
15333 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'
15334 tmp_addflag=' $pic_flag'
15335 ;;
15336 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15337 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'
15338 tmp_addflag=' $pic_flag -Mnomain' ;;
15339 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15340 tmp_addflag=' -i_dynamic' ;;
15341 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15342 tmp_addflag=' -i_dynamic -nofor_main' ;;
15343 ifc* | ifort*) # Intel Fortran compiler
15344 tmp_addflag=' -nofor_main' ;;
15345 esac
15346 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15347
15348 if test $supports_anon_versioning = yes; then
15349 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15351 $echo "local: *; };" >> $output_objdir/$libname.ver~
15352 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15353 fi
John Criswell47fdd832003-07-14 16:52:07 +000015354 else
15355 ld_shlibs=no
15356 fi
15357 ;;
15358
15359 netbsd*)
15360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15361 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15362 wlarc=
15363 else
15364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15366 fi
15367 ;;
15368
Reid Spencera773bd52006-08-04 18:18:08 +000015369 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015370 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15371 ld_shlibs=no
15372 cat <<EOF 1>&2
15373
15374*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15375*** create shared libraries on Solaris systems. Therefore, libtool
15376*** is disabling shared libraries support. We urge you to upgrade GNU
15377*** binutils to release 2.9.1 or newer. Another option is to modify
15378*** your PATH or compiler configuration so that the native linker is
15379*** used, and then restart.
15380
15381EOF
15382 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15384 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15385 else
15386 ld_shlibs=no
15387 fi
15388 ;;
15389
Reid Spencera773bd52006-08-04 18:18:08 +000015390 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15391 case `$LD -v 2>&1` in
15392 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15393 ld_shlibs=no
15394 cat <<_LT_EOF 1>&2
15395
15396*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15397*** reliably create shared libraries on SCO systems. Therefore, libtool
15398*** is disabling shared libraries support. We urge you to upgrade GNU
15399*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15400*** your PATH or compiler configuration so that the native linker is
15401*** used, and then restart.
15402
15403_LT_EOF
15404 ;;
15405 *)
15406 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15407 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15408 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15409 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15410 else
15411 ld_shlibs=no
15412 fi
15413 ;;
15414 esac
15415 ;;
15416
John Criswell47fdd832003-07-14 16:52:07 +000015417 sunos4*)
15418 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 wlarc=
15420 hardcode_direct=yes
15421 hardcode_shlibpath_var=no
15422 ;;
15423
15424 *)
15425 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15428 else
15429 ld_shlibs=no
15430 fi
15431 ;;
15432 esac
15433
Reid Spencera773bd52006-08-04 18:18:08 +000015434 if test "$ld_shlibs" = no; then
15435 runpath_var=
15436 hardcode_libdir_flag_spec=
15437 export_dynamic_flag_spec=
15438 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015439 fi
15440 else
15441 # PORTME fill in a description of your system's linker (not GNU ld)
15442 case $host_os in
15443 aix3*)
15444 allow_undefined_flag=unsupported
15445 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015446 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 +000015447 # Note: this linker hardcodes the directories in LIBPATH if there
15448 # are no directories specified by -L.
15449 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015450 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015451 # Neither direct hardcoding nor static linking is supported with a
15452 # broken collect2.
15453 hardcode_direct=unsupported
15454 fi
15455 ;;
15456
15457 aix4* | aix5*)
15458 if test "$host_cpu" = ia64; then
15459 # On IA64, the linker does run time linking by default, so we don't
15460 # have to do anything special.
15461 aix_use_runtimelinking=no
15462 exp_sym_flag='-Bexport'
15463 no_entry_flag=""
15464 else
15465 # If we're using GNU nm, then we don't want the "-C" option.
15466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15468 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'
15469 else
15470 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'
15471 fi
15472 aix_use_runtimelinking=no
15473
15474 # Test if we are trying to use run time linking or normal
15475 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15476 # need to do runtime linking.
15477 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15478 for ld_flag in $LDFLAGS; do
15479 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15480 aix_use_runtimelinking=yes
15481 break
15482 fi
15483 done
Reid Spencera773bd52006-08-04 18:18:08 +000015484 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015485 esac
15486
15487 exp_sym_flag='-bexport'
15488 no_entry_flag='-bnoentry'
15489 fi
15490
15491 # When large executables or shared objects are built, AIX ld can
15492 # have problems creating the table of contents. If linking a library
15493 # or program results in "error TOC overflow" add -mminimal-toc to
15494 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15495 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15496
15497 archive_cmds=''
15498 hardcode_direct=yes
15499 hardcode_libdir_separator=':'
15500 link_all_deplibs=yes
15501
15502 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015503 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015504 # We only want to do this on AIX 4.2 and lower, the check
15505 # below for broken collect2 doesn't work under 4.3+
15506 collect2name=`${CC} -print-prog-name=collect2`
15507 if test -f "$collect2name" && \
15508 strings "$collect2name" | grep resolve_lib_name >/dev/null
15509 then
15510 # We have reworked collect2
15511 hardcode_direct=yes
15512 else
15513 # We have old collect2
15514 hardcode_direct=unsupported
15515 # It fails to find uninstalled libraries when the uninstalled
15516 # path is not listed in the libpath. Setting hardcode_minus_L
15517 # to unsupported forces relinking
15518 hardcode_minus_L=yes
15519 hardcode_libdir_flag_spec='-L$libdir'
15520 hardcode_libdir_separator=
15521 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015523 esac
15524 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015525 if test "$aix_use_runtimelinking" = yes; then
15526 shared_flag="$shared_flag "'${wl}-G'
15527 fi
John Criswell47fdd832003-07-14 16:52:07 +000015528 else
15529 # not using gcc
15530 if test "$host_cpu" = ia64; then
15531 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15532 # chokes on -Wl,-G. The following line is correct:
15533 shared_flag='-G'
15534 else
Reid Spencera773bd52006-08-04 18:18:08 +000015535 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015536 shared_flag='${wl}-G'
15537 else
15538 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015539 fi
John Criswell47fdd832003-07-14 16:52:07 +000015540 fi
15541 fi
15542
15543 # It seems that -bexpall does not export symbols beginning with
15544 # underscore (_), so it is better to generate a list of symbols to export.
15545 always_export_symbols=yes
15546 if test "$aix_use_runtimelinking" = yes; then
15547 # Warning - without using the other runtime loading flags (-brtl),
15548 # -berok will link without error, but may produce a broken library.
15549 allow_undefined_flag='-berok'
15550 # Determine the default libpath from the value encoded in an empty executable.
15551 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015552/* confdefs.h. */
15553_ACEOF
15554cat confdefs.h >>conftest.$ac_ext
15555cat >>conftest.$ac_ext <<_ACEOF
15556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015557
John Criswell7a73b802003-06-30 21:59:07 +000015558int
15559main ()
15560{
John Criswell47fdd832003-07-14 16:52:07 +000015561
John Criswell7a73b802003-06-30 21:59:07 +000015562 ;
15563 return 0;
15564}
15565_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015566rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015567if { (ac_try="$ac_link"
15568case "(($ac_try" in
15569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15571esac
15572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015574 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015579 (exit $ac_status); } &&
15580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15581 { (case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15584esac
15585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_try") 2>&5
15587 ac_status=$?
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); }; } &&
15590 { ac_try='test -s conftest$ac_exeext'
15591 { (case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15594esac
15595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_try") 2>&5
15597 ac_status=$?
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015600
John Criswell47fdd832003-07-14 16:52:07 +000015601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15602}'`
15603# Check for a 64-bit object if we didn't find anything.
15604if 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; }
15605}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015606else
15607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015608sed 's/^/| /' conftest.$ac_ext >&5
15609
Reid Spencera773bd52006-08-04 18:18:08 +000015610
John Criswell7a73b802003-06-30 21:59:07 +000015611fi
Reid Spencera773bd52006-08-04 18:18:08 +000015612
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015613rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015614 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015615if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015616
John Criswell47fdd832003-07-14 16:52:07 +000015617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015618 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 +000015619 else
15620 if test "$host_cpu" = ia64; then
15621 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15622 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015623 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 +000015624 else
15625 # Determine the default libpath from the value encoded in an empty executable.
15626 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015632
John Criswell47fdd832003-07-14 16:52:07 +000015633int
15634main ()
15635{
John Criswell7a73b802003-06-30 21:59:07 +000015636
John Criswell47fdd832003-07-14 16:52:07 +000015637 ;
15638 return 0;
15639}
15640_ACEOF
15641rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015642if { (ac_try="$ac_link"
15643case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646esac
15647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015654 (exit $ac_status); } &&
15655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656 { (case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15659esac
15660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_try") 2>&5
15662 ac_status=$?
15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664 (exit $ac_status); }; } &&
15665 { ac_try='test -s conftest$ac_exeext'
15666 { (case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
15670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671 (eval "$ac_try") 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015675
John Criswell47fdd832003-07-14 16:52:07 +000015676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15677}'`
15678# Check for a 64-bit object if we didn't find anything.
15679if 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; }
15680}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015681else
John Criswell47fdd832003-07-14 16:52:07 +000015682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015683sed 's/^/| /' conftest.$ac_ext >&5
15684
Reid Spencera773bd52006-08-04 18:18:08 +000015685
John Criswell47fdd832003-07-14 16:52:07 +000015686fi
Reid Spencera773bd52006-08-04 18:18:08 +000015687
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015688rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015689 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015690if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015691
John Criswell47fdd832003-07-14 16:52:07 +000015692 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15693 # Warning - without using the other run time loading flags,
15694 # -berok will link without error, but may produce a broken library.
15695 no_undefined_flag=' ${wl}-bernotok'
15696 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015697 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015698 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015699 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015700 # This is similar to how AIX traditionally builds its shared libraries.
15701 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 +000015702 fi
15703 fi
John Criswell7a73b802003-06-30 21:59:07 +000015704 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015705
15706 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015707 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 +000015708 hardcode_libdir_flag_spec='-L$libdir'
15709 hardcode_minus_L=yes
15710 # see comment about different semantics on the GNU ld section
15711 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015712 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015713
Reid Spencer2706f8c2004-09-19 23:53:36 +000015714 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015715 export_dynamic_flag_spec=-rdynamic
15716 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015717
John Criswell47fdd832003-07-14 16:52:07 +000015718 cygwin* | mingw* | pw32*)
15719 # When not using gcc, we currently assume that we are using
15720 # Microsoft Visual C++.
15721 # hardcode_libdir_flag_spec is actually meaningless, as there is
15722 # no search path for DLLs.
15723 hardcode_libdir_flag_spec=' '
15724 allow_undefined_flag=unsupported
15725 # Tell ltmain to make .lib files, not .a files.
15726 libext=lib
15727 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015728 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015729 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015730 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015731 # The linker will automatically build a .lib file if we build a DLL.
15732 old_archive_From_new_cmds='true'
15733 # FIXME: Should let the user specify the lib program.
15734 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15735 fix_srcfile_path='`cygpath -w "$srcfile"`'
15736 enable_shared_with_static_runtimes=yes
15737 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015738
John Criswell47fdd832003-07-14 16:52:07 +000015739 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015740 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015741 rhapsody* | darwin1.[012])
15742 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15743 ;;
15744 *) # Darwin 1.3 on
15745 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15746 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15747 else
15748 case ${MACOSX_DEPLOYMENT_TARGET} in
15749 10.[012])
15750 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15751 ;;
15752 10.*)
15753 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15754 ;;
15755 esac
15756 fi
15757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015758 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015759 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015760 hardcode_direct=no
15761 hardcode_automatic=yes
15762 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015763 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015764 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015765 if test "$GCC" = yes ; then
15766 output_verbose_link_cmd='echo'
15767 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15768 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015769 # 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 +000015770 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}'
15771 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 +000015772 else
Reid Spencera773bd52006-08-04 18:18:08 +000015773 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015774 xlc*)
15775 output_verbose_link_cmd='echo'
15776 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15777 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015778 # 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 +000015779 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}'
15780 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 +000015781 ;;
15782 *)
15783 ld_shlibs=no
15784 ;;
15785 esac
John Criswell7a73b802003-06-30 21:59:07 +000015786 fi
John Criswell47fdd832003-07-14 16:52:07 +000015787 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015788
John Criswell47fdd832003-07-14 16:52:07 +000015789 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015791 hardcode_libdir_flag_spec='-L$libdir'
15792 hardcode_shlibpath_var=no
15793 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015794
John Criswell47fdd832003-07-14 16:52:07 +000015795 freebsd1*)
15796 ld_shlibs=no
15797 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015798
John Criswell47fdd832003-07-14 16:52:07 +000015799 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15800 # support. Future versions do this automatically, but an explicit c++rt0.o
15801 # does not break anything, and helps significantly (at the cost of a little
15802 # extra space).
15803 freebsd2.2*)
15804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15805 hardcode_libdir_flag_spec='-R$libdir'
15806 hardcode_direct=yes
15807 hardcode_shlibpath_var=no
15808 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015809
John Criswell47fdd832003-07-14 16:52:07 +000015810 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15811 freebsd2*)
15812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_direct=yes
15814 hardcode_minus_L=yes
15815 hardcode_shlibpath_var=no
15816 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015817
John Criswell47fdd832003-07-14 16:52:07 +000015818 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015819 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015820 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15821 hardcode_libdir_flag_spec='-R$libdir'
15822 hardcode_direct=yes
15823 hardcode_shlibpath_var=no
15824 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015825
John Criswell47fdd832003-07-14 16:52:07 +000015826 hpux9*)
15827 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015828 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 +000015829 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015830 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 +000015831 fi
15832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15833 hardcode_libdir_separator=:
15834 hardcode_direct=yes
15835
15836 # hardcode_minus_L: Not really in the search PATH,
15837 # but as the default location of the library.
15838 hardcode_minus_L=yes
15839 export_dynamic_flag_spec='${wl}-E'
15840 ;;
15841
Reid Spencera773bd52006-08-04 18:18:08 +000015842 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015843 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015844 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15845 else
15846 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15847 fi
15848 if test "$with_gnu_ld" = no; then
15849 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15850 hardcode_libdir_separator=:
15851
15852 hardcode_direct=yes
15853 export_dynamic_flag_spec='${wl}-E'
15854
15855 # hardcode_minus_L: Not really in the search PATH,
15856 # but as the default location of the library.
15857 hardcode_minus_L=yes
15858 fi
15859 ;;
15860
15861 hpux11*)
15862 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15863 case $host_cpu in
15864 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015865 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015867 ia64*)
15868 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15869 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015870 *)
15871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15872 ;;
15873 esac
15874 else
Reid Spencera773bd52006-08-04 18:18:08 +000015875 case $host_cpu in
15876 hppa*64*)
15877 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15878 ;;
15879 ia64*)
15880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015881 ;;
15882 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015883 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 +000015884 ;;
15885 esac
15886 fi
15887 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15889 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015890
Reid Spencera773bd52006-08-04 18:18:08 +000015891 case $host_cpu in
15892 hppa*64*|ia64*)
15893 hardcode_libdir_flag_spec_ld='+b $libdir'
15894 hardcode_direct=no
15895 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015896 ;;
15897 *)
John Criswell47fdd832003-07-14 16:52:07 +000015898 hardcode_direct=yes
15899 export_dynamic_flag_spec='${wl}-E'
15900
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L=yes
15904 ;;
15905 esac
15906 fi
15907 ;;
15908
15909 irix5* | irix6* | nonstopux*)
15910 if test "$GCC" = yes; then
15911 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'
15912 else
15913 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'
15914 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15915 fi
15916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15917 hardcode_libdir_separator=:
15918 link_all_deplibs=yes
15919 ;;
15920
15921 netbsd*)
15922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15924 else
15925 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15926 fi
15927 hardcode_libdir_flag_spec='-R$libdir'
15928 hardcode_direct=yes
15929 hardcode_shlibpath_var=no
15930 ;;
15931
15932 newsos6)
15933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15934 hardcode_direct=yes
15935 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936 hardcode_libdir_separator=:
15937 hardcode_shlibpath_var=no
15938 ;;
15939
15940 openbsd*)
15941 hardcode_direct=yes
15942 hardcode_shlibpath_var=no
15943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015945 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 +000015946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15947 export_dynamic_flag_spec='${wl}-E'
15948 else
15949 case $host_os in
15950 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15952 hardcode_libdir_flag_spec='-R$libdir'
15953 ;;
15954 *)
15955 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15956 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15957 ;;
15958 esac
15959 fi
15960 ;;
15961
15962 os2*)
15963 hardcode_libdir_flag_spec='-L$libdir'
15964 hardcode_minus_L=yes
15965 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015966 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 +000015967 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15968 ;;
15969
15970 osf3*)
15971 if test "$GCC" = yes; then
15972 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15973 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'
15974 else
15975 allow_undefined_flag=' -expect_unresolved \*'
15976 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'
15977 fi
15978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator=:
15980 ;;
15981
15982 osf4* | osf5*) # as osf3* with the addition of -msym flag
15983 if test "$GCC" = yes; then
15984 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15985 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'
15986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15987 else
15988 allow_undefined_flag=' -expect_unresolved \*'
15989 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 +000015990 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 +000015991 $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 +000015992
John Criswell47fdd832003-07-14 16:52:07 +000015993 # Both c and cxx compiler support -rpath directly
15994 hardcode_libdir_flag_spec='-rpath $libdir'
15995 fi
15996 hardcode_libdir_separator=:
15997 ;;
15998
John Criswell47fdd832003-07-14 16:52:07 +000015999 solaris*)
16000 no_undefined_flag=' -z text'
16001 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016002 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016003 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016004 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16005 $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 +000016006 else
Reid Spencera773bd52006-08-04 18:18:08 +000016007 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016008 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016009 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16010 $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 +000016011 fi
16012 hardcode_libdir_flag_spec='-R$libdir'
16013 hardcode_shlibpath_var=no
16014 case $host_os in
16015 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016016 *)
16017 # The compiler driver will combine linker options so we
16018 # cannot just pass the convience library names through
16019 # without $wl, iff we do not link with $LD.
16020 # Luckily, gcc supports the same syntax we need for Sun Studio.
16021 # Supported since Solaris 2.6 (maybe 2.5.1?)
16022 case $wlarc in
16023 '')
16024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16025 *)
16026 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' ;;
16027 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016028 esac
16029 link_all_deplibs=yes
16030 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016031
John Criswell47fdd832003-07-14 16:52:07 +000016032 sunos4*)
16033 if test "x$host_vendor" = xsequent; then
16034 # Use $CC to link under sequent, because it throws in some extra .o
16035 # files that make .init and .fini sections work.
16036 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16037 else
16038 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16039 fi
16040 hardcode_libdir_flag_spec='-L$libdir'
16041 hardcode_direct=yes
16042 hardcode_minus_L=yes
16043 hardcode_shlibpath_var=no
16044 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016045
John Criswell47fdd832003-07-14 16:52:07 +000016046 sysv4)
16047 case $host_vendor in
16048 sni)
16049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16050 hardcode_direct=yes # is this really true???
16051 ;;
16052 siemens)
16053 ## LD is ld it makes a PLAMLIB
16054 ## CC just makes a GrossModule.
16055 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16056 reload_cmds='$CC -r -o $output$reload_objs'
16057 hardcode_direct=no
16058 ;;
16059 motorola)
16060 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16061 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16062 ;;
16063 esac
16064 runpath_var='LD_RUN_PATH'
16065 hardcode_shlibpath_var=no
16066 ;;
16067
16068 sysv4.3*)
16069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16070 hardcode_shlibpath_var=no
16071 export_dynamic_flag_spec='-Bexport'
16072 ;;
16073
16074 sysv4*MP*)
16075 if test -d /usr/nec; then
16076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16077 hardcode_shlibpath_var=no
16078 runpath_var=LD_RUN_PATH
16079 hardcode_runpath_var=yes
16080 ld_shlibs=yes
16081 fi
16082 ;;
16083
Reid Spencera773bd52006-08-04 18:18:08 +000016084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16085 no_undefined_flag='${wl}-z,text'
16086 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016087 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016088 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016089
John Criswell47fdd832003-07-14 16:52:07 +000016090 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016091 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 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 +000016093 else
Reid Spencera773bd52006-08-04 18:18:08 +000016094 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16095 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 +000016096 fi
John Criswell47fdd832003-07-14 16:52:07 +000016097 ;;
16098
Reid Spencera773bd52006-08-04 18:18:08 +000016099 sysv5* | sco3.2v5* | sco5v6*)
16100 # Note: We can NOT use -z defs as we might desire, because we do not
16101 # link with -lc, and that would cause any symbols used from libc to
16102 # always be unresolved, which means just about no library would
16103 # ever link correctly. If we're not using GNU ld we use -z text
16104 # though, which does catch some bad symbols but isn't as heavy-handed
16105 # as -z defs.
16106 no_undefined_flag='${wl}-z,text'
16107 allow_undefined_flag='${wl}-z,nodefs'
16108 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016109 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016110 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16111 hardcode_libdir_separator=':'
16112 link_all_deplibs=yes
16113 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016114 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016115
16116 if test "$GCC" = yes; then
16117 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16118 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119 else
16120 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16121 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16122 fi
John Criswell47fdd832003-07-14 16:52:07 +000016123 ;;
16124
16125 uts4*)
16126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16127 hardcode_libdir_flag_spec='-L$libdir'
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 *)
16132 ld_shlibs=no
16133 ;;
16134 esac
16135 fi
16136
Reid Spencera773bd52006-08-04 18:18:08 +000016137{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16138echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016139test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016140
John Criswell47fdd832003-07-14 16:52:07 +000016141#
16142# Do we need to explicitly link libc?
16143#
16144case "x$archive_cmds_need_lc" in
16145x|xyes)
16146 # Assume -lc should be added
16147 archive_cmds_need_lc=yes
16148
16149 if test "$enable_shared" = yes && test "$GCC" = yes; then
16150 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016151 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016152 # FIXME: we may have to deal with multi-command sequences.
16153 ;;
16154 '$CC '*)
16155 # Test whether the compiler implicitly links with -lc since on some
16156 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16157 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016158 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16159echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016160 $rm conftest*
16161 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16162
16163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16164 (eval $ac_compile) 2>&5
16165 ac_status=$?
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } 2>conftest.err; then
16168 soname=conftest
16169 lib=conftest
16170 libobjs=conftest.$ac_objext
16171 deplibs=
16172 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016173 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016174 compiler_flags=-v
16175 linker_flags=-v
16176 verstring=
16177 output_objdir=.
16178 libname=conftest
16179 lt_save_allow_undefined_flag=$allow_undefined_flag
16180 allow_undefined_flag=
16181 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16182 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }
16186 then
16187 archive_cmds_need_lc=no
16188 else
16189 archive_cmds_need_lc=yes
16190 fi
16191 allow_undefined_flag=$lt_save_allow_undefined_flag
16192 else
16193 cat conftest.err 1>&5
16194 fi
16195 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016196 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16197echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016198 ;;
16199 esac
16200 fi
16201 ;;
16202esac
16203
Reid Spencera773bd52006-08-04 18:18:08 +000016204{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16205echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016206library_names_spec=
16207libname_spec='lib$name'
16208soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016209shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016210postinstall_cmds=
16211postuninstall_cmds=
16212finish_cmds=
16213finish_eval=
16214shlibpath_var=
16215shlibpath_overrides_runpath=unknown
16216version_type=none
16217dynamic_linker="$host_os ld.so"
16218sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016219if test "$GCC" = yes; then
16220 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16221 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16222 # if the path contains ";" then we assume it to be the separator
16223 # otherwise default to the standard path separator (i.e. ":") - it is
16224 # assumed that no part of a normal pathname contains ";" but that should
16225 # okay in the real world where ";" in dirpaths is itself problematic.
16226 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16227 else
16228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16229 fi
16230else
16231 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16232fi
16233need_lib_prefix=unknown
16234hardcode_into_libs=no
16235
16236# when you set need_version to no, make sure it does not cause -set_version
16237# flags to be left without arguments
16238need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016239
16240case $host_os in
16241aix3*)
16242 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016243 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016244 shlibpath_var=LIBPATH
16245
John Criswell47fdd832003-07-14 16:52:07 +000016246 # AIX 3 has no versioning support, so we append a major version to the name.
16247 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016248 ;;
16249
16250aix4* | aix5*)
16251 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016252 need_lib_prefix=no
16253 need_version=no
16254 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016255 if test "$host_cpu" = ia64; then
16256 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016257 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016258 shlibpath_var=LD_LIBRARY_PATH
16259 else
16260 # With GCC up to 2.95.x, collect2 would create an import file
16261 # for dependence libraries. The import file would start with
16262 # the line `#! .'. This would cause the generated library to
16263 # depend on `.', always an invalid library. This was fixed in
16264 # development snapshots of GCC prior to 3.0.
16265 case $host_os in
16266 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016267 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16268 echo ' yes '
16269 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16270 :
16271 else
16272 can_build_shared=no
16273 fi
16274 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016275 esac
John Criswell47fdd832003-07-14 16:52:07 +000016276 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16277 # soname into executable. Probably we can add versioning support to
16278 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016279 if test "$aix_use_runtimelinking" = yes; then
16280 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16281 # instead of lib<name>.a to let people know that these are not
16282 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016284 else
16285 # We preserve .a as extension for shared libraries through AIX4.2
16286 # and later when we are not doing run time linking.
16287 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016288 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016289 fi
16290 shlibpath_var=LIBPATH
16291 fi
16292 ;;
16293
16294amigaos*)
16295 library_names_spec='$libname.ixlibrary $libname.a'
16296 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016297 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 +000016298 ;;
16299
16300beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016301 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016302 dynamic_linker="$host_os ld.so"
16303 shlibpath_var=LIBRARY_PATH
16304 ;;
16305
Reid Spencer2706f8c2004-09-19 23:53:36 +000016306bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016307 version_type=linux
16308 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16310 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016311 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16312 shlibpath_var=LD_LIBRARY_PATH
16313 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16314 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016315 # the default ld.so.conf also contains /usr/contrib/lib and
16316 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16317 # libtool to hard-code these into programs
16318 ;;
16319
16320cygwin* | mingw* | pw32*)
16321 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016323 need_version=no
16324 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016325
John Criswell7a73b802003-06-30 21:59:07 +000016326 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016327 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016328 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016329 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016330 postinstall_cmds='base_file=`basename \${file}`~
16331 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16332 dldir=$destdir/`dirname \$dlpath`~
16333 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016334 $install_prog $dir/$dlname \$dldir/$dlname~
16335 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016338 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016339 shlibpath_overrides_runpath=yes
16340
16341 case $host_os in
16342 cygwin*)
16343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344 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 +000016345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016346 ;;
16347 mingw*)
16348 # MinGW DLLs use traditional 'lib' prefix
16349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352 # It is most probably a Windows format PATH printed by
16353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354 # path with ; separators, and with drive letters. We can handle the
16355 # drive letters (cygwin fileutils understands them), so leave them,
16356 # especially as we might pass files found there to a mingw objdump,
16357 # which wouldn't understand a cygwinified path. Ahh.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16359 else
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16361 fi
16362 ;;
16363 pw32*)
16364 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016365 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 +000016366 ;;
16367 esac
John Criswell7a73b802003-06-30 21:59:07 +000016368 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016369
John Criswell7a73b802003-06-30 21:59:07 +000016370 *)
John Criswell47fdd832003-07-14 16:52:07 +000016371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016372 ;;
16373 esac
16374 dynamic_linker='Win32 ld.exe'
16375 # FIXME: first we should search . and the directory the executable is in
16376 shlibpath_var=PATH
16377 ;;
16378
16379darwin* | rhapsody*)
16380 dynamic_linker="$host_os dyld"
16381 version_type=darwin
16382 need_lib_prefix=no
16383 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016385 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016386 shlibpath_overrides_runpath=yes
16387 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016388 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016389 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016390 if test "$GCC" = yes; then
16391 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"`
16392 else
16393 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016394 fi
16395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16396 ;;
16397
16398dgux*)
16399 version_type=linux
16400 need_lib_prefix=no
16401 need_version=no
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016405 ;;
16406
16407freebsd1*)
16408 dynamic_linker=no
16409 ;;
16410
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411kfreebsd*-gnu)
16412 version_type=linux
16413 need_lib_prefix=no
16414 need_version=no
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=no
16419 hardcode_into_libs=yes
16420 dynamic_linker='GNU ld.so'
16421 ;;
16422
Reid Spencera773bd52006-08-04 18:18:08 +000016423freebsd* | dragonfly*)
16424 # DragonFly does not have aout. When/if they implement a new
16425 # versioning mechanism, adjust this.
16426 if test -x /usr/bin/objformat; then
16427 objformat=`/usr/bin/objformat`
16428 else
16429 case $host_os in
16430 freebsd[123]*) objformat=aout ;;
16431 *) objformat=elf ;;
16432 esac
16433 fi
John Criswell7a73b802003-06-30 21:59:07 +000016434 version_type=freebsd-$objformat
16435 case $version_type in
16436 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016438 need_version=no
16439 need_lib_prefix=no
16440 ;;
16441 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016443 need_version=yes
16444 ;;
16445 esac
16446 shlibpath_var=LD_LIBRARY_PATH
16447 case $host_os in
16448 freebsd2*)
16449 shlibpath_overrides_runpath=yes
16450 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016451 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016452 shlibpath_overrides_runpath=yes
16453 hardcode_into_libs=yes
16454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016455 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16456 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016457 shlibpath_overrides_runpath=no
16458 hardcode_into_libs=yes
16459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016460 freebsd*) # from 4.6 on
16461 shlibpath_overrides_runpath=yes
16462 hardcode_into_libs=yes
16463 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016464 esac
16465 ;;
16466
16467gnu*)
16468 version_type=linux
16469 need_lib_prefix=no
16470 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16472 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016473 shlibpath_var=LD_LIBRARY_PATH
16474 hardcode_into_libs=yes
16475 ;;
16476
16477hpux9* | hpux10* | hpux11*)
16478 # Give a soname corresponding to the major version so that dld.sl refuses to
16479 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016480 version_type=sunos
16481 need_lib_prefix=no
16482 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016483 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016484 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016485 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016486 hardcode_into_libs=yes
16487 dynamic_linker="$host_os dld.so"
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 if test "X$HPUX_IA64_MODE" = X32; then
16493 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16494 else
16495 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16496 fi
16497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16498 ;;
16499 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016500 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016501 hardcode_into_libs=yes
16502 dynamic_linker="$host_os dld.sl"
16503 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16509 ;;
16510 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016511 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016512 dynamic_linker="$host_os dld.sl"
16513 shlibpath_var=SHLIB_PATH
16514 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 ;;
16518 esac
John Criswell7a73b802003-06-30 21:59:07 +000016519 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16520 postinstall_cmds='chmod 555 $lib'
16521 ;;
16522
Reid Spencera773bd52006-08-04 18:18:08 +000016523interix3*)
16524 version_type=linux
16525 need_lib_prefix=no
16526 need_version=no
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 shlibpath_overrides_runpath=no
16532 hardcode_into_libs=yes
16533 ;;
16534
John Criswell47fdd832003-07-14 16:52:07 +000016535irix5* | irix6* | nonstopux*)
16536 case $host_os in
16537 nonstopux*) version_type=nonstopux ;;
16538 *)
16539 if test "$lt_cv_prog_gnu_ld" = yes; then
16540 version_type=linux
16541 else
16542 version_type=irix
16543 fi ;;
16544 esac
John Criswell7a73b802003-06-30 21:59:07 +000016545 need_lib_prefix=no
16546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016547 soname_spec='${libname}${release}${shared_ext}$major'
16548 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 +000016549 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016550 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016551 libsuff= shlibsuff=
16552 ;;
16553 *)
16554 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16556 libsuff= shlibsuff= libmagic=32-bit;;
16557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16558 libsuff=32 shlibsuff=N32 libmagic=N32;;
16559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016561 *) libsuff= shlibsuff= libmagic=never-match;;
16562 esac
16563 ;;
16564 esac
16565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16566 shlibpath_overrides_runpath=no
16567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016569 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016570 ;;
16571
16572# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016573linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016574 dynamic_linker=no
16575 ;;
16576
16577# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016578linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016579 version_type=linux
16580 need_lib_prefix=no
16581 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16583 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16585 shlibpath_var=LD_LIBRARY_PATH
16586 shlibpath_overrides_runpath=no
16587 # This implies no fast_install, which is unacceptable.
16588 # Some rework will be needed to allow for fast_install
16589 # before this can be enabled.
16590 hardcode_into_libs=yes
16591
Reid Spencer2706f8c2004-09-19 23:53:36 +000016592 # Append ld.so.conf contents to the search path
16593 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016594 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 +000016595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16596 fi
16597
John Criswell7a73b802003-06-30 21:59:07 +000016598 # We used to test for /lib/ld.so.1 and disable shared libraries on
16599 # powerpc, because MkLinux only supported shared libraries with the
16600 # GNU dynamic linker. Since this was broken with cross compilers,
16601 # most powerpc-linux boxes support dynamic linking these days and
16602 # people can always --disable-shared, the test was removed, and we
16603 # assume the GNU/Linux dynamic linker is in use.
16604 dynamic_linker='GNU/Linux ld.so'
16605 ;;
16606
Reid Spencer2706f8c2004-09-19 23:53:36 +000016607knetbsd*-gnu)
16608 version_type=linux
16609 need_lib_prefix=no
16610 need_version=no
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 shlibpath_var=LD_LIBRARY_PATH
16614 shlibpath_overrides_runpath=no
16615 hardcode_into_libs=yes
16616 dynamic_linker='GNU ld.so'
16617 ;;
16618
John Criswell7a73b802003-06-30 21:59:07 +000016619netbsd*)
16620 version_type=sunos
16621 need_lib_prefix=no
16622 need_version=no
16623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16626 dynamic_linker='NetBSD (a.out) ld.so'
16627 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016629 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016630 dynamic_linker='NetBSD ld.elf_so'
16631 fi
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 hardcode_into_libs=yes
16635 ;;
16636
16637newsos6)
16638 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16640 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes
16642 ;;
16643
Reid Spencer2706f8c2004-09-19 23:53:36 +000016644nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016645 version_type=linux
16646 need_lib_prefix=no
16647 need_version=no
16648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=yes
16652 ;;
16653
16654openbsd*)
16655 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016656 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016657 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016658 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16659 case $host_os in
16660 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16661 *) need_version=no ;;
16662 esac
John Criswell47fdd832003-07-14 16:52:07 +000016663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16665 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016666 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 +000016667 case $host_os in
16668 openbsd2.[89] | openbsd2.[89].*)
16669 shlibpath_overrides_runpath=no
16670 ;;
16671 *)
16672 shlibpath_overrides_runpath=yes
16673 ;;
16674 esac
John Criswell7a73b802003-06-30 21:59:07 +000016675 else
16676 shlibpath_overrides_runpath=yes
16677 fi
John Criswell7a73b802003-06-30 21:59:07 +000016678 ;;
16679
16680os2*)
16681 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016682 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016683 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016684 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016685 dynamic_linker='OS/2 ld.exe'
16686 shlibpath_var=LIBPATH
16687 ;;
16688
16689osf3* | osf4* | osf5*)
16690 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016691 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016692 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016693 soname_spec='${libname}${release}${shared_ext}$major'
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016695 shlibpath_var=LD_LIBRARY_PATH
16696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16698 ;;
16699
John Criswell7a73b802003-06-30 21:59:07 +000016700solaris*)
16701 version_type=linux
16702 need_lib_prefix=no
16703 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016706 shlibpath_var=LD_LIBRARY_PATH
16707 shlibpath_overrides_runpath=yes
16708 hardcode_into_libs=yes
16709 # ldd complains unless libraries are executable
16710 postinstall_cmds='chmod +x $lib'
16711 ;;
16712
16713sunos4*)
16714 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016716 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16717 shlibpath_var=LD_LIBRARY_PATH
16718 shlibpath_overrides_runpath=yes
16719 if test "$with_gnu_ld" = yes; then
16720 need_lib_prefix=no
16721 fi
16722 need_version=yes
16723 ;;
16724
Reid Spencera773bd52006-08-04 18:18:08 +000016725sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016726 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016729 shlibpath_var=LD_LIBRARY_PATH
16730 case $host_vendor in
16731 sni)
16732 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016733 need_lib_prefix=no
16734 export_dynamic_flag_spec='${wl}-Blargedynsym'
16735 runpath_var=LD_RUN_PATH
16736 ;;
16737 siemens)
16738 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016739 ;;
16740 motorola)
16741 need_lib_prefix=no
16742 need_version=no
16743 shlibpath_overrides_runpath=no
16744 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16745 ;;
16746 esac
16747 ;;
16748
John Criswell7a73b802003-06-30 21:59:07 +000016749sysv4*MP*)
16750 if test -d /usr/nec ;then
16751 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016752 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16753 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016754 shlibpath_var=LD_LIBRARY_PATH
16755 fi
16756 ;;
16757
Reid Spencera773bd52006-08-04 18:18:08 +000016758sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16759 version_type=freebsd-elf
16760 need_lib_prefix=no
16761 need_version=no
16762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16763 soname_spec='${libname}${release}${shared_ext}$major'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 hardcode_into_libs=yes
16766 if test "$with_gnu_ld" = yes; then
16767 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16768 shlibpath_overrides_runpath=no
16769 else
16770 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16771 shlibpath_overrides_runpath=yes
16772 case $host_os in
16773 sco3.2v5*)
16774 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16775 ;;
16776 esac
16777 fi
16778 sys_lib_dlsearch_path_spec='/usr/lib'
16779 ;;
16780
John Criswell47fdd832003-07-14 16:52:07 +000016781uts4*)
16782 version_type=linux
16783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 ;;
16787
John Criswell7a73b802003-06-30 21:59:07 +000016788*)
16789 dynamic_linker=no
16790 ;;
16791esac
Reid Spencera773bd52006-08-04 18:18:08 +000016792{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16793echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016794test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016795
Reid Spencera773bd52006-08-04 18:18:08 +000016796variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16797if test "$GCC" = yes; then
16798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16799fi
16800
16801{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16802echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016803hardcode_action=
16804if test -n "$hardcode_libdir_flag_spec" || \
16805 test -n "$runpath_var" || \
16806 test "X$hardcode_automatic" = "Xyes" ; then
16807
16808 # We can hardcode non-existant directories.
16809 if test "$hardcode_direct" != no &&
16810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16811 # have to relink, otherwise we might link with an installed library
16812 # when we should be linking with a yet-to-be-installed one
16813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16814 test "$hardcode_minus_L" != no; then
16815 # Linking always hardcodes the temporary library directory.
16816 hardcode_action=relink
16817 else
16818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16819 hardcode_action=immediate
16820 fi
16821else
16822 # We cannot hardcode anything, or else we can only hardcode existing
16823 # directories.
16824 hardcode_action=unsupported
16825fi
Reid Spencera773bd52006-08-04 18:18:08 +000016826{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16827echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828
16829if test "$hardcode_action" = relink; then
16830 # Fast installation is not supported
16831 enable_fast_install=no
16832elif test "$shlibpath_overrides_runpath" = yes ||
16833 test "$enable_shared" = no; then
16834 # Fast installation is not necessary
16835 enable_fast_install=needless
16836fi
16837
16838striplib=
16839old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016840{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16841echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016842if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016845 { echo "$as_me:$LINENO: result: yes" >&5
16846echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016847else
16848# FIXME - insert some real tests, host_os isn't really good enough
16849 case $host_os in
16850 darwin*)
16851 if test -n "$STRIP" ; then
16852 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016853 { echo "$as_me:$LINENO: result: yes" >&5
16854echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016855 else
Reid Spencera773bd52006-08-04 18:18:08 +000016856 { echo "$as_me:$LINENO: result: no" >&5
16857echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016858fi
16859 ;;
16860 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016861 { echo "$as_me:$LINENO: result: no" >&5
16862echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016863 ;;
16864 esac
16865fi
16866
John Criswell7a73b802003-06-30 21:59:07 +000016867if test "x$enable_dlopen" != xyes; then
16868 enable_dlopen=unknown
16869 enable_dlopen_self=unknown
16870 enable_dlopen_self_static=unknown
16871else
16872 lt_cv_dlopen=no
16873 lt_cv_dlopen_libs=
16874
16875 case $host_os in
16876 beos*)
16877 lt_cv_dlopen="load_add_on"
16878 lt_cv_dlopen_libs=
16879 lt_cv_dlopen_self=yes
16880 ;;
16881
John Criswell47fdd832003-07-14 16:52:07 +000016882 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016883 lt_cv_dlopen="LoadLibrary"
16884 lt_cv_dlopen_libs=
16885 ;;
16886
John Criswell47fdd832003-07-14 16:52:07 +000016887 cygwin*)
16888 lt_cv_dlopen="dlopen"
16889 lt_cv_dlopen_libs=
16890 ;;
16891
16892 darwin*)
16893 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016894 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16897 echo $ECHO_N "(cached) $ECHO_C" >&6
16898else
16899 ac_check_lib_save_LIBS=$LIBS
16900LIBS="-ldl $LIBS"
16901cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016907
Reid Spencera773bd52006-08-04 18:18:08 +000016908/* Override any GCC internal prototype to avoid an error.
16909 Use char because int might match the return type of a GCC
16910 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016911#ifdef __cplusplus
16912extern "C"
16913#endif
John Criswell47fdd832003-07-14 16:52:07 +000016914char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016915int
16916main ()
16917{
Reid Spencera773bd52006-08-04 18:18:08 +000016918return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016919 ;
16920 return 0;
16921}
16922_ACEOF
16923rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016924if { (ac_try="$ac_link"
16925case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928esac
16929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016931 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016932 grep -v '^ *+' conftest.er1 >conftest.err
16933 rm -f conftest.er1
16934 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016936 (exit $ac_status); } &&
16937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16938 { (case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941esac
16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_try") 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (case "(($ac_try" in
16949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16950 *) ac_try_echo=$ac_try;;
16951esac
16952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16953 (eval "$ac_try") 2>&5
16954 ac_status=$?
16955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016957 ac_cv_lib_dl_dlopen=yes
16958else
16959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016960sed 's/^/| /' conftest.$ac_ext >&5
16961
Reid Spencera773bd52006-08-04 18:18:08 +000016962 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016963fi
Reid Spencera773bd52006-08-04 18:18:08 +000016964
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016965rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016966 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016967LIBS=$ac_check_lib_save_LIBS
16968fi
Reid Spencera773bd52006-08-04 18:18:08 +000016969{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16970echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016971if test $ac_cv_lib_dl_dlopen = yes; then
16972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16973else
16974
16975 lt_cv_dlopen="dyld"
16976 lt_cv_dlopen_libs=
16977 lt_cv_dlopen_self=yes
16978
16979fi
16980
16981 ;;
16982
John Criswell7a73b802003-06-30 21:59:07 +000016983 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016984 { echo "$as_me:$LINENO: checking for shl_load" >&5
16985echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016986if test "${ac_cv_func_shl_load+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16988else
16989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016995/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997#define shl_load innocuous_shl_load
16998
John Criswell7a73b802003-06-30 21:59:07 +000016999/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017000 which can conflict with char shl_load (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017003
John Criswell0c38eaf2003-09-10 15:17:25 +000017004#ifdef __STDC__
17005# include <limits.h>
17006#else
17007# include <assert.h>
17008#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009
17010#undef shl_load
17011
Reid Spencera773bd52006-08-04 18:18:08 +000017012/* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017015#ifdef __cplusplus
17016extern "C"
17017#endif
John Criswell7a73b802003-06-30 21:59:07 +000017018char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017019/* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017022#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017023choke me
John Criswell7a73b802003-06-30 21:59:07 +000017024#endif
17025
John Criswell0c38eaf2003-09-10 15:17:25 +000017026int
17027main ()
17028{
Reid Spencera773bd52006-08-04 18:18:08 +000017029return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017035if { (ac_try="$ac_link"
17036case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017043 grep -v '^ *+' conftest.er1 >conftest.err
17044 rm -f conftest.er1
17045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017047 (exit $ac_status); } &&
17048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17049 { (case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052esac
17053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_try") 2>&5
17055 ac_status=$?
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); }; } &&
17058 { ac_try='test -s conftest$ac_exeext'
17059 { (case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17062esac
17063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064 (eval "$ac_try") 2>&5
17065 ac_status=$?
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017068 ac_cv_func_shl_load=yes
17069else
17070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017071sed 's/^/| /' conftest.$ac_ext >&5
17072
Reid Spencera773bd52006-08-04 18:18:08 +000017073 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017074fi
Reid Spencera773bd52006-08-04 18:18:08 +000017075
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017076rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017077 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017078fi
Reid Spencera773bd52006-08-04 18:18:08 +000017079{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17080echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017081if test $ac_cv_func_shl_load = yes; then
17082 lt_cv_dlopen="shl_load"
17083else
Reid Spencera773bd52006-08-04 18:18:08 +000017084 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17085echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017086if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088else
17089 ac_check_lib_save_LIBS=$LIBS
17090LIBS="-ldld $LIBS"
17091cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017092/* confdefs.h. */
17093_ACEOF
17094cat confdefs.h >>conftest.$ac_ext
17095cat >>conftest.$ac_ext <<_ACEOF
17096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017097
Reid Spencera773bd52006-08-04 18:18:08 +000017098/* Override any GCC internal prototype to avoid an error.
17099 Use char because int might match the return type of a GCC
17100 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017101#ifdef __cplusplus
17102extern "C"
17103#endif
John Criswell7a73b802003-06-30 21:59:07 +000017104char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017105int
17106main ()
17107{
Reid Spencera773bd52006-08-04 18:18:08 +000017108return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017109 ;
17110 return 0;
17111}
17112_ACEOF
17113rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017114if { (ac_try="$ac_link"
17115case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17118esac
17119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017122 grep -v '^ *+' conftest.er1 >conftest.err
17123 rm -f conftest.er1
17124 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017126 (exit $ac_status); } &&
17127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17128 { (case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17131esac
17132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_try") 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
17138 { (case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141esac
17142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_try") 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017147 ac_cv_lib_dld_shl_load=yes
17148else
17149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017150sed 's/^/| /' conftest.$ac_ext >&5
17151
Reid Spencera773bd52006-08-04 18:18:08 +000017152 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017153fi
Reid Spencera773bd52006-08-04 18:18:08 +000017154
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017155rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017156 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017157LIBS=$ac_check_lib_save_LIBS
17158fi
Reid Spencera773bd52006-08-04 18:18:08 +000017159{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17160echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017161if test $ac_cv_lib_dld_shl_load = yes; then
17162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17163else
Reid Spencera773bd52006-08-04 18:18:08 +000017164 { echo "$as_me:$LINENO: checking for dlopen" >&5
17165echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017166if test "${ac_cv_func_dlopen+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17168else
17169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017170/* confdefs.h. */
17171_ACEOF
17172cat confdefs.h >>conftest.$ac_ext
17173cat >>conftest.$ac_ext <<_ACEOF
17174/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017175/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17177#define dlopen innocuous_dlopen
17178
John Criswell7a73b802003-06-30 21:59:07 +000017179/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017180 which can conflict with char dlopen (); below.
17181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17182 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017183
John Criswell0c38eaf2003-09-10 15:17:25 +000017184#ifdef __STDC__
17185# include <limits.h>
17186#else
17187# include <assert.h>
17188#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189
17190#undef dlopen
17191
Reid Spencera773bd52006-08-04 18:18:08 +000017192/* Override any GCC internal prototype to avoid an error.
17193 Use char because int might match the return type of a GCC
17194 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017195#ifdef __cplusplus
17196extern "C"
17197#endif
John Criswell7a73b802003-06-30 21:59:07 +000017198char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017199/* The GNU C library defines this for functions which it implements
17200 to always fail with ENOSYS. Some functions are actually named
17201 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017202#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017203choke me
John Criswell7a73b802003-06-30 21:59:07 +000017204#endif
17205
John Criswell0c38eaf2003-09-10 15:17:25 +000017206int
17207main ()
17208{
Reid Spencera773bd52006-08-04 18:18:08 +000017209return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017210 ;
17211 return 0;
17212}
17213_ACEOF
17214rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017215if { (ac_try="$ac_link"
17216case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219esac
17220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017222 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017223 grep -v '^ *+' conftest.er1 >conftest.err
17224 rm -f conftest.er1
17225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017227 (exit $ac_status); } &&
17228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17229 { (case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
17233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_try") 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try='test -s conftest$ac_exeext'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17242esac
17243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17245 ac_status=$?
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017248 ac_cv_func_dlopen=yes
17249else
17250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017251sed 's/^/| /' conftest.$ac_ext >&5
17252
Reid Spencera773bd52006-08-04 18:18:08 +000017253 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017254fi
Reid Spencera773bd52006-08-04 18:18:08 +000017255
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017256rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017257 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017258fi
Reid Spencera773bd52006-08-04 18:18:08 +000017259{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17260echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017261if test $ac_cv_func_dlopen = yes; then
17262 lt_cv_dlopen="dlopen"
17263else
Reid Spencera773bd52006-08-04 18:18:08 +000017264 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017266if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268else
17269 ac_check_lib_save_LIBS=$LIBS
17270LIBS="-ldl $LIBS"
17271cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017272/* confdefs.h. */
17273_ACEOF
17274cat confdefs.h >>conftest.$ac_ext
17275cat >>conftest.$ac_ext <<_ACEOF
17276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017277
Reid Spencera773bd52006-08-04 18:18:08 +000017278/* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017281#ifdef __cplusplus
17282extern "C"
17283#endif
John Criswell7a73b802003-06-30 21:59:07 +000017284char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017285int
17286main ()
17287{
Reid Spencera773bd52006-08-04 18:18:08 +000017288return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017289 ;
17290 return 0;
17291}
17292_ACEOF
17293rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017294if { (ac_try="$ac_link"
17295case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298esac
17299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017301 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17310 *) ac_try_echo=$ac_try;;
17311esac
17312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17314 ac_status=$?
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17321esac
17322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017327 ac_cv_lib_dl_dlopen=yes
17328else
17329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017330sed 's/^/| /' conftest.$ac_ext >&5
17331
Reid Spencera773bd52006-08-04 18:18:08 +000017332 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017333fi
Reid Spencera773bd52006-08-04 18:18:08 +000017334
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017335rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017336 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017337LIBS=$ac_check_lib_save_LIBS
17338fi
Reid Spencera773bd52006-08-04 18:18:08 +000017339{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17340echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017341if test $ac_cv_lib_dl_dlopen = yes; then
17342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17343else
Reid Spencera773bd52006-08-04 18:18:08 +000017344 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17345echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017346if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17347 echo $ECHO_N "(cached) $ECHO_C" >&6
17348else
17349 ac_check_lib_save_LIBS=$LIBS
17350LIBS="-lsvld $LIBS"
17351cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017352/* confdefs.h. */
17353_ACEOF
17354cat confdefs.h >>conftest.$ac_ext
17355cat >>conftest.$ac_ext <<_ACEOF
17356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017357
Reid Spencera773bd52006-08-04 18:18:08 +000017358/* Override any GCC internal prototype to avoid an error.
17359 Use char because int might match the return type of a GCC
17360 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017361#ifdef __cplusplus
17362extern "C"
17363#endif
John Criswell7a73b802003-06-30 21:59:07 +000017364char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017365int
17366main ()
17367{
Reid Spencera773bd52006-08-04 18:18:08 +000017368return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017374if { (ac_try="$ac_link"
17375case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17380 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017382 grep -v '^ *+' conftest.er1 >conftest.err
17383 rm -f conftest.er1
17384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (case "(($ac_try" in
17389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390 *) ac_try_echo=$ac_try;;
17391esac
17392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393 (eval "$ac_try") 2>&5
17394 ac_status=$?
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest$ac_exeext'
17398 { (case "(($ac_try" in
17399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400 *) ac_try_echo=$ac_try;;
17401esac
17402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403 (eval "$ac_try") 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017407 ac_cv_lib_svld_dlopen=yes
17408else
17409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017410sed 's/^/| /' conftest.$ac_ext >&5
17411
Reid Spencera773bd52006-08-04 18:18:08 +000017412 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017413fi
Reid Spencera773bd52006-08-04 18:18:08 +000017414
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017415rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017416 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017417LIBS=$ac_check_lib_save_LIBS
17418fi
Reid Spencera773bd52006-08-04 18:18:08 +000017419{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17420echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017421if test $ac_cv_lib_svld_dlopen = yes; then
17422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17423else
Reid Spencera773bd52006-08-04 18:18:08 +000017424 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17425echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017426if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17428else
17429 ac_check_lib_save_LIBS=$LIBS
17430LIBS="-ldld $LIBS"
17431cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017437
Reid Spencera773bd52006-08-04 18:18:08 +000017438/* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017441#ifdef __cplusplus
17442extern "C"
17443#endif
John Criswell7a73b802003-06-30 21:59:07 +000017444char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017445int
17446main ()
17447{
Reid Spencera773bd52006-08-04 18:18:08 +000017448return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017449 ;
17450 return 0;
17451}
17452_ACEOF
17453rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017454if { (ac_try="$ac_link"
17455case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017462 grep -v '^ *+' conftest.er1 >conftest.err
17463 rm -f conftest.er1
17464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017466 (exit $ac_status); } &&
17467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17468 { (case "(($ac_try" in
17469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17471esac
17472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_try") 2>&5
17474 ac_status=$?
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481esac
17482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017487 ac_cv_lib_dld_dld_link=yes
17488else
17489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017490sed 's/^/| /' conftest.$ac_ext >&5
17491
Reid Spencera773bd52006-08-04 18:18:08 +000017492 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017493fi
Reid Spencera773bd52006-08-04 18:18:08 +000017494
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017495rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017496 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017497LIBS=$ac_check_lib_save_LIBS
17498fi
Reid Spencera773bd52006-08-04 18:18:08 +000017499{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17500echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017501if test $ac_cv_lib_dld_dld_link = yes; then
17502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17503fi
17504
17505
17506fi
17507
17508
17509fi
17510
17511
17512fi
17513
17514
17515fi
17516
17517
17518fi
17519
17520 ;;
17521 esac
17522
17523 if test "x$lt_cv_dlopen" != xno; then
17524 enable_dlopen=yes
17525 else
17526 enable_dlopen=no
17527 fi
17528
17529 case $lt_cv_dlopen in
17530 dlopen)
17531 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017533
17534 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017536
17537 save_LIBS="$LIBS"
17538 LIBS="$lt_cv_dlopen_libs $LIBS"
17539
Reid Spencera773bd52006-08-04 18:18:08 +000017540 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17541echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017542if test "${lt_cv_dlopen_self+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544else
17545 if test "$cross_compiling" = yes; then :
17546 lt_cv_dlopen_self=cross
17547else
John Criswell47fdd832003-07-14 16:52:07 +000017548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017549 lt_status=$lt_dlunknown
17550 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017551#line 17551 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017552#include "confdefs.h"
17553
17554#if HAVE_DLFCN_H
17555#include <dlfcn.h>
17556#endif
17557
17558#include <stdio.h>
17559
17560#ifdef RTLD_GLOBAL
17561# define LT_DLGLOBAL RTLD_GLOBAL
17562#else
17563# ifdef DL_GLOBAL
17564# define LT_DLGLOBAL DL_GLOBAL
17565# else
17566# define LT_DLGLOBAL 0
17567# endif
17568#endif
17569
17570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17571 find out it does not work in some platform. */
17572#ifndef LT_DLLAZY_OR_NOW
17573# ifdef RTLD_LAZY
17574# define LT_DLLAZY_OR_NOW RTLD_LAZY
17575# else
17576# ifdef DL_LAZY
17577# define LT_DLLAZY_OR_NOW DL_LAZY
17578# else
17579# ifdef RTLD_NOW
17580# define LT_DLLAZY_OR_NOW RTLD_NOW
17581# else
17582# ifdef DL_NOW
17583# define LT_DLLAZY_OR_NOW DL_NOW
17584# else
17585# define LT_DLLAZY_OR_NOW 0
17586# endif
17587# endif
17588# endif
17589# endif
17590#endif
17591
17592#ifdef __cplusplus
17593extern "C" void exit (int);
17594#endif
17595
17596void fnord() { int i=42;}
17597int main ()
17598{
17599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17600 int status = $lt_dlunknown;
17601
17602 if (self)
17603 {
17604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17606 /* dlclose (self); */
17607 }
Reid Spencera773bd52006-08-04 18:18:08 +000017608 else
17609 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017610
17611 exit (status);
17612}
17613EOF
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017619 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017620 lt_status=$?
17621 case x$lt_status in
17622 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17623 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017624 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017625 esac
17626 else :
17627 # compilation failed
17628 lt_cv_dlopen_self=no
17629 fi
17630fi
17631rm -fr conftest*
17632
17633
17634fi
Reid Spencera773bd52006-08-04 18:18:08 +000017635{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17636echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017637
17638 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017639 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17640 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17641echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017642if test "${lt_cv_dlopen_self_static+set}" = set; then
17643 echo $ECHO_N "(cached) $ECHO_C" >&6
17644else
17645 if test "$cross_compiling" = yes; then :
17646 lt_cv_dlopen_self_static=cross
17647else
John Criswell47fdd832003-07-14 16:52:07 +000017648 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017649 lt_status=$lt_dlunknown
17650 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000017651#line 17651 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017652#include "confdefs.h"
17653
17654#if HAVE_DLFCN_H
17655#include <dlfcn.h>
17656#endif
17657
17658#include <stdio.h>
17659
17660#ifdef RTLD_GLOBAL
17661# define LT_DLGLOBAL RTLD_GLOBAL
17662#else
17663# ifdef DL_GLOBAL
17664# define LT_DLGLOBAL DL_GLOBAL
17665# else
17666# define LT_DLGLOBAL 0
17667# endif
17668#endif
17669
17670/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17671 find out it does not work in some platform. */
17672#ifndef LT_DLLAZY_OR_NOW
17673# ifdef RTLD_LAZY
17674# define LT_DLLAZY_OR_NOW RTLD_LAZY
17675# else
17676# ifdef DL_LAZY
17677# define LT_DLLAZY_OR_NOW DL_LAZY
17678# else
17679# ifdef RTLD_NOW
17680# define LT_DLLAZY_OR_NOW RTLD_NOW
17681# else
17682# ifdef DL_NOW
17683# define LT_DLLAZY_OR_NOW DL_NOW
17684# else
17685# define LT_DLLAZY_OR_NOW 0
17686# endif
17687# endif
17688# endif
17689# endif
17690#endif
17691
17692#ifdef __cplusplus
17693extern "C" void exit (int);
17694#endif
17695
17696void fnord() { int i=42;}
17697int main ()
17698{
17699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17700 int status = $lt_dlunknown;
17701
17702 if (self)
17703 {
17704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17705 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17706 /* dlclose (self); */
17707 }
Reid Spencera773bd52006-08-04 18:18:08 +000017708 else
17709 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017710
17711 exit (status);
17712}
17713EOF
17714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17715 (eval $ac_link) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017719 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017720 lt_status=$?
17721 case x$lt_status in
17722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017725 esac
17726 else :
17727 # compilation failed
17728 lt_cv_dlopen_self_static=no
17729 fi
17730fi
17731rm -fr conftest*
17732
17733
17734fi
Reid Spencera773bd52006-08-04 18:18:08 +000017735{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17736echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017737 fi
17738
17739 CPPFLAGS="$save_CPPFLAGS"
17740 LDFLAGS="$save_LDFLAGS"
17741 LIBS="$save_LIBS"
17742 ;;
17743 esac
17744
17745 case $lt_cv_dlopen_self in
17746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17747 *) enable_dlopen_self=unknown ;;
17748 esac
17749
17750 case $lt_cv_dlopen_self_static in
17751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17752 *) enable_dlopen_self_static=unknown ;;
17753 esac
17754fi
17755
17756
Reid Spencera773bd52006-08-04 18:18:08 +000017757# Report which library types will actually be built
17758{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17759echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17760{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17761echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017762
Reid Spencera773bd52006-08-04 18:18:08 +000017763{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17764echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017765test "$can_build_shared" = "no" && enable_shared=no
17766
17767# On AIX, shared libraries and static libraries use the same namespace, and
17768# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017769case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017770aix3*)
17771 test "$enable_shared" = yes && enable_static=no
17772 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017774 postinstall_cmds='$RANLIB $lib'
17775 fi
17776 ;;
17777
Reid Spencer2706f8c2004-09-19 23:53:36 +000017778aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780 test "$enable_shared" = yes && enable_static=no
17781 fi
John Criswell7a73b802003-06-30 21:59:07 +000017782 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017783esac
Reid Spencera773bd52006-08-04 18:18:08 +000017784{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17785echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017786
Reid Spencera773bd52006-08-04 18:18:08 +000017787{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17788echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017789# Make sure either enable_shared or enable_static is yes.
17790test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017791{ echo "$as_me:$LINENO: result: $enable_static" >&5
17792echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017793
17794# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017795# libtool distribution, otherwise you forgot to ship ltmain.sh
17796# with your package, and you will get complaints that there are
17797# no rules to generate ltmain.sh.
17798if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017799 # See if we are running on zsh, and set the options which allow our commands through
17800 # without removal of \ escapes.
17801 if test -n "${ZSH_VERSION+set}" ; then
17802 setopt NO_GLOB_SUBST
17803 fi
John Criswell7a73b802003-06-30 21:59:07 +000017804 # Now quote all the things that may contain metacharacters while being
17805 # careful not to overquote the AC_SUBSTed values. We take copies of the
17806 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017807 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 +000017808 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017809 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17810 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17811 deplibs_check_method reload_flag reload_cmds need_locks \
17812 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17813 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017814 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017815 old_postinstall_cmds old_postuninstall_cmds \
17816 compiler \
17817 CC \
17818 LD \
17819 lt_prog_compiler_wl \
17820 lt_prog_compiler_pic \
17821 lt_prog_compiler_static \
17822 lt_prog_compiler_no_builtin_flag \
17823 export_dynamic_flag_spec \
17824 thread_safe_flag_spec \
17825 whole_archive_flag_spec \
17826 enable_shared_with_static_runtimes \
17827 old_archive_cmds \
17828 old_archive_from_new_cmds \
17829 predep_objects \
17830 postdep_objects \
17831 predeps \
17832 postdeps \
17833 compiler_lib_search_path \
17834 archive_cmds \
17835 archive_expsym_cmds \
17836 postinstall_cmds \
17837 postuninstall_cmds \
17838 old_archive_from_expsyms_cmds \
17839 allow_undefined_flag \
17840 no_undefined_flag \
17841 export_symbols_cmds \
17842 hardcode_libdir_flag_spec \
17843 hardcode_libdir_flag_spec_ld \
17844 hardcode_libdir_separator \
17845 hardcode_automatic \
17846 module_cmds \
17847 module_expsym_cmds \
17848 lt_cv_prog_compiler_c_o \
17849 exclude_expsyms \
17850 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017851
17852 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017853 old_archive_cmds | \
17854 old_archive_from_new_cmds | \
17855 archive_cmds | \
17856 archive_expsym_cmds | \
17857 module_cmds | \
17858 module_expsym_cmds | \
17859 old_archive_from_expsyms_cmds | \
17860 export_symbols_cmds | \
17861 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017862 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017863 old_postinstall_cmds | old_postuninstall_cmds | \
17864 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017865 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017866 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 +000017867 ;;
17868 *)
17869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17870 ;;
17871 esac
17872 done
17873
John Criswell47fdd832003-07-14 16:52:07 +000017874 case $lt_echo in
17875 *'\$0 --fallback-echo"')
17876 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17877 ;;
17878 esac
17879
17880cfgfile="${ofile}T"
17881 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17882 $rm -f "$cfgfile"
17883 { echo "$as_me:$LINENO: creating $ofile" >&5
17884echo "$as_me: creating $ofile" >&6;}
17885
17886 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017887#! $SHELL
17888
John Criswell47fdd832003-07-14 16:52:07 +000017889# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017890# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17891# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17892#
John Criswell47fdd832003-07-14 16:52:07 +000017893# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17894# Free Software Foundation, Inc.
17895#
17896# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017897# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17898#
17899# This program is free software; you can redistribute it and/or modify
17900# it under the terms of the GNU General Public License as published by
17901# the Free Software Foundation; either version 2 of the License, or
17902# (at your option) any later version.
17903#
17904# This program is distributed in the hope that it will be useful, but
17905# WITHOUT ANY WARRANTY; without even the implied warranty of
17906# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17907# General Public License for more details.
17908#
17909# You should have received a copy of the GNU General Public License
17910# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017911# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017912#
17913# As a special exception to the GNU General Public License, if you
17914# distribute this file as part of a program that contains a
17915# configuration script generated by Autoconf, you may include it under
17916# the same distribution terms that you use for the rest of that program.
17917
John Criswell47fdd832003-07-14 16:52:07 +000017918# A sed program that does not truncate output.
17919SED=$lt_SED
17920
John Criswell7a73b802003-06-30 21:59:07 +000017921# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017922Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017923
17924# The HP-UX ksh and POSIX shell print the target directory to stdout
17925# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017926(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017927
John Criswell47fdd832003-07-14 16:52:07 +000017928# The names of the tagged configurations supported by this script.
17929available_tags=
17930
John Criswell7a73b802003-06-30 21:59:07 +000017931# ### BEGIN LIBTOOL CONFIG
17932
17933# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17934
17935# Shell to use when invoking shell scripts.
17936SHELL=$lt_SHELL
17937
17938# Whether or not to build shared libraries.
17939build_libtool_libs=$enable_shared
17940
17941# Whether or not to build static libraries.
17942build_old_libs=$enable_static
17943
17944# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017945build_libtool_need_lc=$archive_cmds_need_lc
17946
17947# Whether or not to disallow shared libs when runtime libs are static
17948allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017949
17950# Whether or not to optimize for fast installation.
17951fast_install=$enable_fast_install
17952
17953# The host system.
17954host_alias=$host_alias
17955host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017956host_os=$host_os
17957
17958# The build system.
17959build_alias=$build_alias
17960build=$build
17961build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017962
17963# An echo program that does not interpret backslashes.
17964echo=$lt_echo
17965
17966# The archiver.
17967AR=$lt_AR
17968AR_FLAGS=$lt_AR_FLAGS
17969
John Criswell47fdd832003-07-14 16:52:07 +000017970# A C compiler.
17971LTCC=$lt_LTCC
17972
Reid Spencera773bd52006-08-04 18:18:08 +000017973# LTCC compiler flags.
17974LTCFLAGS=$lt_LTCFLAGS
17975
John Criswell47fdd832003-07-14 16:52:07 +000017976# A language-specific compiler.
17977CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017978
17979# Is the compiler the GNU C compiler?
17980with_gcc=$GCC
17981
John Criswell47fdd832003-07-14 16:52:07 +000017982# An ERE matcher.
17983EGREP=$lt_EGREP
17984
John Criswell7a73b802003-06-30 21:59:07 +000017985# The linker used to build libraries.
17986LD=$lt_LD
17987
17988# Whether we need hard or soft links.
17989LN_S=$lt_LN_S
17990
17991# A BSD-compatible nm program.
17992NM=$lt_NM
17993
17994# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017995STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017996
17997# Used to examine libraries when file_magic_cmd begins "file"
17998MAGIC_CMD=$MAGIC_CMD
17999
18000# Used on cygwin: DLL creation program.
18001DLLTOOL="$DLLTOOL"
18002
18003# Used on cygwin: object dumper.
18004OBJDUMP="$OBJDUMP"
18005
18006# Used on cygwin: assembler.
18007AS="$AS"
18008
18009# The name of the directory that contains temporary libtool files.
18010objdir=$objdir
18011
18012# How to create reloadable object files.
18013reload_flag=$lt_reload_flag
18014reload_cmds=$lt_reload_cmds
18015
18016# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018017wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018018
18019# Object file suffix (normally "o").
18020objext="$ac_objext"
18021
18022# Old archive suffix (normally "a").
18023libext="$libext"
18024
John Criswell47fdd832003-07-14 16:52:07 +000018025# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018026shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018027
John Criswell7a73b802003-06-30 21:59:07 +000018028# Executable file suffix (normally "").
18029exeext="$exeext"
18030
18031# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018032pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018033pic_mode=$pic_mode
18034
John Criswell47fdd832003-07-14 16:52:07 +000018035# What is the maximum length of a command?
18036max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018037
John Criswell47fdd832003-07-14 16:52:07 +000018038# Does compiler simultaneously support -c and -o options?
18039compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018040
Reid Spencera773bd52006-08-04 18:18:08 +000018041# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018042need_locks=$lt_need_locks
18043
18044# Do we need the lib prefix for modules?
18045need_lib_prefix=$need_lib_prefix
18046
18047# Do we need a version for libraries?
18048need_version=$need_version
18049
18050# Whether dlopen is supported.
18051dlopen_support=$enable_dlopen
18052
18053# Whether dlopen of programs is supported.
18054dlopen_self=$enable_dlopen_self
18055
18056# Whether dlopen of statically linked programs is supported.
18057dlopen_self_static=$enable_dlopen_self_static
18058
18059# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018060link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018061
18062# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018064
18065# Compiler flag to allow reflexive dlopens.
18066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18067
18068# Compiler flag to generate shared objects directly from archives.
18069whole_archive_flag_spec=$lt_whole_archive_flag_spec
18070
18071# Compiler flag to generate thread-safe objects.
18072thread_safe_flag_spec=$lt_thread_safe_flag_spec
18073
18074# Library versioning type.
18075version_type=$version_type
18076
18077# Format of library name prefix.
18078libname_spec=$lt_libname_spec
18079
18080# List of archive names. First name is the real one, the rest are links.
18081# The last name is the one that the linker finds with -lNAME.
18082library_names_spec=$lt_library_names_spec
18083
18084# The coded name of the library, if different from the real name.
18085soname_spec=$lt_soname_spec
18086
18087# Commands used to build and install an old-style archive.
18088RANLIB=$lt_RANLIB
18089old_archive_cmds=$lt_old_archive_cmds
18090old_postinstall_cmds=$lt_old_postinstall_cmds
18091old_postuninstall_cmds=$lt_old_postuninstall_cmds
18092
18093# Create an old-style archive from a shared archive.
18094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18095
18096# Create a temporary old-style archive to link instead of a shared archive.
18097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18098
18099# Commands used to build and install a shared archive.
18100archive_cmds=$lt_archive_cmds
18101archive_expsym_cmds=$lt_archive_expsym_cmds
18102postinstall_cmds=$lt_postinstall_cmds
18103postuninstall_cmds=$lt_postuninstall_cmds
18104
John Criswell47fdd832003-07-14 16:52:07 +000018105# Commands used to build a loadable module (assumed same as above if empty)
18106module_cmds=$lt_module_cmds
18107module_expsym_cmds=$lt_module_expsym_cmds
18108
John Criswell7a73b802003-06-30 21:59:07 +000018109# Commands to strip libraries.
18110old_striplib=$lt_old_striplib
18111striplib=$lt_striplib
18112
John Criswell47fdd832003-07-14 16:52:07 +000018113# Dependencies to place before the objects being linked to create a
18114# shared library.
18115predep_objects=$lt_predep_objects
18116
18117# Dependencies to place after the objects being linked to create a
18118# shared library.
18119postdep_objects=$lt_postdep_objects
18120
18121# Dependencies to place before the objects being linked to create a
18122# shared library.
18123predeps=$lt_predeps
18124
18125# Dependencies to place after the objects being linked to create a
18126# shared library.
18127postdeps=$lt_postdeps
18128
18129# The library search path used internally by the compiler when linking
18130# a shared library.
18131compiler_lib_search_path=$lt_compiler_lib_search_path
18132
John Criswell7a73b802003-06-30 21:59:07 +000018133# Method to check whether dependent libraries are shared objects.
18134deplibs_check_method=$lt_deplibs_check_method
18135
18136# Command to use when deplibs_check_method == file_magic.
18137file_magic_cmd=$lt_file_magic_cmd
18138
18139# Flag that allows shared libraries with undefined symbols to be built.
18140allow_undefined_flag=$lt_allow_undefined_flag
18141
18142# Flag that forces no undefined symbols.
18143no_undefined_flag=$lt_no_undefined_flag
18144
18145# Commands used to finish a libtool library installation in a directory.
18146finish_cmds=$lt_finish_cmds
18147
18148# Same as above, but a single script fragment to be evaled but not shown.
18149finish_eval=$lt_finish_eval
18150
18151# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018153
18154# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018156
18157# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018159
18160# This is the shared library runtime path variable.
18161runpath_var=$runpath_var
18162
18163# This is the shared library path variable.
18164shlibpath_var=$shlibpath_var
18165
18166# Is shlibpath searched before the hard-coded library search path?
18167shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18168
18169# How to hardcode a shared library path into an executable.
18170hardcode_action=$hardcode_action
18171
18172# Whether we should hardcode library paths into libraries.
18173hardcode_into_libs=$hardcode_into_libs
18174
18175# Flag to hardcode \$libdir into a binary during linking.
18176# This must work even if \$libdir does not exist.
18177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18178
John Criswell47fdd832003-07-14 16:52:07 +000018179# If ld is used when linking, flag to hardcode \$libdir into
18180# a binary during linking. This must work even if \$libdir does
18181# not exist.
18182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18183
John Criswell7a73b802003-06-30 21:59:07 +000018184# Whether we need a single -rpath flag with a separated argument.
18185hardcode_libdir_separator=$lt_hardcode_libdir_separator
18186
John Criswell47fdd832003-07-14 16:52:07 +000018187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018188# resulting binary.
18189hardcode_direct=$hardcode_direct
18190
18191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18192# resulting binary.
18193hardcode_minus_L=$hardcode_minus_L
18194
18195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18196# the resulting binary.
18197hardcode_shlibpath_var=$hardcode_shlibpath_var
18198
John Criswell47fdd832003-07-14 16:52:07 +000018199# Set to yes if building a shared library automatically hardcodes DIR into the library
18200# and all subsequent libraries and executables linked against it.
18201hardcode_automatic=$hardcode_automatic
18202
John Criswell7a73b802003-06-30 21:59:07 +000018203# Variables whose values should be saved in libtool wrapper scripts and
18204# restored at relink time.
18205variables_saved_for_relink="$variables_saved_for_relink"
18206
18207# Whether libtool must link a program against all its dependency libraries.
18208link_all_deplibs=$link_all_deplibs
18209
18210# Compile-time system search path for libraries
18211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18212
18213# Run-time system search path for libraries
18214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18215
18216# Fix the shell variable \$srcfile for the compiler.
18217fix_srcfile_path="$fix_srcfile_path"
18218
18219# Set to yes if exported symbols are required.
18220always_export_symbols=$always_export_symbols
18221
18222# The commands to list exported symbols.
18223export_symbols_cmds=$lt_export_symbols_cmds
18224
18225# The commands to extract the exported symbol list from a shared archive.
18226extract_expsyms_cmds=$lt_extract_expsyms_cmds
18227
18228# Symbols that should not be listed in the preloaded symbols.
18229exclude_expsyms=$lt_exclude_expsyms
18230
18231# Symbols that must always be exported.
18232include_expsyms=$lt_include_expsyms
18233
18234# ### END LIBTOOL CONFIG
18235
18236__EOF__
18237
John Criswell47fdd832003-07-14 16:52:07 +000018238
John Criswell7a73b802003-06-30 21:59:07 +000018239 case $host_os in
18240 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018241 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018242
18243# AIX sometimes has problems with the GCC collect2 program. For some
18244# reason, if we set the COLLECT_NAMES environment variable, the problems
18245# vanish in a puff of smoke.
18246if test "X${COLLECT_NAMES+set}" != Xset; then
18247 COLLECT_NAMES=
18248 export COLLECT_NAMES
18249fi
18250EOF
18251 ;;
18252 esac
18253
John Criswell7a73b802003-06-30 21:59:07 +000018254 # We use sed instead of cat because bash on DJGPP gets confused if
18255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18256 # text mode, it properly converts lines to CR/LF. This bash problem
18257 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018258 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018259
John Criswell47fdd832003-07-14 16:52:07 +000018260 mv -f "$cfgfile" "$ofile" || \
18261 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018262 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018263
18264else
18265 # If there is no Makefile yet, we rely on a make rule to execute
18266 # `config.status --recheck' to rerun these tests and create the
18267 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18269 if test -f "$ltmain_in"; then
18270 test -f Makefile && make "$ltmain"
18271 fi
John Criswell7a73b802003-06-30 21:59:07 +000018272fi
John Criswell7a73b802003-06-30 21:59:07 +000018273
18274
John Criswell47fdd832003-07-14 16:52:07 +000018275ac_ext=c
18276ac_cpp='$CPP $CPPFLAGS'
18277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18279ac_compiler_gnu=$ac_cv_c_compiler_gnu
18280
18281CC="$lt_save_CC"
18282
18283
Reid Spencera773bd52006-08-04 18:18:08 +000018284# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018285if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018286 withval=$with_tags; tagnames="$withval"
18287fi
18288
John Criswell47fdd832003-07-14 16:52:07 +000018289
18290if test -f "$ltmain" && test -n "$tagnames"; then
18291 if test ! -f "${ofile}"; then
18292 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18293echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18294 fi
18295
18296 if test -z "$LTCC"; then
18297 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18298 if test -z "$LTCC"; then
18299 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18300echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18301 else
18302 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18303echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18304 fi
18305 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018306 if test -z "$LTCFLAGS"; then
18307 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18308 fi
John Criswell47fdd832003-07-14 16:52:07 +000018309
18310 # Extract list of available tagged configurations in $ofile.
18311 # Note that this assumes the entire list is on one line.
18312 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18313
18314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18315 for tagname in $tagnames; do
18316 IFS="$lt_save_ifs"
18317 # Check whether tagname contains only valid characters
18318 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18319 "") ;;
18320 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18321echo "$as_me: error: invalid tag name: $tagname" >&2;}
18322 { (exit 1); exit 1; }; }
18323 ;;
18324 esac
18325
18326 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18327 then
18328 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18329echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18330 { (exit 1); exit 1; }; }
18331 fi
18332
18333 # Update the list of available tags.
18334 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018335 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018336
18337 case $tagname in
18338 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018339 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18340 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18341 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018342 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018343ac_cpp='$CXXCPP $CPPFLAGS'
18344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18347
18348
18349
18350
18351archive_cmds_need_lc_CXX=no
18352allow_undefined_flag_CXX=
18353always_export_symbols_CXX=no
18354archive_expsym_cmds_CXX=
18355export_dynamic_flag_spec_CXX=
18356hardcode_direct_CXX=no
18357hardcode_libdir_flag_spec_CXX=
18358hardcode_libdir_flag_spec_ld_CXX=
18359hardcode_libdir_separator_CXX=
18360hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018361hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018362hardcode_automatic_CXX=no
18363module_cmds_CXX=
18364module_expsym_cmds_CXX=
18365link_all_deplibs_CXX=unknown
18366old_archive_cmds_CXX=$old_archive_cmds
18367no_undefined_flag_CXX=
18368whole_archive_flag_spec_CXX=
18369enable_shared_with_static_runtimes_CXX=no
18370
18371# Dependencies to place before and after the object being linked:
18372predep_objects_CXX=
18373postdep_objects_CXX=
18374predeps_CXX=
18375postdeps_CXX=
18376compiler_lib_search_path_CXX=
18377
18378# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018379ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018380
18381# Object file extension for compiled C++ test sources.
18382objext=o
18383objext_CXX=$objext
18384
18385# Code to be used in simple compile tests
18386lt_simple_compile_test_code="int some_variable = 0;\n"
18387
18388# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018389lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018390
18391# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18392
18393# If no C compiler was specified, use CC.
18394LTCC=${LTCC-"$CC"}
18395
Reid Spencera773bd52006-08-04 18:18:08 +000018396# If no C compiler flags were specified, use CFLAGS.
18397LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18398
John Criswell47fdd832003-07-14 16:52:07 +000018399# Allow CC to be a program name with arguments.
18400compiler=$CC
18401
18402
Reid Spencera773bd52006-08-04 18:18:08 +000018403# save warnings/boilerplate of simple test code
18404ac_outfile=conftest.$ac_objext
18405printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18406eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18407_lt_compiler_boilerplate=`cat conftest.err`
18408$rm conftest*
18409
18410ac_outfile=conftest.$ac_objext
18411printf "$lt_simple_link_test_code" >conftest.$ac_ext
18412eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18413_lt_linker_boilerplate=`cat conftest.err`
18414$rm conftest*
18415
18416
John Criswell47fdd832003-07-14 16:52:07 +000018417# Allow CC to be a program name with arguments.
18418lt_save_CC=$CC
18419lt_save_LD=$LD
18420lt_save_GCC=$GCC
18421GCC=$GXX
18422lt_save_with_gnu_ld=$with_gnu_ld
18423lt_save_path_LD=$lt_cv_path_LD
18424if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18425 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18426else
Reid Spencera773bd52006-08-04 18:18:08 +000018427 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018428fi
18429if test -n "${lt_cv_path_LDCXX+set}"; then
18430 lt_cv_path_LD=$lt_cv_path_LDCXX
18431else
Reid Spencera773bd52006-08-04 18:18:08 +000018432 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018433fi
18434test -z "${LDCXX+set}" || LD=$LDCXX
18435CC=${CXX-"c++"}
18436compiler=$CC
18437compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018438for cc_temp in $compiler""; do
18439 case $cc_temp in
18440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18442 \-*) ;;
18443 *) break;;
18444 esac
18445done
18446cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18447
John Criswell47fdd832003-07-14 16:52:07 +000018448
18449# We don't want -fno-exception wen compiling C++ code, so set the
18450# no_builtin_flag separately
18451if test "$GXX" = yes; then
18452 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18453else
18454 lt_prog_compiler_no_builtin_flag_CXX=
18455fi
18456
18457if test "$GXX" = yes; then
18458 # Set up default GNU C++ configuration
18459
18460
Reid Spencera773bd52006-08-04 18:18:08 +000018461# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018462if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018463 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018464else
18465 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018466fi
18467
John Criswell47fdd832003-07-14 16:52:07 +000018468ac_prog=ld
18469if test "$GCC" = yes; then
18470 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018471 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18472echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018473 case $host in
18474 *-*-mingw*)
18475 # gcc leaves a trailing carriage return which upsets mingw
18476 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18477 *)
18478 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18479 esac
18480 case $ac_prog in
18481 # Accept absolute paths.
18482 [\\/]* | ?:[\\/]*)
18483 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018484 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018485 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18486 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18487 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18488 done
18489 test -z "$LD" && LD="$ac_prog"
18490 ;;
18491 "")
18492 # If it fails, then pretend we aren't using GCC.
18493 ac_prog=ld
18494 ;;
18495 *)
18496 # If it is relative, then search for the first ld in PATH.
18497 with_gnu_ld=unknown
18498 ;;
18499 esac
18500elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018501 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18502echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018503else
Reid Spencera773bd52006-08-04 18:18:08 +000018504 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18505echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018506fi
18507if test "${lt_cv_path_LD+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509else
18510 if test -z "$LD"; then
18511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18512 for ac_dir in $PATH; do
18513 IFS="$lt_save_ifs"
18514 test -z "$ac_dir" && ac_dir=.
18515 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18516 lt_cv_path_LD="$ac_dir/$ac_prog"
18517 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018518 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018519 # Break only if it was the GNU/non-GNU ld that we prefer.
18520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18521 *GNU* | *'with BFD'*)
18522 test "$with_gnu_ld" != no && break
18523 ;;
18524 *)
18525 test "$with_gnu_ld" != yes && break
18526 ;;
18527 esac
18528 fi
18529 done
18530 IFS="$lt_save_ifs"
18531else
18532 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18533fi
18534fi
18535
18536LD="$lt_cv_path_LD"
18537if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018538 { echo "$as_me:$LINENO: result: $LD" >&5
18539echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018540else
Reid Spencera773bd52006-08-04 18:18:08 +000018541 { echo "$as_me:$LINENO: result: no" >&5
18542echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018543fi
18544test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18545echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18546 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018547{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18548echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018549if test "${lt_cv_prog_gnu_ld+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18551else
Reid Spencera773bd52006-08-04 18:18:08 +000018552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018553case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018554*GNU* | *'with BFD'*)
18555 lt_cv_prog_gnu_ld=yes
18556 ;;
18557*)
18558 lt_cv_prog_gnu_ld=no
18559 ;;
18560esac
18561fi
Reid Spencera773bd52006-08-04 18:18:08 +000018562{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18563echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018564with_gnu_ld=$lt_cv_prog_gnu_ld
18565
18566
18567
18568 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18569 # archiving commands below assume that GNU ld is being used.
18570 if test "$with_gnu_ld" = yes; then
18571 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 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'
18573
18574 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18575 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18576
18577 # If archive_cmds runs LD, not CC, wlarc should be empty
18578 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18579 # investigate it a little bit more. (MM)
18580 wlarc='${wl}'
18581
18582 # ancient GNU ld didn't support --whole-archive et. al.
18583 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18584 grep 'no-whole-archive' > /dev/null; then
18585 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18586 else
18587 whole_archive_flag_spec_CXX=
18588 fi
18589 else
18590 with_gnu_ld=no
18591 wlarc=
18592
18593 # A generic and very simple default shared library creation
18594 # command for GNU C++ for the case where it uses the native
18595 # linker, instead of GNU ld. If possible, this setting should
18596 # overridden to take advantage of the native linker features on
18597 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018598 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018599 fi
18600
18601 # Commands to make compiler produce verbose output that lists
18602 # what "hidden" libraries, object files and flags are used when
18603 # linking a shared library.
18604 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18605
18606else
18607 GXX=no
18608 with_gnu_ld=no
18609 wlarc=
18610fi
18611
18612# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018613{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18614echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018615ld_shlibs_CXX=yes
18616case $host_os in
18617 aix3*)
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621 aix4* | aix5*)
18622 if test "$host_cpu" = ia64; then
18623 # On IA64, the linker does run time linking by default, so we don't
18624 # have to do anything special.
18625 aix_use_runtimelinking=no
18626 exp_sym_flag='-Bexport'
18627 no_entry_flag=""
18628 else
18629 aix_use_runtimelinking=no
18630
18631 # Test if we are trying to use run time linking or normal
18632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18633 # need to do runtime linking.
18634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18635 for ld_flag in $LDFLAGS; do
18636 case $ld_flag in
18637 *-brtl*)
18638 aix_use_runtimelinking=yes
18639 break
18640 ;;
18641 esac
18642 done
Reid Spencera773bd52006-08-04 18:18:08 +000018643 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018644 esac
18645
18646 exp_sym_flag='-bexport'
18647 no_entry_flag='-bnoentry'
18648 fi
18649
18650 # When large executables or shared objects are built, AIX ld can
18651 # have problems creating the table of contents. If linking a library
18652 # or program results in "error TOC overflow" add -mminimal-toc to
18653 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18654 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18655
18656 archive_cmds_CXX=''
18657 hardcode_direct_CXX=yes
18658 hardcode_libdir_separator_CXX=':'
18659 link_all_deplibs_CXX=yes
18660
18661 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018662 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018663 # We only want to do this on AIX 4.2 and lower, the check
18664 # below for broken collect2 doesn't work under 4.3+
18665 collect2name=`${CC} -print-prog-name=collect2`
18666 if test -f "$collect2name" && \
18667 strings "$collect2name" | grep resolve_lib_name >/dev/null
18668 then
18669 # We have reworked collect2
18670 hardcode_direct_CXX=yes
18671 else
18672 # We have old collect2
18673 hardcode_direct_CXX=unsupported
18674 # It fails to find uninstalled libraries when the uninstalled
18675 # path is not listed in the libpath. Setting hardcode_minus_L
18676 # to unsupported forces relinking
18677 hardcode_minus_L_CXX=yes
18678 hardcode_libdir_flag_spec_CXX='-L$libdir'
18679 hardcode_libdir_separator_CXX=
18680 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018681 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018682 esac
18683 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018684 if test "$aix_use_runtimelinking" = yes; then
18685 shared_flag="$shared_flag "'${wl}-G'
18686 fi
John Criswell47fdd832003-07-14 16:52:07 +000018687 else
18688 # not using gcc
18689 if test "$host_cpu" = ia64; then
18690 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18691 # chokes on -Wl,-G. The following line is correct:
18692 shared_flag='-G'
18693 else
18694 if test "$aix_use_runtimelinking" = yes; then
18695 shared_flag='${wl}-G'
18696 else
18697 shared_flag='${wl}-bM:SRE'
18698 fi
18699 fi
18700 fi
18701
18702 # It seems that -bexpall does not export symbols beginning with
18703 # underscore (_), so it is better to generate a list of symbols to export.
18704 always_export_symbols_CXX=yes
18705 if test "$aix_use_runtimelinking" = yes; then
18706 # Warning - without using the other runtime loading flags (-brtl),
18707 # -berok will link without error, but may produce a broken library.
18708 allow_undefined_flag_CXX='-berok'
18709 # Determine the default libpath from the value encoded in an empty executable.
18710 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018716
John Criswell47fdd832003-07-14 16:52:07 +000018717int
18718main ()
18719{
18720
18721 ;
18722 return 0;
18723}
18724_ACEOF
18725rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018726if { (ac_try="$ac_link"
18727case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18730esac
18731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018734 grep -v '^ *+' conftest.er1 >conftest.err
18735 rm -f conftest.er1
18736 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743esac
18744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try='test -s conftest$ac_exeext'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753esac
18754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018759
18760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18761}'`
18762# Check for a 64-bit object if we didn't find anything.
18763if 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; }
18764}'`; fi
18765else
18766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018767sed 's/^/| /' conftest.$ac_ext >&5
18768
Reid Spencera773bd52006-08-04 18:18:08 +000018769
John Criswell47fdd832003-07-14 16:52:07 +000018770fi
Reid Spencera773bd52006-08-04 18:18:08 +000018771
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018773 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018774if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18775
18776 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18777
Reid Spencera773bd52006-08-04 18:18:08 +000018778 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 +000018779 else
18780 if test "$host_cpu" = ia64; then
18781 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18782 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018783 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 +000018784 else
18785 # Determine the default libpath from the value encoded in an empty executable.
18786 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018787/* confdefs.h. */
18788_ACEOF
18789cat confdefs.h >>conftest.$ac_ext
18790cat >>conftest.$ac_ext <<_ACEOF
18791/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018792
John Criswell47fdd832003-07-14 16:52:07 +000018793int
18794main ()
18795{
18796
18797 ;
18798 return 0;
18799}
18800_ACEOF
18801rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018802if { (ac_try="$ac_link"
18803case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018814 (exit $ac_status); } &&
18815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18816 { (case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18819esac
18820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_try") 2>&5
18822 ac_status=$?
18823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18824 (exit $ac_status); }; } &&
18825 { ac_try='test -s conftest$ac_exeext'
18826 { (case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_try") 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018835
18836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18837}'`
18838# Check for a 64-bit object if we didn't find anything.
18839if 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; }
18840}'`; fi
18841else
18842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018843sed 's/^/| /' conftest.$ac_ext >&5
18844
Reid Spencera773bd52006-08-04 18:18:08 +000018845
John Criswell47fdd832003-07-14 16:52:07 +000018846fi
Reid Spencera773bd52006-08-04 18:18:08 +000018847
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018848rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018849 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018850if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18851
18852 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18853 # Warning - without using the other run time loading flags,
18854 # -berok will link without error, but may produce a broken library.
18855 no_undefined_flag_CXX=' ${wl}-bernotok'
18856 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018857 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018858 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018859 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018860 # This is similar to how AIX traditionally builds its shared libraries.
18861 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 +000018862 fi
18863 fi
18864 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018865
18866 beos*)
18867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18868 allow_undefined_flag_CXX=unsupported
18869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18870 # support --undefined. This deserves some investigation. FIXME
18871 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18872 else
18873 ld_shlibs_CXX=no
18874 fi
18875 ;;
18876
John Criswell47fdd832003-07-14 16:52:07 +000018877 chorus*)
18878 case $cc_basename in
18879 *)
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 ;;
18883 esac
18884 ;;
18885
18886 cygwin* | mingw* | pw32*)
18887 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18888 # as there is no search path for DLLs.
18889 hardcode_libdir_flag_spec_CXX='-L$libdir'
18890 allow_undefined_flag_CXX=unsupported
18891 always_export_symbols_CXX=no
18892 enable_shared_with_static_runtimes_CXX=yes
18893
18894 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018895 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 +000018896 # If the export-symbols file already is a .def file (1st line
18897 # is EXPORTS), use it as is; otherwise, prepend...
18898 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18899 cp $export_symbols $output_objdir/$soname.def;
18900 else
18901 echo EXPORTS > $output_objdir/$soname.def;
18902 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018903 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018904 $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 +000018905 else
18906 ld_shlibs_CXX=no
18907 fi
18908 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018909 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018910 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018911 rhapsody* | darwin1.[012])
18912 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18913 ;;
18914 *) # Darwin 1.3 on
18915 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18916 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18917 else
18918 case ${MACOSX_DEPLOYMENT_TARGET} in
18919 10.[012])
18920 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18921 ;;
18922 10.*)
18923 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18924 ;;
18925 esac
18926 fi
18927 ;;
18928 esac
18929 archive_cmds_need_lc_CXX=no
18930 hardcode_direct_CXX=no
18931 hardcode_automatic_CXX=yes
18932 hardcode_shlibpath_var_CXX=unsupported
18933 whole_archive_flag_spec_CXX=''
18934 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018935
Reid Spencer2706f8c2004-09-19 23:53:36 +000018936 if test "$GXX" = yes ; then
18937 lt_int_apple_cc_single_mod=no
18938 output_verbose_link_cmd='echo'
18939 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18940 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018941 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018942 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018943 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 +000018944 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018945 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 +000018946 fi
18947 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018948 # 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 +000018949 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018950 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 +000018951 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018952 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 +000018953 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018954 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 +000018955 else
Reid Spencera773bd52006-08-04 18:18:08 +000018956 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018957 xlc*)
18958 output_verbose_link_cmd='echo'
18959 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'
18960 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018961 # 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 +000018962 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}'
18963 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 +000018964 ;;
18965 *)
18966 ld_shlibs_CXX=no
18967 ;;
18968 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018969 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018970 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018971
18972 dgux*)
18973 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018974 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018975 # FIXME: insert proper C++ library support
18976 ld_shlibs_CXX=no
18977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018978 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018979 # Green Hills C++ Compiler
18980 # FIXME: insert proper C++ library support
18981 ld_shlibs_CXX=no
18982 ;;
18983 *)
18984 # FIXME: insert proper C++ library support
18985 ld_shlibs_CXX=no
18986 ;;
18987 esac
18988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018989 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018990 # C++ shared libraries reported to be fairly broken before switch to ELF
18991 ld_shlibs_CXX=no
18992 ;;
18993 freebsd-elf*)
18994 archive_cmds_need_lc_CXX=no
18995 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018996 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018997 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18998 # conventions
18999 ld_shlibs_CXX=yes
19000 ;;
19001 gnu*)
19002 ;;
19003 hpux9*)
19004 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19005 hardcode_libdir_separator_CXX=:
19006 export_dynamic_flag_spec_CXX='${wl}-E'
19007 hardcode_direct_CXX=yes
19008 hardcode_minus_L_CXX=yes # Not in the search PATH,
19009 # but as the default
19010 # location of the library.
19011
19012 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019013 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019014 # FIXME: insert proper C++ library support
19015 ld_shlibs_CXX=no
19016 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019017 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019018 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 +000019019 # Commands to make compiler produce verbose output that lists
19020 # what "hidden" libraries, object files and flags are used when
19021 # linking a shared library.
19022 #
19023 # There doesn't appear to be a way to prevent this compiler from
19024 # explicitly linking system object files so we need to strip them
19025 # from the output so that they don't get included in the library
19026 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019027 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 +000019028 ;;
19029 *)
19030 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019031 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 +000019032 else
19033 # FIXME: insert proper C++ library support
19034 ld_shlibs_CXX=no
19035 fi
19036 ;;
19037 esac
19038 ;;
19039 hpux10*|hpux11*)
19040 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019041 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19042 hardcode_libdir_separator_CXX=:
19043
19044 case $host_cpu in
19045 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019046 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019047 ;;
19048 *)
John Criswell47fdd832003-07-14 16:52:07 +000019049 export_dynamic_flag_spec_CXX='${wl}-E'
19050 ;;
19051 esac
19052 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019053 case $host_cpu in
19054 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019055 hardcode_direct_CXX=no
19056 hardcode_shlibpath_var_CXX=no
19057 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019058 *)
19059 hardcode_direct_CXX=yes
19060 hardcode_minus_L_CXX=yes # Not in the search PATH,
19061 # but as the default
19062 # location of the library.
19063 ;;
19064 esac
19065
19066 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019067 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019068 # FIXME: insert proper C++ library support
19069 ld_shlibs_CXX=no
19070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019071 aCC*)
19072 case $host_cpu in
19073 hppa*64*)
19074 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075 ;;
19076 ia64*)
19077 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 +000019078 ;;
19079 *)
19080 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19081 ;;
19082 esac
19083 # Commands to make compiler produce verbose output that lists
19084 # what "hidden" libraries, object files and flags are used when
19085 # linking a shared library.
19086 #
19087 # There doesn't appear to be a way to prevent this compiler from
19088 # explicitly linking system object files so we need to strip them
19089 # from the output so that they don't get included in the library
19090 # dependencies.
19091 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'
19092 ;;
19093 *)
19094 if test "$GXX" = yes; then
19095 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019096 case $host_cpu in
19097 hppa*64*)
19098 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19099 ;;
19100 ia64*)
19101 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 +000019102 ;;
19103 *)
19104 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'
19105 ;;
19106 esac
19107 fi
19108 else
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 fi
19112 ;;
19113 esac
19114 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019115 interix3*)
19116 hardcode_direct_CXX=no
19117 hardcode_shlibpath_var_CXX=no
19118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19119 export_dynamic_flag_spec_CXX='${wl}-E'
19120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19121 # Instead, shared libraries are loaded at an image base (0x10000000 by
19122 # default) and relocated if they conflict, which is a slow very memory
19123 # consuming and fragmenting process. To avoid this, we pick a random,
19124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19126 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'
19127 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'
19128 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019129 irix5* | irix6*)
19130 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019131 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019132 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019133 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 +000019134
19135 # Archives containing C++ object files must be created using
19136 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19137 # necessary to make sure instantiated templates are included
19138 # in the archive.
19139 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19140 ;;
19141 *)
19142 if test "$GXX" = yes; then
19143 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019144 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 +000019145 else
19146 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'
19147 fi
19148 fi
19149 link_all_deplibs_CXX=yes
19150 ;;
19151 esac
19152 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19153 hardcode_libdir_separator_CXX=:
19154 ;;
19155 linux*)
19156 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019157 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019158 # Kuck and Associates, Inc. (KAI) C++ Compiler
19159
19160 # KCC will only create a shared library if the output file
19161 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19162 # to its proper name (with version) after linking.
19163 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'
19164 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'
19165 # Commands to make compiler produce verbose output that lists
19166 # what "hidden" libraries, object files and flags are used when
19167 # linking a shared library.
19168 #
19169 # There doesn't appear to be a way to prevent this compiler from
19170 # explicitly linking system object files so we need to strip them
19171 # from the output so that they don't get included in the library
19172 # dependencies.
19173 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'
19174
19175 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19176 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19177
19178 # Archives containing C++ object files must be created using
19179 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19180 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19181 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019182 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019183 # Intel C++
19184 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019185 # version 8.0 and above of icpc choke on multiply defined symbols
19186 # if we add $predep_objects and $postdep_objects, however 7.1 and
19187 # earlier do not add the objects themselves.
19188 case `$CC -V 2>&1` in
19189 *"Version 7."*)
19190 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19191 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'
19192 ;;
19193 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019194 tmp_idyn=
19195 case $host_cpu in
19196 ia64*) tmp_idyn=' -i_dynamic';;
19197 esac
19198 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19199 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 +000019200 ;;
19201 esac
John Criswell47fdd832003-07-14 16:52:07 +000019202 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019203 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19204 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19205 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19206 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019207 pgCC*)
19208 # Portland Group C++ compiler
19209 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19210 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'
19211
19212 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19214 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'
19215 ;;
19216 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019217 # Compaq C++
19218 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19219 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'
19220
19221 runpath_var=LD_RUN_PATH
19222 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19223 hardcode_libdir_separator_CXX=:
19224
19225 # Commands to make compiler produce verbose output that lists
19226 # what "hidden" libraries, object files and flags are used when
19227 # linking a shared library.
19228 #
19229 # There doesn't appear to be a way to prevent this compiler from
19230 # explicitly linking system object files so we need to strip them
19231 # from the output so that they don't get included in the library
19232 # dependencies.
19233 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'
19234 ;;
19235 esac
19236 ;;
19237 lynxos*)
19238 # FIXME: insert proper C++ library support
19239 ld_shlibs_CXX=no
19240 ;;
19241 m88k*)
19242 # FIXME: insert proper C++ library support
19243 ld_shlibs_CXX=no
19244 ;;
19245 mvs*)
19246 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019247 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019248 # FIXME: insert proper C++ library support
19249 ld_shlibs_CXX=no
19250 ;;
19251 *)
19252 # FIXME: insert proper C++ library support
19253 ld_shlibs_CXX=no
19254 ;;
19255 esac
19256 ;;
19257 netbsd*)
19258 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19259 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19260 wlarc=
19261 hardcode_libdir_flag_spec_CXX='-R$libdir'
19262 hardcode_direct_CXX=yes
19263 hardcode_shlibpath_var_CXX=no
19264 fi
19265 # Workaround some broken pre-1.5 toolchains
19266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19267 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019268 openbsd2*)
19269 # C++ shared libraries are fairly broken
19270 ld_shlibs_CXX=no
19271 ;;
19272 openbsd*)
19273 hardcode_direct_CXX=yes
19274 hardcode_shlibpath_var_CXX=no
19275 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19278 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19279 export_dynamic_flag_spec_CXX='${wl}-E'
19280 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19281 fi
19282 output_verbose_link_cmd='echo'
19283 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019284 osf3*)
19285 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019286 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019287 # Kuck and Associates, Inc. (KAI) C++ Compiler
19288
19289 # KCC will only create a shared library if the output file
19290 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19291 # to its proper name (with version) after linking.
19292 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'
19293
19294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19295 hardcode_libdir_separator_CXX=:
19296
19297 # Archives containing C++ object files must be created using
19298 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19299 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19300
19301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019302 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019303 # Rational C++ 2.4.1
19304 # FIXME: insert proper C++ library support
19305 ld_shlibs_CXX=no
19306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019307 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019308 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019309 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 +000019310
19311 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19312 hardcode_libdir_separator_CXX=:
19313
19314 # Commands to make compiler produce verbose output that lists
19315 # what "hidden" libraries, object files and flags are used when
19316 # linking a shared library.
19317 #
19318 # There doesn't appear to be a way to prevent this compiler from
19319 # explicitly linking system object files so we need to strip them
19320 # from the output so that they don't get included in the library
19321 # dependencies.
19322 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'
19323 ;;
19324 *)
19325 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19326 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019327 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 +000019328
19329 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19330 hardcode_libdir_separator_CXX=:
19331
19332 # Commands to make compiler produce verbose output that lists
19333 # what "hidden" libraries, object files and flags are used when
19334 # linking a shared library.
19335 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19336
19337 else
19338 # FIXME: insert proper C++ library support
19339 ld_shlibs_CXX=no
19340 fi
19341 ;;
19342 esac
19343 ;;
19344 osf4* | osf5*)
19345 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019346 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019347 # Kuck and Associates, Inc. (KAI) C++ Compiler
19348
19349 # KCC will only create a shared library if the output file
19350 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19351 # to its proper name (with version) after linking.
19352 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'
19353
19354 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19355 hardcode_libdir_separator_CXX=:
19356
19357 # Archives containing C++ object files must be created using
19358 # the KAI C++ compiler.
19359 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19360 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019361 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019362 # Rational C++ 2.4.1
19363 # FIXME: insert proper C++ library support
19364 ld_shlibs_CXX=no
19365 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019366 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019367 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019368 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 +000019369 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19370 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019371 $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 +000019372 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019373
19374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19375 hardcode_libdir_separator_CXX=:
19376
19377 # Commands to make compiler produce verbose output that lists
19378 # what "hidden" libraries, object files and flags are used when
19379 # linking a shared library.
19380 #
19381 # There doesn't appear to be a way to prevent this compiler from
19382 # explicitly linking system object files so we need to strip them
19383 # from the output so that they don't get included in the library
19384 # dependencies.
19385 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'
19386 ;;
19387 *)
19388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19389 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019390 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 +000019391
19392 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19393 hardcode_libdir_separator_CXX=:
19394
19395 # Commands to make compiler produce verbose output that lists
19396 # what "hidden" libraries, object files and flags are used when
19397 # linking a shared library.
19398 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19399
19400 else
19401 # FIXME: insert proper C++ library support
19402 ld_shlibs_CXX=no
19403 fi
19404 ;;
19405 esac
19406 ;;
19407 psos*)
19408 # FIXME: insert proper C++ library support
19409 ld_shlibs_CXX=no
19410 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019411 sunos4*)
19412 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019413 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019414 # Sun C++ 4.x
19415 # FIXME: insert proper C++ library support
19416 ld_shlibs_CXX=no
19417 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019418 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 # Lucid
19420 # FIXME: insert proper C++ library support
19421 ld_shlibs_CXX=no
19422 ;;
19423 *)
19424 # FIXME: insert proper C++ library support
19425 ld_shlibs_CXX=no
19426 ;;
19427 esac
19428 ;;
19429 solaris*)
19430 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019431 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019432 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019433 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019434 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019435 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 +000019436 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 +000019437 $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 +000019438
19439 hardcode_libdir_flag_spec_CXX='-R$libdir'
19440 hardcode_shlibpath_var_CXX=no
19441 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019442 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019443 *)
19444 # The C++ compiler is used as linker so we must use $wl
19445 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019446 # linker. We must also pass each convience library through
19447 # to the system linker between allextract/defaultextract.
19448 # The C++ compiler will combine linker options so we
19449 # cannot just pass the convience library names through
19450 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019451 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019452 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 +000019453 ;;
19454 esac
19455 link_all_deplibs_CXX=yes
19456
Reid Spencera773bd52006-08-04 18:18:08 +000019457 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019458
19459 # Archives containing C++ object files must be created using
19460 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19461 # necessary to make sure instantiated templates are included
19462 # in the archive.
19463 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19464 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019465 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019466 # Green Hills C++ Compiler
19467 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19468
19469 # The C++ compiler must be used to create the archive.
19470 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19471 ;;
19472 *)
19473 # GNU C++ compiler with Solaris linker
19474 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19475 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19476 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019477 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 +000019478 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19479 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19480
John Criswell47fdd832003-07-14 16:52:07 +000019481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019484 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019485 else
19486 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19487 # platform.
19488 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 +000019489 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19490 $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 +000019491
19492 # Commands to make compiler produce verbose output that lists
19493 # what "hidden" libraries, object files and flags are used when
19494 # linking a shared library.
19495 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19496 fi
19497
19498 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19499 fi
19500 ;;
19501 esac
19502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19504 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019505 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019506 hardcode_shlibpath_var_CXX=no
19507 runpath_var='LD_RUN_PATH'
19508
19509 case $cc_basename in
19510 CC*)
19511 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19512 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19513 ;;
19514 *)
19515 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19516 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19517 ;;
19518 esac
19519 ;;
19520 sysv5* | sco3.2v5* | sco5v6*)
19521 # Note: We can NOT use -z defs as we might desire, because we do not
19522 # link with -lc, and that would cause any symbols used from libc to
19523 # always be unresolved, which means just about no library would
19524 # ever link correctly. If we're not using GNU ld we use -z text
19525 # though, which does catch some bad symbols but isn't as heavy-handed
19526 # as -z defs.
19527 # For security reasons, it is highly recommended that you always
19528 # use absolute paths for naming shared libraries, and exclude the
19529 # DT_RUNPATH tag from executables and libraries. But doing so
19530 # requires that you compile everything twice, which is a pain.
19531 # So that behaviour is only enabled if SCOABSPATH is set to a
19532 # non-empty value in the environment. Most likely only useful for
19533 # creating official distributions of packages.
19534 # This is a hack until libtool officially supports absolute path
19535 # names for shared libraries.
19536 no_undefined_flag_CXX='${wl}-z,text'
19537 allow_undefined_flag_CXX='${wl}-z,nodefs'
19538 archive_cmds_need_lc_CXX=no
19539 hardcode_shlibpath_var_CXX=no
19540 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19541 hardcode_libdir_separator_CXX=':'
19542 link_all_deplibs_CXX=yes
19543 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19544 runpath_var='LD_RUN_PATH'
19545
19546 case $cc_basename in
19547 CC*)
19548 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19549 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19550 ;;
19551 *)
19552 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19553 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19554 ;;
19555 esac
John Criswell47fdd832003-07-14 16:52:07 +000019556 ;;
19557 tandem*)
19558 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019559 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019560 # NonStop-UX NCC 3.20
19561 # FIXME: insert proper C++ library support
19562 ld_shlibs_CXX=no
19563 ;;
19564 *)
19565 # FIXME: insert proper C++ library support
19566 ld_shlibs_CXX=no
19567 ;;
19568 esac
19569 ;;
19570 vxworks*)
19571 # FIXME: insert proper C++ library support
19572 ld_shlibs_CXX=no
19573 ;;
19574 *)
19575 # FIXME: insert proper C++ library support
19576 ld_shlibs_CXX=no
19577 ;;
19578esac
Reid Spencera773bd52006-08-04 18:18:08 +000019579{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19580echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019581test "$ld_shlibs_CXX" = no && can_build_shared=no
19582
19583GCC_CXX="$GXX"
19584LD_CXX="$LD"
19585
John Criswell47fdd832003-07-14 16:52:07 +000019586
19587cat > conftest.$ac_ext <<EOF
19588class Foo
19589{
19590public:
19591 Foo (void) { a = 0; }
19592private:
19593 int a;
19594};
19595EOF
19596
19597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19598 (eval $ac_compile) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; then
19602 # Parse the compiler output and extract the necessary
19603 # objects, libraries and library flags.
19604
19605 # Sentinel used to keep track of whether or not we are before
19606 # the conftest object file.
19607 pre_test_object_deps_done=no
19608
19609 # The `*' in the case matches for architectures that use `case' in
19610 # $output_verbose_cmd can trigger glob expansion during the loop
19611 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019612 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019613
19614 for p in `eval $output_verbose_link_cmd`; do
19615 case $p in
19616
19617 -L* | -R* | -l*)
19618 # Some compilers place space between "-{L,R}" and the path.
19619 # Remove the space.
19620 if test $p = "-L" \
19621 || test $p = "-R"; then
19622 prev=$p
19623 continue
19624 else
19625 prev=
19626 fi
19627
19628 if test "$pre_test_object_deps_done" = no; then
19629 case $p in
19630 -L* | -R*)
19631 # Internal compiler library paths should come after those
19632 # provided the user. The postdeps already come after the
19633 # user supplied libs so there is no need to process them.
19634 if test -z "$compiler_lib_search_path_CXX"; then
19635 compiler_lib_search_path_CXX="${prev}${p}"
19636 else
19637 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19638 fi
19639 ;;
19640 # The "-l" case would never come before the object being
19641 # linked, so don't bother handling this case.
19642 esac
19643 else
19644 if test -z "$postdeps_CXX"; then
19645 postdeps_CXX="${prev}${p}"
19646 else
19647 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19648 fi
19649 fi
19650 ;;
19651
19652 *.$objext)
19653 # This assumes that the test object file only shows up
19654 # once in the compiler output.
19655 if test "$p" = "conftest.$objext"; then
19656 pre_test_object_deps_done=yes
19657 continue
19658 fi
19659
19660 if test "$pre_test_object_deps_done" = no; then
19661 if test -z "$predep_objects_CXX"; then
19662 predep_objects_CXX="$p"
19663 else
19664 predep_objects_CXX="$predep_objects_CXX $p"
19665 fi
19666 else
19667 if test -z "$postdep_objects_CXX"; then
19668 postdep_objects_CXX="$p"
19669 else
19670 postdep_objects_CXX="$postdep_objects_CXX $p"
19671 fi
19672 fi
19673 ;;
19674
19675 *) ;; # Ignore the rest.
19676
19677 esac
19678 done
19679
19680 # Clean up.
19681 rm -f a.out a.exe
19682else
19683 echo "libtool.m4: error: problem compiling CXX test program"
19684fi
19685
19686$rm -f confest.$objext
19687
Reid Spencera773bd52006-08-04 18:18:08 +000019688# PORTME: override above test on systems where it is broken
19689case $host_os in
19690interix3*)
19691 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19692 # hack all around it, let's just trust "g++" to DTRT.
19693 predep_objects_CXX=
19694 postdep_objects_CXX=
19695 postdeps_CXX=
19696 ;;
19697
19698solaris*)
19699 case $cc_basename in
19700 CC*)
19701 # Adding this requires a known-good setup of shared libraries for
19702 # Sun compiler versions before 5.6, else PIC objects from an old
19703 # archive will be linked into the output, leading to subtle bugs.
19704 postdeps_CXX='-lCstd -lCrun'
19705 ;;
19706 esac
19707 ;;
19708esac
19709
19710
John Criswell47fdd832003-07-14 16:52:07 +000019711case " $postdeps_CXX " in
19712*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19713esac
19714
19715lt_prog_compiler_wl_CXX=
19716lt_prog_compiler_pic_CXX=
19717lt_prog_compiler_static_CXX=
19718
Reid Spencera773bd52006-08-04 18:18:08 +000019719{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19720echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019721
19722 # C++ specific cases for pic, static, wl, etc.
19723 if test "$GXX" = yes; then
19724 lt_prog_compiler_wl_CXX='-Wl,'
19725 lt_prog_compiler_static_CXX='-static'
19726
19727 case $host_os in
19728 aix*)
19729 # All AIX code is PIC.
19730 if test "$host_cpu" = ia64; then
19731 # AIX 5 now supports IA64 processor
19732 lt_prog_compiler_static_CXX='-Bstatic'
19733 fi
19734 ;;
19735 amigaos*)
19736 # FIXME: we need at least 68020 code to build shared libraries, but
19737 # adding the `-m68020' flag to GCC prevents building anything better,
19738 # like `-m68040'.
19739 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19740 ;;
19741 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19742 # PIC is the default for these OSes.
19743 ;;
19744 mingw* | os2* | pw32*)
19745 # This hack is so that the source file can tell whether it is being
19746 # built for inclusion in a dll (and should export symbols for example).
19747 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19748 ;;
19749 darwin* | rhapsody*)
19750 # PIC is the default on this platform
19751 # Common symbols not allowed in MH_DYLIB files
19752 lt_prog_compiler_pic_CXX='-fno-common'
19753 ;;
19754 *djgpp*)
19755 # DJGPP does not support shared libraries at all
19756 lt_prog_compiler_pic_CXX=
19757 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019758 interix3*)
19759 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19760 # Instead, we relocate shared libraries at runtime.
19761 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019762 sysv4*MP*)
19763 if test -d /usr/nec; then
19764 lt_prog_compiler_pic_CXX=-Kconform_pic
19765 fi
19766 ;;
19767 hpux*)
19768 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19769 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019770 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019771 hppa*64*|ia64*)
19772 ;;
19773 *)
19774 lt_prog_compiler_pic_CXX='-fPIC'
19775 ;;
19776 esac
19777 ;;
19778 *)
19779 lt_prog_compiler_pic_CXX='-fPIC'
19780 ;;
19781 esac
19782 else
19783 case $host_os in
19784 aix4* | aix5*)
19785 # All AIX code is PIC.
19786 if test "$host_cpu" = ia64; then
19787 # AIX 5 now supports IA64 processor
19788 lt_prog_compiler_static_CXX='-Bstatic'
19789 else
19790 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19791 fi
19792 ;;
19793 chorus*)
19794 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019795 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019796 # Green Hills C++ Compiler
19797 # _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"
19798 ;;
19799 esac
19800 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019801 darwin*)
19802 # PIC is the default on this platform
19803 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019804 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019805 xlc*)
19806 lt_prog_compiler_pic_CXX='-qnocommon'
19807 lt_prog_compiler_wl_CXX='-Wl,'
19808 ;;
19809 esac
19810 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019811 dgux*)
19812 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019813 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019814 lt_prog_compiler_pic_CXX='-KPIC'
19815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019816 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019817 # Green Hills C++ Compiler
19818 lt_prog_compiler_pic_CXX='-pic'
19819 ;;
19820 *)
19821 ;;
19822 esac
19823 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019824 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019825 # FreeBSD uses GNU C++
19826 ;;
19827 hpux9* | hpux10* | hpux11*)
19828 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019829 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019830 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019831 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019832 if test "$host_cpu" != ia64; then
19833 lt_prog_compiler_pic_CXX='+Z'
19834 fi
19835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019836 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019837 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019838 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19839 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019840 hppa*64*|ia64*)
19841 # +Z the default
19842 ;;
19843 *)
19844 lt_prog_compiler_pic_CXX='+Z'
19845 ;;
19846 esac
19847 ;;
19848 *)
19849 ;;
19850 esac
19851 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019852 interix*)
19853 # This is c89, which is MS Visual C++ (no shared libs)
19854 # Anyone wants to do a port?
19855 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019856 irix5* | irix6* | nonstopux*)
19857 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019858 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019859 lt_prog_compiler_wl_CXX='-Wl,'
19860 lt_prog_compiler_static_CXX='-non_shared'
19861 # CC pic flag -KPIC is the default.
19862 ;;
19863 *)
19864 ;;
19865 esac
19866 ;;
19867 linux*)
19868 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019869 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019870 # KAI C++ Compiler
19871 lt_prog_compiler_wl_CXX='--backend -Wl,'
19872 lt_prog_compiler_pic_CXX='-fPIC'
19873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019874 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019875 # Intel C++
19876 lt_prog_compiler_wl_CXX='-Wl,'
19877 lt_prog_compiler_pic_CXX='-KPIC'
19878 lt_prog_compiler_static_CXX='-static'
19879 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019880 pgCC*)
19881 # Portland Group C++ compiler.
19882 lt_prog_compiler_wl_CXX='-Wl,'
19883 lt_prog_compiler_pic_CXX='-fpic'
19884 lt_prog_compiler_static_CXX='-Bstatic'
19885 ;;
19886 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019887 # Compaq C++
19888 # Make sure the PIC flag is empty. It appears that all Alpha
19889 # Linux and Compaq Tru64 Unix objects are PIC.
19890 lt_prog_compiler_pic_CXX=
19891 lt_prog_compiler_static_CXX='-non_shared'
19892 ;;
19893 *)
19894 ;;
19895 esac
19896 ;;
19897 lynxos*)
19898 ;;
19899 m88k*)
19900 ;;
19901 mvs*)
19902 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019903 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019904 lt_prog_compiler_pic_CXX='-W c,exportall'
19905 ;;
19906 *)
19907 ;;
19908 esac
19909 ;;
19910 netbsd*)
19911 ;;
19912 osf3* | osf4* | osf5*)
19913 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019914 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019915 lt_prog_compiler_wl_CXX='--backend -Wl,'
19916 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019917 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019918 # Rational C++ 2.4.1
19919 lt_prog_compiler_pic_CXX='-pic'
19920 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019921 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019922 # Digital/Compaq C++
19923 lt_prog_compiler_wl_CXX='-Wl,'
19924 # Make sure the PIC flag is empty. It appears that all Alpha
19925 # Linux and Compaq Tru64 Unix objects are PIC.
19926 lt_prog_compiler_pic_CXX=
19927 lt_prog_compiler_static_CXX='-non_shared'
19928 ;;
19929 *)
19930 ;;
19931 esac
19932 ;;
19933 psos*)
19934 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019935 solaris*)
19936 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019937 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019938 # Sun C++ 4.2, 5.x and Centerline C++
19939 lt_prog_compiler_pic_CXX='-KPIC'
19940 lt_prog_compiler_static_CXX='-Bstatic'
19941 lt_prog_compiler_wl_CXX='-Qoption ld '
19942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019943 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019944 # Green Hills C++ Compiler
19945 lt_prog_compiler_pic_CXX='-PIC'
19946 ;;
19947 *)
19948 ;;
19949 esac
19950 ;;
19951 sunos4*)
19952 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019953 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019954 # Sun C++ 4.x
19955 lt_prog_compiler_pic_CXX='-pic'
19956 lt_prog_compiler_static_CXX='-Bstatic'
19957 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019958 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019959 # Lucid
19960 lt_prog_compiler_pic_CXX='-pic'
19961 ;;
19962 *)
19963 ;;
19964 esac
19965 ;;
19966 tandem*)
19967 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019968 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019969 # NonStop-UX NCC 3.20
19970 lt_prog_compiler_pic_CXX='-KPIC'
19971 ;;
19972 *)
19973 ;;
19974 esac
19975 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019976 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19977 case $cc_basename in
19978 CC*)
19979 lt_prog_compiler_wl_CXX='-Wl,'
19980 lt_prog_compiler_pic_CXX='-KPIC'
19981 lt_prog_compiler_static_CXX='-Bstatic'
19982 ;;
19983 esac
John Criswell47fdd832003-07-14 16:52:07 +000019984 ;;
19985 vxworks*)
19986 ;;
19987 *)
19988 lt_prog_compiler_can_build_shared_CXX=no
19989 ;;
19990 esac
19991 fi
19992
Reid Spencera773bd52006-08-04 18:18:08 +000019993{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19994echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019995
19996#
19997# Check to make sure the PIC flag actually works.
19998#
19999if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020000
Reid Spencera773bd52006-08-04 18:18:08 +000020001{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20002echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020003if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20004 echo $ECHO_N "(cached) $ECHO_C" >&6
20005else
20006 lt_prog_compiler_pic_works_CXX=no
20007 ac_outfile=conftest.$ac_objext
20008 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20009 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20010 # Insert the option either (1) after the last *FLAGS variable, or
20011 # (2) before a word containing "conftest.", or (3) at the end.
20012 # Note that $ac_compile itself does not contain backslashes and begins
20013 # with a dollar sign (not a hyphen), so the echo should work correctly.
20014 # The option is referenced via a variable to avoid confusing sed.
20015 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20018 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000020019 (eval echo "\"\$as_me:20019: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020020 (eval "$lt_compile" 2>conftest.err)
20021 ac_status=$?
20022 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000020023 echo "$as_me:20023: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020024 if (exit $ac_status) && test -s "$ac_outfile"; then
20025 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020026 # So say no if there are warnings other than the usual output.
20027 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020030 lt_prog_compiler_pic_works_CXX=yes
20031 fi
20032 fi
20033 $rm conftest*
20034
20035fi
Reid Spencera773bd52006-08-04 18:18:08 +000020036{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20037echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020038
20039if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20040 case $lt_prog_compiler_pic_CXX in
20041 "" | " "*) ;;
20042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20043 esac
20044else
20045 lt_prog_compiler_pic_CXX=
20046 lt_prog_compiler_can_build_shared_CXX=no
20047fi
20048
20049fi
Reid Spencera773bd52006-08-04 18:18:08 +000020050case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020051 # For platforms which do not support PIC, -DPIC is meaningless:
20052 *djgpp*)
20053 lt_prog_compiler_pic_CXX=
20054 ;;
20055 *)
20056 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20057 ;;
20058esac
20059
Reid Spencera773bd52006-08-04 18:18:08 +000020060#
20061# Check to make sure the static flag actually works.
20062#
20063wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20064{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20065echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20066if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20067 echo $ECHO_N "(cached) $ECHO_C" >&6
20068else
20069 lt_prog_compiler_static_works_CXX=no
20070 save_LDFLAGS="$LDFLAGS"
20071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20072 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20074 # The linker can only warn and ignore the option if not recognized
20075 # So say no if there are warnings
20076 if test -s conftest.err; then
20077 # Append any errors to the config.log.
20078 cat conftest.err 1>&5
20079 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20081 if diff conftest.exp conftest.er2 >/dev/null; then
20082 lt_prog_compiler_static_works_CXX=yes
20083 fi
20084 else
20085 lt_prog_compiler_static_works_CXX=yes
20086 fi
20087 fi
20088 $rm conftest*
20089 LDFLAGS="$save_LDFLAGS"
20090
20091fi
20092{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20093echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20094
20095if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20096 :
20097else
20098 lt_prog_compiler_static_CXX=
20099fi
20100
20101
20102{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20103echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020104if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
20106else
20107 lt_cv_prog_compiler_c_o_CXX=no
20108 $rm -r conftest 2>/dev/null
20109 mkdir conftest
20110 cd conftest
20111 mkdir out
20112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20113
John Criswell47fdd832003-07-14 16:52:07 +000020114 lt_compiler_flag="-o out/conftest2.$ac_objext"
20115 # Insert the option either (1) after the last *FLAGS variable, or
20116 # (2) before a word containing "conftest.", or (3) at the end.
20117 # Note that $ac_compile itself does not contain backslashes and begins
20118 # with a dollar sign (not a hyphen), so the echo should work correctly.
20119 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20122 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000020123 (eval echo "\"\$as_me:20123: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020124 (eval "$lt_compile" 2>out/conftest.err)
20125 ac_status=$?
20126 cat out/conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000020127 echo "$as_me:20127: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20129 then
20130 # The compiler can only warn and ignore the option if not recognized
20131 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020132 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020135 lt_cv_prog_compiler_c_o_CXX=yes
20136 fi
20137 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020138 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020139 $rm conftest*
20140 # SGI C++ compiler will create directory out/ii_files/ for
20141 # template instantiation
20142 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20143 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020144 cd ..
20145 rmdir conftest
20146 $rm conftest*
20147
20148fi
Reid Spencera773bd52006-08-04 18:18:08 +000020149{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20150echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020151
20152
20153hard_links="nottested"
20154if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20155 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020156 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20157echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020158 hard_links=yes
20159 $rm conftest*
20160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20161 touch conftest.a
20162 ln conftest.a conftest.b 2>&5 || hard_links=no
20163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020164 { echo "$as_me:$LINENO: result: $hard_links" >&5
20165echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020166 if test "$hard_links" = no; then
20167 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20168echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20169 need_locks=warn
20170 fi
20171else
20172 need_locks=no
20173fi
20174
Reid Spencera773bd52006-08-04 18:18:08 +000020175{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20176echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020177
20178 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20179 case $host_os in
20180 aix4* | aix5*)
20181 # If we're using GNU nm, then we don't want the "-C" option.
20182 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20183 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20184 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'
20185 else
20186 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'
20187 fi
20188 ;;
20189 pw32*)
20190 export_symbols_cmds_CXX="$ltdll_cmds"
20191 ;;
20192 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020193 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 +000020194 ;;
20195 *)
20196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20197 ;;
20198 esac
20199
Reid Spencera773bd52006-08-04 18:18:08 +000020200{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20201echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020202test "$ld_shlibs_CXX" = no && can_build_shared=no
20203
John Criswell47fdd832003-07-14 16:52:07 +000020204#
20205# Do we need to explicitly link libc?
20206#
20207case "x$archive_cmds_need_lc_CXX" in
20208x|xyes)
20209 # Assume -lc should be added
20210 archive_cmds_need_lc_CXX=yes
20211
20212 if test "$enable_shared" = yes && test "$GCC" = yes; then
20213 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020214 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020215 # FIXME: we may have to deal with multi-command sequences.
20216 ;;
20217 '$CC '*)
20218 # Test whether the compiler implicitly links with -lc since on some
20219 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20220 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020221 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20222echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020223 $rm conftest*
20224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225
20226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20227 (eval $ac_compile) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } 2>conftest.err; then
20231 soname=conftest
20232 lib=conftest
20233 libobjs=conftest.$ac_objext
20234 deplibs=
20235 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020236 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020237 compiler_flags=-v
20238 linker_flags=-v
20239 verstring=
20240 output_objdir=.
20241 libname=conftest
20242 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20243 allow_undefined_flag_CXX=
20244 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20245 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }
20249 then
20250 archive_cmds_need_lc_CXX=no
20251 else
20252 archive_cmds_need_lc_CXX=yes
20253 fi
20254 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20255 else
20256 cat conftest.err 1>&5
20257 fi
20258 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020259 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20260echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020261 ;;
20262 esac
20263 fi
20264 ;;
20265esac
20266
Reid Spencera773bd52006-08-04 18:18:08 +000020267{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20268echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020269library_names_spec=
20270libname_spec='lib$name'
20271soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020272shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020273postinstall_cmds=
20274postuninstall_cmds=
20275finish_cmds=
20276finish_eval=
20277shlibpath_var=
20278shlibpath_overrides_runpath=unknown
20279version_type=none
20280dynamic_linker="$host_os ld.so"
20281sys_lib_dlsearch_path_spec="/lib /usr/lib"
20282if test "$GCC" = yes; then
20283 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20284 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20285 # if the path contains ";" then we assume it to be the separator
20286 # otherwise default to the standard path separator (i.e. ":") - it is
20287 # assumed that no part of a normal pathname contains ";" but that should
20288 # okay in the real world where ";" in dirpaths is itself problematic.
20289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20290 else
20291 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20292 fi
20293else
20294 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20295fi
20296need_lib_prefix=unknown
20297hardcode_into_libs=no
20298
20299# when you set need_version to no, make sure it does not cause -set_version
20300# flags to be left without arguments
20301need_version=unknown
20302
20303case $host_os in
20304aix3*)
20305 version_type=linux
20306 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20307 shlibpath_var=LIBPATH
20308
20309 # AIX 3 has no versioning support, so we append a major version to the name.
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 ;;
20312
20313aix4* | aix5*)
20314 version_type=linux
20315 need_lib_prefix=no
20316 need_version=no
20317 hardcode_into_libs=yes
20318 if test "$host_cpu" = ia64; then
20319 # AIX 5 supports IA64
20320 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20321 shlibpath_var=LD_LIBRARY_PATH
20322 else
20323 # With GCC up to 2.95.x, collect2 would create an import file
20324 # for dependence libraries. The import file would start with
20325 # the line `#! .'. This would cause the generated library to
20326 # depend on `.', always an invalid library. This was fixed in
20327 # development snapshots of GCC prior to 3.0.
20328 case $host_os in
20329 aix4 | aix4.[01] | aix4.[01].*)
20330 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20331 echo ' yes '
20332 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20333 :
20334 else
20335 can_build_shared=no
20336 fi
20337 ;;
20338 esac
20339 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20340 # soname into executable. Probably we can add versioning support to
20341 # collect2, so additional links can be useful in future.
20342 if test "$aix_use_runtimelinking" = yes; then
20343 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20344 # instead of lib<name>.a to let people know that these are not
20345 # typical AIX shared libraries.
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 else
20348 # We preserve .a as extension for shared libraries through AIX4.2
20349 # and later when we are not doing run time linking.
20350 library_names_spec='${libname}${release}.a $libname.a'
20351 soname_spec='${libname}${release}${shared_ext}$major'
20352 fi
20353 shlibpath_var=LIBPATH
20354 fi
20355 ;;
20356
20357amigaos*)
20358 library_names_spec='$libname.ixlibrary $libname.a'
20359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020360 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 +000020361 ;;
20362
20363beos*)
20364 library_names_spec='${libname}${shared_ext}'
20365 dynamic_linker="$host_os ld.so"
20366 shlibpath_var=LIBRARY_PATH
20367 ;;
20368
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020370 version_type=linux
20371 need_version=no
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20375 shlibpath_var=LD_LIBRARY_PATH
20376 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20377 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20378 # the default ld.so.conf also contains /usr/contrib/lib and
20379 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20380 # libtool to hard-code these into programs
20381 ;;
20382
20383cygwin* | mingw* | pw32*)
20384 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020385 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020386 need_version=no
20387 need_lib_prefix=no
20388
20389 case $GCC,$host_os in
20390 yes,cygwin* | yes,mingw* | yes,pw32*)
20391 library_names_spec='$libname.dll.a'
20392 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020393 postinstall_cmds='base_file=`basename \${file}`~
20394 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20395 dldir=$destdir/`dirname \$dlpath`~
20396 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020397 $install_prog $dir/$dlname \$dldir/$dlname~
20398 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020399 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20400 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020401 $rm \$dlpath'
20402 shlibpath_overrides_runpath=yes
20403
20404 case $host_os in
20405 cygwin*)
20406 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20407 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 +000020408 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020409 ;;
20410 mingw*)
20411 # MinGW DLLs use traditional 'lib' prefix
20412 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20414 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20415 # It is most probably a Windows format PATH printed by
20416 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20417 # path with ; separators, and with drive letters. We can handle the
20418 # drive letters (cygwin fileutils understands them), so leave them,
20419 # especially as we might pass files found there to a mingw objdump,
20420 # which wouldn't understand a cygwinified path. Ahh.
20421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20422 else
20423 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20424 fi
20425 ;;
20426 pw32*)
20427 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020428 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 +000020429 ;;
20430 esac
20431 ;;
20432
20433 *)
20434 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20435 ;;
20436 esac
20437 dynamic_linker='Win32 ld.exe'
20438 # FIXME: first we should search . and the directory the executable is in
20439 shlibpath_var=PATH
20440 ;;
20441
20442darwin* | rhapsody*)
20443 dynamic_linker="$host_os dyld"
20444 version_type=darwin
20445 need_lib_prefix=no
20446 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020447 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020448 soname_spec='${libname}${release}${major}$shared_ext'
20449 shlibpath_overrides_runpath=yes
20450 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020451 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020452 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020453 if test "$GCC" = yes; then
20454 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"`
20455 else
20456 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020457 fi
20458 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20459 ;;
20460
20461dgux*)
20462 version_type=linux
20463 need_lib_prefix=no
20464 need_version=no
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20466 soname_spec='${libname}${release}${shared_ext}$major'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 ;;
20469
20470freebsd1*)
20471 dynamic_linker=no
20472 ;;
20473
Reid Spencer2706f8c2004-09-19 23:53:36 +000020474kfreebsd*-gnu)
20475 version_type=linux
20476 need_lib_prefix=no
20477 need_version=no
20478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20479 soname_spec='${libname}${release}${shared_ext}$major'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 shlibpath_overrides_runpath=no
20482 hardcode_into_libs=yes
20483 dynamic_linker='GNU ld.so'
20484 ;;
20485
Reid Spencera773bd52006-08-04 18:18:08 +000020486freebsd* | dragonfly*)
20487 # DragonFly does not have aout. When/if they implement a new
20488 # versioning mechanism, adjust this.
20489 if test -x /usr/bin/objformat; then
20490 objformat=`/usr/bin/objformat`
20491 else
20492 case $host_os in
20493 freebsd[123]*) objformat=aout ;;
20494 *) objformat=elf ;;
20495 esac
20496 fi
John Criswell47fdd832003-07-14 16:52:07 +000020497 version_type=freebsd-$objformat
20498 case $version_type in
20499 freebsd-elf*)
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20501 need_version=no
20502 need_lib_prefix=no
20503 ;;
20504 freebsd-*)
20505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20506 need_version=yes
20507 ;;
20508 esac
20509 shlibpath_var=LD_LIBRARY_PATH
20510 case $host_os in
20511 freebsd2*)
20512 shlibpath_overrides_runpath=yes
20513 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020514 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020515 shlibpath_overrides_runpath=yes
20516 hardcode_into_libs=yes
20517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020518 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20519 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020520 shlibpath_overrides_runpath=no
20521 hardcode_into_libs=yes
20522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020523 freebsd*) # from 4.6 on
20524 shlibpath_overrides_runpath=yes
20525 hardcode_into_libs=yes
20526 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020527 esac
20528 ;;
20529
20530gnu*)
20531 version_type=linux
20532 need_lib_prefix=no
20533 need_version=no
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20535 soname_spec='${libname}${release}${shared_ext}$major'
20536 shlibpath_var=LD_LIBRARY_PATH
20537 hardcode_into_libs=yes
20538 ;;
20539
20540hpux9* | hpux10* | hpux11*)
20541 # Give a soname corresponding to the major version so that dld.sl refuses to
20542 # link against other versions.
20543 version_type=sunos
20544 need_lib_prefix=no
20545 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020546 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020547 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020548 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020549 hardcode_into_libs=yes
20550 dynamic_linker="$host_os dld.so"
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20554 soname_spec='${libname}${release}${shared_ext}$major'
20555 if test "X$HPUX_IA64_MODE" = X32; then
20556 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20557 else
20558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20559 fi
20560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20561 ;;
20562 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020564 hardcode_into_libs=yes
20565 dynamic_linker="$host_os dld.sl"
20566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20572 ;;
20573 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020575 dynamic_linker="$host_os dld.sl"
20576 shlibpath_var=SHLIB_PATH
20577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 soname_spec='${libname}${release}${shared_ext}$major'
20580 ;;
20581 esac
20582 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20583 postinstall_cmds='chmod 555 $lib'
20584 ;;
20585
Reid Spencera773bd52006-08-04 18:18:08 +000020586interix3*)
20587 version_type=linux
20588 need_lib_prefix=no
20589 need_version=no
20590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20591 soname_spec='${libname}${release}${shared_ext}$major'
20592 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 shlibpath_overrides_runpath=no
20595 hardcode_into_libs=yes
20596 ;;
20597
John Criswell47fdd832003-07-14 16:52:07 +000020598irix5* | irix6* | nonstopux*)
20599 case $host_os in
20600 nonstopux*) version_type=nonstopux ;;
20601 *)
20602 if test "$lt_cv_prog_gnu_ld" = yes; then
20603 version_type=linux
20604 else
20605 version_type=irix
20606 fi ;;
20607 esac
20608 need_lib_prefix=no
20609 need_version=no
20610 soname_spec='${libname}${release}${shared_ext}$major'
20611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20612 case $host_os in
20613 irix5* | nonstopux*)
20614 libsuff= shlibsuff=
20615 ;;
20616 *)
20617 case $LD in # libtool.m4 will add one of these switches to LD
20618 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20619 libsuff= shlibsuff= libmagic=32-bit;;
20620 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20621 libsuff=32 shlibsuff=N32 libmagic=N32;;
20622 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20623 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20624 *) libsuff= shlibsuff= libmagic=never-match;;
20625 esac
20626 ;;
20627 esac
20628 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20629 shlibpath_overrides_runpath=no
20630 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20631 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20632 hardcode_into_libs=yes
20633 ;;
20634
20635# No shared lib support for Linux oldld, aout, or coff.
20636linux*oldld* | linux*aout* | linux*coff*)
20637 dynamic_linker=no
20638 ;;
20639
20640# This must be Linux ELF.
20641linux*)
20642 version_type=linux
20643 need_lib_prefix=no
20644 need_version=no
20645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20646 soname_spec='${libname}${release}${shared_ext}$major'
20647 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20648 shlibpath_var=LD_LIBRARY_PATH
20649 shlibpath_overrides_runpath=no
20650 # This implies no fast_install, which is unacceptable.
20651 # Some rework will be needed to allow for fast_install
20652 # before this can be enabled.
20653 hardcode_into_libs=yes
20654
Reid Spencer2706f8c2004-09-19 23:53:36 +000020655 # Append ld.so.conf contents to the search path
20656 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020657 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 +000020658 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20659 fi
20660
John Criswell47fdd832003-07-14 16:52:07 +000020661 # We used to test for /lib/ld.so.1 and disable shared libraries on
20662 # powerpc, because MkLinux only supported shared libraries with the
20663 # GNU dynamic linker. Since this was broken with cross compilers,
20664 # most powerpc-linux boxes support dynamic linking these days and
20665 # people can always --disable-shared, the test was removed, and we
20666 # assume the GNU/Linux dynamic linker is in use.
20667 dynamic_linker='GNU/Linux ld.so'
20668 ;;
20669
Reid Spencer2706f8c2004-09-19 23:53:36 +000020670knetbsd*-gnu)
20671 version_type=linux
20672 need_lib_prefix=no
20673 need_version=no
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 shlibpath_var=LD_LIBRARY_PATH
20677 shlibpath_overrides_runpath=no
20678 hardcode_into_libs=yes
20679 dynamic_linker='GNU ld.so'
20680 ;;
20681
John Criswell47fdd832003-07-14 16:52:07 +000020682netbsd*)
20683 version_type=sunos
20684 need_lib_prefix=no
20685 need_version=no
20686 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20689 dynamic_linker='NetBSD (a.out) ld.so'
20690 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020692 soname_spec='${libname}${release}${shared_ext}$major'
20693 dynamic_linker='NetBSD ld.elf_so'
20694 fi
20695 shlibpath_var=LD_LIBRARY_PATH
20696 shlibpath_overrides_runpath=yes
20697 hardcode_into_libs=yes
20698 ;;
20699
20700newsos6)
20701 version_type=linux
20702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20703 shlibpath_var=LD_LIBRARY_PATH
20704 shlibpath_overrides_runpath=yes
20705 ;;
20706
Reid Spencer2706f8c2004-09-19 23:53:36 +000020707nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020708 version_type=linux
20709 need_lib_prefix=no
20710 need_version=no
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20712 soname_spec='${libname}${release}${shared_ext}$major'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 shlibpath_overrides_runpath=yes
20715 ;;
20716
20717openbsd*)
20718 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020719 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020720 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020721 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20722 case $host_os in
20723 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20724 *) need_version=no ;;
20725 esac
John Criswell47fdd832003-07-14 16:52:07 +000020726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20728 shlibpath_var=LD_LIBRARY_PATH
20729 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20730 case $host_os in
20731 openbsd2.[89] | openbsd2.[89].*)
20732 shlibpath_overrides_runpath=no
20733 ;;
20734 *)
20735 shlibpath_overrides_runpath=yes
20736 ;;
20737 esac
20738 else
20739 shlibpath_overrides_runpath=yes
20740 fi
20741 ;;
20742
20743os2*)
20744 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020745 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020746 need_lib_prefix=no
20747 library_names_spec='$libname${shared_ext} $libname.a'
20748 dynamic_linker='OS/2 ld.exe'
20749 shlibpath_var=LIBPATH
20750 ;;
20751
20752osf3* | osf4* | osf5*)
20753 version_type=osf
20754 need_lib_prefix=no
20755 need_version=no
20756 soname_spec='${libname}${release}${shared_ext}$major'
20757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20760 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20761 ;;
20762
John Criswell47fdd832003-07-14 16:52:07 +000020763solaris*)
20764 version_type=linux
20765 need_lib_prefix=no
20766 need_version=no
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20768 soname_spec='${libname}${release}${shared_ext}$major'
20769 shlibpath_var=LD_LIBRARY_PATH
20770 shlibpath_overrides_runpath=yes
20771 hardcode_into_libs=yes
20772 # ldd complains unless libraries are executable
20773 postinstall_cmds='chmod +x $lib'
20774 ;;
20775
20776sunos4*)
20777 version_type=sunos
20778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20779 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20780 shlibpath_var=LD_LIBRARY_PATH
20781 shlibpath_overrides_runpath=yes
20782 if test "$with_gnu_ld" = yes; then
20783 need_lib_prefix=no
20784 fi
20785 need_version=yes
20786 ;;
20787
Reid Spencera773bd52006-08-04 18:18:08 +000020788sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020789 version_type=linux
20790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20791 soname_spec='${libname}${release}${shared_ext}$major'
20792 shlibpath_var=LD_LIBRARY_PATH
20793 case $host_vendor in
20794 sni)
20795 shlibpath_overrides_runpath=no
20796 need_lib_prefix=no
20797 export_dynamic_flag_spec='${wl}-Blargedynsym'
20798 runpath_var=LD_RUN_PATH
20799 ;;
20800 siemens)
20801 need_lib_prefix=no
20802 ;;
20803 motorola)
20804 need_lib_prefix=no
20805 need_version=no
20806 shlibpath_overrides_runpath=no
20807 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20808 ;;
20809 esac
20810 ;;
20811
20812sysv4*MP*)
20813 if test -d /usr/nec ;then
20814 version_type=linux
20815 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20816 soname_spec='$libname${shared_ext}.$major'
20817 shlibpath_var=LD_LIBRARY_PATH
20818 fi
20819 ;;
20820
Reid Spencera773bd52006-08-04 18:18:08 +000020821sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20822 version_type=freebsd-elf
20823 need_lib_prefix=no
20824 need_version=no
20825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20826 soname_spec='${libname}${release}${shared_ext}$major'
20827 shlibpath_var=LD_LIBRARY_PATH
20828 hardcode_into_libs=yes
20829 if test "$with_gnu_ld" = yes; then
20830 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20831 shlibpath_overrides_runpath=no
20832 else
20833 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20834 shlibpath_overrides_runpath=yes
20835 case $host_os in
20836 sco3.2v5*)
20837 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20838 ;;
20839 esac
20840 fi
20841 sys_lib_dlsearch_path_spec='/usr/lib'
20842 ;;
20843
John Criswell47fdd832003-07-14 16:52:07 +000020844uts4*)
20845 version_type=linux
20846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20847 soname_spec='${libname}${release}${shared_ext}$major'
20848 shlibpath_var=LD_LIBRARY_PATH
20849 ;;
20850
20851*)
20852 dynamic_linker=no
20853 ;;
20854esac
Reid Spencera773bd52006-08-04 18:18:08 +000020855{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20856echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020857test "$dynamic_linker" = no && can_build_shared=no
20858
Reid Spencera773bd52006-08-04 18:18:08 +000020859variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20860if test "$GCC" = yes; then
20861 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20862fi
20863
20864{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20865echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020866hardcode_action_CXX=
20867if test -n "$hardcode_libdir_flag_spec_CXX" || \
20868 test -n "$runpath_var_CXX" || \
20869 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20870
20871 # We can hardcode non-existant directories.
20872 if test "$hardcode_direct_CXX" != no &&
20873 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20874 # have to relink, otherwise we might link with an installed library
20875 # when we should be linking with a yet-to-be-installed one
20876 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20877 test "$hardcode_minus_L_CXX" != no; then
20878 # Linking always hardcodes the temporary library directory.
20879 hardcode_action_CXX=relink
20880 else
20881 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20882 hardcode_action_CXX=immediate
20883 fi
20884else
20885 # We cannot hardcode anything, or else we can only hardcode existing
20886 # directories.
20887 hardcode_action_CXX=unsupported
20888fi
Reid Spencera773bd52006-08-04 18:18:08 +000020889{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20890echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020891
20892if test "$hardcode_action_CXX" = relink; then
20893 # Fast installation is not supported
20894 enable_fast_install=no
20895elif test "$shlibpath_overrides_runpath" = yes ||
20896 test "$enable_shared" = no; then
20897 # Fast installation is not necessary
20898 enable_fast_install=needless
20899fi
20900
John Criswell47fdd832003-07-14 16:52:07 +000020901
20902# The else clause should only fire when bootstrapping the
20903# libtool distribution, otherwise you forgot to ship ltmain.sh
20904# with your package, and you will get complaints that there are
20905# no rules to generate ltmain.sh.
20906if test -f "$ltmain"; then
20907 # See if we are running on zsh, and set the options which allow our commands through
20908 # without removal of \ escapes.
20909 if test -n "${ZSH_VERSION+set}" ; then
20910 setopt NO_GLOB_SUBST
20911 fi
20912 # Now quote all the things that may contain metacharacters while being
20913 # careful not to overquote the AC_SUBSTed values. We take copies of the
20914 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020915 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 +000020916 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20919 deplibs_check_method reload_flag reload_cmds need_locks \
20920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20921 lt_cv_sys_global_symbol_to_c_name_address \
20922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20923 old_postinstall_cmds old_postuninstall_cmds \
20924 compiler_CXX \
20925 CC_CXX \
20926 LD_CXX \
20927 lt_prog_compiler_wl_CXX \
20928 lt_prog_compiler_pic_CXX \
20929 lt_prog_compiler_static_CXX \
20930 lt_prog_compiler_no_builtin_flag_CXX \
20931 export_dynamic_flag_spec_CXX \
20932 thread_safe_flag_spec_CXX \
20933 whole_archive_flag_spec_CXX \
20934 enable_shared_with_static_runtimes_CXX \
20935 old_archive_cmds_CXX \
20936 old_archive_from_new_cmds_CXX \
20937 predep_objects_CXX \
20938 postdep_objects_CXX \
20939 predeps_CXX \
20940 postdeps_CXX \
20941 compiler_lib_search_path_CXX \
20942 archive_cmds_CXX \
20943 archive_expsym_cmds_CXX \
20944 postinstall_cmds_CXX \
20945 postuninstall_cmds_CXX \
20946 old_archive_from_expsyms_cmds_CXX \
20947 allow_undefined_flag_CXX \
20948 no_undefined_flag_CXX \
20949 export_symbols_cmds_CXX \
20950 hardcode_libdir_flag_spec_CXX \
20951 hardcode_libdir_flag_spec_ld_CXX \
20952 hardcode_libdir_separator_CXX \
20953 hardcode_automatic_CXX \
20954 module_cmds_CXX \
20955 module_expsym_cmds_CXX \
20956 lt_cv_prog_compiler_c_o_CXX \
20957 exclude_expsyms_CXX \
20958 include_expsyms_CXX; do
20959
20960 case $var in
20961 old_archive_cmds_CXX | \
20962 old_archive_from_new_cmds_CXX | \
20963 archive_cmds_CXX | \
20964 archive_expsym_cmds_CXX | \
20965 module_cmds_CXX | \
20966 module_expsym_cmds_CXX | \
20967 old_archive_from_expsyms_cmds_CXX | \
20968 export_symbols_cmds_CXX | \
20969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20970 postinstall_cmds | postuninstall_cmds | \
20971 old_postinstall_cmds | old_postuninstall_cmds | \
20972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20973 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020974 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 +000020975 ;;
20976 *)
20977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20978 ;;
20979 esac
20980 done
20981
20982 case $lt_echo in
20983 *'\$0 --fallback-echo"')
20984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20985 ;;
20986 esac
20987
20988cfgfile="$ofile"
20989
20990 cat <<__EOF__ >> "$cfgfile"
20991# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20992
20993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20994
20995# Shell to use when invoking shell scripts.
20996SHELL=$lt_SHELL
20997
20998# Whether or not to build shared libraries.
20999build_libtool_libs=$enable_shared
21000
21001# Whether or not to build static libraries.
21002build_old_libs=$enable_static
21003
21004# Whether or not to add -lc for building shared libraries.
21005build_libtool_need_lc=$archive_cmds_need_lc_CXX
21006
21007# Whether or not to disallow shared libs when runtime libs are static
21008allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21009
21010# Whether or not to optimize for fast installation.
21011fast_install=$enable_fast_install
21012
21013# The host system.
21014host_alias=$host_alias
21015host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021016host_os=$host_os
21017
21018# The build system.
21019build_alias=$build_alias
21020build=$build
21021build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021022
21023# An echo program that does not interpret backslashes.
21024echo=$lt_echo
21025
21026# The archiver.
21027AR=$lt_AR
21028AR_FLAGS=$lt_AR_FLAGS
21029
21030# A C compiler.
21031LTCC=$lt_LTCC
21032
Reid Spencera773bd52006-08-04 18:18:08 +000021033# LTCC compiler flags.
21034LTCFLAGS=$lt_LTCFLAGS
21035
John Criswell47fdd832003-07-14 16:52:07 +000021036# A language-specific compiler.
21037CC=$lt_compiler_CXX
21038
21039# Is the compiler the GNU C compiler?
21040with_gcc=$GCC_CXX
21041
21042# An ERE matcher.
21043EGREP=$lt_EGREP
21044
21045# The linker used to build libraries.
21046LD=$lt_LD_CXX
21047
21048# Whether we need hard or soft links.
21049LN_S=$lt_LN_S
21050
21051# A BSD-compatible nm program.
21052NM=$lt_NM
21053
21054# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021055STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021056
21057# Used to examine libraries when file_magic_cmd begins "file"
21058MAGIC_CMD=$MAGIC_CMD
21059
21060# Used on cygwin: DLL creation program.
21061DLLTOOL="$DLLTOOL"
21062
21063# Used on cygwin: object dumper.
21064OBJDUMP="$OBJDUMP"
21065
21066# Used on cygwin: assembler.
21067AS="$AS"
21068
21069# The name of the directory that contains temporary libtool files.
21070objdir=$objdir
21071
21072# How to create reloadable object files.
21073reload_flag=$lt_reload_flag
21074reload_cmds=$lt_reload_cmds
21075
21076# How to pass a linker flag through the compiler.
21077wl=$lt_lt_prog_compiler_wl_CXX
21078
21079# Object file suffix (normally "o").
21080objext="$ac_objext"
21081
21082# Old archive suffix (normally "a").
21083libext="$libext"
21084
21085# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021086shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021087
21088# Executable file suffix (normally "").
21089exeext="$exeext"
21090
21091# Additional compiler flags for building library objects.
21092pic_flag=$lt_lt_prog_compiler_pic_CXX
21093pic_mode=$pic_mode
21094
21095# What is the maximum length of a command?
21096max_cmd_len=$lt_cv_sys_max_cmd_len
21097
21098# Does compiler simultaneously support -c and -o options?
21099compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21100
Reid Spencera773bd52006-08-04 18:18:08 +000021101# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021102need_locks=$lt_need_locks
21103
21104# Do we need the lib prefix for modules?
21105need_lib_prefix=$need_lib_prefix
21106
21107# Do we need a version for libraries?
21108need_version=$need_version
21109
21110# Whether dlopen is supported.
21111dlopen_support=$enable_dlopen
21112
21113# Whether dlopen of programs is supported.
21114dlopen_self=$enable_dlopen_self
21115
21116# Whether dlopen of statically linked programs is supported.
21117dlopen_self_static=$enable_dlopen_self_static
21118
21119# Compiler flag to prevent dynamic linking.
21120link_static_flag=$lt_lt_prog_compiler_static_CXX
21121
21122# Compiler flag to turn off builtin functions.
21123no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21124
21125# Compiler flag to allow reflexive dlopens.
21126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21127
21128# Compiler flag to generate shared objects directly from archives.
21129whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21130
21131# Compiler flag to generate thread-safe objects.
21132thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21133
21134# Library versioning type.
21135version_type=$version_type
21136
21137# Format of library name prefix.
21138libname_spec=$lt_libname_spec
21139
21140# List of archive names. First name is the real one, the rest are links.
21141# The last name is the one that the linker finds with -lNAME.
21142library_names_spec=$lt_library_names_spec
21143
21144# The coded name of the library, if different from the real name.
21145soname_spec=$lt_soname_spec
21146
21147# Commands used to build and install an old-style archive.
21148RANLIB=$lt_RANLIB
21149old_archive_cmds=$lt_old_archive_cmds_CXX
21150old_postinstall_cmds=$lt_old_postinstall_cmds
21151old_postuninstall_cmds=$lt_old_postuninstall_cmds
21152
21153# Create an old-style archive from a shared archive.
21154old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21155
21156# Create a temporary old-style archive to link instead of a shared archive.
21157old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21158
21159# Commands used to build and install a shared archive.
21160archive_cmds=$lt_archive_cmds_CXX
21161archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21162postinstall_cmds=$lt_postinstall_cmds
21163postuninstall_cmds=$lt_postuninstall_cmds
21164
21165# Commands used to build a loadable module (assumed same as above if empty)
21166module_cmds=$lt_module_cmds_CXX
21167module_expsym_cmds=$lt_module_expsym_cmds_CXX
21168
21169# Commands to strip libraries.
21170old_striplib=$lt_old_striplib
21171striplib=$lt_striplib
21172
21173# Dependencies to place before the objects being linked to create a
21174# shared library.
21175predep_objects=$lt_predep_objects_CXX
21176
21177# Dependencies to place after the objects being linked to create a
21178# shared library.
21179postdep_objects=$lt_postdep_objects_CXX
21180
21181# Dependencies to place before the objects being linked to create a
21182# shared library.
21183predeps=$lt_predeps_CXX
21184
21185# Dependencies to place after the objects being linked to create a
21186# shared library.
21187postdeps=$lt_postdeps_CXX
21188
21189# The library search path used internally by the compiler when linking
21190# a shared library.
21191compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21192
21193# Method to check whether dependent libraries are shared objects.
21194deplibs_check_method=$lt_deplibs_check_method
21195
21196# Command to use when deplibs_check_method == file_magic.
21197file_magic_cmd=$lt_file_magic_cmd
21198
21199# Flag that allows shared libraries with undefined symbols to be built.
21200allow_undefined_flag=$lt_allow_undefined_flag_CXX
21201
21202# Flag that forces no undefined symbols.
21203no_undefined_flag=$lt_no_undefined_flag_CXX
21204
21205# Commands used to finish a libtool library installation in a directory.
21206finish_cmds=$lt_finish_cmds
21207
21208# Same as above, but a single script fragment to be evaled but not shown.
21209finish_eval=$lt_finish_eval
21210
21211# Take the output of nm and produce a listing of raw symbols and C names.
21212global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21213
21214# Transform the output of nm in a proper C declaration
21215global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21216
21217# Transform the output of nm in a C name address pair
21218global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21219
21220# This is the shared library runtime path variable.
21221runpath_var=$runpath_var
21222
21223# This is the shared library path variable.
21224shlibpath_var=$shlibpath_var
21225
21226# Is shlibpath searched before the hard-coded library search path?
21227shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21228
21229# How to hardcode a shared library path into an executable.
21230hardcode_action=$hardcode_action_CXX
21231
21232# Whether we should hardcode library paths into libraries.
21233hardcode_into_libs=$hardcode_into_libs
21234
21235# Flag to hardcode \$libdir into a binary during linking.
21236# This must work even if \$libdir does not exist.
21237hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21238
21239# If ld is used when linking, flag to hardcode \$libdir into
21240# a binary during linking. This must work even if \$libdir does
21241# not exist.
21242hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21243
21244# Whether we need a single -rpath flag with a separated argument.
21245hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21246
21247# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21248# resulting binary.
21249hardcode_direct=$hardcode_direct_CXX
21250
21251# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21252# resulting binary.
21253hardcode_minus_L=$hardcode_minus_L_CXX
21254
21255# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21256# the resulting binary.
21257hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21258
21259# Set to yes if building a shared library automatically hardcodes DIR into the library
21260# and all subsequent libraries and executables linked against it.
21261hardcode_automatic=$hardcode_automatic_CXX
21262
21263# Variables whose values should be saved in libtool wrapper scripts and
21264# restored at relink time.
21265variables_saved_for_relink="$variables_saved_for_relink"
21266
21267# Whether libtool must link a program against all its dependency libraries.
21268link_all_deplibs=$link_all_deplibs_CXX
21269
21270# Compile-time system search path for libraries
21271sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21272
21273# Run-time system search path for libraries
21274sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21275
21276# Fix the shell variable \$srcfile for the compiler.
21277fix_srcfile_path="$fix_srcfile_path_CXX"
21278
21279# Set to yes if exported symbols are required.
21280always_export_symbols=$always_export_symbols_CXX
21281
21282# The commands to list exported symbols.
21283export_symbols_cmds=$lt_export_symbols_cmds_CXX
21284
21285# The commands to extract the exported symbol list from a shared archive.
21286extract_expsyms_cmds=$lt_extract_expsyms_cmds
21287
21288# Symbols that should not be listed in the preloaded symbols.
21289exclude_expsyms=$lt_exclude_expsyms_CXX
21290
21291# Symbols that must always be exported.
21292include_expsyms=$lt_include_expsyms_CXX
21293
21294# ### END LIBTOOL TAG CONFIG: $tagname
21295
21296__EOF__
21297
21298
21299else
21300 # If there is no Makefile yet, we rely on a make rule to execute
21301 # `config.status --recheck' to rerun these tests and create the
21302 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021303 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21304 if test -f "$ltmain_in"; then
21305 test -f Makefile && make "$ltmain"
21306 fi
John Criswell47fdd832003-07-14 16:52:07 +000021307fi
21308
21309
21310ac_ext=c
21311ac_cpp='$CPP $CPPFLAGS'
21312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316CC=$lt_save_CC
21317LDCXX=$LD
21318LD=$lt_save_LD
21319GCC=$lt_save_GCC
21320with_gnu_ldcxx=$with_gnu_ld
21321with_gnu_ld=$lt_save_with_gnu_ld
21322lt_cv_path_LDCXX=$lt_cv_path_LD
21323lt_cv_path_LD=$lt_save_path_LD
21324lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21325lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21326
21327 else
21328 tagname=""
21329 fi
21330 ;;
21331
21332 F77)
21333 if test -n "$F77" && test "X$F77" != "Xno"; then
21334
21335ac_ext=f
21336ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21337ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21338ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21339
21340
21341archive_cmds_need_lc_F77=no
21342allow_undefined_flag_F77=
21343always_export_symbols_F77=no
21344archive_expsym_cmds_F77=
21345export_dynamic_flag_spec_F77=
21346hardcode_direct_F77=no
21347hardcode_libdir_flag_spec_F77=
21348hardcode_libdir_flag_spec_ld_F77=
21349hardcode_libdir_separator_F77=
21350hardcode_minus_L_F77=no
21351hardcode_automatic_F77=no
21352module_cmds_F77=
21353module_expsym_cmds_F77=
21354link_all_deplibs_F77=unknown
21355old_archive_cmds_F77=$old_archive_cmds
21356no_undefined_flag_F77=
21357whole_archive_flag_spec_F77=
21358enable_shared_with_static_runtimes_F77=no
21359
21360# Source file extension for f77 test sources.
21361ac_ext=f
21362
21363# Object file extension for compiled f77 test sources.
21364objext=o
21365objext_F77=$objext
21366
21367# Code to be used in simple compile tests
21368lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21369
21370# Code to be used in simple link tests
21371lt_simple_link_test_code=" program t\n end\n"
21372
21373# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21374
21375# If no C compiler was specified, use CC.
21376LTCC=${LTCC-"$CC"}
21377
Reid Spencera773bd52006-08-04 18:18:08 +000021378# If no C compiler flags were specified, use CFLAGS.
21379LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21380
John Criswell47fdd832003-07-14 16:52:07 +000021381# Allow CC to be a program name with arguments.
21382compiler=$CC
21383
21384
Reid Spencera773bd52006-08-04 18:18:08 +000021385# save warnings/boilerplate of simple test code
21386ac_outfile=conftest.$ac_objext
21387printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21388eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21389_lt_compiler_boilerplate=`cat conftest.err`
21390$rm conftest*
21391
21392ac_outfile=conftest.$ac_objext
21393printf "$lt_simple_link_test_code" >conftest.$ac_ext
21394eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21395_lt_linker_boilerplate=`cat conftest.err`
21396$rm conftest*
21397
21398
John Criswell47fdd832003-07-14 16:52:07 +000021399# Allow CC to be a program name with arguments.
21400lt_save_CC="$CC"
21401CC=${F77-"f77"}
21402compiler=$CC
21403compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021404for cc_temp in $compiler""; do
21405 case $cc_temp in
21406 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21407 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21408 \-*) ;;
21409 *) break;;
21410 esac
21411done
21412cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021413
John Criswell47fdd832003-07-14 16:52:07 +000021414
Reid Spencera773bd52006-08-04 18:18:08 +000021415{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21416echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21417{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21418echo "${ECHO_T}$can_build_shared" >&6; }
21419
21420{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21421echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021422test "$can_build_shared" = "no" && enable_shared=no
21423
21424# On AIX, shared libraries and static libraries use the same namespace, and
21425# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021426case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021427aix3*)
21428 test "$enable_shared" = yes && enable_static=no
21429 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021430 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021431 postinstall_cmds='$RANLIB $lib'
21432 fi
21433 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021434aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21436 test "$enable_shared" = yes && enable_static=no
21437 fi
John Criswell47fdd832003-07-14 16:52:07 +000021438 ;;
21439esac
Reid Spencera773bd52006-08-04 18:18:08 +000021440{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21441echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021442
Reid Spencera773bd52006-08-04 18:18:08 +000021443{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021445# Make sure either enable_shared or enable_static is yes.
21446test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021447{ echo "$as_me:$LINENO: result: $enable_static" >&5
21448echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021449
21450GCC_F77="$G77"
21451LD_F77="$LD"
21452
21453lt_prog_compiler_wl_F77=
21454lt_prog_compiler_pic_F77=
21455lt_prog_compiler_static_F77=
21456
Reid Spencera773bd52006-08-04 18:18:08 +000021457{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21458echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021459
21460 if test "$GCC" = yes; then
21461 lt_prog_compiler_wl_F77='-Wl,'
21462 lt_prog_compiler_static_F77='-static'
21463
21464 case $host_os in
21465 aix*)
21466 # All AIX code is PIC.
21467 if test "$host_cpu" = ia64; then
21468 # AIX 5 now supports IA64 processor
21469 lt_prog_compiler_static_F77='-Bstatic'
21470 fi
21471 ;;
21472
21473 amigaos*)
21474 # FIXME: we need at least 68020 code to build shared libraries, but
21475 # adding the `-m68020' flag to GCC prevents building anything better,
21476 # like `-m68040'.
21477 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21478 ;;
21479
21480 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21481 # PIC is the default for these OSes.
21482 ;;
21483
21484 mingw* | pw32* | os2*)
21485 # This hack is so that the source file can tell whether it is being
21486 # built for inclusion in a dll (and should export symbols for example).
21487 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21488 ;;
21489
21490 darwin* | rhapsody*)
21491 # PIC is the default on this platform
21492 # Common symbols not allowed in MH_DYLIB files
21493 lt_prog_compiler_pic_F77='-fno-common'
21494 ;;
21495
Reid Spencera773bd52006-08-04 18:18:08 +000021496 interix3*)
21497 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21498 # Instead, we relocate shared libraries at runtime.
21499 ;;
21500
John Criswell47fdd832003-07-14 16:52:07 +000021501 msdosdjgpp*)
21502 # Just because we use GCC doesn't mean we suddenly get shared libraries
21503 # on systems that don't support them.
21504 lt_prog_compiler_can_build_shared_F77=no
21505 enable_shared=no
21506 ;;
21507
21508 sysv4*MP*)
21509 if test -d /usr/nec; then
21510 lt_prog_compiler_pic_F77=-Kconform_pic
21511 fi
21512 ;;
21513
21514 hpux*)
21515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21516 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021517 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021518 hppa*64*|ia64*)
21519 # +Z the default
21520 ;;
21521 *)
21522 lt_prog_compiler_pic_F77='-fPIC'
21523 ;;
21524 esac
21525 ;;
21526
21527 *)
21528 lt_prog_compiler_pic_F77='-fPIC'
21529 ;;
21530 esac
21531 else
21532 # PORTME Check for flag to pass linker flags through the system compiler.
21533 case $host_os in
21534 aix*)
21535 lt_prog_compiler_wl_F77='-Wl,'
21536 if test "$host_cpu" = ia64; then
21537 # AIX 5 now supports IA64 processor
21538 lt_prog_compiler_static_F77='-Bstatic'
21539 else
21540 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21541 fi
21542 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021543 darwin*)
21544 # PIC is the default on this platform
21545 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021546 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021547 xlc*)
21548 lt_prog_compiler_pic_F77='-qnocommon'
21549 lt_prog_compiler_wl_F77='-Wl,'
21550 ;;
21551 esac
21552 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021553
21554 mingw* | pw32* | os2*)
21555 # This hack is so that the source file can tell whether it is being
21556 # built for inclusion in a dll (and should export symbols for example).
21557 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21558 ;;
21559
21560 hpux9* | hpux10* | hpux11*)
21561 lt_prog_compiler_wl_F77='-Wl,'
21562 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21563 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021564 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021565 hppa*64*|ia64*)
21566 # +Z the default
21567 ;;
21568 *)
21569 lt_prog_compiler_pic_F77='+Z'
21570 ;;
21571 esac
21572 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21573 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21574 ;;
21575
21576 irix5* | irix6* | nonstopux*)
21577 lt_prog_compiler_wl_F77='-Wl,'
21578 # PIC (with -KPIC) is the default.
21579 lt_prog_compiler_static_F77='-non_shared'
21580 ;;
21581
21582 newsos6)
21583 lt_prog_compiler_pic_F77='-KPIC'
21584 lt_prog_compiler_static_F77='-Bstatic'
21585 ;;
21586
21587 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021588 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021589 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021590 lt_prog_compiler_wl_F77='-Wl,'
21591 lt_prog_compiler_pic_F77='-KPIC'
21592 lt_prog_compiler_static_F77='-static'
21593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021594 pgcc* | pgf77* | pgf90* | pgf95*)
21595 # Portland Group compilers (*not* the Pentium gcc compiler,
21596 # which looks to be a dead project)
21597 lt_prog_compiler_wl_F77='-Wl,'
21598 lt_prog_compiler_pic_F77='-fpic'
21599 lt_prog_compiler_static_F77='-Bstatic'
21600 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021601 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021602 lt_prog_compiler_wl_F77='-Wl,'
21603 # All Alpha code is PIC.
21604 lt_prog_compiler_static_F77='-non_shared'
21605 ;;
21606 esac
21607 ;;
21608
21609 osf3* | osf4* | osf5*)
21610 lt_prog_compiler_wl_F77='-Wl,'
21611 # All OSF/1 code is PIC.
21612 lt_prog_compiler_static_F77='-non_shared'
21613 ;;
21614
John Criswell47fdd832003-07-14 16:52:07 +000021615 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021616 lt_prog_compiler_pic_F77='-KPIC'
21617 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021618 case $cc_basename in
21619 f77* | f90* | f95*)
21620 lt_prog_compiler_wl_F77='-Qoption ld ';;
21621 *)
21622 lt_prog_compiler_wl_F77='-Wl,';;
21623 esac
John Criswell47fdd832003-07-14 16:52:07 +000021624 ;;
21625
21626 sunos4*)
21627 lt_prog_compiler_wl_F77='-Qoption ld '
21628 lt_prog_compiler_pic_F77='-PIC'
21629 lt_prog_compiler_static_F77='-Bstatic'
21630 ;;
21631
Reid Spencera773bd52006-08-04 18:18:08 +000021632 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021633 lt_prog_compiler_wl_F77='-Wl,'
21634 lt_prog_compiler_pic_F77='-KPIC'
21635 lt_prog_compiler_static_F77='-Bstatic'
21636 ;;
21637
21638 sysv4*MP*)
21639 if test -d /usr/nec ;then
21640 lt_prog_compiler_pic_F77='-Kconform_pic'
21641 lt_prog_compiler_static_F77='-Bstatic'
21642 fi
21643 ;;
21644
Reid Spencera773bd52006-08-04 18:18:08 +000021645 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21646 lt_prog_compiler_wl_F77='-Wl,'
21647 lt_prog_compiler_pic_F77='-KPIC'
21648 lt_prog_compiler_static_F77='-Bstatic'
21649 ;;
21650
21651 unicos*)
21652 lt_prog_compiler_wl_F77='-Wl,'
21653 lt_prog_compiler_can_build_shared_F77=no
21654 ;;
21655
John Criswell47fdd832003-07-14 16:52:07 +000021656 uts4*)
21657 lt_prog_compiler_pic_F77='-pic'
21658 lt_prog_compiler_static_F77='-Bstatic'
21659 ;;
21660
21661 *)
21662 lt_prog_compiler_can_build_shared_F77=no
21663 ;;
21664 esac
21665 fi
21666
Reid Spencera773bd52006-08-04 18:18:08 +000021667{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21668echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021669
21670#
21671# Check to make sure the PIC flag actually works.
21672#
21673if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021674
Reid Spencera773bd52006-08-04 18:18:08 +000021675{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21676echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021677if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21678 echo $ECHO_N "(cached) $ECHO_C" >&6
21679else
21680 lt_prog_compiler_pic_works_F77=no
21681 ac_outfile=conftest.$ac_objext
21682 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21683 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21684 # Insert the option either (1) after the last *FLAGS variable, or
21685 # (2) before a word containing "conftest.", or (3) at the end.
21686 # Note that $ac_compile itself does not contain backslashes and begins
21687 # with a dollar sign (not a hyphen), so the echo should work correctly.
21688 # The option is referenced via a variable to avoid confusing sed.
21689 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021690 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021691 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21692 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000021693 (eval echo "\"\$as_me:21693: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021694 (eval "$lt_compile" 2>conftest.err)
21695 ac_status=$?
21696 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000021697 echo "$as_me:21697: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021698 if (exit $ac_status) && test -s "$ac_outfile"; then
21699 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021700 # So say no if there are warnings other than the usual output.
21701 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21703 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021704 lt_prog_compiler_pic_works_F77=yes
21705 fi
21706 fi
21707 $rm conftest*
21708
21709fi
Reid Spencera773bd52006-08-04 18:18:08 +000021710{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21711echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021712
21713if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21714 case $lt_prog_compiler_pic_F77 in
21715 "" | " "*) ;;
21716 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21717 esac
21718else
21719 lt_prog_compiler_pic_F77=
21720 lt_prog_compiler_can_build_shared_F77=no
21721fi
21722
21723fi
Reid Spencera773bd52006-08-04 18:18:08 +000021724case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021725 # For platforms which do not support PIC, -DPIC is meaningless:
21726 *djgpp*)
21727 lt_prog_compiler_pic_F77=
21728 ;;
21729 *)
21730 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21731 ;;
21732esac
21733
Reid Spencera773bd52006-08-04 18:18:08 +000021734#
21735# Check to make sure the static flag actually works.
21736#
21737wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21738{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21739echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21740if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743 lt_prog_compiler_static_works_F77=no
21744 save_LDFLAGS="$LDFLAGS"
21745 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21746 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21747 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21748 # The linker can only warn and ignore the option if not recognized
21749 # So say no if there are warnings
21750 if test -s conftest.err; then
21751 # Append any errors to the config.log.
21752 cat conftest.err 1>&5
21753 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21755 if diff conftest.exp conftest.er2 >/dev/null; then
21756 lt_prog_compiler_static_works_F77=yes
21757 fi
21758 else
21759 lt_prog_compiler_static_works_F77=yes
21760 fi
21761 fi
21762 $rm conftest*
21763 LDFLAGS="$save_LDFLAGS"
21764
21765fi
21766{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21767echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21768
21769if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21770 :
21771else
21772 lt_prog_compiler_static_F77=
21773fi
21774
21775
21776{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21777echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021778if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21780else
21781 lt_cv_prog_compiler_c_o_F77=no
21782 $rm -r conftest 2>/dev/null
21783 mkdir conftest
21784 cd conftest
21785 mkdir out
21786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21787
John Criswell47fdd832003-07-14 16:52:07 +000021788 lt_compiler_flag="-o out/conftest2.$ac_objext"
21789 # Insert the option either (1) after the last *FLAGS variable, or
21790 # (2) before a word containing "conftest.", or (3) at the end.
21791 # Note that $ac_compile itself does not contain backslashes and begins
21792 # with a dollar sign (not a hyphen), so the echo should work correctly.
21793 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21796 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000021797 (eval echo "\"\$as_me:21797: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021798 (eval "$lt_compile" 2>out/conftest.err)
21799 ac_status=$?
21800 cat out/conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000021801 echo "$as_me:21801: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21803 then
21804 # The compiler can only warn and ignore the option if not recognized
21805 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021809 lt_cv_prog_compiler_c_o_F77=yes
21810 fi
21811 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021812 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021813 $rm conftest*
21814 # SGI C++ compiler will create directory out/ii_files/ for
21815 # template instantiation
21816 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21817 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021818 cd ..
21819 rmdir conftest
21820 $rm conftest*
21821
21822fi
Reid Spencera773bd52006-08-04 18:18:08 +000021823{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21824echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021825
21826
21827hard_links="nottested"
21828if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21829 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021830 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021832 hard_links=yes
21833 $rm conftest*
21834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21835 touch conftest.a
21836 ln conftest.a conftest.b 2>&5 || hard_links=no
21837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021838 { echo "$as_me:$LINENO: result: $hard_links" >&5
21839echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021840 if test "$hard_links" = no; then
21841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21843 need_locks=warn
21844 fi
21845else
21846 need_locks=no
21847fi
21848
Reid Spencera773bd52006-08-04 18:18:08 +000021849{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21850echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021851
21852 runpath_var=
21853 allow_undefined_flag_F77=
21854 enable_shared_with_static_runtimes_F77=no
21855 archive_cmds_F77=
21856 archive_expsym_cmds_F77=
21857 old_archive_From_new_cmds_F77=
21858 old_archive_from_expsyms_cmds_F77=
21859 export_dynamic_flag_spec_F77=
21860 whole_archive_flag_spec_F77=
21861 thread_safe_flag_spec_F77=
21862 hardcode_libdir_flag_spec_F77=
21863 hardcode_libdir_flag_spec_ld_F77=
21864 hardcode_libdir_separator_F77=
21865 hardcode_direct_F77=no
21866 hardcode_minus_L_F77=no
21867 hardcode_shlibpath_var_F77=unsupported
21868 link_all_deplibs_F77=unknown
21869 hardcode_automatic_F77=no
21870 module_cmds_F77=
21871 module_expsym_cmds_F77=
21872 always_export_symbols_F77=no
21873 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21874 # include_expsyms should be a list of space-separated symbols to be *always*
21875 # included in the symbol list
21876 include_expsyms_F77=
21877 # exclude_expsyms can be an extended regexp of symbols to exclude
21878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21880 # as well as any symbol that contains `d'.
21881 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21883 # platforms (ab)use it in PIC code, but their linkers get confused if
21884 # the symbol is explicitly referenced. Since portable code cannot
21885 # rely on this symbol name, it's probably fine to never include it in
21886 # preloaded symbol tables.
21887 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021888 # Just being paranoid about ensuring that cc_basename is set.
21889 for cc_temp in $compiler""; do
21890 case $cc_temp in
21891 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21892 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21893 \-*) ;;
21894 *) break;;
21895 esac
21896done
21897cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021898
21899 case $host_os in
21900 cygwin* | mingw* | pw32*)
21901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21902 # When not using gcc, we currently assume that we are using
21903 # Microsoft Visual C++.
21904 if test "$GCC" != yes; then
21905 with_gnu_ld=no
21906 fi
21907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021908 interix*)
21909 # we just hope/assume this is gcc and not c89 (= MSVC++)
21910 with_gnu_ld=yes
21911 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021912 openbsd*)
21913 with_gnu_ld=no
21914 ;;
21915 esac
21916
21917 ld_shlibs_F77=yes
21918 if test "$with_gnu_ld" = yes; then
21919 # If archive_cmds runs LD, not CC, wlarc should be empty
21920 wlarc='${wl}'
21921
Reid Spencera773bd52006-08-04 18:18:08 +000021922 # Set some defaults for GNU ld with shared library support. These
21923 # are reset later if shared libraries are not supported. Putting them
21924 # here allows them to be overridden if necessary.
21925 runpath_var=LD_RUN_PATH
21926 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21927 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21928 # ancient GNU ld didn't support --whole-archive et. al.
21929 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21930 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21931 else
21932 whole_archive_flag_spec_F77=
21933 fi
21934 supports_anon_versioning=no
21935 case `$LD -v 2>/dev/null` in
21936 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21937 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21938 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21939 *\ 2.11.*) ;; # other 2.11 versions
21940 *) supports_anon_versioning=yes ;;
21941 esac
21942
John Criswell47fdd832003-07-14 16:52:07 +000021943 # See if GNU ld supports shared libraries.
21944 case $host_os in
21945 aix3* | aix4* | aix5*)
21946 # On AIX/PPC, the GNU linker is very broken
21947 if test "$host_cpu" != ia64; then
21948 ld_shlibs_F77=no
21949 cat <<EOF 1>&2
21950
21951*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21952*** to be unable to reliably create shared libraries on AIX.
21953*** Therefore, libtool is disabling shared libraries support. If you
21954*** really care for shared libraries, you may want to modify your PATH
21955*** so that a non-GNU linker is found, and then restart.
21956
21957EOF
21958 fi
21959 ;;
21960
21961 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021962 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 +000021963 hardcode_libdir_flag_spec_F77='-L$libdir'
21964 hardcode_minus_L_F77=yes
21965
21966 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21967 # that the semantics of dynamic libraries on AmigaOS, at least up
21968 # to version 4, is to share data among multiple programs linked
21969 # with the same dynamic library. Since this doesn't match the
21970 # behavior of shared libraries on other platforms, we can't use
21971 # them.
21972 ld_shlibs_F77=no
21973 ;;
21974
21975 beos*)
21976 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21977 allow_undefined_flag_F77=unsupported
21978 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21979 # support --undefined. This deserves some investigation. FIXME
21980 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21981 else
21982 ld_shlibs_F77=no
21983 fi
21984 ;;
21985
21986 cygwin* | mingw* | pw32*)
21987 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21988 # as there is no search path for DLLs.
21989 hardcode_libdir_flag_spec_F77='-L$libdir'
21990 allow_undefined_flag_F77=unsupported
21991 always_export_symbols_F77=no
21992 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021993 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 +000021994
21995 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021996 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 +000021997 # If the export-symbols file already is a .def file (1st line
21998 # is EXPORTS), use it as is; otherwise, prepend...
21999 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22000 cp $export_symbols $output_objdir/$soname.def;
22001 else
22002 echo EXPORTS > $output_objdir/$soname.def;
22003 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022004 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022005 $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 +000022006 else
Reid Spencera773bd52006-08-04 18:18:08 +000022007 ld_shlibs_F77=no
22008 fi
22009 ;;
22010
22011 interix3*)
22012 hardcode_direct_F77=no
22013 hardcode_shlibpath_var_F77=no
22014 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22015 export_dynamic_flag_spec_F77='${wl}-E'
22016 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22017 # Instead, shared libraries are loaded at an image base (0x10000000 by
22018 # default) and relocated if they conflict, which is a slow very memory
22019 # consuming and fragmenting process. To avoid this, we pick a random,
22020 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22021 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22022 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'
22023 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'
22024 ;;
22025
22026 linux*)
22027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028 tmp_addflag=
22029 case $cc_basename,$host_cpu in
22030 pgcc*) # Portland Group C compiler
22031 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'
22032 tmp_addflag=' $pic_flag'
22033 ;;
22034 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22035 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'
22036 tmp_addflag=' $pic_flag -Mnomain' ;;
22037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22038 tmp_addflag=' -i_dynamic' ;;
22039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22040 tmp_addflag=' -i_dynamic -nofor_main' ;;
22041 ifc* | ifort*) # Intel Fortran compiler
22042 tmp_addflag=' -nofor_main' ;;
22043 esac
22044 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22045
22046 if test $supports_anon_versioning = yes; then
22047 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22049 $echo "local: *; };" >> $output_objdir/$libname.ver~
22050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22051 fi
22052 else
22053 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022054 fi
22055 ;;
22056
22057 netbsd*)
22058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22059 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22060 wlarc=
22061 else
22062 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22063 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22064 fi
22065 ;;
22066
Reid Spencera773bd52006-08-04 18:18:08 +000022067 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22069 ld_shlibs_F77=no
22070 cat <<EOF 1>&2
22071
22072*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22073*** create shared libraries on Solaris systems. Therefore, libtool
22074*** is disabling shared libraries support. We urge you to upgrade GNU
22075*** binutils to release 2.9.1 or newer. Another option is to modify
22076*** your PATH or compiler configuration so that the native linker is
22077*** used, and then restart.
22078
22079EOF
22080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22081 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22082 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22083 else
22084 ld_shlibs_F77=no
22085 fi
22086 ;;
22087
Reid Spencera773bd52006-08-04 18:18:08 +000022088 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22089 case `$LD -v 2>&1` in
22090 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22091 ld_shlibs_F77=no
22092 cat <<_LT_EOF 1>&2
22093
22094*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22095*** reliably create shared libraries on SCO systems. Therefore, libtool
22096*** is disabling shared libraries support. We urge you to upgrade GNU
22097*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22098*** your PATH or compiler configuration so that the native linker is
22099*** used, and then restart.
22100
22101_LT_EOF
22102 ;;
22103 *)
22104 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22105 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22106 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22107 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22108 else
22109 ld_shlibs_F77=no
22110 fi
22111 ;;
22112 esac
22113 ;;
22114
John Criswell47fdd832003-07-14 16:52:07 +000022115 sunos4*)
22116 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22117 wlarc=
22118 hardcode_direct_F77=yes
22119 hardcode_shlibpath_var_F77=no
22120 ;;
22121
22122 *)
22123 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22124 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22125 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22126 else
22127 ld_shlibs_F77=no
22128 fi
22129 ;;
22130 esac
22131
Reid Spencera773bd52006-08-04 18:18:08 +000022132 if test "$ld_shlibs_F77" = no; then
22133 runpath_var=
22134 hardcode_libdir_flag_spec_F77=
22135 export_dynamic_flag_spec_F77=
22136 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022137 fi
22138 else
22139 # PORTME fill in a description of your system's linker (not GNU ld)
22140 case $host_os in
22141 aix3*)
22142 allow_undefined_flag_F77=unsupported
22143 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022144 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 +000022145 # Note: this linker hardcodes the directories in LIBPATH if there
22146 # are no directories specified by -L.
22147 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022148 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022149 # Neither direct hardcoding nor static linking is supported with a
22150 # broken collect2.
22151 hardcode_direct_F77=unsupported
22152 fi
22153 ;;
22154
22155 aix4* | aix5*)
22156 if test "$host_cpu" = ia64; then
22157 # On IA64, the linker does run time linking by default, so we don't
22158 # have to do anything special.
22159 aix_use_runtimelinking=no
22160 exp_sym_flag='-Bexport'
22161 no_entry_flag=""
22162 else
22163 # If we're using GNU nm, then we don't want the "-C" option.
22164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22165 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22166 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'
22167 else
22168 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'
22169 fi
22170 aix_use_runtimelinking=no
22171
22172 # Test if we are trying to use run time linking or normal
22173 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22174 # need to do runtime linking.
22175 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22176 for ld_flag in $LDFLAGS; do
22177 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22178 aix_use_runtimelinking=yes
22179 break
22180 fi
22181 done
Reid Spencera773bd52006-08-04 18:18:08 +000022182 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022183 esac
22184
22185 exp_sym_flag='-bexport'
22186 no_entry_flag='-bnoentry'
22187 fi
22188
22189 # When large executables or shared objects are built, AIX ld can
22190 # have problems creating the table of contents. If linking a library
22191 # or program results in "error TOC overflow" add -mminimal-toc to
22192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22194
22195 archive_cmds_F77=''
22196 hardcode_direct_F77=yes
22197 hardcode_libdir_separator_F77=':'
22198 link_all_deplibs_F77=yes
22199
22200 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022201 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022202 # We only want to do this on AIX 4.2 and lower, the check
22203 # below for broken collect2 doesn't work under 4.3+
22204 collect2name=`${CC} -print-prog-name=collect2`
22205 if test -f "$collect2name" && \
22206 strings "$collect2name" | grep resolve_lib_name >/dev/null
22207 then
22208 # We have reworked collect2
22209 hardcode_direct_F77=yes
22210 else
22211 # We have old collect2
22212 hardcode_direct_F77=unsupported
22213 # It fails to find uninstalled libraries when the uninstalled
22214 # path is not listed in the libpath. Setting hardcode_minus_L
22215 # to unsupported forces relinking
22216 hardcode_minus_L_F77=yes
22217 hardcode_libdir_flag_spec_F77='-L$libdir'
22218 hardcode_libdir_separator_F77=
22219 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022221 esac
22222 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022223 if test "$aix_use_runtimelinking" = yes; then
22224 shared_flag="$shared_flag "'${wl}-G'
22225 fi
John Criswell47fdd832003-07-14 16:52:07 +000022226 else
22227 # not using gcc
22228 if test "$host_cpu" = ia64; then
22229 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22230 # chokes on -Wl,-G. The following line is correct:
22231 shared_flag='-G'
22232 else
Reid Spencera773bd52006-08-04 18:18:08 +000022233 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022234 shared_flag='${wl}-G'
22235 else
22236 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022237 fi
John Criswell47fdd832003-07-14 16:52:07 +000022238 fi
22239 fi
22240
22241 # It seems that -bexpall does not export symbols beginning with
22242 # underscore (_), so it is better to generate a list of symbols to export.
22243 always_export_symbols_F77=yes
22244 if test "$aix_use_runtimelinking" = yes; then
22245 # Warning - without using the other runtime loading flags (-brtl),
22246 # -berok will link without error, but may produce a broken library.
22247 allow_undefined_flag_F77='-berok'
22248 # Determine the default libpath from the value encoded in an empty executable.
22249 cat >conftest.$ac_ext <<_ACEOF
22250 program main
22251
22252 end
22253_ACEOF
22254rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022255if { (ac_try="$ac_link"
22256case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259esac
22260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022267 (exit $ac_status); } &&
22268 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22269 { (case "(($ac_try" in
22270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271 *) ac_try_echo=$ac_try;;
22272esac
22273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274 (eval "$ac_try") 2>&5
22275 ac_status=$?
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); }; } &&
22278 { ac_try='test -s conftest$ac_exeext'
22279 { (case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284 (eval "$ac_try") 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022288
22289aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22290}'`
22291# Check for a 64-bit object if we didn't find anything.
22292if 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; }
22293}'`; fi
22294else
22295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022296sed 's/^/| /' conftest.$ac_ext >&5
22297
Reid Spencera773bd52006-08-04 18:18:08 +000022298
John Criswell47fdd832003-07-14 16:52:07 +000022299fi
Reid Spencera773bd52006-08-04 18:18:08 +000022300
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022301rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022302 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022303if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22304
22305 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022306 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 +000022307 else
22308 if test "$host_cpu" = ia64; then
22309 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22310 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022311 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 +000022312 else
22313 # Determine the default libpath from the value encoded in an empty executable.
22314 cat >conftest.$ac_ext <<_ACEOF
22315 program main
22316
22317 end
22318_ACEOF
22319rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022320if { (ac_try="$ac_link"
22321case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324esac
22325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022327 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022328 grep -v '^ *+' conftest.er1 >conftest.err
22329 rm -f conftest.er1
22330 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22334 { (case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22337esac
22338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_try") 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest$ac_exeext'
22344 { (case "(($ac_try" in
22345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22346 *) ac_try_echo=$ac_try;;
22347esac
22348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22349 (eval "$ac_try") 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022353
22354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22355}'`
22356# Check for a 64-bit object if we didn't find anything.
22357if 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; }
22358}'`; fi
22359else
22360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022361sed 's/^/| /' conftest.$ac_ext >&5
22362
Reid Spencera773bd52006-08-04 18:18:08 +000022363
John Criswell47fdd832003-07-14 16:52:07 +000022364fi
Reid Spencera773bd52006-08-04 18:18:08 +000022365
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022366rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022367 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22369
22370 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22371 # Warning - without using the other run time loading flags,
22372 # -berok will link without error, but may produce a broken library.
22373 no_undefined_flag_F77=' ${wl}-bernotok'
22374 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022375 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022376 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022377 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022378 # This is similar to how AIX traditionally builds its shared libraries.
22379 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 +000022380 fi
22381 fi
22382 ;;
22383
22384 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022385 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 +000022386 hardcode_libdir_flag_spec_F77='-L$libdir'
22387 hardcode_minus_L_F77=yes
22388 # see comment about different semantics on the GNU ld section
22389 ld_shlibs_F77=no
22390 ;;
22391
Reid Spencer2706f8c2004-09-19 23:53:36 +000022392 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022393 export_dynamic_flag_spec_F77=-rdynamic
22394 ;;
22395
22396 cygwin* | mingw* | pw32*)
22397 # When not using gcc, we currently assume that we are using
22398 # Microsoft Visual C++.
22399 # hardcode_libdir_flag_spec is actually meaningless, as there is
22400 # no search path for DLLs.
22401 hardcode_libdir_flag_spec_F77=' '
22402 allow_undefined_flag_F77=unsupported
22403 # Tell ltmain to make .lib files, not .a files.
22404 libext=lib
22405 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022407 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022408 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 +000022409 # The linker will automatically build a .lib file if we build a DLL.
22410 old_archive_From_new_cmds_F77='true'
22411 # FIXME: Should let the user specify the lib program.
22412 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022413 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022414 enable_shared_with_static_runtimes_F77=yes
22415 ;;
22416
22417 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022418 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 rhapsody* | darwin1.[012])
22420 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22421 ;;
22422 *) # Darwin 1.3 on
22423 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22424 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22425 else
22426 case ${MACOSX_DEPLOYMENT_TARGET} in
22427 10.[012])
22428 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22429 ;;
22430 10.*)
22431 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22432 ;;
22433 esac
22434 fi
22435 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022436 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022438 hardcode_direct_F77=no
22439 hardcode_automatic_F77=yes
22440 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022441 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022442 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 if test "$GCC" = yes ; then
22444 output_verbose_link_cmd='echo'
22445 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22446 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022447 # 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 +000022448 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}'
22449 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 +000022450 else
Reid Spencera773bd52006-08-04 18:18:08 +000022451 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022452 xlc*)
22453 output_verbose_link_cmd='echo'
22454 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22455 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022456 # 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 +000022457 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}'
22458 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 +000022459 ;;
22460 *)
22461 ld_shlibs_F77=no
22462 ;;
22463 esac
John Criswell47fdd832003-07-14 16:52:07 +000022464 fi
22465 ;;
22466
22467 dgux*)
22468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22469 hardcode_libdir_flag_spec_F77='-L$libdir'
22470 hardcode_shlibpath_var_F77=no
22471 ;;
22472
22473 freebsd1*)
22474 ld_shlibs_F77=no
22475 ;;
22476
22477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22478 # support. Future versions do this automatically, but an explicit c++rt0.o
22479 # does not break anything, and helps significantly (at the cost of a little
22480 # extra space).
22481 freebsd2.2*)
22482 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22483 hardcode_libdir_flag_spec_F77='-R$libdir'
22484 hardcode_direct_F77=yes
22485 hardcode_shlibpath_var_F77=no
22486 ;;
22487
22488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22489 freebsd2*)
22490 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22491 hardcode_direct_F77=yes
22492 hardcode_minus_L_F77=yes
22493 hardcode_shlibpath_var_F77=no
22494 ;;
22495
22496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022497 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022498 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22499 hardcode_libdir_flag_spec_F77='-R$libdir'
22500 hardcode_direct_F77=yes
22501 hardcode_shlibpath_var_F77=no
22502 ;;
22503
22504 hpux9*)
22505 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022506 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 +000022507 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022508 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 +000022509 fi
22510 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22511 hardcode_libdir_separator_F77=:
22512 hardcode_direct_F77=yes
22513
22514 # hardcode_minus_L: Not really in the search PATH,
22515 # but as the default location of the library.
22516 hardcode_minus_L_F77=yes
22517 export_dynamic_flag_spec_F77='${wl}-E'
22518 ;;
22519
Reid Spencera773bd52006-08-04 18:18:08 +000022520 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022522 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22523 else
22524 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22525 fi
22526 if test "$with_gnu_ld" = no; then
22527 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22528 hardcode_libdir_separator_F77=:
22529
22530 hardcode_direct_F77=yes
22531 export_dynamic_flag_spec_F77='${wl}-E'
22532
22533 # hardcode_minus_L: Not really in the search PATH,
22534 # but as the default location of the library.
22535 hardcode_minus_L_F77=yes
22536 fi
22537 ;;
22538
22539 hpux11*)
22540 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22541 case $host_cpu in
22542 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022543 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022545 ia64*)
22546 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022548 *)
22549 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22550 ;;
22551 esac
22552 else
Reid Spencera773bd52006-08-04 18:18:08 +000022553 case $host_cpu in
22554 hppa*64*)
22555 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22556 ;;
22557 ia64*)
22558 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022559 ;;
22560 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022561 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 +000022562 ;;
22563 esac
22564 fi
22565 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022566 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22567 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022568
Reid Spencera773bd52006-08-04 18:18:08 +000022569 case $host_cpu in
22570 hppa*64*|ia64*)
22571 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22572 hardcode_direct_F77=no
22573 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022574 ;;
22575 *)
John Criswell47fdd832003-07-14 16:52:07 +000022576 hardcode_direct_F77=yes
22577 export_dynamic_flag_spec_F77='${wl}-E'
22578
22579 # hardcode_minus_L: Not really in the search PATH,
22580 # but as the default location of the library.
22581 hardcode_minus_L_F77=yes
22582 ;;
22583 esac
22584 fi
22585 ;;
22586
22587 irix5* | irix6* | nonstopux*)
22588 if test "$GCC" = yes; then
22589 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'
22590 else
22591 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'
22592 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22593 fi
22594 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22595 hardcode_libdir_separator_F77=:
22596 link_all_deplibs_F77=yes
22597 ;;
22598
22599 netbsd*)
22600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22601 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22602 else
22603 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22604 fi
22605 hardcode_libdir_flag_spec_F77='-R$libdir'
22606 hardcode_direct_F77=yes
22607 hardcode_shlibpath_var_F77=no
22608 ;;
22609
22610 newsos6)
22611 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22612 hardcode_direct_F77=yes
22613 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22614 hardcode_libdir_separator_F77=:
22615 hardcode_shlibpath_var_F77=no
22616 ;;
22617
22618 openbsd*)
22619 hardcode_direct_F77=yes
22620 hardcode_shlibpath_var_F77=no
22621 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22622 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022623 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 +000022624 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22625 export_dynamic_flag_spec_F77='${wl}-E'
22626 else
22627 case $host_os in
22628 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22630 hardcode_libdir_flag_spec_F77='-R$libdir'
22631 ;;
22632 *)
22633 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22635 ;;
22636 esac
22637 fi
22638 ;;
22639
22640 os2*)
22641 hardcode_libdir_flag_spec_F77='-L$libdir'
22642 hardcode_minus_L_F77=yes
22643 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022644 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 +000022645 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22646 ;;
22647
22648 osf3*)
22649 if test "$GCC" = yes; then
22650 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22651 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'
22652 else
22653 allow_undefined_flag_F77=' -expect_unresolved \*'
22654 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'
22655 fi
22656 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22657 hardcode_libdir_separator_F77=:
22658 ;;
22659
22660 osf4* | osf5*) # as osf3* with the addition of -msym flag
22661 if test "$GCC" = yes; then
22662 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22663 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'
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22665 else
22666 allow_undefined_flag_F77=' -expect_unresolved \*'
22667 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 +000022668 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 +000022669 $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 +000022670
John Criswell47fdd832003-07-14 16:52:07 +000022671 # Both c and cxx compiler support -rpath directly
22672 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22673 fi
22674 hardcode_libdir_separator_F77=:
22675 ;;
22676
John Criswell47fdd832003-07-14 16:52:07 +000022677 solaris*)
22678 no_undefined_flag_F77=' -z text'
22679 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022680 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022681 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022682 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22683 $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 +000022684 else
Reid Spencera773bd52006-08-04 18:18:08 +000022685 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022686 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022687 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22688 $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 +000022689 fi
22690 hardcode_libdir_flag_spec_F77='-R$libdir'
22691 hardcode_shlibpath_var_F77=no
22692 case $host_os in
22693 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022694 *)
22695 # The compiler driver will combine linker options so we
22696 # cannot just pass the convience library names through
22697 # without $wl, iff we do not link with $LD.
22698 # Luckily, gcc supports the same syntax we need for Sun Studio.
22699 # Supported since Solaris 2.6 (maybe 2.5.1?)
22700 case $wlarc in
22701 '')
22702 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22703 *)
22704 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' ;;
22705 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022706 esac
22707 link_all_deplibs_F77=yes
22708 ;;
22709
22710 sunos4*)
22711 if test "x$host_vendor" = xsequent; then
22712 # Use $CC to link under sequent, because it throws in some extra .o
22713 # files that make .init and .fini sections work.
22714 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22715 else
22716 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22717 fi
22718 hardcode_libdir_flag_spec_F77='-L$libdir'
22719 hardcode_direct_F77=yes
22720 hardcode_minus_L_F77=yes
22721 hardcode_shlibpath_var_F77=no
22722 ;;
22723
22724 sysv4)
22725 case $host_vendor in
22726 sni)
22727 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22728 hardcode_direct_F77=yes # is this really true???
22729 ;;
22730 siemens)
22731 ## LD is ld it makes a PLAMLIB
22732 ## CC just makes a GrossModule.
22733 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22734 reload_cmds_F77='$CC -r -o $output$reload_objs'
22735 hardcode_direct_F77=no
22736 ;;
22737 motorola)
22738 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22739 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22740 ;;
22741 esac
22742 runpath_var='LD_RUN_PATH'
22743 hardcode_shlibpath_var_F77=no
22744 ;;
22745
22746 sysv4.3*)
22747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22748 hardcode_shlibpath_var_F77=no
22749 export_dynamic_flag_spec_F77='-Bexport'
22750 ;;
22751
22752 sysv4*MP*)
22753 if test -d /usr/nec; then
22754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22755 hardcode_shlibpath_var_F77=no
22756 runpath_var=LD_RUN_PATH
22757 hardcode_runpath_var=yes
22758 ld_shlibs_F77=yes
22759 fi
22760 ;;
22761
Reid Spencera773bd52006-08-04 18:18:08 +000022762 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22763 no_undefined_flag_F77='${wl}-z,text'
22764 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022765 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022766 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022767
John Criswell47fdd832003-07-14 16:52:07 +000022768 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022769 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22770 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 +000022771 else
Reid Spencera773bd52006-08-04 18:18:08 +000022772 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22773 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 +000022774 fi
John Criswell47fdd832003-07-14 16:52:07 +000022775 ;;
22776
Reid Spencera773bd52006-08-04 18:18:08 +000022777 sysv5* | sco3.2v5* | sco5v6*)
22778 # Note: We can NOT use -z defs as we might desire, because we do not
22779 # link with -lc, and that would cause any symbols used from libc to
22780 # always be unresolved, which means just about no library would
22781 # ever link correctly. If we're not using GNU ld we use -z text
22782 # though, which does catch some bad symbols but isn't as heavy-handed
22783 # as -z defs.
22784 no_undefined_flag_F77='${wl}-z,text'
22785 allow_undefined_flag_F77='${wl}-z,nodefs'
22786 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022787 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022788 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22789 hardcode_libdir_separator_F77=':'
22790 link_all_deplibs_F77=yes
22791 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022792 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022793
22794 if test "$GCC" = yes; then
22795 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22796 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22797 else
22798 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22799 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22800 fi
John Criswell47fdd832003-07-14 16:52:07 +000022801 ;;
22802
22803 uts4*)
22804 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22805 hardcode_libdir_flag_spec_F77='-L$libdir'
22806 hardcode_shlibpath_var_F77=no
22807 ;;
22808
22809 *)
22810 ld_shlibs_F77=no
22811 ;;
22812 esac
22813 fi
22814
Reid Spencera773bd52006-08-04 18:18:08 +000022815{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22816echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022817test "$ld_shlibs_F77" = no && can_build_shared=no
22818
John Criswell47fdd832003-07-14 16:52:07 +000022819#
22820# Do we need to explicitly link libc?
22821#
22822case "x$archive_cmds_need_lc_F77" in
22823x|xyes)
22824 # Assume -lc should be added
22825 archive_cmds_need_lc_F77=yes
22826
22827 if test "$enable_shared" = yes && test "$GCC" = yes; then
22828 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022829 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022830 # FIXME: we may have to deal with multi-command sequences.
22831 ;;
22832 '$CC '*)
22833 # Test whether the compiler implicitly links with -lc since on some
22834 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22835 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022836 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22837echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022838 $rm conftest*
22839 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22840
22841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22842 (eval $ac_compile) 2>&5
22843 ac_status=$?
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } 2>conftest.err; then
22846 soname=conftest
22847 lib=conftest
22848 libobjs=conftest.$ac_objext
22849 deplibs=
22850 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022851 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022852 compiler_flags=-v
22853 linker_flags=-v
22854 verstring=
22855 output_objdir=.
22856 libname=conftest
22857 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22858 allow_undefined_flag_F77=
22859 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22860 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22861 ac_status=$?
22862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); }
22864 then
22865 archive_cmds_need_lc_F77=no
22866 else
22867 archive_cmds_need_lc_F77=yes
22868 fi
22869 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22870 else
22871 cat conftest.err 1>&5
22872 fi
22873 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022874 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22875echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022876 ;;
22877 esac
22878 fi
22879 ;;
22880esac
22881
Reid Spencera773bd52006-08-04 18:18:08 +000022882{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22883echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022884library_names_spec=
22885libname_spec='lib$name'
22886soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022888postinstall_cmds=
22889postuninstall_cmds=
22890finish_cmds=
22891finish_eval=
22892shlibpath_var=
22893shlibpath_overrides_runpath=unknown
22894version_type=none
22895dynamic_linker="$host_os ld.so"
22896sys_lib_dlsearch_path_spec="/lib /usr/lib"
22897if test "$GCC" = yes; then
22898 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22899 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22900 # if the path contains ";" then we assume it to be the separator
22901 # otherwise default to the standard path separator (i.e. ":") - it is
22902 # assumed that no part of a normal pathname contains ";" but that should
22903 # okay in the real world where ";" in dirpaths is itself problematic.
22904 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22905 else
22906 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22907 fi
22908else
22909 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22910fi
22911need_lib_prefix=unknown
22912hardcode_into_libs=no
22913
22914# when you set need_version to no, make sure it does not cause -set_version
22915# flags to be left without arguments
22916need_version=unknown
22917
22918case $host_os in
22919aix3*)
22920 version_type=linux
22921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22922 shlibpath_var=LIBPATH
22923
22924 # AIX 3 has no versioning support, so we append a major version to the name.
22925 soname_spec='${libname}${release}${shared_ext}$major'
22926 ;;
22927
22928aix4* | aix5*)
22929 version_type=linux
22930 need_lib_prefix=no
22931 need_version=no
22932 hardcode_into_libs=yes
22933 if test "$host_cpu" = ia64; then
22934 # AIX 5 supports IA64
22935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22936 shlibpath_var=LD_LIBRARY_PATH
22937 else
22938 # With GCC up to 2.95.x, collect2 would create an import file
22939 # for dependence libraries. The import file would start with
22940 # the line `#! .'. This would cause the generated library to
22941 # depend on `.', always an invalid library. This was fixed in
22942 # development snapshots of GCC prior to 3.0.
22943 case $host_os in
22944 aix4 | aix4.[01] | aix4.[01].*)
22945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22946 echo ' yes '
22947 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22948 :
22949 else
22950 can_build_shared=no
22951 fi
22952 ;;
22953 esac
22954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22955 # soname into executable. Probably we can add versioning support to
22956 # collect2, so additional links can be useful in future.
22957 if test "$aix_use_runtimelinking" = yes; then
22958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22959 # instead of lib<name>.a to let people know that these are not
22960 # typical AIX shared libraries.
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 else
22963 # We preserve .a as extension for shared libraries through AIX4.2
22964 # and later when we are not doing run time linking.
22965 library_names_spec='${libname}${release}.a $libname.a'
22966 soname_spec='${libname}${release}${shared_ext}$major'
22967 fi
22968 shlibpath_var=LIBPATH
22969 fi
22970 ;;
22971
22972amigaos*)
22973 library_names_spec='$libname.ixlibrary $libname.a'
22974 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022975 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 +000022976 ;;
22977
22978beos*)
22979 library_names_spec='${libname}${shared_ext}'
22980 dynamic_linker="$host_os ld.so"
22981 shlibpath_var=LIBRARY_PATH
22982 ;;
22983
Reid Spencer2706f8c2004-09-19 23:53:36 +000022984bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022985 version_type=linux
22986 need_version=no
22987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22988 soname_spec='${libname}${release}${shared_ext}$major'
22989 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22990 shlibpath_var=LD_LIBRARY_PATH
22991 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22992 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22993 # the default ld.so.conf also contains /usr/contrib/lib and
22994 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22995 # libtool to hard-code these into programs
22996 ;;
22997
22998cygwin* | mingw* | pw32*)
22999 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023001 need_version=no
23002 need_lib_prefix=no
23003
23004 case $GCC,$host_os in
23005 yes,cygwin* | yes,mingw* | yes,pw32*)
23006 library_names_spec='$libname.dll.a'
23007 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023008 postinstall_cmds='base_file=`basename \${file}`~
23009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23010 dldir=$destdir/`dirname \$dlpath`~
23011 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023012 $install_prog $dir/$dlname \$dldir/$dlname~
23013 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23015 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023016 $rm \$dlpath'
23017 shlibpath_overrides_runpath=yes
23018
23019 case $host_os in
23020 cygwin*)
23021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23022 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 +000023023 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023024 ;;
23025 mingw*)
23026 # MinGW DLLs use traditional 'lib' prefix
23027 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23029 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23030 # It is most probably a Windows format PATH printed by
23031 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23032 # path with ; separators, and with drive letters. We can handle the
23033 # drive letters (cygwin fileutils understands them), so leave them,
23034 # especially as we might pass files found there to a mingw objdump,
23035 # which wouldn't understand a cygwinified path. Ahh.
23036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23037 else
23038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23039 fi
23040 ;;
23041 pw32*)
23042 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023043 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 +000023044 ;;
23045 esac
23046 ;;
23047
23048 *)
23049 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23050 ;;
23051 esac
23052 dynamic_linker='Win32 ld.exe'
23053 # FIXME: first we should search . and the directory the executable is in
23054 shlibpath_var=PATH
23055 ;;
23056
23057darwin* | rhapsody*)
23058 dynamic_linker="$host_os dyld"
23059 version_type=darwin
23060 need_lib_prefix=no
23061 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023062 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023063 soname_spec='${libname}${release}${major}$shared_ext'
23064 shlibpath_overrides_runpath=yes
23065 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023066 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023067 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023068 if test "$GCC" = yes; then
23069 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"`
23070 else
23071 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023072 fi
23073 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23074 ;;
23075
23076dgux*)
23077 version_type=linux
23078 need_lib_prefix=no
23079 need_version=no
23080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23081 soname_spec='${libname}${release}${shared_ext}$major'
23082 shlibpath_var=LD_LIBRARY_PATH
23083 ;;
23084
23085freebsd1*)
23086 dynamic_linker=no
23087 ;;
23088
Reid Spencer2706f8c2004-09-19 23:53:36 +000023089kfreebsd*-gnu)
23090 version_type=linux
23091 need_lib_prefix=no
23092 need_version=no
23093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23094 soname_spec='${libname}${release}${shared_ext}$major'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 shlibpath_overrides_runpath=no
23097 hardcode_into_libs=yes
23098 dynamic_linker='GNU ld.so'
23099 ;;
23100
Reid Spencera773bd52006-08-04 18:18:08 +000023101freebsd* | dragonfly*)
23102 # DragonFly does not have aout. When/if they implement a new
23103 # versioning mechanism, adjust this.
23104 if test -x /usr/bin/objformat; then
23105 objformat=`/usr/bin/objformat`
23106 else
23107 case $host_os in
23108 freebsd[123]*) objformat=aout ;;
23109 *) objformat=elf ;;
23110 esac
23111 fi
John Criswell47fdd832003-07-14 16:52:07 +000023112 version_type=freebsd-$objformat
23113 case $version_type in
23114 freebsd-elf*)
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23116 need_version=no
23117 need_lib_prefix=no
23118 ;;
23119 freebsd-*)
23120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23121 need_version=yes
23122 ;;
23123 esac
23124 shlibpath_var=LD_LIBRARY_PATH
23125 case $host_os in
23126 freebsd2*)
23127 shlibpath_overrides_runpath=yes
23128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023129 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023130 shlibpath_overrides_runpath=yes
23131 hardcode_into_libs=yes
23132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023135 shlibpath_overrides_runpath=no
23136 hardcode_into_libs=yes
23137 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023138 freebsd*) # from 4.6 on
23139 shlibpath_overrides_runpath=yes
23140 hardcode_into_libs=yes
23141 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023142 esac
23143 ;;
23144
23145gnu*)
23146 version_type=linux
23147 need_lib_prefix=no
23148 need_version=no
23149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23150 soname_spec='${libname}${release}${shared_ext}$major'
23151 shlibpath_var=LD_LIBRARY_PATH
23152 hardcode_into_libs=yes
23153 ;;
23154
23155hpux9* | hpux10* | hpux11*)
23156 # Give a soname corresponding to the major version so that dld.sl refuses to
23157 # link against other versions.
23158 version_type=sunos
23159 need_lib_prefix=no
23160 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023161 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023162 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023163 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023164 hardcode_into_libs=yes
23165 dynamic_linker="$host_os dld.so"
23166 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23169 soname_spec='${libname}${release}${shared_ext}$major'
23170 if test "X$HPUX_IA64_MODE" = X32; then
23171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23172 else
23173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23174 fi
23175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23176 ;;
23177 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023179 hardcode_into_libs=yes
23180 dynamic_linker="$host_os dld.sl"
23181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184 soname_spec='${libname}${release}${shared_ext}$major'
23185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23187 ;;
23188 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023189 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023190 dynamic_linker="$host_os dld.sl"
23191 shlibpath_var=SHLIB_PATH
23192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23194 soname_spec='${libname}${release}${shared_ext}$major'
23195 ;;
23196 esac
23197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23198 postinstall_cmds='chmod 555 $lib'
23199 ;;
23200
Reid Spencera773bd52006-08-04 18:18:08 +000023201interix3*)
23202 version_type=linux
23203 need_lib_prefix=no
23204 need_version=no
23205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23206 soname_spec='${libname}${release}${shared_ext}$major'
23207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23208 shlibpath_var=LD_LIBRARY_PATH
23209 shlibpath_overrides_runpath=no
23210 hardcode_into_libs=yes
23211 ;;
23212
John Criswell47fdd832003-07-14 16:52:07 +000023213irix5* | irix6* | nonstopux*)
23214 case $host_os in
23215 nonstopux*) version_type=nonstopux ;;
23216 *)
23217 if test "$lt_cv_prog_gnu_ld" = yes; then
23218 version_type=linux
23219 else
23220 version_type=irix
23221 fi ;;
23222 esac
23223 need_lib_prefix=no
23224 need_version=no
23225 soname_spec='${libname}${release}${shared_ext}$major'
23226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23227 case $host_os in
23228 irix5* | nonstopux*)
23229 libsuff= shlibsuff=
23230 ;;
23231 *)
23232 case $LD in # libtool.m4 will add one of these switches to LD
23233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23234 libsuff= shlibsuff= libmagic=32-bit;;
23235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23236 libsuff=32 shlibsuff=N32 libmagic=N32;;
23237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23239 *) libsuff= shlibsuff= libmagic=never-match;;
23240 esac
23241 ;;
23242 esac
23243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23244 shlibpath_overrides_runpath=no
23245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23247 hardcode_into_libs=yes
23248 ;;
23249
23250# No shared lib support for Linux oldld, aout, or coff.
23251linux*oldld* | linux*aout* | linux*coff*)
23252 dynamic_linker=no
23253 ;;
23254
23255# This must be Linux ELF.
23256linux*)
23257 version_type=linux
23258 need_lib_prefix=no
23259 need_version=no
23260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23261 soname_spec='${libname}${release}${shared_ext}$major'
23262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23263 shlibpath_var=LD_LIBRARY_PATH
23264 shlibpath_overrides_runpath=no
23265 # This implies no fast_install, which is unacceptable.
23266 # Some rework will be needed to allow for fast_install
23267 # before this can be enabled.
23268 hardcode_into_libs=yes
23269
Reid Spencer2706f8c2004-09-19 23:53:36 +000023270 # Append ld.so.conf contents to the search path
23271 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023272 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 +000023273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23274 fi
23275
John Criswell47fdd832003-07-14 16:52:07 +000023276 # We used to test for /lib/ld.so.1 and disable shared libraries on
23277 # powerpc, because MkLinux only supported shared libraries with the
23278 # GNU dynamic linker. Since this was broken with cross compilers,
23279 # most powerpc-linux boxes support dynamic linking these days and
23280 # people can always --disable-shared, the test was removed, and we
23281 # assume the GNU/Linux dynamic linker is in use.
23282 dynamic_linker='GNU/Linux ld.so'
23283 ;;
23284
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285knetbsd*-gnu)
23286 version_type=linux
23287 need_lib_prefix=no
23288 need_version=no
23289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23290 soname_spec='${libname}${release}${shared_ext}$major'
23291 shlibpath_var=LD_LIBRARY_PATH
23292 shlibpath_overrides_runpath=no
23293 hardcode_into_libs=yes
23294 dynamic_linker='GNU ld.so'
23295 ;;
23296
John Criswell47fdd832003-07-14 16:52:07 +000023297netbsd*)
23298 version_type=sunos
23299 need_lib_prefix=no
23300 need_version=no
23301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23304 dynamic_linker='NetBSD (a.out) ld.so'
23305 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023307 soname_spec='${libname}${release}${shared_ext}$major'
23308 dynamic_linker='NetBSD ld.elf_so'
23309 fi
23310 shlibpath_var=LD_LIBRARY_PATH
23311 shlibpath_overrides_runpath=yes
23312 hardcode_into_libs=yes
23313 ;;
23314
23315newsos6)
23316 version_type=linux
23317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23318 shlibpath_var=LD_LIBRARY_PATH
23319 shlibpath_overrides_runpath=yes
23320 ;;
23321
Reid Spencer2706f8c2004-09-19 23:53:36 +000023322nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023323 version_type=linux
23324 need_lib_prefix=no
23325 need_version=no
23326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23327 soname_spec='${libname}${release}${shared_ext}$major'
23328 shlibpath_var=LD_LIBRARY_PATH
23329 shlibpath_overrides_runpath=yes
23330 ;;
23331
23332openbsd*)
23333 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023334 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023335 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023336 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23337 case $host_os in
23338 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23339 *) need_version=no ;;
23340 esac
John Criswell47fdd832003-07-14 16:52:07 +000023341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23343 shlibpath_var=LD_LIBRARY_PATH
23344 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23345 case $host_os in
23346 openbsd2.[89] | openbsd2.[89].*)
23347 shlibpath_overrides_runpath=no
23348 ;;
23349 *)
23350 shlibpath_overrides_runpath=yes
23351 ;;
23352 esac
23353 else
23354 shlibpath_overrides_runpath=yes
23355 fi
23356 ;;
23357
23358os2*)
23359 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023360 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023361 need_lib_prefix=no
23362 library_names_spec='$libname${shared_ext} $libname.a'
23363 dynamic_linker='OS/2 ld.exe'
23364 shlibpath_var=LIBPATH
23365 ;;
23366
23367osf3* | osf4* | osf5*)
23368 version_type=osf
23369 need_lib_prefix=no
23370 need_version=no
23371 soname_spec='${libname}${release}${shared_ext}$major'
23372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23373 shlibpath_var=LD_LIBRARY_PATH
23374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23376 ;;
23377
John Criswell47fdd832003-07-14 16:52:07 +000023378solaris*)
23379 version_type=linux
23380 need_lib_prefix=no
23381 need_version=no
23382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23383 soname_spec='${libname}${release}${shared_ext}$major'
23384 shlibpath_var=LD_LIBRARY_PATH
23385 shlibpath_overrides_runpath=yes
23386 hardcode_into_libs=yes
23387 # ldd complains unless libraries are executable
23388 postinstall_cmds='chmod +x $lib'
23389 ;;
23390
23391sunos4*)
23392 version_type=sunos
23393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23394 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23395 shlibpath_var=LD_LIBRARY_PATH
23396 shlibpath_overrides_runpath=yes
23397 if test "$with_gnu_ld" = yes; then
23398 need_lib_prefix=no
23399 fi
23400 need_version=yes
23401 ;;
23402
Reid Spencera773bd52006-08-04 18:18:08 +000023403sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023404 version_type=linux
23405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23406 soname_spec='${libname}${release}${shared_ext}$major'
23407 shlibpath_var=LD_LIBRARY_PATH
23408 case $host_vendor in
23409 sni)
23410 shlibpath_overrides_runpath=no
23411 need_lib_prefix=no
23412 export_dynamic_flag_spec='${wl}-Blargedynsym'
23413 runpath_var=LD_RUN_PATH
23414 ;;
23415 siemens)
23416 need_lib_prefix=no
23417 ;;
23418 motorola)
23419 need_lib_prefix=no
23420 need_version=no
23421 shlibpath_overrides_runpath=no
23422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23423 ;;
23424 esac
23425 ;;
23426
23427sysv4*MP*)
23428 if test -d /usr/nec ;then
23429 version_type=linux
23430 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23431 soname_spec='$libname${shared_ext}.$major'
23432 shlibpath_var=LD_LIBRARY_PATH
23433 fi
23434 ;;
23435
Reid Spencera773bd52006-08-04 18:18:08 +000023436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23437 version_type=freebsd-elf
23438 need_lib_prefix=no
23439 need_version=no
23440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23441 soname_spec='${libname}${release}${shared_ext}$major'
23442 shlibpath_var=LD_LIBRARY_PATH
23443 hardcode_into_libs=yes
23444 if test "$with_gnu_ld" = yes; then
23445 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23446 shlibpath_overrides_runpath=no
23447 else
23448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23449 shlibpath_overrides_runpath=yes
23450 case $host_os in
23451 sco3.2v5*)
23452 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23453 ;;
23454 esac
23455 fi
23456 sys_lib_dlsearch_path_spec='/usr/lib'
23457 ;;
23458
John Criswell47fdd832003-07-14 16:52:07 +000023459uts4*)
23460 version_type=linux
23461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23462 soname_spec='${libname}${release}${shared_ext}$major'
23463 shlibpath_var=LD_LIBRARY_PATH
23464 ;;
23465
23466*)
23467 dynamic_linker=no
23468 ;;
23469esac
Reid Spencera773bd52006-08-04 18:18:08 +000023470{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23471echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023472test "$dynamic_linker" = no && can_build_shared=no
23473
Reid Spencera773bd52006-08-04 18:18:08 +000023474variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23475if test "$GCC" = yes; then
23476 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23477fi
23478
23479{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23480echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023481hardcode_action_F77=
23482if test -n "$hardcode_libdir_flag_spec_F77" || \
23483 test -n "$runpath_var_F77" || \
23484 test "X$hardcode_automatic_F77" = "Xyes" ; then
23485
23486 # We can hardcode non-existant directories.
23487 if test "$hardcode_direct_F77" != no &&
23488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23489 # have to relink, otherwise we might link with an installed library
23490 # when we should be linking with a yet-to-be-installed one
23491 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23492 test "$hardcode_minus_L_F77" != no; then
23493 # Linking always hardcodes the temporary library directory.
23494 hardcode_action_F77=relink
23495 else
23496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23497 hardcode_action_F77=immediate
23498 fi
23499else
23500 # We cannot hardcode anything, or else we can only hardcode existing
23501 # directories.
23502 hardcode_action_F77=unsupported
23503fi
Reid Spencera773bd52006-08-04 18:18:08 +000023504{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23505echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506
23507if test "$hardcode_action_F77" = relink; then
23508 # Fast installation is not supported
23509 enable_fast_install=no
23510elif test "$shlibpath_overrides_runpath" = yes ||
23511 test "$enable_shared" = no; then
23512 # Fast installation is not necessary
23513 enable_fast_install=needless
23514fi
23515
John Criswell47fdd832003-07-14 16:52:07 +000023516
23517# The else clause should only fire when bootstrapping the
23518# libtool distribution, otherwise you forgot to ship ltmain.sh
23519# with your package, and you will get complaints that there are
23520# no rules to generate ltmain.sh.
23521if test -f "$ltmain"; then
23522 # See if we are running on zsh, and set the options which allow our commands through
23523 # without removal of \ escapes.
23524 if test -n "${ZSH_VERSION+set}" ; then
23525 setopt NO_GLOB_SUBST
23526 fi
23527 # Now quote all the things that may contain metacharacters while being
23528 # careful not to overquote the AC_SUBSTed values. We take copies of the
23529 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023530 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 +000023531 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023532 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23533 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23534 deplibs_check_method reload_flag reload_cmds need_locks \
23535 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23536 lt_cv_sys_global_symbol_to_c_name_address \
23537 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23538 old_postinstall_cmds old_postuninstall_cmds \
23539 compiler_F77 \
23540 CC_F77 \
23541 LD_F77 \
23542 lt_prog_compiler_wl_F77 \
23543 lt_prog_compiler_pic_F77 \
23544 lt_prog_compiler_static_F77 \
23545 lt_prog_compiler_no_builtin_flag_F77 \
23546 export_dynamic_flag_spec_F77 \
23547 thread_safe_flag_spec_F77 \
23548 whole_archive_flag_spec_F77 \
23549 enable_shared_with_static_runtimes_F77 \
23550 old_archive_cmds_F77 \
23551 old_archive_from_new_cmds_F77 \
23552 predep_objects_F77 \
23553 postdep_objects_F77 \
23554 predeps_F77 \
23555 postdeps_F77 \
23556 compiler_lib_search_path_F77 \
23557 archive_cmds_F77 \
23558 archive_expsym_cmds_F77 \
23559 postinstall_cmds_F77 \
23560 postuninstall_cmds_F77 \
23561 old_archive_from_expsyms_cmds_F77 \
23562 allow_undefined_flag_F77 \
23563 no_undefined_flag_F77 \
23564 export_symbols_cmds_F77 \
23565 hardcode_libdir_flag_spec_F77 \
23566 hardcode_libdir_flag_spec_ld_F77 \
23567 hardcode_libdir_separator_F77 \
23568 hardcode_automatic_F77 \
23569 module_cmds_F77 \
23570 module_expsym_cmds_F77 \
23571 lt_cv_prog_compiler_c_o_F77 \
23572 exclude_expsyms_F77 \
23573 include_expsyms_F77; do
23574
23575 case $var in
23576 old_archive_cmds_F77 | \
23577 old_archive_from_new_cmds_F77 | \
23578 archive_cmds_F77 | \
23579 archive_expsym_cmds_F77 | \
23580 module_cmds_F77 | \
23581 module_expsym_cmds_F77 | \
23582 old_archive_from_expsyms_cmds_F77 | \
23583 export_symbols_cmds_F77 | \
23584 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23585 postinstall_cmds | postuninstall_cmds | \
23586 old_postinstall_cmds | old_postuninstall_cmds | \
23587 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23588 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023589 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 +000023590 ;;
23591 *)
23592 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23593 ;;
23594 esac
23595 done
23596
23597 case $lt_echo in
23598 *'\$0 --fallback-echo"')
23599 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23600 ;;
23601 esac
23602
23603cfgfile="$ofile"
23604
23605 cat <<__EOF__ >> "$cfgfile"
23606# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23607
23608# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23609
23610# Shell to use when invoking shell scripts.
23611SHELL=$lt_SHELL
23612
23613# Whether or not to build shared libraries.
23614build_libtool_libs=$enable_shared
23615
23616# Whether or not to build static libraries.
23617build_old_libs=$enable_static
23618
23619# Whether or not to add -lc for building shared libraries.
23620build_libtool_need_lc=$archive_cmds_need_lc_F77
23621
23622# Whether or not to disallow shared libs when runtime libs are static
23623allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23624
23625# Whether or not to optimize for fast installation.
23626fast_install=$enable_fast_install
23627
23628# The host system.
23629host_alias=$host_alias
23630host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023631host_os=$host_os
23632
23633# The build system.
23634build_alias=$build_alias
23635build=$build
23636build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023637
23638# An echo program that does not interpret backslashes.
23639echo=$lt_echo
23640
23641# The archiver.
23642AR=$lt_AR
23643AR_FLAGS=$lt_AR_FLAGS
23644
23645# A C compiler.
23646LTCC=$lt_LTCC
23647
Reid Spencera773bd52006-08-04 18:18:08 +000023648# LTCC compiler flags.
23649LTCFLAGS=$lt_LTCFLAGS
23650
John Criswell47fdd832003-07-14 16:52:07 +000023651# A language-specific compiler.
23652CC=$lt_compiler_F77
23653
23654# Is the compiler the GNU C compiler?
23655with_gcc=$GCC_F77
23656
23657# An ERE matcher.
23658EGREP=$lt_EGREP
23659
23660# The linker used to build libraries.
23661LD=$lt_LD_F77
23662
23663# Whether we need hard or soft links.
23664LN_S=$lt_LN_S
23665
23666# A BSD-compatible nm program.
23667NM=$lt_NM
23668
23669# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023670STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023671
23672# Used to examine libraries when file_magic_cmd begins "file"
23673MAGIC_CMD=$MAGIC_CMD
23674
23675# Used on cygwin: DLL creation program.
23676DLLTOOL="$DLLTOOL"
23677
23678# Used on cygwin: object dumper.
23679OBJDUMP="$OBJDUMP"
23680
23681# Used on cygwin: assembler.
23682AS="$AS"
23683
23684# The name of the directory that contains temporary libtool files.
23685objdir=$objdir
23686
23687# How to create reloadable object files.
23688reload_flag=$lt_reload_flag
23689reload_cmds=$lt_reload_cmds
23690
23691# How to pass a linker flag through the compiler.
23692wl=$lt_lt_prog_compiler_wl_F77
23693
23694# Object file suffix (normally "o").
23695objext="$ac_objext"
23696
23697# Old archive suffix (normally "a").
23698libext="$libext"
23699
23700# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023701shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023702
23703# Executable file suffix (normally "").
23704exeext="$exeext"
23705
23706# Additional compiler flags for building library objects.
23707pic_flag=$lt_lt_prog_compiler_pic_F77
23708pic_mode=$pic_mode
23709
23710# What is the maximum length of a command?
23711max_cmd_len=$lt_cv_sys_max_cmd_len
23712
23713# Does compiler simultaneously support -c and -o options?
23714compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23715
Reid Spencera773bd52006-08-04 18:18:08 +000023716# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023717need_locks=$lt_need_locks
23718
23719# Do we need the lib prefix for modules?
23720need_lib_prefix=$need_lib_prefix
23721
23722# Do we need a version for libraries?
23723need_version=$need_version
23724
23725# Whether dlopen is supported.
23726dlopen_support=$enable_dlopen
23727
23728# Whether dlopen of programs is supported.
23729dlopen_self=$enable_dlopen_self
23730
23731# Whether dlopen of statically linked programs is supported.
23732dlopen_self_static=$enable_dlopen_self_static
23733
23734# Compiler flag to prevent dynamic linking.
23735link_static_flag=$lt_lt_prog_compiler_static_F77
23736
23737# Compiler flag to turn off builtin functions.
23738no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23739
23740# Compiler flag to allow reflexive dlopens.
23741export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23742
23743# Compiler flag to generate shared objects directly from archives.
23744whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23745
23746# Compiler flag to generate thread-safe objects.
23747thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23748
23749# Library versioning type.
23750version_type=$version_type
23751
23752# Format of library name prefix.
23753libname_spec=$lt_libname_spec
23754
23755# List of archive names. First name is the real one, the rest are links.
23756# The last name is the one that the linker finds with -lNAME.
23757library_names_spec=$lt_library_names_spec
23758
23759# The coded name of the library, if different from the real name.
23760soname_spec=$lt_soname_spec
23761
23762# Commands used to build and install an old-style archive.
23763RANLIB=$lt_RANLIB
23764old_archive_cmds=$lt_old_archive_cmds_F77
23765old_postinstall_cmds=$lt_old_postinstall_cmds
23766old_postuninstall_cmds=$lt_old_postuninstall_cmds
23767
23768# Create an old-style archive from a shared archive.
23769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23770
23771# Create a temporary old-style archive to link instead of a shared archive.
23772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23773
23774# Commands used to build and install a shared archive.
23775archive_cmds=$lt_archive_cmds_F77
23776archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23777postinstall_cmds=$lt_postinstall_cmds
23778postuninstall_cmds=$lt_postuninstall_cmds
23779
23780# Commands used to build a loadable module (assumed same as above if empty)
23781module_cmds=$lt_module_cmds_F77
23782module_expsym_cmds=$lt_module_expsym_cmds_F77
23783
23784# Commands to strip libraries.
23785old_striplib=$lt_old_striplib
23786striplib=$lt_striplib
23787
23788# Dependencies to place before the objects being linked to create a
23789# shared library.
23790predep_objects=$lt_predep_objects_F77
23791
23792# Dependencies to place after the objects being linked to create a
23793# shared library.
23794postdep_objects=$lt_postdep_objects_F77
23795
23796# Dependencies to place before the objects being linked to create a
23797# shared library.
23798predeps=$lt_predeps_F77
23799
23800# Dependencies to place after the objects being linked to create a
23801# shared library.
23802postdeps=$lt_postdeps_F77
23803
23804# The library search path used internally by the compiler when linking
23805# a shared library.
23806compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23807
23808# Method to check whether dependent libraries are shared objects.
23809deplibs_check_method=$lt_deplibs_check_method
23810
23811# Command to use when deplibs_check_method == file_magic.
23812file_magic_cmd=$lt_file_magic_cmd
23813
23814# Flag that allows shared libraries with undefined symbols to be built.
23815allow_undefined_flag=$lt_allow_undefined_flag_F77
23816
23817# Flag that forces no undefined symbols.
23818no_undefined_flag=$lt_no_undefined_flag_F77
23819
23820# Commands used to finish a libtool library installation in a directory.
23821finish_cmds=$lt_finish_cmds
23822
23823# Same as above, but a single script fragment to be evaled but not shown.
23824finish_eval=$lt_finish_eval
23825
23826# Take the output of nm and produce a listing of raw symbols and C names.
23827global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23828
23829# Transform the output of nm in a proper C declaration
23830global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23831
23832# Transform the output of nm in a C name address pair
23833global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23834
23835# This is the shared library runtime path variable.
23836runpath_var=$runpath_var
23837
23838# This is the shared library path variable.
23839shlibpath_var=$shlibpath_var
23840
23841# Is shlibpath searched before the hard-coded library search path?
23842shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23843
23844# How to hardcode a shared library path into an executable.
23845hardcode_action=$hardcode_action_F77
23846
23847# Whether we should hardcode library paths into libraries.
23848hardcode_into_libs=$hardcode_into_libs
23849
23850# Flag to hardcode \$libdir into a binary during linking.
23851# This must work even if \$libdir does not exist.
23852hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23853
23854# If ld is used when linking, flag to hardcode \$libdir into
23855# a binary during linking. This must work even if \$libdir does
23856# not exist.
23857hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23858
23859# Whether we need a single -rpath flag with a separated argument.
23860hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23861
23862# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23863# resulting binary.
23864hardcode_direct=$hardcode_direct_F77
23865
23866# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23867# resulting binary.
23868hardcode_minus_L=$hardcode_minus_L_F77
23869
23870# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23871# the resulting binary.
23872hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23873
23874# Set to yes if building a shared library automatically hardcodes DIR into the library
23875# and all subsequent libraries and executables linked against it.
23876hardcode_automatic=$hardcode_automatic_F77
23877
23878# Variables whose values should be saved in libtool wrapper scripts and
23879# restored at relink time.
23880variables_saved_for_relink="$variables_saved_for_relink"
23881
23882# Whether libtool must link a program against all its dependency libraries.
23883link_all_deplibs=$link_all_deplibs_F77
23884
23885# Compile-time system search path for libraries
23886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23887
23888# Run-time system search path for libraries
23889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23890
23891# Fix the shell variable \$srcfile for the compiler.
23892fix_srcfile_path="$fix_srcfile_path_F77"
23893
23894# Set to yes if exported symbols are required.
23895always_export_symbols=$always_export_symbols_F77
23896
23897# The commands to list exported symbols.
23898export_symbols_cmds=$lt_export_symbols_cmds_F77
23899
23900# The commands to extract the exported symbol list from a shared archive.
23901extract_expsyms_cmds=$lt_extract_expsyms_cmds
23902
23903# Symbols that should not be listed in the preloaded symbols.
23904exclude_expsyms=$lt_exclude_expsyms_F77
23905
23906# Symbols that must always be exported.
23907include_expsyms=$lt_include_expsyms_F77
23908
23909# ### END LIBTOOL TAG CONFIG: $tagname
23910
23911__EOF__
23912
23913
23914else
23915 # If there is no Makefile yet, we rely on a make rule to execute
23916 # `config.status --recheck' to rerun these tests and create the
23917 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023918 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23919 if test -f "$ltmain_in"; then
23920 test -f Makefile && make "$ltmain"
23921 fi
John Criswell47fdd832003-07-14 16:52:07 +000023922fi
23923
23924
23925ac_ext=c
23926ac_cpp='$CPP $CPPFLAGS'
23927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23929ac_compiler_gnu=$ac_cv_c_compiler_gnu
23930
23931CC="$lt_save_CC"
23932
23933 else
23934 tagname=""
23935 fi
23936 ;;
23937
23938 GCJ)
23939 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023940 ac_ext=c
23941ac_cpp='$CPP $CPPFLAGS'
23942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23944ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023945
23946
23947# Source file extension for Java test sources.
23948ac_ext=java
23949
23950# Object file extension for compiled Java test sources.
23951objext=o
23952objext_GCJ=$objext
23953
23954# Code to be used in simple compile tests
23955lt_simple_compile_test_code="class foo {}\n"
23956
23957# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023958lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023959
23960# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23961
23962# If no C compiler was specified, use CC.
23963LTCC=${LTCC-"$CC"}
23964
Reid Spencera773bd52006-08-04 18:18:08 +000023965# If no C compiler flags were specified, use CFLAGS.
23966LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23967
John Criswell47fdd832003-07-14 16:52:07 +000023968# Allow CC to be a program name with arguments.
23969compiler=$CC
23970
23971
Reid Spencera773bd52006-08-04 18:18:08 +000023972# save warnings/boilerplate of simple test code
23973ac_outfile=conftest.$ac_objext
23974printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23975eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23976_lt_compiler_boilerplate=`cat conftest.err`
23977$rm conftest*
23978
23979ac_outfile=conftest.$ac_objext
23980printf "$lt_simple_link_test_code" >conftest.$ac_ext
23981eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23982_lt_linker_boilerplate=`cat conftest.err`
23983$rm conftest*
23984
23985
John Criswell47fdd832003-07-14 16:52:07 +000023986# Allow CC to be a program name with arguments.
23987lt_save_CC="$CC"
23988CC=${GCJ-"gcj"}
23989compiler=$CC
23990compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023991for cc_temp in $compiler""; do
23992 case $cc_temp in
23993 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23994 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23995 \-*) ;;
23996 *) break;;
23997 esac
23998done
23999cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24000
John Criswell47fdd832003-07-14 16:52:07 +000024001
24002# GCJ did not exist at the time GCC didn't implicitly link libc in.
24003archive_cmds_need_lc_GCJ=no
24004
Reid Spencera773bd52006-08-04 18:18:08 +000024005old_archive_cmds_GCJ=$old_archive_cmds
24006
John Criswell47fdd832003-07-14 16:52:07 +000024007
24008lt_prog_compiler_no_builtin_flag_GCJ=
24009
24010if test "$GCC" = yes; then
24011 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24012
Reid Spencer2706f8c2004-09-19 23:53:36 +000024013
Reid Spencera773bd52006-08-04 18:18:08 +000024014{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24015echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024016if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24017 echo $ECHO_N "(cached) $ECHO_C" >&6
24018else
24019 lt_cv_prog_compiler_rtti_exceptions=no
24020 ac_outfile=conftest.$ac_objext
24021 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24022 lt_compiler_flag="-fno-rtti -fno-exceptions"
24023 # Insert the option either (1) after the last *FLAGS variable, or
24024 # (2) before a word containing "conftest.", or (3) at the end.
24025 # Note that $ac_compile itself does not contain backslashes and begins
24026 # with a dollar sign (not a hyphen), so the echo should work correctly.
24027 # The option is referenced via a variable to avoid confusing sed.
24028 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024029 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024030 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24031 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024032 (eval echo "\"\$as_me:24032: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024033 (eval "$lt_compile" 2>conftest.err)
24034 ac_status=$?
24035 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024036 echo "$as_me:24036: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024037 if (exit $ac_status) && test -s "$ac_outfile"; then
24038 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024039 # So say no if there are warnings other than the usual output.
24040 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24041 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24042 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024043 lt_cv_prog_compiler_rtti_exceptions=yes
24044 fi
24045 fi
24046 $rm conftest*
24047
24048fi
Reid Spencera773bd52006-08-04 18:18:08 +000024049{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24050echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024051
24052if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24053 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24054else
24055 :
24056fi
24057
24058fi
24059
24060lt_prog_compiler_wl_GCJ=
24061lt_prog_compiler_pic_GCJ=
24062lt_prog_compiler_static_GCJ=
24063
Reid Spencera773bd52006-08-04 18:18:08 +000024064{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24065echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024066
24067 if test "$GCC" = yes; then
24068 lt_prog_compiler_wl_GCJ='-Wl,'
24069 lt_prog_compiler_static_GCJ='-static'
24070
24071 case $host_os in
24072 aix*)
24073 # All AIX code is PIC.
24074 if test "$host_cpu" = ia64; then
24075 # AIX 5 now supports IA64 processor
24076 lt_prog_compiler_static_GCJ='-Bstatic'
24077 fi
24078 ;;
24079
24080 amigaos*)
24081 # FIXME: we need at least 68020 code to build shared libraries, but
24082 # adding the `-m68020' flag to GCC prevents building anything better,
24083 # like `-m68040'.
24084 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24085 ;;
24086
24087 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24088 # PIC is the default for these OSes.
24089 ;;
24090
24091 mingw* | pw32* | os2*)
24092 # This hack is so that the source file can tell whether it is being
24093 # built for inclusion in a dll (and should export symbols for example).
24094 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24095 ;;
24096
24097 darwin* | rhapsody*)
24098 # PIC is the default on this platform
24099 # Common symbols not allowed in MH_DYLIB files
24100 lt_prog_compiler_pic_GCJ='-fno-common'
24101 ;;
24102
Reid Spencera773bd52006-08-04 18:18:08 +000024103 interix3*)
24104 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24105 # Instead, we relocate shared libraries at runtime.
24106 ;;
24107
John Criswell47fdd832003-07-14 16:52:07 +000024108 msdosdjgpp*)
24109 # Just because we use GCC doesn't mean we suddenly get shared libraries
24110 # on systems that don't support them.
24111 lt_prog_compiler_can_build_shared_GCJ=no
24112 enable_shared=no
24113 ;;
24114
24115 sysv4*MP*)
24116 if test -d /usr/nec; then
24117 lt_prog_compiler_pic_GCJ=-Kconform_pic
24118 fi
24119 ;;
24120
24121 hpux*)
24122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24123 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024124 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024125 hppa*64*|ia64*)
24126 # +Z the default
24127 ;;
24128 *)
24129 lt_prog_compiler_pic_GCJ='-fPIC'
24130 ;;
24131 esac
24132 ;;
24133
24134 *)
24135 lt_prog_compiler_pic_GCJ='-fPIC'
24136 ;;
24137 esac
24138 else
24139 # PORTME Check for flag to pass linker flags through the system compiler.
24140 case $host_os in
24141 aix*)
24142 lt_prog_compiler_wl_GCJ='-Wl,'
24143 if test "$host_cpu" = ia64; then
24144 # AIX 5 now supports IA64 processor
24145 lt_prog_compiler_static_GCJ='-Bstatic'
24146 else
24147 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24148 fi
24149 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024150 darwin*)
24151 # PIC is the default on this platform
24152 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024153 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024154 xlc*)
24155 lt_prog_compiler_pic_GCJ='-qnocommon'
24156 lt_prog_compiler_wl_GCJ='-Wl,'
24157 ;;
24158 esac
24159 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024160
24161 mingw* | pw32* | os2*)
24162 # This hack is so that the source file can tell whether it is being
24163 # built for inclusion in a dll (and should export symbols for example).
24164 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24165 ;;
24166
24167 hpux9* | hpux10* | hpux11*)
24168 lt_prog_compiler_wl_GCJ='-Wl,'
24169 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24170 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024171 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024172 hppa*64*|ia64*)
24173 # +Z the default
24174 ;;
24175 *)
24176 lt_prog_compiler_pic_GCJ='+Z'
24177 ;;
24178 esac
24179 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24180 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24181 ;;
24182
24183 irix5* | irix6* | nonstopux*)
24184 lt_prog_compiler_wl_GCJ='-Wl,'
24185 # PIC (with -KPIC) is the default.
24186 lt_prog_compiler_static_GCJ='-non_shared'
24187 ;;
24188
24189 newsos6)
24190 lt_prog_compiler_pic_GCJ='-KPIC'
24191 lt_prog_compiler_static_GCJ='-Bstatic'
24192 ;;
24193
24194 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024195 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024196 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024197 lt_prog_compiler_wl_GCJ='-Wl,'
24198 lt_prog_compiler_pic_GCJ='-KPIC'
24199 lt_prog_compiler_static_GCJ='-static'
24200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024201 pgcc* | pgf77* | pgf90* | pgf95*)
24202 # Portland Group compilers (*not* the Pentium gcc compiler,
24203 # which looks to be a dead project)
24204 lt_prog_compiler_wl_GCJ='-Wl,'
24205 lt_prog_compiler_pic_GCJ='-fpic'
24206 lt_prog_compiler_static_GCJ='-Bstatic'
24207 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024208 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024209 lt_prog_compiler_wl_GCJ='-Wl,'
24210 # All Alpha code is PIC.
24211 lt_prog_compiler_static_GCJ='-non_shared'
24212 ;;
24213 esac
24214 ;;
24215
24216 osf3* | osf4* | osf5*)
24217 lt_prog_compiler_wl_GCJ='-Wl,'
24218 # All OSF/1 code is PIC.
24219 lt_prog_compiler_static_GCJ='-non_shared'
24220 ;;
24221
John Criswell47fdd832003-07-14 16:52:07 +000024222 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024223 lt_prog_compiler_pic_GCJ='-KPIC'
24224 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024225 case $cc_basename in
24226 f77* | f90* | f95*)
24227 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24228 *)
24229 lt_prog_compiler_wl_GCJ='-Wl,';;
24230 esac
John Criswell47fdd832003-07-14 16:52:07 +000024231 ;;
24232
24233 sunos4*)
24234 lt_prog_compiler_wl_GCJ='-Qoption ld '
24235 lt_prog_compiler_pic_GCJ='-PIC'
24236 lt_prog_compiler_static_GCJ='-Bstatic'
24237 ;;
24238
Reid Spencera773bd52006-08-04 18:18:08 +000024239 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024240 lt_prog_compiler_wl_GCJ='-Wl,'
24241 lt_prog_compiler_pic_GCJ='-KPIC'
24242 lt_prog_compiler_static_GCJ='-Bstatic'
24243 ;;
24244
24245 sysv4*MP*)
24246 if test -d /usr/nec ;then
24247 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24248 lt_prog_compiler_static_GCJ='-Bstatic'
24249 fi
24250 ;;
24251
Reid Spencera773bd52006-08-04 18:18:08 +000024252 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24253 lt_prog_compiler_wl_GCJ='-Wl,'
24254 lt_prog_compiler_pic_GCJ='-KPIC'
24255 lt_prog_compiler_static_GCJ='-Bstatic'
24256 ;;
24257
24258 unicos*)
24259 lt_prog_compiler_wl_GCJ='-Wl,'
24260 lt_prog_compiler_can_build_shared_GCJ=no
24261 ;;
24262
John Criswell47fdd832003-07-14 16:52:07 +000024263 uts4*)
24264 lt_prog_compiler_pic_GCJ='-pic'
24265 lt_prog_compiler_static_GCJ='-Bstatic'
24266 ;;
24267
24268 *)
24269 lt_prog_compiler_can_build_shared_GCJ=no
24270 ;;
24271 esac
24272 fi
24273
Reid Spencera773bd52006-08-04 18:18:08 +000024274{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24275echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024276
24277#
24278# Check to make sure the PIC flag actually works.
24279#
24280if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024281
Reid Spencera773bd52006-08-04 18:18:08 +000024282{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24283echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024284if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24285 echo $ECHO_N "(cached) $ECHO_C" >&6
24286else
24287 lt_prog_compiler_pic_works_GCJ=no
24288 ac_outfile=conftest.$ac_objext
24289 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24290 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24291 # Insert the option either (1) after the last *FLAGS variable, or
24292 # (2) before a word containing "conftest.", or (3) at the end.
24293 # Note that $ac_compile itself does not contain backslashes and begins
24294 # with a dollar sign (not a hyphen), so the echo should work correctly.
24295 # The option is referenced via a variable to avoid confusing sed.
24296 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024297 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024298 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24299 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024300 (eval echo "\"\$as_me:24300: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024301 (eval "$lt_compile" 2>conftest.err)
24302 ac_status=$?
24303 cat conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024304 echo "$as_me:24304: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024305 if (exit $ac_status) && test -s "$ac_outfile"; then
24306 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024307 # So say no if there are warnings other than the usual output.
24308 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24309 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24310 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024311 lt_prog_compiler_pic_works_GCJ=yes
24312 fi
24313 fi
24314 $rm conftest*
24315
24316fi
Reid Spencera773bd52006-08-04 18:18:08 +000024317{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24318echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024319
24320if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24321 case $lt_prog_compiler_pic_GCJ in
24322 "" | " "*) ;;
24323 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24324 esac
24325else
24326 lt_prog_compiler_pic_GCJ=
24327 lt_prog_compiler_can_build_shared_GCJ=no
24328fi
24329
24330fi
Reid Spencera773bd52006-08-04 18:18:08 +000024331case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024332 # For platforms which do not support PIC, -DPIC is meaningless:
24333 *djgpp*)
24334 lt_prog_compiler_pic_GCJ=
24335 ;;
24336 *)
24337 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24338 ;;
24339esac
24340
Reid Spencera773bd52006-08-04 18:18:08 +000024341#
24342# Check to make sure the static flag actually works.
24343#
24344wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24345{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24346echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24347if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24348 echo $ECHO_N "(cached) $ECHO_C" >&6
24349else
24350 lt_prog_compiler_static_works_GCJ=no
24351 save_LDFLAGS="$LDFLAGS"
24352 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24353 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24354 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24355 # The linker can only warn and ignore the option if not recognized
24356 # So say no if there are warnings
24357 if test -s conftest.err; then
24358 # Append any errors to the config.log.
24359 cat conftest.err 1>&5
24360 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24361 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24362 if diff conftest.exp conftest.er2 >/dev/null; then
24363 lt_prog_compiler_static_works_GCJ=yes
24364 fi
24365 else
24366 lt_prog_compiler_static_works_GCJ=yes
24367 fi
24368 fi
24369 $rm conftest*
24370 LDFLAGS="$save_LDFLAGS"
24371
24372fi
24373{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24374echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24375
24376if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24377 :
24378else
24379 lt_prog_compiler_static_GCJ=
24380fi
24381
24382
24383{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24384echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024385if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24386 echo $ECHO_N "(cached) $ECHO_C" >&6
24387else
24388 lt_cv_prog_compiler_c_o_GCJ=no
24389 $rm -r conftest 2>/dev/null
24390 mkdir conftest
24391 cd conftest
24392 mkdir out
24393 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24394
John Criswell47fdd832003-07-14 16:52:07 +000024395 lt_compiler_flag="-o out/conftest2.$ac_objext"
24396 # Insert the option either (1) after the last *FLAGS variable, or
24397 # (2) before a word containing "conftest.", or (3) at the end.
24398 # Note that $ac_compile itself does not contain backslashes and begins
24399 # with a dollar sign (not a hyphen), so the echo should work correctly.
24400 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024401 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024402 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24403 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024404 (eval echo "\"\$as_me:24404: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024405 (eval "$lt_compile" 2>out/conftest.err)
24406 ac_status=$?
24407 cat out/conftest.err >&5
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000024408 echo "$as_me:24408: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024409 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24410 then
24411 # The compiler can only warn and ignore the option if not recognized
24412 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024413 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24414 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24415 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024416 lt_cv_prog_compiler_c_o_GCJ=yes
24417 fi
24418 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024419 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024420 $rm conftest*
24421 # SGI C++ compiler will create directory out/ii_files/ for
24422 # template instantiation
24423 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24424 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024425 cd ..
24426 rmdir conftest
24427 $rm conftest*
24428
24429fi
Reid Spencera773bd52006-08-04 18:18:08 +000024430{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24431echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024432
24433
24434hard_links="nottested"
24435if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24436 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024437 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24438echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024439 hard_links=yes
24440 $rm conftest*
24441 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24442 touch conftest.a
24443 ln conftest.a conftest.b 2>&5 || hard_links=no
24444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024445 { echo "$as_me:$LINENO: result: $hard_links" >&5
24446echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024447 if test "$hard_links" = no; then
24448 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24449echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24450 need_locks=warn
24451 fi
24452else
24453 need_locks=no
24454fi
24455
Reid Spencera773bd52006-08-04 18:18:08 +000024456{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24457echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024458
24459 runpath_var=
24460 allow_undefined_flag_GCJ=
24461 enable_shared_with_static_runtimes_GCJ=no
24462 archive_cmds_GCJ=
24463 archive_expsym_cmds_GCJ=
24464 old_archive_From_new_cmds_GCJ=
24465 old_archive_from_expsyms_cmds_GCJ=
24466 export_dynamic_flag_spec_GCJ=
24467 whole_archive_flag_spec_GCJ=
24468 thread_safe_flag_spec_GCJ=
24469 hardcode_libdir_flag_spec_GCJ=
24470 hardcode_libdir_flag_spec_ld_GCJ=
24471 hardcode_libdir_separator_GCJ=
24472 hardcode_direct_GCJ=no
24473 hardcode_minus_L_GCJ=no
24474 hardcode_shlibpath_var_GCJ=unsupported
24475 link_all_deplibs_GCJ=unknown
24476 hardcode_automatic_GCJ=no
24477 module_cmds_GCJ=
24478 module_expsym_cmds_GCJ=
24479 always_export_symbols_GCJ=no
24480 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24481 # include_expsyms should be a list of space-separated symbols to be *always*
24482 # included in the symbol list
24483 include_expsyms_GCJ=
24484 # exclude_expsyms can be an extended regexp of symbols to exclude
24485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24487 # as well as any symbol that contains `d'.
24488 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24490 # platforms (ab)use it in PIC code, but their linkers get confused if
24491 # the symbol is explicitly referenced. Since portable code cannot
24492 # rely on this symbol name, it's probably fine to never include it in
24493 # preloaded symbol tables.
24494 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024495 # Just being paranoid about ensuring that cc_basename is set.
24496 for cc_temp in $compiler""; do
24497 case $cc_temp in
24498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24500 \-*) ;;
24501 *) break;;
24502 esac
24503done
24504cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024505
24506 case $host_os in
24507 cygwin* | mingw* | pw32*)
24508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24509 # When not using gcc, we currently assume that we are using
24510 # Microsoft Visual C++.
24511 if test "$GCC" != yes; then
24512 with_gnu_ld=no
24513 fi
24514 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024515 interix*)
24516 # we just hope/assume this is gcc and not c89 (= MSVC++)
24517 with_gnu_ld=yes
24518 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024519 openbsd*)
24520 with_gnu_ld=no
24521 ;;
24522 esac
24523
24524 ld_shlibs_GCJ=yes
24525 if test "$with_gnu_ld" = yes; then
24526 # If archive_cmds runs LD, not CC, wlarc should be empty
24527 wlarc='${wl}'
24528
Reid Spencera773bd52006-08-04 18:18:08 +000024529 # Set some defaults for GNU ld with shared library support. These
24530 # are reset later if shared libraries are not supported. Putting them
24531 # here allows them to be overridden if necessary.
24532 runpath_var=LD_RUN_PATH
24533 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24534 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24535 # ancient GNU ld didn't support --whole-archive et. al.
24536 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24537 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24538 else
24539 whole_archive_flag_spec_GCJ=
24540 fi
24541 supports_anon_versioning=no
24542 case `$LD -v 2>/dev/null` in
24543 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24544 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24545 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24546 *\ 2.11.*) ;; # other 2.11 versions
24547 *) supports_anon_versioning=yes ;;
24548 esac
24549
John Criswell47fdd832003-07-14 16:52:07 +000024550 # See if GNU ld supports shared libraries.
24551 case $host_os in
24552 aix3* | aix4* | aix5*)
24553 # On AIX/PPC, the GNU linker is very broken
24554 if test "$host_cpu" != ia64; then
24555 ld_shlibs_GCJ=no
24556 cat <<EOF 1>&2
24557
24558*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24559*** to be unable to reliably create shared libraries on AIX.
24560*** Therefore, libtool is disabling shared libraries support. If you
24561*** really care for shared libraries, you may want to modify your PATH
24562*** so that a non-GNU linker is found, and then restart.
24563
24564EOF
24565 fi
24566 ;;
24567
24568 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024569 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 +000024570 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24571 hardcode_minus_L_GCJ=yes
24572
24573 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24574 # that the semantics of dynamic libraries on AmigaOS, at least up
24575 # to version 4, is to share data among multiple programs linked
24576 # with the same dynamic library. Since this doesn't match the
24577 # behavior of shared libraries on other platforms, we can't use
24578 # them.
24579 ld_shlibs_GCJ=no
24580 ;;
24581
24582 beos*)
24583 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24584 allow_undefined_flag_GCJ=unsupported
24585 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24586 # support --undefined. This deserves some investigation. FIXME
24587 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24588 else
24589 ld_shlibs_GCJ=no
24590 fi
24591 ;;
24592
24593 cygwin* | mingw* | pw32*)
24594 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24595 # as there is no search path for DLLs.
24596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24597 allow_undefined_flag_GCJ=unsupported
24598 always_export_symbols_GCJ=no
24599 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024600 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 +000024601
24602 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024603 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 +000024604 # If the export-symbols file already is a .def file (1st line
24605 # is EXPORTS), use it as is; otherwise, prepend...
24606 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24607 cp $export_symbols $output_objdir/$soname.def;
24608 else
24609 echo EXPORTS > $output_objdir/$soname.def;
24610 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024611 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024612 $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 +000024613 else
Reid Spencera773bd52006-08-04 18:18:08 +000024614 ld_shlibs_GCJ=no
24615 fi
24616 ;;
24617
24618 interix3*)
24619 hardcode_direct_GCJ=no
24620 hardcode_shlibpath_var_GCJ=no
24621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24622 export_dynamic_flag_spec_GCJ='${wl}-E'
24623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24624 # Instead, shared libraries are loaded at an image base (0x10000000 by
24625 # default) and relocated if they conflict, which is a slow very memory
24626 # consuming and fragmenting process. To avoid this, we pick a random,
24627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24629 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'
24630 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'
24631 ;;
24632
24633 linux*)
24634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24635 tmp_addflag=
24636 case $cc_basename,$host_cpu in
24637 pgcc*) # Portland Group C compiler
24638 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'
24639 tmp_addflag=' $pic_flag'
24640 ;;
24641 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24642 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'
24643 tmp_addflag=' $pic_flag -Mnomain' ;;
24644 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24645 tmp_addflag=' -i_dynamic' ;;
24646 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24647 tmp_addflag=' -i_dynamic -nofor_main' ;;
24648 ifc* | ifort*) # Intel Fortran compiler
24649 tmp_addflag=' -nofor_main' ;;
24650 esac
24651 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24652
24653 if test $supports_anon_versioning = yes; then
24654 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24656 $echo "local: *; };" >> $output_objdir/$libname.ver~
24657 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24658 fi
24659 else
24660 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024661 fi
24662 ;;
24663
24664 netbsd*)
24665 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24666 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24667 wlarc=
24668 else
24669 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24670 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24671 fi
24672 ;;
24673
Reid Spencera773bd52006-08-04 18:18:08 +000024674 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024675 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24676 ld_shlibs_GCJ=no
24677 cat <<EOF 1>&2
24678
24679*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24680*** create shared libraries on Solaris systems. Therefore, libtool
24681*** is disabling shared libraries support. We urge you to upgrade GNU
24682*** binutils to release 2.9.1 or newer. Another option is to modify
24683*** your PATH or compiler configuration so that the native linker is
24684*** used, and then restart.
24685
24686EOF
24687 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24688 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24689 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24690 else
24691 ld_shlibs_GCJ=no
24692 fi
24693 ;;
24694
Reid Spencera773bd52006-08-04 18:18:08 +000024695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24696 case `$LD -v 2>&1` in
24697 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24698 ld_shlibs_GCJ=no
24699 cat <<_LT_EOF 1>&2
24700
24701*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24702*** reliably create shared libraries on SCO systems. Therefore, libtool
24703*** is disabling shared libraries support. We urge you to upgrade GNU
24704*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24705*** your PATH or compiler configuration so that the native linker is
24706*** used, and then restart.
24707
24708_LT_EOF
24709 ;;
24710 *)
24711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24712 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24715 else
24716 ld_shlibs_GCJ=no
24717 fi
24718 ;;
24719 esac
24720 ;;
24721
John Criswell47fdd832003-07-14 16:52:07 +000024722 sunos4*)
24723 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724 wlarc=
24725 hardcode_direct_GCJ=yes
24726 hardcode_shlibpath_var_GCJ=no
24727 ;;
24728
24729 *)
24730 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24731 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24732 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24733 else
24734 ld_shlibs_GCJ=no
24735 fi
24736 ;;
24737 esac
24738
Reid Spencera773bd52006-08-04 18:18:08 +000024739 if test "$ld_shlibs_GCJ" = no; then
24740 runpath_var=
24741 hardcode_libdir_flag_spec_GCJ=
24742 export_dynamic_flag_spec_GCJ=
24743 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024744 fi
24745 else
24746 # PORTME fill in a description of your system's linker (not GNU ld)
24747 case $host_os in
24748 aix3*)
24749 allow_undefined_flag_GCJ=unsupported
24750 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024751 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 +000024752 # Note: this linker hardcodes the directories in LIBPATH if there
24753 # are no directories specified by -L.
24754 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024755 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024756 # Neither direct hardcoding nor static linking is supported with a
24757 # broken collect2.
24758 hardcode_direct_GCJ=unsupported
24759 fi
24760 ;;
24761
24762 aix4* | aix5*)
24763 if test "$host_cpu" = ia64; then
24764 # On IA64, the linker does run time linking by default, so we don't
24765 # have to do anything special.
24766 aix_use_runtimelinking=no
24767 exp_sym_flag='-Bexport'
24768 no_entry_flag=""
24769 else
24770 # If we're using GNU nm, then we don't want the "-C" option.
24771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24773 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'
24774 else
24775 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'
24776 fi
24777 aix_use_runtimelinking=no
24778
24779 # Test if we are trying to use run time linking or normal
24780 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24781 # need to do runtime linking.
24782 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24783 for ld_flag in $LDFLAGS; do
24784 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24785 aix_use_runtimelinking=yes
24786 break
24787 fi
24788 done
Reid Spencera773bd52006-08-04 18:18:08 +000024789 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024790 esac
24791
24792 exp_sym_flag='-bexport'
24793 no_entry_flag='-bnoentry'
24794 fi
24795
24796 # When large executables or shared objects are built, AIX ld can
24797 # have problems creating the table of contents. If linking a library
24798 # or program results in "error TOC overflow" add -mminimal-toc to
24799 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24800 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24801
24802 archive_cmds_GCJ=''
24803 hardcode_direct_GCJ=yes
24804 hardcode_libdir_separator_GCJ=':'
24805 link_all_deplibs_GCJ=yes
24806
24807 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024808 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024809 # We only want to do this on AIX 4.2 and lower, the check
24810 # below for broken collect2 doesn't work under 4.3+
24811 collect2name=`${CC} -print-prog-name=collect2`
24812 if test -f "$collect2name" && \
24813 strings "$collect2name" | grep resolve_lib_name >/dev/null
24814 then
24815 # We have reworked collect2
24816 hardcode_direct_GCJ=yes
24817 else
24818 # We have old collect2
24819 hardcode_direct_GCJ=unsupported
24820 # It fails to find uninstalled libraries when the uninstalled
24821 # path is not listed in the libpath. Setting hardcode_minus_L
24822 # to unsupported forces relinking
24823 hardcode_minus_L_GCJ=yes
24824 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24825 hardcode_libdir_separator_GCJ=
24826 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024827 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024828 esac
24829 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024830 if test "$aix_use_runtimelinking" = yes; then
24831 shared_flag="$shared_flag "'${wl}-G'
24832 fi
John Criswell47fdd832003-07-14 16:52:07 +000024833 else
24834 # not using gcc
24835 if test "$host_cpu" = ia64; then
24836 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24837 # chokes on -Wl,-G. The following line is correct:
24838 shared_flag='-G'
24839 else
Reid Spencera773bd52006-08-04 18:18:08 +000024840 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024841 shared_flag='${wl}-G'
24842 else
24843 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024844 fi
John Criswell47fdd832003-07-14 16:52:07 +000024845 fi
24846 fi
24847
24848 # It seems that -bexpall does not export symbols beginning with
24849 # underscore (_), so it is better to generate a list of symbols to export.
24850 always_export_symbols_GCJ=yes
24851 if test "$aix_use_runtimelinking" = yes; then
24852 # Warning - without using the other runtime loading flags (-brtl),
24853 # -berok will link without error, but may produce a broken library.
24854 allow_undefined_flag_GCJ='-berok'
24855 # Determine the default libpath from the value encoded in an empty executable.
24856 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024857/* confdefs.h. */
24858_ACEOF
24859cat confdefs.h >>conftest.$ac_ext
24860cat >>conftest.$ac_ext <<_ACEOF
24861/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024862
John Criswell47fdd832003-07-14 16:52:07 +000024863int
24864main ()
24865{
24866
24867 ;
24868 return 0;
24869}
24870_ACEOF
24871rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024872if { (ac_try="$ac_link"
24873case "(($ac_try" in
24874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24875 *) ac_try_echo=$ac_try;;
24876esac
24877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24878 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024884 (exit $ac_status); } &&
24885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24886 { (case "(($ac_try" in
24887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24888 *) ac_try_echo=$ac_try;;
24889esac
24890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24891 (eval "$ac_try") 2>&5
24892 ac_status=$?
24893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894 (exit $ac_status); }; } &&
24895 { ac_try='test -s conftest$ac_exeext'
24896 { (case "(($ac_try" in
24897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898 *) ac_try_echo=$ac_try;;
24899esac
24900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901 (eval "$ac_try") 2>&5
24902 ac_status=$?
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024905
24906aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24907}'`
24908# Check for a 64-bit object if we didn't find anything.
24909if 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; }
24910}'`; fi
24911else
24912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024913sed 's/^/| /' conftest.$ac_ext >&5
24914
Reid Spencera773bd52006-08-04 18:18:08 +000024915
John Criswell47fdd832003-07-14 16:52:07 +000024916fi
Reid Spencera773bd52006-08-04 18:18:08 +000024917
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024918rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024919 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024920if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24921
24922 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024923 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 +000024924 else
24925 if test "$host_cpu" = ia64; then
24926 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24927 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024928 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 +000024929 else
24930 # Determine the default libpath from the value encoded in an empty executable.
24931 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024932/* confdefs.h. */
24933_ACEOF
24934cat confdefs.h >>conftest.$ac_ext
24935cat >>conftest.$ac_ext <<_ACEOF
24936/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024937
John Criswell47fdd832003-07-14 16:52:07 +000024938int
24939main ()
24940{
24941
24942 ;
24943 return 0;
24944}
24945_ACEOF
24946rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024947if { (ac_try="$ac_link"
24948case "(($ac_try" in
24949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24950 *) ac_try_echo=$ac_try;;
24951esac
24952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24953 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024955 grep -v '^ *+' conftest.er1 >conftest.err
24956 rm -f conftest.er1
24957 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024959 (exit $ac_status); } &&
24960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24961 { (case "(($ac_try" in
24962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963 *) ac_try_echo=$ac_try;;
24964esac
24965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966 (eval "$ac_try") 2>&5
24967 ac_status=$?
24968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969 (exit $ac_status); }; } &&
24970 { ac_try='test -s conftest$ac_exeext'
24971 { (case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974esac
24975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24976 (eval "$ac_try") 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024980
24981aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24982}'`
24983# Check for a 64-bit object if we didn't find anything.
24984if 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; }
24985}'`; fi
24986else
24987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024988sed 's/^/| /' conftest.$ac_ext >&5
24989
Reid Spencera773bd52006-08-04 18:18:08 +000024990
John Criswell47fdd832003-07-14 16:52:07 +000024991fi
Reid Spencera773bd52006-08-04 18:18:08 +000024992
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024993rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024994 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024995if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24996
24997 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24998 # Warning - without using the other run time loading flags,
24999 # -berok will link without error, but may produce a broken library.
25000 no_undefined_flag_GCJ=' ${wl}-bernotok'
25001 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025002 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025003 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025004 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025005 # This is similar to how AIX traditionally builds its shared libraries.
25006 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 +000025007 fi
25008 fi
25009 ;;
25010
25011 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025012 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 +000025013 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25014 hardcode_minus_L_GCJ=yes
25015 # see comment about different semantics on the GNU ld section
25016 ld_shlibs_GCJ=no
25017 ;;
25018
Reid Spencer2706f8c2004-09-19 23:53:36 +000025019 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025020 export_dynamic_flag_spec_GCJ=-rdynamic
25021 ;;
25022
25023 cygwin* | mingw* | pw32*)
25024 # When not using gcc, we currently assume that we are using
25025 # Microsoft Visual C++.
25026 # hardcode_libdir_flag_spec is actually meaningless, as there is
25027 # no search path for DLLs.
25028 hardcode_libdir_flag_spec_GCJ=' '
25029 allow_undefined_flag_GCJ=unsupported
25030 # Tell ltmain to make .lib files, not .a files.
25031 libext=lib
25032 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025033 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025034 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025035 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 +000025036 # The linker will automatically build a .lib file if we build a DLL.
25037 old_archive_From_new_cmds_GCJ='true'
25038 # FIXME: Should let the user specify the lib program.
25039 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025040 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025041 enable_shared_with_static_runtimes_GCJ=yes
25042 ;;
25043
25044 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025045 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025046 rhapsody* | darwin1.[012])
25047 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25048 ;;
25049 *) # Darwin 1.3 on
25050 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25051 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25052 else
25053 case ${MACOSX_DEPLOYMENT_TARGET} in
25054 10.[012])
25055 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25056 ;;
25057 10.*)
25058 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25059 ;;
25060 esac
25061 fi
25062 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025063 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025064 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025065 hardcode_direct_GCJ=no
25066 hardcode_automatic_GCJ=yes
25067 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025068 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025069 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 if test "$GCC" = yes ; then
25071 output_verbose_link_cmd='echo'
25072 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25073 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025074 # 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 +000025075 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}'
25076 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 +000025077 else
Reid Spencera773bd52006-08-04 18:18:08 +000025078 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025079 xlc*)
25080 output_verbose_link_cmd='echo'
25081 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25082 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025083 # 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 +000025084 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}'
25085 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 +000025086 ;;
25087 *)
25088 ld_shlibs_GCJ=no
25089 ;;
25090 esac
John Criswell47fdd832003-07-14 16:52:07 +000025091 fi
25092 ;;
25093
25094 dgux*)
25095 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25096 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25097 hardcode_shlibpath_var_GCJ=no
25098 ;;
25099
25100 freebsd1*)
25101 ld_shlibs_GCJ=no
25102 ;;
25103
25104 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25105 # support. Future versions do this automatically, but an explicit c++rt0.o
25106 # does not break anything, and helps significantly (at the cost of a little
25107 # extra space).
25108 freebsd2.2*)
25109 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25110 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25111 hardcode_direct_GCJ=yes
25112 hardcode_shlibpath_var_GCJ=no
25113 ;;
25114
25115 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25116 freebsd2*)
25117 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25118 hardcode_direct_GCJ=yes
25119 hardcode_minus_L_GCJ=yes
25120 hardcode_shlibpath_var_GCJ=no
25121 ;;
25122
25123 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025124 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025125 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25126 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25127 hardcode_direct_GCJ=yes
25128 hardcode_shlibpath_var_GCJ=no
25129 ;;
25130
25131 hpux9*)
25132 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025133 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 +000025134 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025135 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 +000025136 fi
25137 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25138 hardcode_libdir_separator_GCJ=:
25139 hardcode_direct_GCJ=yes
25140
25141 # hardcode_minus_L: Not really in the search PATH,
25142 # but as the default location of the library.
25143 hardcode_minus_L_GCJ=yes
25144 export_dynamic_flag_spec_GCJ='${wl}-E'
25145 ;;
25146
Reid Spencera773bd52006-08-04 18:18:08 +000025147 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025148 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025149 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25150 else
25151 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25152 fi
25153 if test "$with_gnu_ld" = no; then
25154 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25155 hardcode_libdir_separator_GCJ=:
25156
25157 hardcode_direct_GCJ=yes
25158 export_dynamic_flag_spec_GCJ='${wl}-E'
25159
25160 # hardcode_minus_L: Not really in the search PATH,
25161 # but as the default location of the library.
25162 hardcode_minus_L_GCJ=yes
25163 fi
25164 ;;
25165
25166 hpux11*)
25167 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25168 case $host_cpu in
25169 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025170 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025172 ia64*)
25173 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25174 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025175 *)
25176 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25177 ;;
25178 esac
25179 else
Reid Spencera773bd52006-08-04 18:18:08 +000025180 case $host_cpu in
25181 hppa*64*)
25182 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25183 ;;
25184 ia64*)
25185 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025186 ;;
25187 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025188 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 +000025189 ;;
25190 esac
25191 fi
25192 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025193 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25194 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025195
Reid Spencera773bd52006-08-04 18:18:08 +000025196 case $host_cpu in
25197 hppa*64*|ia64*)
25198 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25199 hardcode_direct_GCJ=no
25200 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025201 ;;
25202 *)
John Criswell47fdd832003-07-14 16:52:07 +000025203 hardcode_direct_GCJ=yes
25204 export_dynamic_flag_spec_GCJ='${wl}-E'
25205
25206 # hardcode_minus_L: Not really in the search PATH,
25207 # but as the default location of the library.
25208 hardcode_minus_L_GCJ=yes
25209 ;;
25210 esac
25211 fi
25212 ;;
25213
25214 irix5* | irix6* | nonstopux*)
25215 if test "$GCC" = yes; then
25216 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'
25217 else
25218 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'
25219 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25220 fi
25221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25222 hardcode_libdir_separator_GCJ=:
25223 link_all_deplibs_GCJ=yes
25224 ;;
25225
25226 netbsd*)
25227 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25228 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25229 else
25230 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25231 fi
25232 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25233 hardcode_direct_GCJ=yes
25234 hardcode_shlibpath_var_GCJ=no
25235 ;;
25236
25237 newsos6)
25238 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25239 hardcode_direct_GCJ=yes
25240 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25241 hardcode_libdir_separator_GCJ=:
25242 hardcode_shlibpath_var_GCJ=no
25243 ;;
25244
25245 openbsd*)
25246 hardcode_direct_GCJ=yes
25247 hardcode_shlibpath_var_GCJ=no
25248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25249 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025250 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 +000025251 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25252 export_dynamic_flag_spec_GCJ='${wl}-E'
25253 else
25254 case $host_os in
25255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25257 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25258 ;;
25259 *)
25260 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25262 ;;
25263 esac
25264 fi
25265 ;;
25266
25267 os2*)
25268 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25269 hardcode_minus_L_GCJ=yes
25270 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025271 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 +000025272 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25273 ;;
25274
25275 osf3*)
25276 if test "$GCC" = yes; then
25277 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25278 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'
25279 else
25280 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25281 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'
25282 fi
25283 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25284 hardcode_libdir_separator_GCJ=:
25285 ;;
25286
25287 osf4* | osf5*) # as osf3* with the addition of -msym flag
25288 if test "$GCC" = yes; then
25289 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25290 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'
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25292 else
25293 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25294 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 +000025295 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 +000025296 $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 +000025297
John Criswell47fdd832003-07-14 16:52:07 +000025298 # Both c and cxx compiler support -rpath directly
25299 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25300 fi
25301 hardcode_libdir_separator_GCJ=:
25302 ;;
25303
John Criswell47fdd832003-07-14 16:52:07 +000025304 solaris*)
25305 no_undefined_flag_GCJ=' -z text'
25306 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025307 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025308 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025309 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25310 $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 +000025311 else
Reid Spencera773bd52006-08-04 18:18:08 +000025312 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025313 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025314 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25315 $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 +000025316 fi
25317 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25318 hardcode_shlibpath_var_GCJ=no
25319 case $host_os in
25320 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025321 *)
25322 # The compiler driver will combine linker options so we
25323 # cannot just pass the convience library names through
25324 # without $wl, iff we do not link with $LD.
25325 # Luckily, gcc supports the same syntax we need for Sun Studio.
25326 # Supported since Solaris 2.6 (maybe 2.5.1?)
25327 case $wlarc in
25328 '')
25329 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25330 *)
25331 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' ;;
25332 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025333 esac
25334 link_all_deplibs_GCJ=yes
25335 ;;
25336
25337 sunos4*)
25338 if test "x$host_vendor" = xsequent; then
25339 # Use $CC to link under sequent, because it throws in some extra .o
25340 # files that make .init and .fini sections work.
25341 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25342 else
25343 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25344 fi
25345 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25346 hardcode_direct_GCJ=yes
25347 hardcode_minus_L_GCJ=yes
25348 hardcode_shlibpath_var_GCJ=no
25349 ;;
25350
25351 sysv4)
25352 case $host_vendor in
25353 sni)
25354 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25355 hardcode_direct_GCJ=yes # is this really true???
25356 ;;
25357 siemens)
25358 ## LD is ld it makes a PLAMLIB
25359 ## CC just makes a GrossModule.
25360 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25361 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25362 hardcode_direct_GCJ=no
25363 ;;
25364 motorola)
25365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25366 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25367 ;;
25368 esac
25369 runpath_var='LD_RUN_PATH'
25370 hardcode_shlibpath_var_GCJ=no
25371 ;;
25372
25373 sysv4.3*)
25374 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25375 hardcode_shlibpath_var_GCJ=no
25376 export_dynamic_flag_spec_GCJ='-Bexport'
25377 ;;
25378
25379 sysv4*MP*)
25380 if test -d /usr/nec; then
25381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25382 hardcode_shlibpath_var_GCJ=no
25383 runpath_var=LD_RUN_PATH
25384 hardcode_runpath_var=yes
25385 ld_shlibs_GCJ=yes
25386 fi
25387 ;;
25388
Reid Spencera773bd52006-08-04 18:18:08 +000025389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25390 no_undefined_flag_GCJ='${wl}-z,text'
25391 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025392 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025393 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025394
John Criswell47fdd832003-07-14 16:52:07 +000025395 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025396 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25397 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 +000025398 else
Reid Spencera773bd52006-08-04 18:18:08 +000025399 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25400 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 +000025401 fi
John Criswell47fdd832003-07-14 16:52:07 +000025402 ;;
25403
Reid Spencera773bd52006-08-04 18:18:08 +000025404 sysv5* | sco3.2v5* | sco5v6*)
25405 # Note: We can NOT use -z defs as we might desire, because we do not
25406 # link with -lc, and that would cause any symbols used from libc to
25407 # always be unresolved, which means just about no library would
25408 # ever link correctly. If we're not using GNU ld we use -z text
25409 # though, which does catch some bad symbols but isn't as heavy-handed
25410 # as -z defs.
25411 no_undefined_flag_GCJ='${wl}-z,text'
25412 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25413 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025414 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025415 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25416 hardcode_libdir_separator_GCJ=':'
25417 link_all_deplibs_GCJ=yes
25418 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025419 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025420
25421 if test "$GCC" = yes; then
25422 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25423 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25424 else
25425 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25426 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25427 fi
John Criswell47fdd832003-07-14 16:52:07 +000025428 ;;
25429
25430 uts4*)
25431 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433 hardcode_shlibpath_var_GCJ=no
25434 ;;
25435
25436 *)
25437 ld_shlibs_GCJ=no
25438 ;;
25439 esac
25440 fi
25441
Reid Spencera773bd52006-08-04 18:18:08 +000025442{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25443echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025444test "$ld_shlibs_GCJ" = no && can_build_shared=no
25445
John Criswell47fdd832003-07-14 16:52:07 +000025446#
25447# Do we need to explicitly link libc?
25448#
25449case "x$archive_cmds_need_lc_GCJ" in
25450x|xyes)
25451 # Assume -lc should be added
25452 archive_cmds_need_lc_GCJ=yes
25453
25454 if test "$enable_shared" = yes && test "$GCC" = yes; then
25455 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025456 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025457 # FIXME: we may have to deal with multi-command sequences.
25458 ;;
25459 '$CC '*)
25460 # Test whether the compiler implicitly links with -lc since on some
25461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25462 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025463 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25464echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025465 $rm conftest*
25466 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25467
25468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469 (eval $ac_compile) 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); } 2>conftest.err; then
25473 soname=conftest
25474 lib=conftest
25475 libobjs=conftest.$ac_objext
25476 deplibs=
25477 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025478 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025479 compiler_flags=-v
25480 linker_flags=-v
25481 verstring=
25482 output_objdir=.
25483 libname=conftest
25484 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25485 allow_undefined_flag_GCJ=
25486 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25487 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }
25491 then
25492 archive_cmds_need_lc_GCJ=no
25493 else
25494 archive_cmds_need_lc_GCJ=yes
25495 fi
25496 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25497 else
25498 cat conftest.err 1>&5
25499 fi
25500 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025501 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25502echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025503 ;;
25504 esac
25505 fi
25506 ;;
25507esac
25508
Reid Spencera773bd52006-08-04 18:18:08 +000025509{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25510echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025511library_names_spec=
25512libname_spec='lib$name'
25513soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025514shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025515postinstall_cmds=
25516postuninstall_cmds=
25517finish_cmds=
25518finish_eval=
25519shlibpath_var=
25520shlibpath_overrides_runpath=unknown
25521version_type=none
25522dynamic_linker="$host_os ld.so"
25523sys_lib_dlsearch_path_spec="/lib /usr/lib"
25524if test "$GCC" = yes; then
25525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25526 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25527 # if the path contains ";" then we assume it to be the separator
25528 # otherwise default to the standard path separator (i.e. ":") - it is
25529 # assumed that no part of a normal pathname contains ";" but that should
25530 # okay in the real world where ";" in dirpaths is itself problematic.
25531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25532 else
25533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25534 fi
25535else
25536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25537fi
25538need_lib_prefix=unknown
25539hardcode_into_libs=no
25540
25541# when you set need_version to no, make sure it does not cause -set_version
25542# flags to be left without arguments
25543need_version=unknown
25544
25545case $host_os in
25546aix3*)
25547 version_type=linux
25548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25549 shlibpath_var=LIBPATH
25550
25551 # AIX 3 has no versioning support, so we append a major version to the name.
25552 soname_spec='${libname}${release}${shared_ext}$major'
25553 ;;
25554
25555aix4* | aix5*)
25556 version_type=linux
25557 need_lib_prefix=no
25558 need_version=no
25559 hardcode_into_libs=yes
25560 if test "$host_cpu" = ia64; then
25561 # AIX 5 supports IA64
25562 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25563 shlibpath_var=LD_LIBRARY_PATH
25564 else
25565 # With GCC up to 2.95.x, collect2 would create an import file
25566 # for dependence libraries. The import file would start with
25567 # the line `#! .'. This would cause the generated library to
25568 # depend on `.', always an invalid library. This was fixed in
25569 # development snapshots of GCC prior to 3.0.
25570 case $host_os in
25571 aix4 | aix4.[01] | aix4.[01].*)
25572 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25573 echo ' yes '
25574 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25575 :
25576 else
25577 can_build_shared=no
25578 fi
25579 ;;
25580 esac
25581 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25582 # soname into executable. Probably we can add versioning support to
25583 # collect2, so additional links can be useful in future.
25584 if test "$aix_use_runtimelinking" = yes; then
25585 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25586 # instead of lib<name>.a to let people know that these are not
25587 # typical AIX shared libraries.
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 else
25590 # We preserve .a as extension for shared libraries through AIX4.2
25591 # and later when we are not doing run time linking.
25592 library_names_spec='${libname}${release}.a $libname.a'
25593 soname_spec='${libname}${release}${shared_ext}$major'
25594 fi
25595 shlibpath_var=LIBPATH
25596 fi
25597 ;;
25598
25599amigaos*)
25600 library_names_spec='$libname.ixlibrary $libname.a'
25601 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025602 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 +000025603 ;;
25604
25605beos*)
25606 library_names_spec='${libname}${shared_ext}'
25607 dynamic_linker="$host_os ld.so"
25608 shlibpath_var=LIBRARY_PATH
25609 ;;
25610
Reid Spencer2706f8c2004-09-19 23:53:36 +000025611bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025612 version_type=linux
25613 need_version=no
25614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25615 soname_spec='${libname}${release}${shared_ext}$major'
25616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25617 shlibpath_var=LD_LIBRARY_PATH
25618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25620 # the default ld.so.conf also contains /usr/contrib/lib and
25621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25622 # libtool to hard-code these into programs
25623 ;;
25624
25625cygwin* | mingw* | pw32*)
25626 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025627 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025628 need_version=no
25629 need_lib_prefix=no
25630
25631 case $GCC,$host_os in
25632 yes,cygwin* | yes,mingw* | yes,pw32*)
25633 library_names_spec='$libname.dll.a'
25634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025635 postinstall_cmds='base_file=`basename \${file}`~
25636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25637 dldir=$destdir/`dirname \$dlpath`~
25638 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025639 $install_prog $dir/$dlname \$dldir/$dlname~
25640 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025641 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25642 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025643 $rm \$dlpath'
25644 shlibpath_overrides_runpath=yes
25645
25646 case $host_os in
25647 cygwin*)
25648 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25649 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 +000025650 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025651 ;;
25652 mingw*)
25653 # MinGW DLLs use traditional 'lib' prefix
25654 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25655 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25656 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25657 # It is most probably a Windows format PATH printed by
25658 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25659 # path with ; separators, and with drive letters. We can handle the
25660 # drive letters (cygwin fileutils understands them), so leave them,
25661 # especially as we might pass files found there to a mingw objdump,
25662 # which wouldn't understand a cygwinified path. Ahh.
25663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25664 else
25665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25666 fi
25667 ;;
25668 pw32*)
25669 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025670 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 +000025671 ;;
25672 esac
25673 ;;
25674
25675 *)
25676 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25677 ;;
25678 esac
25679 dynamic_linker='Win32 ld.exe'
25680 # FIXME: first we should search . and the directory the executable is in
25681 shlibpath_var=PATH
25682 ;;
25683
25684darwin* | rhapsody*)
25685 dynamic_linker="$host_os dyld"
25686 version_type=darwin
25687 need_lib_prefix=no
25688 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025689 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025690 soname_spec='${libname}${release}${major}$shared_ext'
25691 shlibpath_overrides_runpath=yes
25692 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025693 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025694 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025695 if test "$GCC" = yes; then
25696 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"`
25697 else
25698 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025699 fi
25700 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25701 ;;
25702
25703dgux*)
25704 version_type=linux
25705 need_lib_prefix=no
25706 need_version=no
25707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25708 soname_spec='${libname}${release}${shared_ext}$major'
25709 shlibpath_var=LD_LIBRARY_PATH
25710 ;;
25711
25712freebsd1*)
25713 dynamic_linker=no
25714 ;;
25715
Reid Spencer2706f8c2004-09-19 23:53:36 +000025716kfreebsd*-gnu)
25717 version_type=linux
25718 need_lib_prefix=no
25719 need_version=no
25720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25721 soname_spec='${libname}${release}${shared_ext}$major'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 shlibpath_overrides_runpath=no
25724 hardcode_into_libs=yes
25725 dynamic_linker='GNU ld.so'
25726 ;;
25727
Reid Spencera773bd52006-08-04 18:18:08 +000025728freebsd* | dragonfly*)
25729 # DragonFly does not have aout. When/if they implement a new
25730 # versioning mechanism, adjust this.
25731 if test -x /usr/bin/objformat; then
25732 objformat=`/usr/bin/objformat`
25733 else
25734 case $host_os in
25735 freebsd[123]*) objformat=aout ;;
25736 *) objformat=elf ;;
25737 esac
25738 fi
John Criswell47fdd832003-07-14 16:52:07 +000025739 version_type=freebsd-$objformat
25740 case $version_type in
25741 freebsd-elf*)
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25743 need_version=no
25744 need_lib_prefix=no
25745 ;;
25746 freebsd-*)
25747 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25748 need_version=yes
25749 ;;
25750 esac
25751 shlibpath_var=LD_LIBRARY_PATH
25752 case $host_os in
25753 freebsd2*)
25754 shlibpath_overrides_runpath=yes
25755 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025756 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025757 shlibpath_overrides_runpath=yes
25758 hardcode_into_libs=yes
25759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025760 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25761 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025762 shlibpath_overrides_runpath=no
25763 hardcode_into_libs=yes
25764 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025765 freebsd*) # from 4.6 on
25766 shlibpath_overrides_runpath=yes
25767 hardcode_into_libs=yes
25768 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025769 esac
25770 ;;
25771
25772gnu*)
25773 version_type=linux
25774 need_lib_prefix=no
25775 need_version=no
25776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25777 soname_spec='${libname}${release}${shared_ext}$major'
25778 shlibpath_var=LD_LIBRARY_PATH
25779 hardcode_into_libs=yes
25780 ;;
25781
25782hpux9* | hpux10* | hpux11*)
25783 # Give a soname corresponding to the major version so that dld.sl refuses to
25784 # link against other versions.
25785 version_type=sunos
25786 need_lib_prefix=no
25787 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025788 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025789 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025790 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025791 hardcode_into_libs=yes
25792 dynamic_linker="$host_os dld.so"
25793 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25796 soname_spec='${libname}${release}${shared_ext}$major'
25797 if test "X$HPUX_IA64_MODE" = X32; then
25798 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25799 else
25800 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25801 fi
25802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25803 ;;
25804 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025805 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025806 hardcode_into_libs=yes
25807 dynamic_linker="$host_os dld.sl"
25808 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25809 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811 soname_spec='${libname}${release}${shared_ext}$major'
25812 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25814 ;;
25815 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025816 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025817 dynamic_linker="$host_os dld.sl"
25818 shlibpath_var=SHLIB_PATH
25819 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821 soname_spec='${libname}${release}${shared_ext}$major'
25822 ;;
25823 esac
25824 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25825 postinstall_cmds='chmod 555 $lib'
25826 ;;
25827
Reid Spencera773bd52006-08-04 18:18:08 +000025828interix3*)
25829 version_type=linux
25830 need_lib_prefix=no
25831 need_version=no
25832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25833 soname_spec='${libname}${release}${shared_ext}$major'
25834 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25835 shlibpath_var=LD_LIBRARY_PATH
25836 shlibpath_overrides_runpath=no
25837 hardcode_into_libs=yes
25838 ;;
25839
John Criswell47fdd832003-07-14 16:52:07 +000025840irix5* | irix6* | nonstopux*)
25841 case $host_os in
25842 nonstopux*) version_type=nonstopux ;;
25843 *)
25844 if test "$lt_cv_prog_gnu_ld" = yes; then
25845 version_type=linux
25846 else
25847 version_type=irix
25848 fi ;;
25849 esac
25850 need_lib_prefix=no
25851 need_version=no
25852 soname_spec='${libname}${release}${shared_ext}$major'
25853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25854 case $host_os in
25855 irix5* | nonstopux*)
25856 libsuff= shlibsuff=
25857 ;;
25858 *)
25859 case $LD in # libtool.m4 will add one of these switches to LD
25860 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25861 libsuff= shlibsuff= libmagic=32-bit;;
25862 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25863 libsuff=32 shlibsuff=N32 libmagic=N32;;
25864 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25865 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25866 *) libsuff= shlibsuff= libmagic=never-match;;
25867 esac
25868 ;;
25869 esac
25870 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25871 shlibpath_overrides_runpath=no
25872 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25873 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25874 hardcode_into_libs=yes
25875 ;;
25876
25877# No shared lib support for Linux oldld, aout, or coff.
25878linux*oldld* | linux*aout* | linux*coff*)
25879 dynamic_linker=no
25880 ;;
25881
25882# This must be Linux ELF.
25883linux*)
25884 version_type=linux
25885 need_lib_prefix=no
25886 need_version=no
25887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25888 soname_spec='${libname}${release}${shared_ext}$major'
25889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25890 shlibpath_var=LD_LIBRARY_PATH
25891 shlibpath_overrides_runpath=no
25892 # This implies no fast_install, which is unacceptable.
25893 # Some rework will be needed to allow for fast_install
25894 # before this can be enabled.
25895 hardcode_into_libs=yes
25896
Reid Spencer2706f8c2004-09-19 23:53:36 +000025897 # Append ld.so.conf contents to the search path
25898 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025899 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 +000025900 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25901 fi
25902
John Criswell47fdd832003-07-14 16:52:07 +000025903 # We used to test for /lib/ld.so.1 and disable shared libraries on
25904 # powerpc, because MkLinux only supported shared libraries with the
25905 # GNU dynamic linker. Since this was broken with cross compilers,
25906 # most powerpc-linux boxes support dynamic linking these days and
25907 # people can always --disable-shared, the test was removed, and we
25908 # assume the GNU/Linux dynamic linker is in use.
25909 dynamic_linker='GNU/Linux ld.so'
25910 ;;
25911
Reid Spencer2706f8c2004-09-19 23:53:36 +000025912knetbsd*-gnu)
25913 version_type=linux
25914 need_lib_prefix=no
25915 need_version=no
25916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25917 soname_spec='${libname}${release}${shared_ext}$major'
25918 shlibpath_var=LD_LIBRARY_PATH
25919 shlibpath_overrides_runpath=no
25920 hardcode_into_libs=yes
25921 dynamic_linker='GNU ld.so'
25922 ;;
25923
John Criswell47fdd832003-07-14 16:52:07 +000025924netbsd*)
25925 version_type=sunos
25926 need_lib_prefix=no
25927 need_version=no
25928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25931 dynamic_linker='NetBSD (a.out) ld.so'
25932 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025934 soname_spec='${libname}${release}${shared_ext}$major'
25935 dynamic_linker='NetBSD ld.elf_so'
25936 fi
25937 shlibpath_var=LD_LIBRARY_PATH
25938 shlibpath_overrides_runpath=yes
25939 hardcode_into_libs=yes
25940 ;;
25941
25942newsos6)
25943 version_type=linux
25944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25945 shlibpath_var=LD_LIBRARY_PATH
25946 shlibpath_overrides_runpath=yes
25947 ;;
25948
Reid Spencer2706f8c2004-09-19 23:53:36 +000025949nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025950 version_type=linux
25951 need_lib_prefix=no
25952 need_version=no
25953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25954 soname_spec='${libname}${release}${shared_ext}$major'
25955 shlibpath_var=LD_LIBRARY_PATH
25956 shlibpath_overrides_runpath=yes
25957 ;;
25958
25959openbsd*)
25960 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025961 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025962 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25964 case $host_os in
25965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25966 *) need_version=no ;;
25967 esac
John Criswell47fdd832003-07-14 16:52:07 +000025968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25970 shlibpath_var=LD_LIBRARY_PATH
25971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25972 case $host_os in
25973 openbsd2.[89] | openbsd2.[89].*)
25974 shlibpath_overrides_runpath=no
25975 ;;
25976 *)
25977 shlibpath_overrides_runpath=yes
25978 ;;
25979 esac
25980 else
25981 shlibpath_overrides_runpath=yes
25982 fi
25983 ;;
25984
25985os2*)
25986 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025987 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025988 need_lib_prefix=no
25989 library_names_spec='$libname${shared_ext} $libname.a'
25990 dynamic_linker='OS/2 ld.exe'
25991 shlibpath_var=LIBPATH
25992 ;;
25993
25994osf3* | osf4* | osf5*)
25995 version_type=osf
25996 need_lib_prefix=no
25997 need_version=no
25998 soname_spec='${libname}${release}${shared_ext}$major'
25999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26000 shlibpath_var=LD_LIBRARY_PATH
26001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26003 ;;
26004
John Criswell47fdd832003-07-14 16:52:07 +000026005solaris*)
26006 version_type=linux
26007 need_lib_prefix=no
26008 need_version=no
26009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26010 soname_spec='${libname}${release}${shared_ext}$major'
26011 shlibpath_var=LD_LIBRARY_PATH
26012 shlibpath_overrides_runpath=yes
26013 hardcode_into_libs=yes
26014 # ldd complains unless libraries are executable
26015 postinstall_cmds='chmod +x $lib'
26016 ;;
26017
26018sunos4*)
26019 version_type=sunos
26020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26022 shlibpath_var=LD_LIBRARY_PATH
26023 shlibpath_overrides_runpath=yes
26024 if test "$with_gnu_ld" = yes; then
26025 need_lib_prefix=no
26026 fi
26027 need_version=yes
26028 ;;
26029
Reid Spencera773bd52006-08-04 18:18:08 +000026030sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026031 version_type=linux
26032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26033 soname_spec='${libname}${release}${shared_ext}$major'
26034 shlibpath_var=LD_LIBRARY_PATH
26035 case $host_vendor in
26036 sni)
26037 shlibpath_overrides_runpath=no
26038 need_lib_prefix=no
26039 export_dynamic_flag_spec='${wl}-Blargedynsym'
26040 runpath_var=LD_RUN_PATH
26041 ;;
26042 siemens)
26043 need_lib_prefix=no
26044 ;;
26045 motorola)
26046 need_lib_prefix=no
26047 need_version=no
26048 shlibpath_overrides_runpath=no
26049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26050 ;;
26051 esac
26052 ;;
26053
26054sysv4*MP*)
26055 if test -d /usr/nec ;then
26056 version_type=linux
26057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26058 soname_spec='$libname${shared_ext}.$major'
26059 shlibpath_var=LD_LIBRARY_PATH
26060 fi
26061 ;;
26062
Reid Spencera773bd52006-08-04 18:18:08 +000026063sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26064 version_type=freebsd-elf
26065 need_lib_prefix=no
26066 need_version=no
26067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26068 soname_spec='${libname}${release}${shared_ext}$major'
26069 shlibpath_var=LD_LIBRARY_PATH
26070 hardcode_into_libs=yes
26071 if test "$with_gnu_ld" = yes; then
26072 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26073 shlibpath_overrides_runpath=no
26074 else
26075 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26076 shlibpath_overrides_runpath=yes
26077 case $host_os in
26078 sco3.2v5*)
26079 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26080 ;;
26081 esac
26082 fi
26083 sys_lib_dlsearch_path_spec='/usr/lib'
26084 ;;
26085
John Criswell47fdd832003-07-14 16:52:07 +000026086uts4*)
26087 version_type=linux
26088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26089 soname_spec='${libname}${release}${shared_ext}$major'
26090 shlibpath_var=LD_LIBRARY_PATH
26091 ;;
26092
26093*)
26094 dynamic_linker=no
26095 ;;
26096esac
Reid Spencera773bd52006-08-04 18:18:08 +000026097{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26098echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026099test "$dynamic_linker" = no && can_build_shared=no
26100
Reid Spencera773bd52006-08-04 18:18:08 +000026101variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26102if test "$GCC" = yes; then
26103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26104fi
26105
26106{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26107echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026108hardcode_action_GCJ=
26109if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26110 test -n "$runpath_var_GCJ" || \
26111 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26112
26113 # We can hardcode non-existant directories.
26114 if test "$hardcode_direct_GCJ" != no &&
26115 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26116 # have to relink, otherwise we might link with an installed library
26117 # when we should be linking with a yet-to-be-installed one
26118 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26119 test "$hardcode_minus_L_GCJ" != no; then
26120 # Linking always hardcodes the temporary library directory.
26121 hardcode_action_GCJ=relink
26122 else
26123 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26124 hardcode_action_GCJ=immediate
26125 fi
26126else
26127 # We cannot hardcode anything, or else we can only hardcode existing
26128 # directories.
26129 hardcode_action_GCJ=unsupported
26130fi
Reid Spencera773bd52006-08-04 18:18:08 +000026131{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26132echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026133
26134if test "$hardcode_action_GCJ" = relink; then
26135 # Fast installation is not supported
26136 enable_fast_install=no
26137elif test "$shlibpath_overrides_runpath" = yes ||
26138 test "$enable_shared" = no; then
26139 # Fast installation is not necessary
26140 enable_fast_install=needless
26141fi
26142
John Criswell47fdd832003-07-14 16:52:07 +000026143
26144# The else clause should only fire when bootstrapping the
26145# libtool distribution, otherwise you forgot to ship ltmain.sh
26146# with your package, and you will get complaints that there are
26147# no rules to generate ltmain.sh.
26148if test -f "$ltmain"; then
26149 # See if we are running on zsh, and set the options which allow our commands through
26150 # without removal of \ escapes.
26151 if test -n "${ZSH_VERSION+set}" ; then
26152 setopt NO_GLOB_SUBST
26153 fi
26154 # Now quote all the things that may contain metacharacters while being
26155 # careful not to overquote the AC_SUBSTed values. We take copies of the
26156 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026157 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 +000026158 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26161 deplibs_check_method reload_flag reload_cmds need_locks \
26162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26163 lt_cv_sys_global_symbol_to_c_name_address \
26164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26165 old_postinstall_cmds old_postuninstall_cmds \
26166 compiler_GCJ \
26167 CC_GCJ \
26168 LD_GCJ \
26169 lt_prog_compiler_wl_GCJ \
26170 lt_prog_compiler_pic_GCJ \
26171 lt_prog_compiler_static_GCJ \
26172 lt_prog_compiler_no_builtin_flag_GCJ \
26173 export_dynamic_flag_spec_GCJ \
26174 thread_safe_flag_spec_GCJ \
26175 whole_archive_flag_spec_GCJ \
26176 enable_shared_with_static_runtimes_GCJ \
26177 old_archive_cmds_GCJ \
26178 old_archive_from_new_cmds_GCJ \
26179 predep_objects_GCJ \
26180 postdep_objects_GCJ \
26181 predeps_GCJ \
26182 postdeps_GCJ \
26183 compiler_lib_search_path_GCJ \
26184 archive_cmds_GCJ \
26185 archive_expsym_cmds_GCJ \
26186 postinstall_cmds_GCJ \
26187 postuninstall_cmds_GCJ \
26188 old_archive_from_expsyms_cmds_GCJ \
26189 allow_undefined_flag_GCJ \
26190 no_undefined_flag_GCJ \
26191 export_symbols_cmds_GCJ \
26192 hardcode_libdir_flag_spec_GCJ \
26193 hardcode_libdir_flag_spec_ld_GCJ \
26194 hardcode_libdir_separator_GCJ \
26195 hardcode_automatic_GCJ \
26196 module_cmds_GCJ \
26197 module_expsym_cmds_GCJ \
26198 lt_cv_prog_compiler_c_o_GCJ \
26199 exclude_expsyms_GCJ \
26200 include_expsyms_GCJ; do
26201
26202 case $var in
26203 old_archive_cmds_GCJ | \
26204 old_archive_from_new_cmds_GCJ | \
26205 archive_cmds_GCJ | \
26206 archive_expsym_cmds_GCJ | \
26207 module_cmds_GCJ | \
26208 module_expsym_cmds_GCJ | \
26209 old_archive_from_expsyms_cmds_GCJ | \
26210 export_symbols_cmds_GCJ | \
26211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26212 postinstall_cmds | postuninstall_cmds | \
26213 old_postinstall_cmds | old_postuninstall_cmds | \
26214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26215 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026216 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 +000026217 ;;
26218 *)
26219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26220 ;;
26221 esac
26222 done
26223
26224 case $lt_echo in
26225 *'\$0 --fallback-echo"')
26226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26227 ;;
26228 esac
26229
26230cfgfile="$ofile"
26231
26232 cat <<__EOF__ >> "$cfgfile"
26233# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26234
26235# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26236
26237# Shell to use when invoking shell scripts.
26238SHELL=$lt_SHELL
26239
26240# Whether or not to build shared libraries.
26241build_libtool_libs=$enable_shared
26242
26243# Whether or not to build static libraries.
26244build_old_libs=$enable_static
26245
26246# Whether or not to add -lc for building shared libraries.
26247build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26248
26249# Whether or not to disallow shared libs when runtime libs are static
26250allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26251
26252# Whether or not to optimize for fast installation.
26253fast_install=$enable_fast_install
26254
26255# The host system.
26256host_alias=$host_alias
26257host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026258host_os=$host_os
26259
26260# The build system.
26261build_alias=$build_alias
26262build=$build
26263build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026264
26265# An echo program that does not interpret backslashes.
26266echo=$lt_echo
26267
26268# The archiver.
26269AR=$lt_AR
26270AR_FLAGS=$lt_AR_FLAGS
26271
26272# A C compiler.
26273LTCC=$lt_LTCC
26274
Reid Spencera773bd52006-08-04 18:18:08 +000026275# LTCC compiler flags.
26276LTCFLAGS=$lt_LTCFLAGS
26277
John Criswell47fdd832003-07-14 16:52:07 +000026278# A language-specific compiler.
26279CC=$lt_compiler_GCJ
26280
26281# Is the compiler the GNU C compiler?
26282with_gcc=$GCC_GCJ
26283
26284# An ERE matcher.
26285EGREP=$lt_EGREP
26286
26287# The linker used to build libraries.
26288LD=$lt_LD_GCJ
26289
26290# Whether we need hard or soft links.
26291LN_S=$lt_LN_S
26292
26293# A BSD-compatible nm program.
26294NM=$lt_NM
26295
26296# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026297STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026298
26299# Used to examine libraries when file_magic_cmd begins "file"
26300MAGIC_CMD=$MAGIC_CMD
26301
26302# Used on cygwin: DLL creation program.
26303DLLTOOL="$DLLTOOL"
26304
26305# Used on cygwin: object dumper.
26306OBJDUMP="$OBJDUMP"
26307
26308# Used on cygwin: assembler.
26309AS="$AS"
26310
26311# The name of the directory that contains temporary libtool files.
26312objdir=$objdir
26313
26314# How to create reloadable object files.
26315reload_flag=$lt_reload_flag
26316reload_cmds=$lt_reload_cmds
26317
26318# How to pass a linker flag through the compiler.
26319wl=$lt_lt_prog_compiler_wl_GCJ
26320
26321# Object file suffix (normally "o").
26322objext="$ac_objext"
26323
26324# Old archive suffix (normally "a").
26325libext="$libext"
26326
26327# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026328shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026329
26330# Executable file suffix (normally "").
26331exeext="$exeext"
26332
26333# Additional compiler flags for building library objects.
26334pic_flag=$lt_lt_prog_compiler_pic_GCJ
26335pic_mode=$pic_mode
26336
26337# What is the maximum length of a command?
26338max_cmd_len=$lt_cv_sys_max_cmd_len
26339
26340# Does compiler simultaneously support -c and -o options?
26341compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26342
Reid Spencera773bd52006-08-04 18:18:08 +000026343# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026344need_locks=$lt_need_locks
26345
26346# Do we need the lib prefix for modules?
26347need_lib_prefix=$need_lib_prefix
26348
26349# Do we need a version for libraries?
26350need_version=$need_version
26351
26352# Whether dlopen is supported.
26353dlopen_support=$enable_dlopen
26354
26355# Whether dlopen of programs is supported.
26356dlopen_self=$enable_dlopen_self
26357
26358# Whether dlopen of statically linked programs is supported.
26359dlopen_self_static=$enable_dlopen_self_static
26360
26361# Compiler flag to prevent dynamic linking.
26362link_static_flag=$lt_lt_prog_compiler_static_GCJ
26363
26364# Compiler flag to turn off builtin functions.
26365no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26366
26367# Compiler flag to allow reflexive dlopens.
26368export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26369
26370# Compiler flag to generate shared objects directly from archives.
26371whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26372
26373# Compiler flag to generate thread-safe objects.
26374thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26375
26376# Library versioning type.
26377version_type=$version_type
26378
26379# Format of library name prefix.
26380libname_spec=$lt_libname_spec
26381
26382# List of archive names. First name is the real one, the rest are links.
26383# The last name is the one that the linker finds with -lNAME.
26384library_names_spec=$lt_library_names_spec
26385
26386# The coded name of the library, if different from the real name.
26387soname_spec=$lt_soname_spec
26388
26389# Commands used to build and install an old-style archive.
26390RANLIB=$lt_RANLIB
26391old_archive_cmds=$lt_old_archive_cmds_GCJ
26392old_postinstall_cmds=$lt_old_postinstall_cmds
26393old_postuninstall_cmds=$lt_old_postuninstall_cmds
26394
26395# Create an old-style archive from a shared archive.
26396old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26397
26398# Create a temporary old-style archive to link instead of a shared archive.
26399old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26400
26401# Commands used to build and install a shared archive.
26402archive_cmds=$lt_archive_cmds_GCJ
26403archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26404postinstall_cmds=$lt_postinstall_cmds
26405postuninstall_cmds=$lt_postuninstall_cmds
26406
26407# Commands used to build a loadable module (assumed same as above if empty)
26408module_cmds=$lt_module_cmds_GCJ
26409module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26410
26411# Commands to strip libraries.
26412old_striplib=$lt_old_striplib
26413striplib=$lt_striplib
26414
26415# Dependencies to place before the objects being linked to create a
26416# shared library.
26417predep_objects=$lt_predep_objects_GCJ
26418
26419# Dependencies to place after the objects being linked to create a
26420# shared library.
26421postdep_objects=$lt_postdep_objects_GCJ
26422
26423# Dependencies to place before the objects being linked to create a
26424# shared library.
26425predeps=$lt_predeps_GCJ
26426
26427# Dependencies to place after the objects being linked to create a
26428# shared library.
26429postdeps=$lt_postdeps_GCJ
26430
26431# The library search path used internally by the compiler when linking
26432# a shared library.
26433compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26434
26435# Method to check whether dependent libraries are shared objects.
26436deplibs_check_method=$lt_deplibs_check_method
26437
26438# Command to use when deplibs_check_method == file_magic.
26439file_magic_cmd=$lt_file_magic_cmd
26440
26441# Flag that allows shared libraries with undefined symbols to be built.
26442allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26443
26444# Flag that forces no undefined symbols.
26445no_undefined_flag=$lt_no_undefined_flag_GCJ
26446
26447# Commands used to finish a libtool library installation in a directory.
26448finish_cmds=$lt_finish_cmds
26449
26450# Same as above, but a single script fragment to be evaled but not shown.
26451finish_eval=$lt_finish_eval
26452
26453# Take the output of nm and produce a listing of raw symbols and C names.
26454global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26455
26456# Transform the output of nm in a proper C declaration
26457global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26458
26459# Transform the output of nm in a C name address pair
26460global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26461
26462# This is the shared library runtime path variable.
26463runpath_var=$runpath_var
26464
26465# This is the shared library path variable.
26466shlibpath_var=$shlibpath_var
26467
26468# Is shlibpath searched before the hard-coded library search path?
26469shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26470
26471# How to hardcode a shared library path into an executable.
26472hardcode_action=$hardcode_action_GCJ
26473
26474# Whether we should hardcode library paths into libraries.
26475hardcode_into_libs=$hardcode_into_libs
26476
26477# Flag to hardcode \$libdir into a binary during linking.
26478# This must work even if \$libdir does not exist.
26479hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26480
26481# If ld is used when linking, flag to hardcode \$libdir into
26482# a binary during linking. This must work even if \$libdir does
26483# not exist.
26484hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26485
26486# Whether we need a single -rpath flag with a separated argument.
26487hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26488
26489# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26490# resulting binary.
26491hardcode_direct=$hardcode_direct_GCJ
26492
26493# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26494# resulting binary.
26495hardcode_minus_L=$hardcode_minus_L_GCJ
26496
26497# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26498# the resulting binary.
26499hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26500
26501# Set to yes if building a shared library automatically hardcodes DIR into the library
26502# and all subsequent libraries and executables linked against it.
26503hardcode_automatic=$hardcode_automatic_GCJ
26504
26505# Variables whose values should be saved in libtool wrapper scripts and
26506# restored at relink time.
26507variables_saved_for_relink="$variables_saved_for_relink"
26508
26509# Whether libtool must link a program against all its dependency libraries.
26510link_all_deplibs=$link_all_deplibs_GCJ
26511
26512# Compile-time system search path for libraries
26513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26514
26515# Run-time system search path for libraries
26516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26517
26518# Fix the shell variable \$srcfile for the compiler.
26519fix_srcfile_path="$fix_srcfile_path_GCJ"
26520
26521# Set to yes if exported symbols are required.
26522always_export_symbols=$always_export_symbols_GCJ
26523
26524# The commands to list exported symbols.
26525export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26526
26527# The commands to extract the exported symbol list from a shared archive.
26528extract_expsyms_cmds=$lt_extract_expsyms_cmds
26529
26530# Symbols that should not be listed in the preloaded symbols.
26531exclude_expsyms=$lt_exclude_expsyms_GCJ
26532
26533# Symbols that must always be exported.
26534include_expsyms=$lt_include_expsyms_GCJ
26535
26536# ### END LIBTOOL TAG CONFIG: $tagname
26537
26538__EOF__
26539
26540
26541else
26542 # If there is no Makefile yet, we rely on a make rule to execute
26543 # `config.status --recheck' to rerun these tests and create the
26544 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026545 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26546 if test -f "$ltmain_in"; then
26547 test -f Makefile && make "$ltmain"
26548 fi
John Criswell47fdd832003-07-14 16:52:07 +000026549fi
26550
26551
26552ac_ext=c
26553ac_cpp='$CPP $CPPFLAGS'
26554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26556ac_compiler_gnu=$ac_cv_c_compiler_gnu
26557
26558CC="$lt_save_CC"
26559
26560 else
26561 tagname=""
26562 fi
26563 ;;
26564
26565 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026566 ac_ext=c
26567ac_cpp='$CPP $CPPFLAGS'
26568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26570ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026571
26572
26573# Source file extension for RC test sources.
26574ac_ext=rc
26575
26576# Object file extension for compiled RC test sources.
26577objext=o
26578objext_RC=$objext
26579
26580# Code to be used in simple compile tests
26581lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26582
26583# Code to be used in simple link tests
26584lt_simple_link_test_code="$lt_simple_compile_test_code"
26585
26586# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26587
26588# If no C compiler was specified, use CC.
26589LTCC=${LTCC-"$CC"}
26590
Reid Spencera773bd52006-08-04 18:18:08 +000026591# If no C compiler flags were specified, use CFLAGS.
26592LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26593
John Criswell47fdd832003-07-14 16:52:07 +000026594# Allow CC to be a program name with arguments.
26595compiler=$CC
26596
26597
Reid Spencera773bd52006-08-04 18:18:08 +000026598# save warnings/boilerplate of simple test code
26599ac_outfile=conftest.$ac_objext
26600printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26601eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26602_lt_compiler_boilerplate=`cat conftest.err`
26603$rm conftest*
26604
26605ac_outfile=conftest.$ac_objext
26606printf "$lt_simple_link_test_code" >conftest.$ac_ext
26607eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26608_lt_linker_boilerplate=`cat conftest.err`
26609$rm conftest*
26610
26611
John Criswell47fdd832003-07-14 16:52:07 +000026612# Allow CC to be a program name with arguments.
26613lt_save_CC="$CC"
26614CC=${RC-"windres"}
26615compiler=$CC
26616compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026617for cc_temp in $compiler""; do
26618 case $cc_temp in
26619 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26620 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26621 \-*) ;;
26622 *) break;;
26623 esac
26624done
26625cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26626
John Criswell47fdd832003-07-14 16:52:07 +000026627lt_cv_prog_compiler_c_o_RC=yes
26628
26629# The else clause should only fire when bootstrapping the
26630# libtool distribution, otherwise you forgot to ship ltmain.sh
26631# with your package, and you will get complaints that there are
26632# no rules to generate ltmain.sh.
26633if test -f "$ltmain"; then
26634 # See if we are running on zsh, and set the options which allow our commands through
26635 # without removal of \ escapes.
26636 if test -n "${ZSH_VERSION+set}" ; then
26637 setopt NO_GLOB_SUBST
26638 fi
26639 # Now quote all the things that may contain metacharacters while being
26640 # careful not to overquote the AC_SUBSTed values. We take copies of the
26641 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026642 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 +000026643 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026644 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26645 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26646 deplibs_check_method reload_flag reload_cmds need_locks \
26647 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26648 lt_cv_sys_global_symbol_to_c_name_address \
26649 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26650 old_postinstall_cmds old_postuninstall_cmds \
26651 compiler_RC \
26652 CC_RC \
26653 LD_RC \
26654 lt_prog_compiler_wl_RC \
26655 lt_prog_compiler_pic_RC \
26656 lt_prog_compiler_static_RC \
26657 lt_prog_compiler_no_builtin_flag_RC \
26658 export_dynamic_flag_spec_RC \
26659 thread_safe_flag_spec_RC \
26660 whole_archive_flag_spec_RC \
26661 enable_shared_with_static_runtimes_RC \
26662 old_archive_cmds_RC \
26663 old_archive_from_new_cmds_RC \
26664 predep_objects_RC \
26665 postdep_objects_RC \
26666 predeps_RC \
26667 postdeps_RC \
26668 compiler_lib_search_path_RC \
26669 archive_cmds_RC \
26670 archive_expsym_cmds_RC \
26671 postinstall_cmds_RC \
26672 postuninstall_cmds_RC \
26673 old_archive_from_expsyms_cmds_RC \
26674 allow_undefined_flag_RC \
26675 no_undefined_flag_RC \
26676 export_symbols_cmds_RC \
26677 hardcode_libdir_flag_spec_RC \
26678 hardcode_libdir_flag_spec_ld_RC \
26679 hardcode_libdir_separator_RC \
26680 hardcode_automatic_RC \
26681 module_cmds_RC \
26682 module_expsym_cmds_RC \
26683 lt_cv_prog_compiler_c_o_RC \
26684 exclude_expsyms_RC \
26685 include_expsyms_RC; do
26686
26687 case $var in
26688 old_archive_cmds_RC | \
26689 old_archive_from_new_cmds_RC | \
26690 archive_cmds_RC | \
26691 archive_expsym_cmds_RC | \
26692 module_cmds_RC | \
26693 module_expsym_cmds_RC | \
26694 old_archive_from_expsyms_cmds_RC | \
26695 export_symbols_cmds_RC | \
26696 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26697 postinstall_cmds | postuninstall_cmds | \
26698 old_postinstall_cmds | old_postuninstall_cmds | \
26699 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26700 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026701 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 +000026702 ;;
26703 *)
26704 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26705 ;;
26706 esac
26707 done
26708
26709 case $lt_echo in
26710 *'\$0 --fallback-echo"')
26711 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26712 ;;
26713 esac
26714
26715cfgfile="$ofile"
26716
26717 cat <<__EOF__ >> "$cfgfile"
26718# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26719
26720# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26721
26722# Shell to use when invoking shell scripts.
26723SHELL=$lt_SHELL
26724
26725# Whether or not to build shared libraries.
26726build_libtool_libs=$enable_shared
26727
26728# Whether or not to build static libraries.
26729build_old_libs=$enable_static
26730
26731# Whether or not to add -lc for building shared libraries.
26732build_libtool_need_lc=$archive_cmds_need_lc_RC
26733
26734# Whether or not to disallow shared libs when runtime libs are static
26735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26736
26737# Whether or not to optimize for fast installation.
26738fast_install=$enable_fast_install
26739
26740# The host system.
26741host_alias=$host_alias
26742host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026743host_os=$host_os
26744
26745# The build system.
26746build_alias=$build_alias
26747build=$build
26748build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026749
26750# An echo program that does not interpret backslashes.
26751echo=$lt_echo
26752
26753# The archiver.
26754AR=$lt_AR
26755AR_FLAGS=$lt_AR_FLAGS
26756
26757# A C compiler.
26758LTCC=$lt_LTCC
26759
Reid Spencera773bd52006-08-04 18:18:08 +000026760# LTCC compiler flags.
26761LTCFLAGS=$lt_LTCFLAGS
26762
John Criswell47fdd832003-07-14 16:52:07 +000026763# A language-specific compiler.
26764CC=$lt_compiler_RC
26765
26766# Is the compiler the GNU C compiler?
26767with_gcc=$GCC_RC
26768
26769# An ERE matcher.
26770EGREP=$lt_EGREP
26771
26772# The linker used to build libraries.
26773LD=$lt_LD_RC
26774
26775# Whether we need hard or soft links.
26776LN_S=$lt_LN_S
26777
26778# A BSD-compatible nm program.
26779NM=$lt_NM
26780
26781# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026782STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026783
26784# Used to examine libraries when file_magic_cmd begins "file"
26785MAGIC_CMD=$MAGIC_CMD
26786
26787# Used on cygwin: DLL creation program.
26788DLLTOOL="$DLLTOOL"
26789
26790# Used on cygwin: object dumper.
26791OBJDUMP="$OBJDUMP"
26792
26793# Used on cygwin: assembler.
26794AS="$AS"
26795
26796# The name of the directory that contains temporary libtool files.
26797objdir=$objdir
26798
26799# How to create reloadable object files.
26800reload_flag=$lt_reload_flag
26801reload_cmds=$lt_reload_cmds
26802
26803# How to pass a linker flag through the compiler.
26804wl=$lt_lt_prog_compiler_wl_RC
26805
26806# Object file suffix (normally "o").
26807objext="$ac_objext"
26808
26809# Old archive suffix (normally "a").
26810libext="$libext"
26811
26812# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026813shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026814
26815# Executable file suffix (normally "").
26816exeext="$exeext"
26817
26818# Additional compiler flags for building library objects.
26819pic_flag=$lt_lt_prog_compiler_pic_RC
26820pic_mode=$pic_mode
26821
26822# What is the maximum length of a command?
26823max_cmd_len=$lt_cv_sys_max_cmd_len
26824
26825# Does compiler simultaneously support -c and -o options?
26826compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26827
Reid Spencera773bd52006-08-04 18:18:08 +000026828# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026829need_locks=$lt_need_locks
26830
26831# Do we need the lib prefix for modules?
26832need_lib_prefix=$need_lib_prefix
26833
26834# Do we need a version for libraries?
26835need_version=$need_version
26836
26837# Whether dlopen is supported.
26838dlopen_support=$enable_dlopen
26839
26840# Whether dlopen of programs is supported.
26841dlopen_self=$enable_dlopen_self
26842
26843# Whether dlopen of statically linked programs is supported.
26844dlopen_self_static=$enable_dlopen_self_static
26845
26846# Compiler flag to prevent dynamic linking.
26847link_static_flag=$lt_lt_prog_compiler_static_RC
26848
26849# Compiler flag to turn off builtin functions.
26850no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26851
26852# Compiler flag to allow reflexive dlopens.
26853export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26854
26855# Compiler flag to generate shared objects directly from archives.
26856whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26857
26858# Compiler flag to generate thread-safe objects.
26859thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26860
26861# Library versioning type.
26862version_type=$version_type
26863
26864# Format of library name prefix.
26865libname_spec=$lt_libname_spec
26866
26867# List of archive names. First name is the real one, the rest are links.
26868# The last name is the one that the linker finds with -lNAME.
26869library_names_spec=$lt_library_names_spec
26870
26871# The coded name of the library, if different from the real name.
26872soname_spec=$lt_soname_spec
26873
26874# Commands used to build and install an old-style archive.
26875RANLIB=$lt_RANLIB
26876old_archive_cmds=$lt_old_archive_cmds_RC
26877old_postinstall_cmds=$lt_old_postinstall_cmds
26878old_postuninstall_cmds=$lt_old_postuninstall_cmds
26879
26880# Create an old-style archive from a shared archive.
26881old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26882
26883# Create a temporary old-style archive to link instead of a shared archive.
26884old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26885
26886# Commands used to build and install a shared archive.
26887archive_cmds=$lt_archive_cmds_RC
26888archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26889postinstall_cmds=$lt_postinstall_cmds
26890postuninstall_cmds=$lt_postuninstall_cmds
26891
26892# Commands used to build a loadable module (assumed same as above if empty)
26893module_cmds=$lt_module_cmds_RC
26894module_expsym_cmds=$lt_module_expsym_cmds_RC
26895
26896# Commands to strip libraries.
26897old_striplib=$lt_old_striplib
26898striplib=$lt_striplib
26899
26900# Dependencies to place before the objects being linked to create a
26901# shared library.
26902predep_objects=$lt_predep_objects_RC
26903
26904# Dependencies to place after the objects being linked to create a
26905# shared library.
26906postdep_objects=$lt_postdep_objects_RC
26907
26908# Dependencies to place before the objects being linked to create a
26909# shared library.
26910predeps=$lt_predeps_RC
26911
26912# Dependencies to place after the objects being linked to create a
26913# shared library.
26914postdeps=$lt_postdeps_RC
26915
26916# The library search path used internally by the compiler when linking
26917# a shared library.
26918compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26919
26920# Method to check whether dependent libraries are shared objects.
26921deplibs_check_method=$lt_deplibs_check_method
26922
26923# Command to use when deplibs_check_method == file_magic.
26924file_magic_cmd=$lt_file_magic_cmd
26925
26926# Flag that allows shared libraries with undefined symbols to be built.
26927allow_undefined_flag=$lt_allow_undefined_flag_RC
26928
26929# Flag that forces no undefined symbols.
26930no_undefined_flag=$lt_no_undefined_flag_RC
26931
26932# Commands used to finish a libtool library installation in a directory.
26933finish_cmds=$lt_finish_cmds
26934
26935# Same as above, but a single script fragment to be evaled but not shown.
26936finish_eval=$lt_finish_eval
26937
26938# Take the output of nm and produce a listing of raw symbols and C names.
26939global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26940
26941# Transform the output of nm in a proper C declaration
26942global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26943
26944# Transform the output of nm in a C name address pair
26945global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26946
26947# This is the shared library runtime path variable.
26948runpath_var=$runpath_var
26949
26950# This is the shared library path variable.
26951shlibpath_var=$shlibpath_var
26952
26953# Is shlibpath searched before the hard-coded library search path?
26954shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26955
26956# How to hardcode a shared library path into an executable.
26957hardcode_action=$hardcode_action_RC
26958
26959# Whether we should hardcode library paths into libraries.
26960hardcode_into_libs=$hardcode_into_libs
26961
26962# Flag to hardcode \$libdir into a binary during linking.
26963# This must work even if \$libdir does not exist.
26964hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26965
26966# If ld is used when linking, flag to hardcode \$libdir into
26967# a binary during linking. This must work even if \$libdir does
26968# not exist.
26969hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26970
26971# Whether we need a single -rpath flag with a separated argument.
26972hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26973
26974# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26975# resulting binary.
26976hardcode_direct=$hardcode_direct_RC
26977
26978# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26979# resulting binary.
26980hardcode_minus_L=$hardcode_minus_L_RC
26981
26982# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26983# the resulting binary.
26984hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26985
26986# Set to yes if building a shared library automatically hardcodes DIR into the library
26987# and all subsequent libraries and executables linked against it.
26988hardcode_automatic=$hardcode_automatic_RC
26989
26990# Variables whose values should be saved in libtool wrapper scripts and
26991# restored at relink time.
26992variables_saved_for_relink="$variables_saved_for_relink"
26993
26994# Whether libtool must link a program against all its dependency libraries.
26995link_all_deplibs=$link_all_deplibs_RC
26996
26997# Compile-time system search path for libraries
26998sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26999
27000# Run-time system search path for libraries
27001sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27002
27003# Fix the shell variable \$srcfile for the compiler.
27004fix_srcfile_path="$fix_srcfile_path_RC"
27005
27006# Set to yes if exported symbols are required.
27007always_export_symbols=$always_export_symbols_RC
27008
27009# The commands to list exported symbols.
27010export_symbols_cmds=$lt_export_symbols_cmds_RC
27011
27012# The commands to extract the exported symbol list from a shared archive.
27013extract_expsyms_cmds=$lt_extract_expsyms_cmds
27014
27015# Symbols that should not be listed in the preloaded symbols.
27016exclude_expsyms=$lt_exclude_expsyms_RC
27017
27018# Symbols that must always be exported.
27019include_expsyms=$lt_include_expsyms_RC
27020
27021# ### END LIBTOOL TAG CONFIG: $tagname
27022
27023__EOF__
27024
27025
27026else
27027 # If there is no Makefile yet, we rely on a make rule to execute
27028 # `config.status --recheck' to rerun these tests and create the
27029 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027030 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27031 if test -f "$ltmain_in"; then
27032 test -f Makefile && make "$ltmain"
27033 fi
John Criswell47fdd832003-07-14 16:52:07 +000027034fi
27035
27036
27037ac_ext=c
27038ac_cpp='$CPP $CPPFLAGS'
27039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27041ac_compiler_gnu=$ac_cv_c_compiler_gnu
27042
27043CC="$lt_save_CC"
27044
27045 ;;
27046
27047 *)
27048 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27049echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27050 { (exit 1); exit 1; }; }
27051 ;;
27052 esac
27053
27054 # Append the new tag name to the list of available tags.
27055 if test -n "$tagname" ; then
27056 available_tags="$available_tags $tagname"
27057 fi
27058 fi
27059 done
27060 IFS="$lt_save_ifs"
27061
27062 # Now substitute the updated list of available tags.
27063 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27064 mv "${ofile}T" "$ofile"
27065 chmod +x "$ofile"
27066 else
27067 rm -f "${ofile}T"
27068 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27069echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27070 { (exit 1); exit 1; }; }
27071 fi
27072fi
John Criswell7a73b802003-06-30 21:59:07 +000027073
27074
27075
27076# This can be used to rebuild libtool when needed
27077LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27078
27079# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027080LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027081
27082# Prevent multiple expansion
27083
27084
27085
John Criswell47fdd832003-07-14 16:52:07 +000027086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027103
Reid Spencer582a23c2004-12-29 07:07:57 +000027104if test "$lt_cv_dlopen_self" = "yes" ; then
27105
27106cat >>confdefs.h <<\_ACEOF
27107#define CAN_DLOPEN_SELF 1
27108_ACEOF
27109
27110fi
27111
Reid Spencer7931a782004-12-27 06:15:02 +000027112if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027113 LLVMGCC="llvm-gcc${EXEEXT}"
27114 LLVMGXX="llvm-g++${EXEEXT}"
27115 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27116set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027117{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027119if test "${ac_cv_path_LLVMGCC+set}" = set; then
27120 echo $ECHO_N "(cached) $ECHO_C" >&6
27121else
27122 case $LLVMGCC in
27123 [\\/]* | ?:[\\/]*)
27124 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27125 ;;
27126 *)
27127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27128for as_dir in $PATH
27129do
27130 IFS=$as_save_IFS
27131 test -z "$as_dir" && as_dir=.
27132 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027133 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 +000027134 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27136 break 2
27137 fi
27138done
27139done
Reid Spencera773bd52006-08-04 18:18:08 +000027140IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027141
Reid Spencer59473af2004-12-25 07:31:29 +000027142 ;;
27143esac
27144fi
27145LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027146if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027147 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27148echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027149else
Reid Spencera773bd52006-08-04 18:18:08 +000027150 { echo "$as_me:$LINENO: result: no" >&5
27151echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027152fi
27153
Reid Spencera773bd52006-08-04 18:18:08 +000027154
Reid Spencerc84492c2005-06-02 22:34:49 +000027155 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27156set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027159if test "${ac_cv_path_LLVMGXX+set}" = set; then
27160 echo $ECHO_N "(cached) $ECHO_C" >&6
27161else
27162 case $LLVMGXX in
27163 [\\/]* | ?:[\\/]*)
27164 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27165 ;;
27166 *)
27167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27168for as_dir in $PATH
27169do
27170 IFS=$as_save_IFS
27171 test -z "$as_dir" && as_dir=.
27172 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027173 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 +000027174 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27176 break 2
27177 fi
27178done
27179done
Reid Spencera773bd52006-08-04 18:18:08 +000027180IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027181
Reid Spencer59473af2004-12-25 07:31:29 +000027182 ;;
27183esac
27184fi
27185LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027186if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027187 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27188echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027189else
Reid Spencera773bd52006-08-04 18:18:08 +000027190 { echo "$as_me:$LINENO: result: no" >&5
27191echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027192fi
27193
Reid Spencera773bd52006-08-04 18:18:08 +000027194
Reid Spencer59473af2004-12-25 07:31:29 +000027195else
Devang Patel5d28b882007-12-04 22:54:47 +000027196 if test -z "$LLVMGCC"; then
27197 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27198 fi
27199 if test -z "$LLVMGXX"; then
27200 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27201 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027202 LLVMGCC=$LLVMGCC
27203
27204 LLVMGXX=$LLVMGXX
27205
27206fi
27207
Reid Spencera773bd52006-08-04 18:18:08 +000027208{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27209echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027210
Reid Spencer86901802004-12-08 23:07:27 +000027211ICC=no
27212IXX=no
27213case $CC in
27214 icc*|icpc*)
27215 ICC=yes
27216 IXX=yes
27217 ;;
27218 *)
27219 ;;
27220esac
27221
Duraid Madina937c60a2006-02-15 07:57:42 +000027222if test "$GCC" != "yes" && test "$ICC" != "yes"
27223then
27224 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27225echo "$as_me: error: gcc|icc required but not found" >&2;}
27226 { (exit 1); exit 1; }; }
27227fi
27228
27229if test "$GXX" != "yes" && test "$IXX" != "yes"
27230then
27231 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27232echo "$as_me: error: g++|icc required but not found" >&2;}
27233 { (exit 1); exit 1; }; }
27234fi
27235
Reid Spencer86901802004-12-08 23:07:27 +000027236if test "$GCC" = "yes"
27237then
Chris Lattner399c7c72008-02-05 19:43:53 +000027238 cat >conftest.$ac_ext <<_ACEOF
27239#if !defined(__GNUC__) || __GNUC__ < 3
27240#error Unsupported GCC version
27241#endif
27242
27243_ACEOF
27244rm -f conftest.$ac_objext
27245if { (ac_try="$ac_compile"
27246case "(($ac_try" in
27247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248 *) ac_try_echo=$ac_try;;
27249esac
27250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251 (eval "$ac_compile") 2>conftest.er1
27252 ac_status=$?
27253 grep -v '^ *+' conftest.er1 >conftest.err
27254 rm -f conftest.er1
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027257 (exit $ac_status); } &&
27258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27259 { (case "(($ac_try" in
27260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261 *) ac_try_echo=$ac_try;;
27262esac
27263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264 (eval "$ac_try") 2>&5
27265 ac_status=$?
27266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267 (exit $ac_status); }; } &&
27268 { ac_try='test -s conftest.$ac_objext'
27269 { (case "(($ac_try" in
27270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27271 *) ac_try_echo=$ac_try;;
27272esac
27273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27274 (eval "$ac_try") 2>&5
27275 ac_status=$?
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027278 :
27279else
27280 echo "$as_me: failed program was:" >&5
27281sed 's/^/| /' conftest.$ac_ext >&5
27282
27283 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027284echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27285 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027286fi
27287
27288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027289fi
27290
27291if test -z "$llvm_cv_gnu_make_command"
27292then
27293 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27294echo "$as_me: error: GNU Make required but not found" >&2;}
27295 { (exit 1); exit 1; }; }
27296fi
27297
Reid Spencera773bd52006-08-04 18:18:08 +000027298{ echo "$as_me:$LINENO: result: ok" >&5
27299echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027300
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027301
John Criswell7a73b802003-06-30 21:59:07 +000027302
Reid Spencera773bd52006-08-04 18:18:08 +000027303{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27304echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027305if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
27307else
27308 ac_check_lib_save_LIBS=$LIBS
27309LIBS="-lelf $LIBS"
27310cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027311/* confdefs.h. */
27312_ACEOF
27313cat confdefs.h >>conftest.$ac_ext
27314cat >>conftest.$ac_ext <<_ACEOF
27315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027316
Reid Spencera773bd52006-08-04 18:18:08 +000027317/* Override any GCC internal prototype to avoid an error.
27318 Use char because int might match the return type of a GCC
27319 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027320#ifdef __cplusplus
27321extern "C"
27322#endif
John Criswell7a73b802003-06-30 21:59:07 +000027323char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027324int
27325main ()
27326{
Reid Spencera773bd52006-08-04 18:18:08 +000027327return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027328 ;
27329 return 0;
27330}
27331_ACEOF
27332rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027333if { (ac_try="$ac_link"
27334case "(($ac_try" in
27335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27336 *) ac_try_echo=$ac_try;;
27337esac
27338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27339 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027341 grep -v '^ *+' conftest.er1 >conftest.err
27342 rm -f conftest.er1
27343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027345 (exit $ac_status); } &&
27346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27347 { (case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27350esac
27351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_try") 2>&5
27353 ac_status=$?
27354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27355 (exit $ac_status); }; } &&
27356 { ac_try='test -s conftest$ac_exeext'
27357 { (case "(($ac_try" in
27358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27359 *) ac_try_echo=$ac_try;;
27360esac
27361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27362 (eval "$ac_try") 2>&5
27363 ac_status=$?
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027366 ac_cv_lib_elf_elf_begin=yes
27367else
27368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027369sed 's/^/| /' conftest.$ac_ext >&5
27370
Reid Spencera773bd52006-08-04 18:18:08 +000027371 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027372fi
Reid Spencera773bd52006-08-04 18:18:08 +000027373
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027374rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027375 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027376LIBS=$ac_check_lib_save_LIBS
27377fi
Reid Spencera773bd52006-08-04 18:18:08 +000027378{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27379echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027380if test $ac_cv_lib_elf_elf_begin = yes; then
27381 cat >>confdefs.h <<_ACEOF
27382#define HAVE_LIBELF 1
27383_ACEOF
27384
27385 LIBS="-lelf $LIBS"
27386
27387fi
27388
27389
Reid Spencera773bd52006-08-04 18:18:08 +000027390{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27391echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027392if test "${ac_cv_lib_m_sin+set}" = set; then
27393 echo $ECHO_N "(cached) $ECHO_C" >&6
27394else
27395 ac_check_lib_save_LIBS=$LIBS
27396LIBS="-lm $LIBS"
27397cat >conftest.$ac_ext <<_ACEOF
27398/* confdefs.h. */
27399_ACEOF
27400cat confdefs.h >>conftest.$ac_ext
27401cat >>conftest.$ac_ext <<_ACEOF
27402/* end confdefs.h. */
27403
Reid Spencera773bd52006-08-04 18:18:08 +000027404/* Override any GCC internal prototype to avoid an error.
27405 Use char because int might match the return type of a GCC
27406 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027407#ifdef __cplusplus
27408extern "C"
27409#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027410char sin ();
27411int
27412main ()
27413{
Reid Spencera773bd52006-08-04 18:18:08 +000027414return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027415 ;
27416 return 0;
27417}
27418_ACEOF
27419rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027420if { (ac_try="$ac_link"
27421case "(($ac_try" in
27422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423 *) ac_try_echo=$ac_try;;
27424esac
27425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027427 ac_status=$?
27428 grep -v '^ *+' conftest.er1 >conftest.err
27429 rm -f conftest.er1
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027432 (exit $ac_status); } &&
27433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27434 { (case "(($ac_try" in
27435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27436 *) ac_try_echo=$ac_try;;
27437esac
27438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27439 (eval "$ac_try") 2>&5
27440 ac_status=$?
27441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27442 (exit $ac_status); }; } &&
27443 { ac_try='test -s conftest$ac_exeext'
27444 { (case "(($ac_try" in
27445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446 *) ac_try_echo=$ac_try;;
27447esac
27448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449 (eval "$ac_try") 2>&5
27450 ac_status=$?
27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27452 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027453 ac_cv_lib_m_sin=yes
27454else
27455 echo "$as_me: failed program was:" >&5
27456sed 's/^/| /' conftest.$ac_ext >&5
27457
Reid Spencera773bd52006-08-04 18:18:08 +000027458 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027459fi
Reid Spencera773bd52006-08-04 18:18:08 +000027460
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027461rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027462 conftest$ac_exeext conftest.$ac_ext
27463LIBS=$ac_check_lib_save_LIBS
27464fi
Reid Spencera773bd52006-08-04 18:18:08 +000027465{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27466echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027467if test $ac_cv_lib_m_sin = yes; then
27468 cat >>confdefs.h <<_ACEOF
27469#define HAVE_LIBM 1
27470_ACEOF
27471
27472 LIBS="-lm $LIBS"
27473
27474fi
27475
Jeff Cohen28783c32007-01-12 18:22:38 +000027476if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027477
Reid Spencera773bd52006-08-04 18:18:08 +000027478{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27479echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027480if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027481 echo $ECHO_N "(cached) $ECHO_C" >&6
27482else
27483 ac_check_lib_save_LIBS=$LIBS
27484LIBS="-limagehlp $LIBS"
27485cat >conftest.$ac_ext <<_ACEOF
27486/* confdefs.h. */
27487_ACEOF
27488cat confdefs.h >>conftest.$ac_ext
27489cat >>conftest.$ac_ext <<_ACEOF
27490/* end confdefs.h. */
27491
Reid Spencer48fdf912006-06-01 19:03:21 +000027492
Reid Spencer484fc8e2006-06-01 16:55:59 +000027493int
27494main ()
27495{
Reid Spencera773bd52006-08-04 18:18:08 +000027496return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027497 ;
27498 return 0;
27499}
27500_ACEOF
27501rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027502if { (ac_try="$ac_link"
27503case "(($ac_try" in
27504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27505 *) ac_try_echo=$ac_try;;
27506esac
27507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27508 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027509 ac_status=$?
27510 grep -v '^ *+' conftest.er1 >conftest.err
27511 rm -f conftest.er1
27512 cat conftest.err >&5
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027514 (exit $ac_status); } &&
27515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27516 { (case "(($ac_try" in
27517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518 *) ac_try_echo=$ac_try;;
27519esac
27520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521 (eval "$ac_try") 2>&5
27522 ac_status=$?
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); }; } &&
27525 { ac_try='test -s conftest$ac_exeext'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027535 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027536else
27537 echo "$as_me: failed program was:" >&5
27538sed 's/^/| /' conftest.$ac_ext >&5
27539
Reid Spencera773bd52006-08-04 18:18:08 +000027540 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027541fi
Reid Spencera773bd52006-08-04 18:18:08 +000027542
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027543rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027544 conftest$ac_exeext conftest.$ac_ext
27545LIBS=$ac_check_lib_save_LIBS
27546fi
Reid Spencera773bd52006-08-04 18:18:08 +000027547{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27548echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027549if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027550 cat >>confdefs.h <<_ACEOF
27551#define HAVE_LIBIMAGEHLP 1
27552_ACEOF
27553
27554 LIBS="-limagehlp $LIBS"
27555
27556fi
27557
27558
Reid Spencera773bd52006-08-04 18:18:08 +000027559{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27560echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027561if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027562 echo $ECHO_N "(cached) $ECHO_C" >&6
27563else
27564 ac_check_lib_save_LIBS=$LIBS
27565LIBS="-lpsapi $LIBS"
27566cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h. */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h. */
27572
Reid Spencer48fdf912006-06-01 19:03:21 +000027573
Reid Spencer484fc8e2006-06-01 16:55:59 +000027574int
27575main ()
27576{
Reid Spencera773bd52006-08-04 18:18:08 +000027577return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027578 ;
27579 return 0;
27580}
27581_ACEOF
27582rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027583if { (ac_try="$ac_link"
27584case "(($ac_try" in
27585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586 *) ac_try_echo=$ac_try;;
27587esac
27588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027590 ac_status=$?
27591 grep -v '^ *+' conftest.er1 >conftest.err
27592 rm -f conftest.er1
27593 cat conftest.err >&5
27594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027595 (exit $ac_status); } &&
27596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27597 { (case "(($ac_try" in
27598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599 *) ac_try_echo=$ac_try;;
27600esac
27601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602 (eval "$ac_try") 2>&5
27603 ac_status=$?
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); }; } &&
27606 { ac_try='test -s conftest$ac_exeext'
27607 { (case "(($ac_try" in
27608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27610esac
27611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_try") 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027616 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027617else
27618 echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
Reid Spencera773bd52006-08-04 18:18:08 +000027621 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027622fi
Reid Spencera773bd52006-08-04 18:18:08 +000027623
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027624rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027625 conftest$ac_exeext conftest.$ac_ext
27626LIBS=$ac_check_lib_save_LIBS
27627fi
Reid Spencera773bd52006-08-04 18:18:08 +000027628{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27629echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027630if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027631 cat >>confdefs.h <<_ACEOF
27632#define HAVE_LIBPSAPI 1
27633_ACEOF
27634
27635 LIBS="-lpsapi $LIBS"
27636
27637fi
27638
27639fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027640
Reid Spencera773bd52006-08-04 18:18:08 +000027641{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27642echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027643if test "${ac_cv_search_dlopen+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27645else
27646 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027647cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027648/* confdefs.h. */
27649_ACEOF
27650cat confdefs.h >>conftest.$ac_ext
27651cat >>conftest.$ac_ext <<_ACEOF
27652/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027653
Reid Spencera773bd52006-08-04 18:18:08 +000027654/* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027657#ifdef __cplusplus
27658extern "C"
27659#endif
John Criswell7a73b802003-06-30 21:59:07 +000027660char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027661int
27662main ()
27663{
Reid Spencera773bd52006-08-04 18:18:08 +000027664return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027665 ;
27666 return 0;
27667}
27668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027669for ac_lib in '' dl; do
27670 if test -z "$ac_lib"; then
27671 ac_res="none required"
27672 else
27673 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027675 fi
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677if { (ac_try="$ac_link"
27678case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27681esac
27682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027689 (exit $ac_status); } &&
27690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27694esac
27695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
27701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704esac
27705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027710 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027711else
27712 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027713sed 's/^/| /' conftest.$ac_ext >&5
27714
Reid Spencera773bd52006-08-04 18:18:08 +000027715
John Criswell7a73b802003-06-30 21:59:07 +000027716fi
Reid Spencera773bd52006-08-04 18:18:08 +000027717
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027718rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027719 conftest$ac_exeext
27720 if test "${ac_cv_search_dlopen+set}" = set; then
27721 break
John Criswell7a73b802003-06-30 21:59:07 +000027722fi
Reid Spencera773bd52006-08-04 18:18:08 +000027723done
27724if test "${ac_cv_search_dlopen+set}" = set; then
27725 :
27726else
27727 ac_cv_search_dlopen=no
27728fi
27729rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027730LIBS=$ac_func_search_save_LIBS
27731fi
Reid Spencera773bd52006-08-04 18:18:08 +000027732{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27733echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27734ac_res=$ac_cv_search_dlopen
27735if test "$ac_res" != no; then
27736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027737
27738cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027739#define HAVE_DLOPEN 1
27740_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027741
27742else
Brian Gaekec45be042003-10-07 06:01:34 +000027743 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27744echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027745fi
27746
27747
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027748{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27749echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27750if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753 ac_check_lib_save_LIBS=$LIBS
27754LIBS="-lffi $LIBS"
27755cat >conftest.$ac_ext <<_ACEOF
27756/* confdefs.h. */
27757_ACEOF
27758cat confdefs.h >>conftest.$ac_ext
27759cat >>conftest.$ac_ext <<_ACEOF
27760/* end confdefs.h. */
27761
27762/* Override any GCC internal prototype to avoid an error.
27763 Use char because int might match the return type of a GCC
27764 builtin and then its argument prototype would still apply. */
27765#ifdef __cplusplus
27766extern "C"
27767#endif
27768char ffi_call ();
27769int
27770main ()
27771{
27772return ffi_call ();
27773 ;
27774 return 0;
27775}
27776_ACEOF
27777rm -f conftest.$ac_objext conftest$ac_exeext
27778if { (ac_try="$ac_link"
27779case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
27785 ac_status=$?
27786 grep -v '^ *+' conftest.er1 >conftest.err
27787 rm -f conftest.er1
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
27791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27795esac
27796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
27798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
27802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27805esac
27806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
27808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
27811 ac_cv_lib_ffi_ffi_call=yes
27812else
27813 echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816 ac_cv_lib_ffi_ffi_call=no
27817fi
27818
27819rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext conftest.$ac_ext
27821LIBS=$ac_check_lib_save_LIBS
27822fi
27823{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27824echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27825if test $ac_cv_lib_ffi_ffi_call = yes; then
27826 have_libffi=1
27827else
27828 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27829echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27830fi
27831
27832
Reid Spencera773bd52006-08-04 18:18:08 +000027833{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27834echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027835if test "${ac_cv_search_mallinfo+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27837else
27838 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027839cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027840/* confdefs.h. */
27841_ACEOF
27842cat confdefs.h >>conftest.$ac_ext
27843cat >>conftest.$ac_ext <<_ACEOF
27844/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027845
Reid Spencera773bd52006-08-04 18:18:08 +000027846/* Override any GCC internal prototype to avoid an error.
27847 Use char because int might match the return type of a GCC
27848 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027849#ifdef __cplusplus
27850extern "C"
27851#endif
John Criswell7a73b802003-06-30 21:59:07 +000027852char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027853int
27854main ()
27855{
Reid Spencera773bd52006-08-04 18:18:08 +000027856return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027857 ;
27858 return 0;
27859}
27860_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027861for ac_lib in '' malloc; do
27862 if test -z "$ac_lib"; then
27863 ac_res="none required"
27864 else
27865 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027867 fi
27868 rm -f conftest.$ac_objext conftest$ac_exeext
27869if { (ac_try="$ac_link"
27870case "(($ac_try" in
27871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27872 *) ac_try_echo=$ac_try;;
27873esac
27874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27875 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027876 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027877 grep -v '^ *+' conftest.er1 >conftest.err
27878 rm -f conftest.er1
27879 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027881 (exit $ac_status); } &&
27882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27883 { (case "(($ac_try" in
27884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27885 *) ac_try_echo=$ac_try;;
27886esac
27887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27888 (eval "$ac_try") 2>&5
27889 ac_status=$?
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } &&
27892 { ac_try='test -s conftest$ac_exeext'
27893 { (case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27896esac
27897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_try") 2>&5
27899 ac_status=$?
27900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027902 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027903else
27904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027905sed 's/^/| /' conftest.$ac_ext >&5
27906
Reid Spencera773bd52006-08-04 18:18:08 +000027907
John Criswell7a73b802003-06-30 21:59:07 +000027908fi
Reid Spencera773bd52006-08-04 18:18:08 +000027909
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027910rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027911 conftest$ac_exeext
27912 if test "${ac_cv_search_mallinfo+set}" = set; then
27913 break
John Criswell7a73b802003-06-30 21:59:07 +000027914fi
Reid Spencera773bd52006-08-04 18:18:08 +000027915done
27916if test "${ac_cv_search_mallinfo+set}" = set; then
27917 :
27918else
27919 ac_cv_search_mallinfo=no
27920fi
27921rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027922LIBS=$ac_func_search_save_LIBS
27923fi
Reid Spencera773bd52006-08-04 18:18:08 +000027924{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27925echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27926ac_res=$ac_cv_search_mallinfo
27927if test "$ac_res" != no; then
27928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027929
27930cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027931#define HAVE_MALLINFO 1
27932_ACEOF
27933
27934fi
27935
27936
Reid Spencer0a262ba2005-08-24 10:07:20 +000027937if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027938
Reid Spencera773bd52006-08-04 18:18:08 +000027939{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27940echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027941if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27942 echo $ECHO_N "(cached) $ECHO_C" >&6
27943else
27944 ac_check_lib_save_LIBS=$LIBS
27945LIBS="-lpthread $LIBS"
27946cat >conftest.$ac_ext <<_ACEOF
27947/* confdefs.h. */
27948_ACEOF
27949cat confdefs.h >>conftest.$ac_ext
27950cat >>conftest.$ac_ext <<_ACEOF
27951/* end confdefs.h. */
27952
Reid Spencera773bd52006-08-04 18:18:08 +000027953/* Override any GCC internal prototype to avoid an error.
27954 Use char because int might match the return type of a GCC
27955 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027956#ifdef __cplusplus
27957extern "C"
27958#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027959char pthread_mutex_init ();
27960int
27961main ()
27962{
Reid Spencera773bd52006-08-04 18:18:08 +000027963return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027969if { (ac_try="$ac_link"
27970case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27996esac
27997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028002 ac_cv_lib_pthread_pthread_mutex_init=yes
28003else
28004 echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
Reid Spencera773bd52006-08-04 18:18:08 +000028007 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028008fi
Reid Spencera773bd52006-08-04 18:18:08 +000028009
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028010rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028011 conftest$ac_exeext conftest.$ac_ext
28012LIBS=$ac_check_lib_save_LIBS
28013fi
Reid Spencera773bd52006-08-04 18:18:08 +000028014{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28015echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028016if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28017 cat >>confdefs.h <<_ACEOF
28018#define HAVE_LIBPTHREAD 1
28019_ACEOF
28020
28021 LIBS="-lpthread $LIBS"
28022
28023fi
28024
Reid Spencera773bd52006-08-04 18:18:08 +000028025 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28026echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028027if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28028 echo $ECHO_N "(cached) $ECHO_C" >&6
28029else
28030 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028031cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028032/* confdefs.h. */
28033_ACEOF
28034cat confdefs.h >>conftest.$ac_ext
28035cat >>conftest.$ac_ext <<_ACEOF
28036/* end confdefs.h. */
28037
Reid Spencera773bd52006-08-04 18:18:08 +000028038/* Override any GCC internal prototype to avoid an error.
28039 Use char because int might match the return type of a GCC
28040 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028041#ifdef __cplusplus
28042extern "C"
28043#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028044char pthread_mutex_lock ();
28045int
28046main ()
28047{
Reid Spencera773bd52006-08-04 18:18:08 +000028048return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028049 ;
28050 return 0;
28051}
28052_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028053for ac_lib in '' pthread; do
28054 if test -z "$ac_lib"; then
28055 ac_res="none required"
28056 else
28057 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028059 fi
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061if { (ac_try="$ac_link"
28062case "(($ac_try" in
28063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064 *) ac_try_echo=$ac_try;;
28065esac
28066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028069 grep -v '^ *+' conftest.er1 >conftest.err
28070 rm -f conftest.er1
28071 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028073 (exit $ac_status); } &&
28074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28075 { (case "(($ac_try" in
28076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28077 *) ac_try_echo=$ac_try;;
28078esac
28079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28080 (eval "$ac_try") 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest$ac_exeext'
28085 { (case "(($ac_try" in
28086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28087 *) ac_try_echo=$ac_try;;
28088esac
28089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28090 (eval "$ac_try") 2>&5
28091 ac_status=$?
28092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28093 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028094 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028095else
28096 echo "$as_me: failed program was:" >&5
28097sed 's/^/| /' conftest.$ac_ext >&5
28098
Reid Spencera773bd52006-08-04 18:18:08 +000028099
Brian Gaeke5f268f72003-12-05 19:29:01 +000028100fi
Reid Spencera773bd52006-08-04 18:18:08 +000028101
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028102rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028103 conftest$ac_exeext
28104 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28105 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028106fi
Reid Spencera773bd52006-08-04 18:18:08 +000028107done
28108if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28109 :
28110else
28111 ac_cv_search_pthread_mutex_lock=no
28112fi
28113rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028114LIBS=$ac_func_search_save_LIBS
28115fi
Reid Spencera773bd52006-08-04 18:18:08 +000028116{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28117echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28118ac_res=$ac_cv_search_pthread_mutex_lock
28119if test "$ac_res" != no; then
28120 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028121
John Criswell40468462004-09-24 21:19:06 +000028122cat >>confdefs.h <<\_ACEOF
28123#define HAVE_PTHREAD_MUTEX_LOCK 1
28124_ACEOF
28125
28126fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028127
Reid Spencer0a262ba2005-08-24 10:07:20 +000028128fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028129
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028130
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028131# Check whether --with-udis86 was given.
28132if test "${with_udis86+set}" = set; then
28133 withval=$with_udis86;
28134 USE_UDIS86=1
28135
28136 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028137 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028138 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28139 esac
28140
28141{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28142echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28143if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28144 echo $ECHO_N "(cached) $ECHO_C" >&6
28145else
28146 ac_check_lib_save_LIBS=$LIBS
28147LIBS="-ludis86 $LIBS"
28148cat >conftest.$ac_ext <<_ACEOF
28149/* confdefs.h. */
28150_ACEOF
28151cat confdefs.h >>conftest.$ac_ext
28152cat >>conftest.$ac_ext <<_ACEOF
28153/* end confdefs.h. */
28154
28155/* Override any GCC internal prototype to avoid an error.
28156 Use char because int might match the return type of a GCC
28157 builtin and then its argument prototype would still apply. */
28158#ifdef __cplusplus
28159extern "C"
28160#endif
28161char ud_init ();
28162int
28163main ()
28164{
28165return ud_init ();
28166 ;
28167 return 0;
28168}
28169_ACEOF
28170rm -f conftest.$ac_objext conftest$ac_exeext
28171if { (ac_try="$ac_link"
28172case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28175esac
28176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177 (eval "$ac_link") 2>conftest.er1
28178 ac_status=$?
28179 grep -v '^ *+' conftest.er1 >conftest.err
28180 rm -f conftest.er1
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028183 (exit $ac_status); } &&
28184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28185 { (case "(($ac_try" in
28186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28187 *) ac_try_echo=$ac_try;;
28188esac
28189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28190 (eval "$ac_try") 2>&5
28191 ac_status=$?
28192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28193 (exit $ac_status); }; } &&
28194 { ac_try='test -s conftest$ac_exeext'
28195 { (case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28198esac
28199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_try") 2>&5
28201 ac_status=$?
28202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028204 ac_cv_lib_udis86_ud_init=yes
28205else
28206 echo "$as_me: failed program was:" >&5
28207sed 's/^/| /' conftest.$ac_ext >&5
28208
28209 ac_cv_lib_udis86_ud_init=no
28210fi
28211
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028212rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028213 conftest$ac_exeext conftest.$ac_ext
28214LIBS=$ac_check_lib_save_LIBS
28215fi
28216{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28217echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28218if test $ac_cv_lib_udis86_ud_init = yes; then
28219 cat >>confdefs.h <<_ACEOF
28220#define HAVE_LIBUDIS86 1
28221_ACEOF
28222
28223 LIBS="-ludis86 $LIBS"
28224
28225else
28226
28227 echo "Error! You need to have libudis86 around."
28228 exit -1
28229
28230fi
28231
28232
28233else
28234 USE_UDIS86=0
28235
28236fi
28237
28238
28239cat >>confdefs.h <<_ACEOF
28240#define USE_UDIS86 $USE_UDIS86
28241_ACEOF
28242
28243
28244
Reid Spencer59473af2004-12-25 07:31:29 +000028245
28246
28247
28248
28249
28250ac_header_dirent=no
28251for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28252 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028253{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28254echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028256 echo $ECHO_N "(cached) $ECHO_C" >&6
28257else
28258 cat >conftest.$ac_ext <<_ACEOF
28259/* confdefs.h. */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h. */
28264#include <sys/types.h>
28265#include <$ac_hdr>
28266
28267int
28268main ()
28269{
28270if ((DIR *) 0)
28271return 0;
28272 ;
28273 return 0;
28274}
28275_ACEOF
28276rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028277if { (ac_try="$ac_compile"
28278case "(($ac_try" in
28279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280 *) ac_try_echo=$ac_try;;
28281esac
28282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28283 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028284 ac_status=$?
28285 grep -v '^ *+' conftest.er1 >conftest.err
28286 rm -f conftest.er1
28287 cat conftest.err >&5
28288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028289 (exit $ac_status); } &&
28290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; } &&
28300 { ac_try='test -s conftest.$ac_objext'
28301 { (case "(($ac_try" in
28302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28303 *) ac_try_echo=$ac_try;;
28304esac
28305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28306 (eval "$ac_try") 2>&5
28307 ac_status=$?
28308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28309 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028310 eval "$as_ac_Header=yes"
28311else
28312 echo "$as_me: failed program was:" >&5
28313sed 's/^/| /' conftest.$ac_ext >&5
28314
Reid Spencera773bd52006-08-04 18:18:08 +000028315 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028316fi
Reid Spencera773bd52006-08-04 18:18:08 +000028317
28318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028319fi
Reid Spencera773bd52006-08-04 18:18:08 +000028320ac_res=`eval echo '${'$as_ac_Header'}'`
28321 { echo "$as_me:$LINENO: result: $ac_res" >&5
28322echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028323if test `eval echo '${'$as_ac_Header'}'` = yes; then
28324 cat >>confdefs.h <<_ACEOF
28325#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28326_ACEOF
28327
28328ac_header_dirent=$ac_hdr; break
28329fi
28330
28331done
28332# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28333if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028334 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28335echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028336if test "${ac_cv_search_opendir+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28338else
28339 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028340cat >conftest.$ac_ext <<_ACEOF
28341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
28346
Reid Spencera773bd52006-08-04 18:18:08 +000028347/* Override any GCC internal prototype to avoid an error.
28348 Use char because int might match the return type of a GCC
28349 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028350#ifdef __cplusplus
28351extern "C"
28352#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028353char opendir ();
28354int
28355main ()
28356{
Reid Spencera773bd52006-08-04 18:18:08 +000028357return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028358 ;
28359 return 0;
28360}
28361_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028362for ac_lib in '' dir; do
28363 if test -z "$ac_lib"; then
28364 ac_res="none required"
28365 else
28366 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028368 fi
28369 rm -f conftest.$ac_objext conftest$ac_exeext
28370if { (ac_try="$ac_link"
28371case "(($ac_try" in
28372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28373 *) ac_try_echo=$ac_try;;
28374esac
28375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28376 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028377 ac_status=$?
28378 grep -v '^ *+' conftest.er1 >conftest.err
28379 rm -f conftest.er1
28380 cat conftest.err >&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028382 (exit $ac_status); } &&
28383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28384 { (case "(($ac_try" in
28385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28386 *) ac_try_echo=$ac_try;;
28387esac
28388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28389 (eval "$ac_try") 2>&5
28390 ac_status=$?
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28392 (exit $ac_status); }; } &&
28393 { ac_try='test -s conftest$ac_exeext'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28397esac
28398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_try") 2>&5
28400 ac_status=$?
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028403 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028404else
28405 echo "$as_me: failed program was:" >&5
28406sed 's/^/| /' conftest.$ac_ext >&5
28407
Reid Spencera773bd52006-08-04 18:18:08 +000028408
Reid Spencer59473af2004-12-25 07:31:29 +000028409fi
Reid Spencera773bd52006-08-04 18:18:08 +000028410
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028411rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028412 conftest$ac_exeext
28413 if test "${ac_cv_search_opendir+set}" = set; then
28414 break
Reid Spencer59473af2004-12-25 07:31:29 +000028415fi
Reid Spencera773bd52006-08-04 18:18:08 +000028416done
28417if test "${ac_cv_search_opendir+set}" = set; then
28418 :
28419else
28420 ac_cv_search_opendir=no
28421fi
28422rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028423LIBS=$ac_func_search_save_LIBS
28424fi
Reid Spencera773bd52006-08-04 18:18:08 +000028425{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28426echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28427ac_res=$ac_cv_search_opendir
28428if test "$ac_res" != no; then
28429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028430
28431fi
28432
28433else
Reid Spencera773bd52006-08-04 18:18:08 +000028434 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28435echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028436if test "${ac_cv_search_opendir+set}" = set; then
28437 echo $ECHO_N "(cached) $ECHO_C" >&6
28438else
28439 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028440cat >conftest.$ac_ext <<_ACEOF
28441/* confdefs.h. */
28442_ACEOF
28443cat confdefs.h >>conftest.$ac_ext
28444cat >>conftest.$ac_ext <<_ACEOF
28445/* end confdefs.h. */
28446
Reid Spencera773bd52006-08-04 18:18:08 +000028447/* Override any GCC internal prototype to avoid an error.
28448 Use char because int might match the return type of a GCC
28449 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028450#ifdef __cplusplus
28451extern "C"
28452#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028453char opendir ();
28454int
28455main ()
28456{
Reid Spencera773bd52006-08-04 18:18:08 +000028457return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028458 ;
28459 return 0;
28460}
28461_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028462for ac_lib in '' x; do
28463 if test -z "$ac_lib"; then
28464 ac_res="none required"
28465 else
28466 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028468 fi
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470if { (ac_try="$ac_link"
28471case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28474esac
28475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028477 ac_status=$?
28478 grep -v '^ *+' conftest.er1 >conftest.err
28479 rm -f conftest.er1
28480 cat conftest.err >&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028482 (exit $ac_status); } &&
28483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28484 { (case "(($ac_try" in
28485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486 *) ac_try_echo=$ac_try;;
28487esac
28488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489 (eval "$ac_try") 2>&5
28490 ac_status=$?
28491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28492 (exit $ac_status); }; } &&
28493 { ac_try='test -s conftest$ac_exeext'
28494 { (case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28497esac
28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_try") 2>&5
28500 ac_status=$?
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028503 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028504else
28505 echo "$as_me: failed program was:" >&5
28506sed 's/^/| /' conftest.$ac_ext >&5
28507
Reid Spencera773bd52006-08-04 18:18:08 +000028508
Reid Spencer59473af2004-12-25 07:31:29 +000028509fi
Reid Spencera773bd52006-08-04 18:18:08 +000028510
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028511rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028512 conftest$ac_exeext
28513 if test "${ac_cv_search_opendir+set}" = set; then
28514 break
Reid Spencer59473af2004-12-25 07:31:29 +000028515fi
Reid Spencera773bd52006-08-04 18:18:08 +000028516done
28517if test "${ac_cv_search_opendir+set}" = set; then
28518 :
28519else
28520 ac_cv_search_opendir=no
28521fi
28522rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028523LIBS=$ac_func_search_save_LIBS
28524fi
Reid Spencera773bd52006-08-04 18:18:08 +000028525{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28526echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28527ac_res=$ac_cv_search_opendir
28528if test "$ac_res" != no; then
28529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028530
28531fi
28532
28533fi
28534
Reid Spencera773bd52006-08-04 18:18:08 +000028535{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28536echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028537if test "${ac_cv_header_mmap_anon+set}" = set; then
28538 echo $ECHO_N "(cached) $ECHO_C" >&6
28539else
28540 ac_ext=c
28541ac_cpp='$CPP $CPPFLAGS'
28542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28544ac_compiler_gnu=$ac_cv_c_compiler_gnu
28545
28546 cat >conftest.$ac_ext <<_ACEOF
28547/* confdefs.h. */
28548_ACEOF
28549cat confdefs.h >>conftest.$ac_ext
28550cat >>conftest.$ac_ext <<_ACEOF
28551/* end confdefs.h. */
28552#include <sys/mman.h>
28553#include <unistd.h>
28554#include <fcntl.h>
28555int
28556main ()
28557{
28558mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028564if { (ac_try="$ac_compile"
28565case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28568esac
28569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028571 ac_status=$?
28572 grep -v '^ *+' conftest.er1 >conftest.err
28573 rm -f conftest.er1
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28578 { (case "(($ac_try" in
28579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580 *) ac_try_echo=$ac_try;;
28581esac
28582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28583 (eval "$ac_try") 2>&5
28584 ac_status=$?
28585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); }; } &&
28587 { ac_try='test -s conftest.$ac_objext'
28588 { (case "(($ac_try" in
28589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590 *) ac_try_echo=$ac_try;;
28591esac
28592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593 (eval "$ac_try") 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028597 ac_cv_header_mmap_anon=yes
28598else
28599 echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
Reid Spencera773bd52006-08-04 18:18:08 +000028602 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028603fi
Reid Spencera773bd52006-08-04 18:18:08 +000028604
28605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028606 ac_ext=c
28607ac_cpp='$CPP $CPPFLAGS'
28608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28610ac_compiler_gnu=$ac_cv_c_compiler_gnu
28611
28612
28613fi
Reid Spencera773bd52006-08-04 18:18:08 +000028614{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28615echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028616if test "$ac_cv_header_mmap_anon" = yes; then
28617
28618cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028619#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028620_ACEOF
28621
28622fi
28623
Reid Spencera773bd52006-08-04 18:18:08 +000028624{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28625echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028626if test "${ac_cv_header_stat_broken+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628else
28629 cat >conftest.$ac_ext <<_ACEOF
28630/* confdefs.h. */
28631_ACEOF
28632cat confdefs.h >>conftest.$ac_ext
28633cat >>conftest.$ac_ext <<_ACEOF
28634/* end confdefs.h. */
28635#include <sys/types.h>
28636#include <sys/stat.h>
28637
Reid Spencera773bd52006-08-04 18:18:08 +000028638#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028639# if S_ISBLK (S_IFDIR)
28640You lose.
28641# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028642#endif
28643
Reid Spencera773bd52006-08-04 18:18:08 +000028644#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028645# if S_ISBLK (S_IFCHR)
28646You lose.
28647# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028648#endif
28649
Reid Spencera773bd52006-08-04 18:18:08 +000028650#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028651# if S_ISLNK (S_IFREG)
28652You lose.
28653# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028654#endif
28655
Reid Spencera773bd52006-08-04 18:18:08 +000028656#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028657# if S_ISSOCK (S_IFREG)
28658You lose.
28659# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028660#endif
28661
28662_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28664 $EGREP "You lose" >/dev/null 2>&1; then
28665 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028666else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028667 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028668fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028669rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028670
Reid Spencer59473af2004-12-25 07:31:29 +000028671fi
Reid Spencera773bd52006-08-04 18:18:08 +000028672{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28673echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028674if test $ac_cv_header_stat_broken = yes; then
28675
28676cat >>confdefs.h <<\_ACEOF
28677#define STAT_MACROS_BROKEN 1
28678_ACEOF
28679
28680fi
28681
Reid Spencera773bd52006-08-04 18:18:08 +000028682{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28683echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028684if test "${ac_cv_header_stdc+set}" = set; then
28685 echo $ECHO_N "(cached) $ECHO_C" >&6
28686else
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#include <stdarg.h>
28695#include <string.h>
28696#include <float.h>
28697
John Criswell0c38eaf2003-09-10 15:17:25 +000028698int
28699main ()
28700{
28701
28702 ;
28703 return 0;
28704}
John Criswell7a73b802003-06-30 21:59:07 +000028705_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028706rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028707if { (ac_try="$ac_compile"
28708case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28711esac
28712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028715 grep -v '^ *+' conftest.er1 >conftest.err
28716 rm -f conftest.er1
28717 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028719 (exit $ac_status); } &&
28720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28721 { (case "(($ac_try" in
28722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28723 *) ac_try_echo=$ac_try;;
28724esac
28725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28726 (eval "$ac_try") 2>&5
28727 ac_status=$?
28728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); }; } &&
28730 { ac_try='test -s conftest.$ac_objext'
28731 { (case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28734esac
28735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_try") 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028740 ac_cv_header_stdc=yes
28741else
28742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028743sed 's/^/| /' conftest.$ac_ext >&5
28744
Reid Spencera773bd52006-08-04 18:18:08 +000028745 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028746fi
Reid Spencera773bd52006-08-04 18:18:08 +000028747
28748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028749
28750if test $ac_cv_header_stdc = yes; then
28751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28752 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028753/* confdefs.h. */
28754_ACEOF
28755cat confdefs.h >>conftest.$ac_ext
28756cat >>conftest.$ac_ext <<_ACEOF
28757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028758#include <string.h>
28759
28760_ACEOF
28761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028762 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028763 :
28764else
28765 ac_cv_header_stdc=no
28766fi
28767rm -f conftest*
28768
28769fi
28770
28771if test $ac_cv_header_stdc = yes; then
28772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28773 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028774/* confdefs.h. */
28775_ACEOF
28776cat confdefs.h >>conftest.$ac_ext
28777cat >>conftest.$ac_ext <<_ACEOF
28778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028779#include <stdlib.h>
28780
28781_ACEOF
28782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028783 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028784 :
28785else
28786 ac_cv_header_stdc=no
28787fi
28788rm -f conftest*
28789
28790fi
28791
28792if test $ac_cv_header_stdc = yes; then
28793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28794 if test "$cross_compiling" = yes; then
28795 :
28796else
28797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028798/* confdefs.h. */
28799_ACEOF
28800cat confdefs.h >>conftest.$ac_ext
28801cat >>conftest.$ac_ext <<_ACEOF
28802/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028803#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028804#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028805#if ((' ' & 0x0FF) == 0x020)
28806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28808#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028809# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028810 (('a' <= (c) && (c) <= 'i') \
28811 || ('j' <= (c) && (c) <= 'r') \
28812 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28814#endif
28815
28816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28817int
28818main ()
28819{
28820 int i;
28821 for (i = 0; i < 256; i++)
28822 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028823 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028824 return 2;
28825 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028826}
28827_ACEOF
28828rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028829if { (ac_try="$ac_link"
28830case "(($ac_try" in
28831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832 *) ac_try_echo=$ac_try;;
28833esac
28834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028836 ac_status=$?
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028839 { (case "(($ac_try" in
28840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28841 *) ac_try_echo=$ac_try;;
28842esac
28843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28844 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028845 ac_status=$?
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; }; then
28848 :
28849else
28850 echo "$as_me: program exited with status $ac_status" >&5
28851echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028852sed 's/^/| /' conftest.$ac_ext >&5
28853
John Criswell7a73b802003-06-30 21:59:07 +000028854( exit $ac_status )
28855ac_cv_header_stdc=no
28856fi
Reid Spencera773bd52006-08-04 18:18:08 +000028857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28858fi
28859
28860
John Criswell7a73b802003-06-30 21:59:07 +000028861fi
28862fi
Reid Spencera773bd52006-08-04 18:18:08 +000028863{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28864echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028865if test $ac_cv_header_stdc = yes; then
28866
28867cat >>confdefs.h <<\_ACEOF
28868#define STDC_HEADERS 1
28869_ACEOF
28870
28871fi
28872
Reid Spencera773bd52006-08-04 18:18:08 +000028873{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28874echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028875if test "${ac_cv_header_sys_wait_h+set}" = set; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877else
28878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028884#include <sys/types.h>
28885#include <sys/wait.h>
28886#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028887# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028888#endif
28889#ifndef WIFEXITED
28890# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28891#endif
28892
John Criswell7a73b802003-06-30 21:59:07 +000028893int
28894main ()
28895{
28896 int s;
28897 wait (&s);
28898 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28899 ;
28900 return 0;
28901}
28902_ACEOF
28903rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028904if { (ac_try="$ac_compile"
28905case "(($ac_try" in
28906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907 *) ac_try_echo=$ac_try;;
28908esac
28909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028911 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912 grep -v '^ *+' conftest.er1 >conftest.err
28913 rm -f conftest.er1
28914 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028916 (exit $ac_status); } &&
28917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921esac
28922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; } &&
28927 { ac_try='test -s conftest.$ac_objext'
28928 { (case "(($ac_try" in
28929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28930 *) ac_try_echo=$ac_try;;
28931esac
28932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28933 (eval "$ac_try") 2>&5
28934 ac_status=$?
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028937 ac_cv_header_sys_wait_h=yes
28938else
28939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028940sed 's/^/| /' conftest.$ac_ext >&5
28941
Reid Spencera773bd52006-08-04 18:18:08 +000028942 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028943fi
Reid Spencera773bd52006-08-04 18:18:08 +000028944
28945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028946fi
Reid Spencera773bd52006-08-04 18:18:08 +000028947{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28948echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028949if test $ac_cv_header_sys_wait_h = yes; then
28950
28951cat >>confdefs.h <<\_ACEOF
28952#define HAVE_SYS_WAIT_H 1
28953_ACEOF
28954
28955fi
28956
Reid Spencera773bd52006-08-04 18:18:08 +000028957{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28958echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028959if test "${ac_cv_header_time+set}" = set; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28961else
28962 cat >conftest.$ac_ext <<_ACEOF
28963/* confdefs.h. */
28964_ACEOF
28965cat confdefs.h >>conftest.$ac_ext
28966cat >>conftest.$ac_ext <<_ACEOF
28967/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028968#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028969#include <sys/time.h>
28970#include <time.h>
28971
28972int
28973main ()
28974{
28975if ((struct tm *) 0)
28976return 0;
28977 ;
28978 return 0;
28979}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028980_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028981rm -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
Brian Gaeke6c3fd812004-02-23 22:07:00 +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 Spencer5e1d9a52004-11-25 04:51:04 +000029015 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +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_cv_header_time=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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029024fi
Reid Spencera773bd52006-08-04 18:18:08 +000029025{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29026echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029027if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029028
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029029cat >>confdefs.h <<\_ACEOF
29030#define TIME_WITH_SYS_TIME 1
29031_ACEOF
29032
29033fi
29034
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029035
Reid Spencer59473af2004-12-25 07:31:29 +000029036
29037
29038
29039
29040
29041
29042for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29043do
29044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029049 echo $ECHO_N "(cached) $ECHO_C" >&6
29050fi
Reid Spencera773bd52006-08-04 18:18:08 +000029051ac_res=`eval echo '${'$as_ac_Header'}'`
29052 { echo "$as_me:$LINENO: result: $ac_res" >&5
29053echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029054else
29055 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029058cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029059/* confdefs.h. */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029064$ac_includes_default
29065#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029066_ACEOF
29067rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029068if { (ac_try="$ac_compile"
29069case "(($ac_try" in
29070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29071 *) ac_try_echo=$ac_try;;
29072esac
29073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29074 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029075 ac_status=$?
29076 grep -v '^ *+' conftest.er1 >conftest.err
29077 rm -f conftest.er1
29078 cat conftest.err >&5
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029080 (exit $ac_status); } &&
29081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29082 { (case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29085esac
29086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_try") 2>&5
29088 ac_status=$?
29089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29090 (exit $ac_status); }; } &&
29091 { ac_try='test -s conftest.$ac_objext'
29092 { (case "(($ac_try" in
29093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29094 *) ac_try_echo=$ac_try;;
29095esac
29096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29097 (eval "$ac_try") 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029101 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029102else
29103 echo "$as_me: failed program was:" >&5
29104sed 's/^/| /' conftest.$ac_ext >&5
29105
Reid Spencera773bd52006-08-04 18:18:08 +000029106 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029107fi
Reid Spencera773bd52006-08-04 18:18:08 +000029108
29109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29111echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029112
Reid Spencer59473af2004-12-25 07:31:29 +000029113# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029116cat >conftest.$ac_ext <<_ACEOF
29117/* confdefs.h. */
29118_ACEOF
29119cat confdefs.h >>conftest.$ac_ext
29120cat >>conftest.$ac_ext <<_ACEOF
29121/* end confdefs.h. */
29122#include <$ac_header>
29123_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029124if { (ac_try="$ac_cpp conftest.$ac_ext"
29125case "(($ac_try" in
29126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29127 *) ac_try_echo=$ac_try;;
29128esac
29129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029136 (exit $ac_status); } >/dev/null; then
29137 if test -s conftest.err; then
29138 ac_cpp_err=$ac_c_preproc_warn_flag
29139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29140 else
29141 ac_cpp_err=
29142 fi
29143else
29144 ac_cpp_err=yes
29145fi
29146if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029147 ac_header_preproc=yes
29148else
29149 echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152 ac_header_preproc=no
29153fi
Reid Spencera773bd52006-08-04 18:18:08 +000029154
Reid Spencer59473af2004-12-25 07:31:29 +000029155rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29157echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029158
29159# So? What about this header?
29160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29161 yes:no: )
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29166 ac_header_preproc=yes
29167 ;;
29168 no:yes:* )
29169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029181 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029182## ----------------------------------- ##
29183## Report this to llvmbugs@cs.uiuc.edu ##
29184## ----------------------------------- ##
29185_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029186 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029187 ;;
29188esac
Reid Spencera773bd52006-08-04 18:18:08 +000029189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029192 echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194 eval "$as_ac_Header=\$ac_header_preproc"
29195fi
Reid Spencera773bd52006-08-04 18:18:08 +000029196ac_res=`eval echo '${'$as_ac_Header'}'`
29197 { echo "$as_me:$LINENO: result: $ac_res" >&5
29198echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029199
29200fi
Reid Spencer59473af2004-12-25 07:31:29 +000029201if test `eval echo '${'$as_ac_Header'}'` = yes; then
29202 cat >>confdefs.h <<_ACEOF
29203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029204_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029205
29206fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029207
Reid Spencer59473af2004-12-25 07:31:29 +000029208done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029209
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029210
29211
Reid Spencer59473af2004-12-25 07:31:29 +000029212
29213
29214
29215
Reid Spencercdb08a32006-06-05 16:11:07 +000029216for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029217do
29218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029223 echo $ECHO_N "(cached) $ECHO_C" >&6
29224fi
Reid Spencera773bd52006-08-04 18:18:08 +000029225ac_res=`eval echo '${'$as_ac_Header'}'`
29226 { echo "$as_me:$LINENO: result: $ac_res" >&5
29227echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029228else
29229 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029232cat >conftest.$ac_ext <<_ACEOF
29233/* confdefs.h. */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h. */
29238$ac_includes_default
29239#include <$ac_header>
29240_ACEOF
29241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029242if { (ac_try="$ac_compile"
29243case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest.$ac_objext'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029275 ac_header_compiler=yes
29276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
Reid Spencera773bd52006-08-04 18:18:08 +000029280 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029281fi
Reid Spencera773bd52006-08-04 18:18:08 +000029282
29283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29285echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029286
29287# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029290cat >conftest.$ac_ext <<_ACEOF
29291/* confdefs.h. */
29292_ACEOF
29293cat confdefs.h >>conftest.$ac_ext
29294cat >>conftest.$ac_ext <<_ACEOF
29295/* end confdefs.h. */
29296#include <$ac_header>
29297_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029298if { (ac_try="$ac_cpp conftest.$ac_ext"
29299case "(($ac_try" in
29300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29301 *) ac_try_echo=$ac_try;;
29302esac
29303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029305 ac_status=$?
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029310 (exit $ac_status); } >/dev/null; then
29311 if test -s conftest.err; then
29312 ac_cpp_err=$ac_c_preproc_warn_flag
29313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29314 else
29315 ac_cpp_err=
29316 fi
29317else
29318 ac_cpp_err=yes
29319fi
29320if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029321 ac_header_preproc=yes
29322else
29323 echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326 ac_header_preproc=no
29327fi
Reid Spencera773bd52006-08-04 18:18:08 +000029328
Reid Spencer59473af2004-12-25 07:31:29 +000029329rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29331echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029332
29333# So? What about this header?
29334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29335 yes:no: )
29336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29340 ac_header_preproc=yes
29341 ;;
29342 no:yes:* )
29343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029355 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029356## ----------------------------------- ##
29357## Report this to llvmbugs@cs.uiuc.edu ##
29358## ----------------------------------- ##
29359_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029360 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029361 ;;
29362esac
Reid Spencera773bd52006-08-04 18:18:08 +000029363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367else
29368 eval "$as_ac_Header=\$ac_header_preproc"
29369fi
Reid Spencera773bd52006-08-04 18:18:08 +000029370ac_res=`eval echo '${'$as_ac_Header'}'`
29371 { echo "$as_me:$LINENO: result: $ac_res" >&5
29372echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029373
29374fi
29375if test `eval echo '${'$as_ac_Header'}'` = yes; then
29376 cat >>confdefs.h <<_ACEOF
29377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29378_ACEOF
29379
29380fi
29381
29382done
29383
29384
Reid Spencerbe3e4192007-08-17 05:45:26 +000029385for ac_header in windows.h
29386do
29387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29391if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29392 echo $ECHO_N "(cached) $ECHO_C" >&6
29393fi
29394ac_res=`eval echo '${'$as_ac_Header'}'`
29395 { echo "$as_me:$LINENO: result: $ac_res" >&5
29396echo "${ECHO_T}$ac_res" >&6; }
29397else
29398 # Is the header compilable?
29399{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29401cat >conftest.$ac_ext <<_ACEOF
29402/* confdefs.h. */
29403_ACEOF
29404cat confdefs.h >>conftest.$ac_ext
29405cat >>conftest.$ac_ext <<_ACEOF
29406/* end confdefs.h. */
29407$ac_includes_default
29408#include <$ac_header>
29409_ACEOF
29410rm -f conftest.$ac_objext
29411if { (ac_try="$ac_compile"
29412case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29415esac
29416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_compile") 2>conftest.er1
29418 ac_status=$?
29419 grep -v '^ *+' conftest.er1 >conftest.err
29420 rm -f conftest.er1
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029423 (exit $ac_status); } &&
29424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29425 { (case "(($ac_try" in
29426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29427 *) ac_try_echo=$ac_try;;
29428esac
29429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29430 (eval "$ac_try") 2>&5
29431 ac_status=$?
29432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433 (exit $ac_status); }; } &&
29434 { ac_try='test -s conftest.$ac_objext'
29435 { (case "(($ac_try" in
29436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29437 *) ac_try_echo=$ac_try;;
29438esac
29439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29440 (eval "$ac_try") 2>&5
29441 ac_status=$?
29442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29443 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029444 ac_header_compiler=yes
29445else
29446 echo "$as_me: failed program was:" >&5
29447sed 's/^/| /' conftest.$ac_ext >&5
29448
29449 ac_header_compiler=no
29450fi
29451
29452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29453{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29454echo "${ECHO_T}$ac_header_compiler" >&6; }
29455
29456# Is the header present?
29457{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29458echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29459cat >conftest.$ac_ext <<_ACEOF
29460/* confdefs.h. */
29461_ACEOF
29462cat confdefs.h >>conftest.$ac_ext
29463cat >>conftest.$ac_ext <<_ACEOF
29464/* end confdefs.h. */
29465#include <$ac_header>
29466_ACEOF
29467if { (ac_try="$ac_cpp conftest.$ac_ext"
29468case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29474 ac_status=$?
29475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029479 (exit $ac_status); } >/dev/null; then
29480 if test -s conftest.err; then
29481 ac_cpp_err=$ac_c_preproc_warn_flag
29482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29483 else
29484 ac_cpp_err=
29485 fi
29486else
29487 ac_cpp_err=yes
29488fi
29489if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029490 ac_header_preproc=yes
29491else
29492 echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495 ac_header_preproc=no
29496fi
29497
29498rm -f conftest.err conftest.$ac_ext
29499{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29500echo "${ECHO_T}$ac_header_preproc" >&6; }
29501
29502# So? What about this header?
29503case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29504 yes:no: )
29505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29506echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29508echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29509 ac_header_preproc=yes
29510 ;;
29511 no:yes:* )
29512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29517echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29519echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29523echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29524 ( cat <<\_ASBOX
29525## ----------------------------------- ##
29526## Report this to llvmbugs@cs.uiuc.edu ##
29527## ----------------------------------- ##
29528_ASBOX
29529 ) | sed "s/^/$as_me: WARNING: /" >&2
29530 ;;
29531esac
29532{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29534if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29535 echo $ECHO_N "(cached) $ECHO_C" >&6
29536else
29537 eval "$as_ac_Header=\$ac_header_preproc"
29538fi
29539ac_res=`eval echo '${'$as_ac_Header'}'`
29540 { echo "$as_me:$LINENO: result: $ac_res" >&5
29541echo "${ECHO_T}$ac_res" >&6; }
29542
29543fi
29544if test `eval echo '${'$as_ac_Header'}'` = yes; then
29545 cat >>confdefs.h <<_ACEOF
29546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29547_ACEOF
29548
29549fi
29550
29551done
Reid Spencer59473af2004-12-25 07:31:29 +000029552
29553
29554
29555
Reid Spencerbe3e4192007-08-17 05:45:26 +000029556
29557for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029558do
29559as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029564 echo $ECHO_N "(cached) $ECHO_C" >&6
29565fi
Reid Spencera773bd52006-08-04 18:18:08 +000029566ac_res=`eval echo '${'$as_ac_Header'}'`
29567 { echo "$as_me:$LINENO: result: $ac_res" >&5
29568echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029569else
29570 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029571{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029573cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029580#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029581_ACEOF
29582rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029583if { (ac_try="$ac_compile"
29584case "(($ac_try" in
29585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586 *) ac_try_echo=$ac_try;;
29587esac
29588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029590 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029591 grep -v '^ *+' conftest.er1 >conftest.err
29592 rm -f conftest.er1
29593 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029595 (exit $ac_status); } &&
29596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597 { (case "(($ac_try" in
29598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599 *) ac_try_echo=$ac_try;;
29600esac
29601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602 (eval "$ac_try") 2>&5
29603 ac_status=$?
29604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605 (exit $ac_status); }; } &&
29606 { ac_try='test -s conftest.$ac_objext'
29607 { (case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_try") 2>&5
29613 ac_status=$?
29614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029616 ac_header_compiler=yes
29617else
29618 echo "$as_me: failed program was:" >&5
29619sed 's/^/| /' conftest.$ac_ext >&5
29620
Reid Spencera773bd52006-08-04 18:18:08 +000029621 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029622fi
Reid Spencera773bd52006-08-04 18:18:08 +000029623
29624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29625{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29626echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029627
29628# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029629{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029631cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029632/* confdefs.h. */
29633_ACEOF
29634cat confdefs.h >>conftest.$ac_ext
29635cat >>conftest.$ac_ext <<_ACEOF
29636/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029637#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029639if { (ac_try="$ac_cpp conftest.$ac_ext"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029651 (exit $ac_status); } >/dev/null; then
29652 if test -s conftest.err; then
29653 ac_cpp_err=$ac_c_preproc_warn_flag
29654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29655 else
29656 ac_cpp_err=
29657 fi
29658else
29659 ac_cpp_err=yes
29660fi
29661if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029662 ac_header_preproc=yes
29663else
29664 echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
29667 ac_header_preproc=no
29668fi
Reid Spencera773bd52006-08-04 18:18:08 +000029669
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029670rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029671{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29672echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029673
29674# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29676 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029681 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029683 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029696 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029697## ----------------------------------- ##
29698## Report this to llvmbugs@cs.uiuc.edu ##
29699## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029700_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029701 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029702 ;;
29703esac
Reid Spencera773bd52006-08-04 18:18:08 +000029704{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029707 echo $ECHO_N "(cached) $ECHO_C" >&6
29708else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029709 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029710fi
Reid Spencera773bd52006-08-04 18:18:08 +000029711ac_res=`eval echo '${'$as_ac_Header'}'`
29712 { echo "$as_me:$LINENO: result: $ac_res" >&5
29713echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029714
29715fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029716if test `eval echo '${'$as_ac_Header'}'` = yes; then
29717 cat >>confdefs.h <<_ACEOF
29718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029719_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029720
29721fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029722
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029723done
29724
John Criswell7ed43ad2004-07-19 16:12:29 +000029725
Reid Spencercdb08a32006-06-05 16:11:07 +000029726
Reid Spencera6d990a2006-09-14 06:17:21 +000029727
29728for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029729do
29730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029735 echo $ECHO_N "(cached) $ECHO_C" >&6
29736fi
Reid Spencera773bd52006-08-04 18:18:08 +000029737ac_res=`eval echo '${'$as_ac_Header'}'`
29738 { echo "$as_me:$LINENO: result: $ac_res" >&5
29739echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029740else
29741 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029742{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29743echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029744cat >conftest.$ac_ext <<_ACEOF
29745/* confdefs.h. */
29746_ACEOF
29747cat confdefs.h >>conftest.$ac_ext
29748cat >>conftest.$ac_ext <<_ACEOF
29749/* end confdefs.h. */
29750$ac_includes_default
29751#include <$ac_header>
29752_ACEOF
29753rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029754if { (ac_try="$ac_compile"
29755case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29758esac
29759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029761 ac_status=$?
29762 grep -v '^ *+' conftest.er1 >conftest.err
29763 rm -f conftest.er1
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771esac
29772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29774 ac_status=$?
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029787 ac_header_compiler=yes
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
Reid Spencera773bd52006-08-04 18:18:08 +000029792 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029793fi
Reid Spencera773bd52006-08-04 18:18:08 +000029794
29795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29797echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029798
29799# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029800{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029802cat >conftest.$ac_ext <<_ACEOF
29803/* confdefs.h. */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h. */
29808#include <$ac_header>
29809_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029810if { (ac_try="$ac_cpp conftest.$ac_ext"
29811case "(($ac_try" in
29812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29813 *) ac_try_echo=$ac_try;;
29814esac
29815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029817 ac_status=$?
29818 grep -v '^ *+' conftest.er1 >conftest.err
29819 rm -f conftest.er1
29820 cat conftest.err >&5
29821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029822 (exit $ac_status); } >/dev/null; then
29823 if test -s conftest.err; then
29824 ac_cpp_err=$ac_c_preproc_warn_flag
29825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29826 else
29827 ac_cpp_err=
29828 fi
29829else
29830 ac_cpp_err=yes
29831fi
29832if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029833 ac_header_preproc=yes
29834else
29835 echo "$as_me: failed program was:" >&5
29836sed 's/^/| /' conftest.$ac_ext >&5
29837
29838 ac_header_preproc=no
29839fi
Reid Spencera773bd52006-08-04 18:18:08 +000029840
Chris Lattner0b142592005-11-14 06:57:34 +000029841rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029842{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29843echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029844
29845# So? What about this header?
29846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29847 yes:no: )
29848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29852 ac_header_preproc=yes
29853 ;;
29854 no:yes:* )
29855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029867 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029868## ----------------------------------- ##
29869## Report this to llvmbugs@cs.uiuc.edu ##
29870## ----------------------------------- ##
29871_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029872 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029873 ;;
29874esac
Reid Spencera773bd52006-08-04 18:18:08 +000029875{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29877if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029878 echo $ECHO_N "(cached) $ECHO_C" >&6
29879else
29880 eval "$as_ac_Header=\$ac_header_preproc"
29881fi
Reid Spencera773bd52006-08-04 18:18:08 +000029882ac_res=`eval echo '${'$as_ac_Header'}'`
29883 { echo "$as_me:$LINENO: result: $ac_res" >&5
29884echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029885
29886fi
29887if test `eval echo '${'$as_ac_Header'}'` = yes; then
29888 cat >>confdefs.h <<_ACEOF
29889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29890_ACEOF
29891
29892fi
29893
29894done
29895
Reid Spencer0a262ba2005-08-24 10:07:20 +000029896if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029897
29898for ac_header in pthread.h
29899do
29900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029905 echo $ECHO_N "(cached) $ECHO_C" >&6
29906fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029907ac_res=`eval echo '${'$as_ac_Header'}'`
29908 { echo "$as_me:$LINENO: result: $ac_res" >&5
29909echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029910else
29911 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029914cat >conftest.$ac_ext <<_ACEOF
29915/* confdefs.h. */
29916_ACEOF
29917cat confdefs.h >>conftest.$ac_ext
29918cat >>conftest.$ac_ext <<_ACEOF
29919/* end confdefs.h. */
29920$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029921#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029922_ACEOF
29923rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029924if { (ac_try="$ac_compile"
29925case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29928esac
29929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029931 ac_status=$?
29932 grep -v '^ *+' conftest.er1 >conftest.err
29933 rm -f conftest.er1
29934 cat conftest.err >&5
29935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029936 (exit $ac_status); } &&
29937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29941esac
29942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
29944 ac_status=$?
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
29948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
29954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029957 ac_header_compiler=yes
29958else
29959 echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
Reid Spencera773bd52006-08-04 18:18:08 +000029962 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029963fi
Reid Spencera773bd52006-08-04 18:18:08 +000029964
29965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29967echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029968
29969# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029972cat >conftest.$ac_ext <<_ACEOF
29973/* confdefs.h. */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029978#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029979_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029980if { (ac_try="$ac_cpp conftest.$ac_ext"
29981case "(($ac_try" in
29982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29983 *) ac_try_echo=$ac_try;;
29984esac
29985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029987 ac_status=$?
29988 grep -v '^ *+' conftest.er1 >conftest.err
29989 rm -f conftest.er1
29990 cat conftest.err >&5
29991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029992 (exit $ac_status); } >/dev/null; then
29993 if test -s conftest.err; then
29994 ac_cpp_err=$ac_c_preproc_warn_flag
29995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29996 else
29997 ac_cpp_err=
29998 fi
29999else
30000 ac_cpp_err=yes
30001fi
30002if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030003 ac_header_preproc=yes
30004else
30005 echo "$as_me: failed program was:" >&5
30006sed 's/^/| /' conftest.$ac_ext >&5
30007
30008 ac_header_preproc=no
30009fi
Reid Spencera773bd52006-08-04 18:18:08 +000030010
Reid Spencer0a262ba2005-08-24 10:07:20 +000030011rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30013echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030014
30015# So? What about this header?
30016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30017 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030022 ac_header_preproc=yes
30023 ;;
30024 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030037 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030038## ----------------------------------- ##
30039## Report this to llvmbugs@cs.uiuc.edu ##
30040## ----------------------------------- ##
30041_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030042 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030043 ;;
30044esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030048 echo $ECHO_N "(cached) $ECHO_C" >&6
30049else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030050 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030051fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030052ac_res=`eval echo '${'$as_ac_Header'}'`
30053 { echo "$as_me:$LINENO: result: $ac_res" >&5
30054echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030055
30056fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030057if test `eval echo '${'$as_ac_Header'}'` = yes; then
30058 cat >>confdefs.h <<_ACEOF
30059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30060_ACEOF
30061 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030062
30063else
30064 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030065
30066fi
30067
Reid Spencerbe3e4192007-08-17 05:45:26 +000030068done
Reid Spencer1000b732006-12-01 00:37:14 +000030069
30070else
30071 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030072
30073fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030074
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030075if test -n "$have_libffi" ; then
30076
30077
30078for ac_header in ffi.h ffi/ffi.h
30079do
30080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30086fi
30087ac_res=`eval echo '${'$as_ac_Header'}'`
30088 { echo "$as_me:$LINENO: result: $ac_res" >&5
30089echo "${ECHO_T}$ac_res" >&6; }
30090else
30091 # Is the header compilable?
30092{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30093echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30094cat >conftest.$ac_ext <<_ACEOF
30095/* confdefs.h. */
30096_ACEOF
30097cat confdefs.h >>conftest.$ac_ext
30098cat >>conftest.$ac_ext <<_ACEOF
30099/* end confdefs.h. */
30100$ac_includes_default
30101#include <$ac_header>
30102_ACEOF
30103rm -f conftest.$ac_objext
30104if { (ac_try="$ac_compile"
30105case "(($ac_try" in
30106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30107 *) ac_try_echo=$ac_try;;
30108esac
30109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30110 (eval "$ac_compile") 2>conftest.er1
30111 ac_status=$?
30112 grep -v '^ *+' conftest.er1 >conftest.err
30113 rm -f conftest.er1
30114 cat conftest.err >&5
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); } &&
30117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30118 { (case "(($ac_try" in
30119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30120 *) ac_try_echo=$ac_try;;
30121esac
30122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30123 (eval "$ac_try") 2>&5
30124 ac_status=$?
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; } &&
30127 { ac_try='test -s conftest.$ac_objext'
30128 { (case "(($ac_try" in
30129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30130 *) ac_try_echo=$ac_try;;
30131esac
30132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30133 (eval "$ac_try") 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 ac_header_compiler=yes
30138else
30139 echo "$as_me: failed program was:" >&5
30140sed 's/^/| /' conftest.$ac_ext >&5
30141
30142 ac_header_compiler=no
30143fi
30144
30145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30146{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30147echo "${ECHO_T}$ac_header_compiler" >&6; }
30148
30149# Is the header present?
30150{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30151echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30152cat >conftest.$ac_ext <<_ACEOF
30153/* confdefs.h. */
30154_ACEOF
30155cat confdefs.h >>conftest.$ac_ext
30156cat >>conftest.$ac_ext <<_ACEOF
30157/* end confdefs.h. */
30158#include <$ac_header>
30159_ACEOF
30160if { (ac_try="$ac_cpp conftest.$ac_ext"
30161case "(($ac_try" in
30162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30163 *) ac_try_echo=$ac_try;;
30164esac
30165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30167 ac_status=$?
30168 grep -v '^ *+' conftest.er1 >conftest.err
30169 rm -f conftest.er1
30170 cat conftest.err >&5
30171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30172 (exit $ac_status); } >/dev/null; then
30173 if test -s conftest.err; then
30174 ac_cpp_err=$ac_c_preproc_warn_flag
30175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30176 else
30177 ac_cpp_err=
30178 fi
30179else
30180 ac_cpp_err=yes
30181fi
30182if test -z "$ac_cpp_err"; then
30183 ac_header_preproc=yes
30184else
30185 echo "$as_me: failed program was:" >&5
30186sed 's/^/| /' conftest.$ac_ext >&5
30187
30188 ac_header_preproc=no
30189fi
30190
30191rm -f conftest.err conftest.$ac_ext
30192{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30193echo "${ECHO_T}$ac_header_preproc" >&6; }
30194
30195# So? What about this header?
30196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30197 yes:no: )
30198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30202 ac_header_preproc=yes
30203 ;;
30204 no:yes:* )
30205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30217 ( cat <<\_ASBOX
30218## ----------------------------------- ##
30219## Report this to llvmbugs@cs.uiuc.edu ##
30220## ----------------------------------- ##
30221_ASBOX
30222 ) | sed "s/^/$as_me: WARNING: /" >&2
30223 ;;
30224esac
30225{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30226echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30228 echo $ECHO_N "(cached) $ECHO_C" >&6
30229else
30230 eval "$as_ac_Header=\$ac_header_preproc"
30231fi
30232ac_res=`eval echo '${'$as_ac_Header'}'`
30233 { echo "$as_me:$LINENO: result: $ac_res" >&5
30234echo "${ECHO_T}$ac_res" >&6; }
30235
30236fi
30237if test `eval echo '${'$as_ac_Header'}'` = yes; then
30238 cat >>confdefs.h <<_ACEOF
30239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30240_ACEOF
30241 HAVE_FFI=1
30242
30243fi
30244
30245done
30246
30247fi
30248
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030249
Reid Spencer8085cff2005-01-16 02:58:39 +000030250
Reid Spencerb2ed05262006-11-03 18:04:08 +000030251 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30252echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30253if test "${ac_cv_huge_val_sanity+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30255else
30256
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030257 ac_ext=cpp
30258ac_cpp='$CXXCPP $CPPFLAGS'
30259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030262
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030263 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030264 if test "$cross_compiling" = yes; then
30265 ac_cv_huge_val_sanity=yes
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273#include <math.h>
30274int
30275main ()
30276{
30277double x = HUGE_VAL; return x != x;
30278 ;
30279 return 0;
30280}
30281_ACEOF
30282rm -f conftest$ac_exeext
30283if { (ac_try="$ac_link"
30284case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_link") 2>&5
30290 ac_status=$?
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30293 { (case "(($ac_try" in
30294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30295 *) ac_try_echo=$ac_try;;
30296esac
30297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30298 (eval "$ac_try") 2>&5
30299 ac_status=$?
30300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301 (exit $ac_status); }; }; then
30302 ac_cv_huge_val_sanity=yes
30303else
30304 echo "$as_me: program exited with status $ac_status" >&5
30305echo "$as_me: failed program was:" >&5
30306sed 's/^/| /' conftest.$ac_ext >&5
30307
30308( exit $ac_status )
30309ac_cv_huge_val_sanity=no
30310fi
30311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30312fi
30313
30314
30315 ac_ext=c
30316ac_cpp='$CPP $CPPFLAGS'
30317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319ac_compiler_gnu=$ac_cv_c_compiler_gnu
30320
30321
30322fi
30323{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30324echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30325 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30326
30327
Reid Spencera773bd52006-08-04 18:18:08 +000030328{ echo "$as_me:$LINENO: checking for pid_t" >&5
30329echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030330if test "${ac_cv_type_pid_t+set}" = set; then
30331 echo $ECHO_N "(cached) $ECHO_C" >&6
30332else
30333 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030334/* confdefs.h. */
30335_ACEOF
30336cat confdefs.h >>conftest.$ac_ext
30337cat >>conftest.$ac_ext <<_ACEOF
30338/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030339$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030340typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030341int
30342main ()
30343{
Reid Spencera773bd52006-08-04 18:18:08 +000030344if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030345 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030346if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030347 return 0;
30348 ;
30349 return 0;
30350}
30351_ACEOF
30352rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030353if { (ac_try="$ac_compile"
30354case "(($ac_try" in
30355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356 *) ac_try_echo=$ac_try;;
30357esac
30358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030361 grep -v '^ *+' conftest.er1 >conftest.err
30362 rm -f conftest.er1
30363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030365 (exit $ac_status); } &&
30366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30367 { (case "(($ac_try" in
30368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30369 *) ac_try_echo=$ac_try;;
30370esac
30371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30372 (eval "$ac_try") 2>&5
30373 ac_status=$?
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); }; } &&
30376 { ac_try='test -s conftest.$ac_objext'
30377 { (case "(($ac_try" in
30378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30379 *) ac_try_echo=$ac_try;;
30380esac
30381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30382 (eval "$ac_try") 2>&5
30383 ac_status=$?
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030386 ac_cv_type_pid_t=yes
30387else
30388 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030389sed 's/^/| /' conftest.$ac_ext >&5
30390
Reid Spencera773bd52006-08-04 18:18:08 +000030391 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030392fi
Reid Spencera773bd52006-08-04 18:18:08 +000030393
30394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030395fi
Reid Spencera773bd52006-08-04 18:18:08 +000030396{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30397echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030398if test $ac_cv_type_pid_t = yes; then
30399 :
30400else
30401
30402cat >>confdefs.h <<_ACEOF
30403#define pid_t int
30404_ACEOF
30405
30406fi
30407
Reid Spencera773bd52006-08-04 18:18:08 +000030408{ echo "$as_me:$LINENO: checking for size_t" >&5
30409echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030410if test "${ac_cv_type_size_t+set}" = set; then
30411 echo $ECHO_N "(cached) $ECHO_C" >&6
30412else
30413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030414/* confdefs.h. */
30415_ACEOF
30416cat confdefs.h >>conftest.$ac_ext
30417cat >>conftest.$ac_ext <<_ACEOF
30418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030419$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030420typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030421int
30422main ()
30423{
Reid Spencera773bd52006-08-04 18:18:08 +000030424if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030425 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030426if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030427 return 0;
30428 ;
30429 return 0;
30430}
30431_ACEOF
30432rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030433if { (ac_try="$ac_compile"
30434case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30437esac
30438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030441 grep -v '^ *+' conftest.er1 >conftest.err
30442 rm -f conftest.er1
30443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030445 (exit $ac_status); } &&
30446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30447 { (case "(($ac_try" in
30448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30449 *) ac_try_echo=$ac_try;;
30450esac
30451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30452 (eval "$ac_try") 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; } &&
30456 { ac_try='test -s conftest.$ac_objext'
30457 { (case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30460esac
30461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_try") 2>&5
30463 ac_status=$?
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030466 ac_cv_type_size_t=yes
30467else
30468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030469sed 's/^/| /' conftest.$ac_ext >&5
30470
Reid Spencera773bd52006-08-04 18:18:08 +000030471 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030472fi
Reid Spencera773bd52006-08-04 18:18:08 +000030473
30474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030475fi
Reid Spencera773bd52006-08-04 18:18:08 +000030476{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30477echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030478if test $ac_cv_type_size_t = yes; then
30479 :
30480else
30481
30482cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030483#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030484_ACEOF
30485
30486fi
30487
Reid Spencera773bd52006-08-04 18:18:08 +000030488{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30489echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030490if test "${ac_cv_type_signal+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493 cat >conftest.$ac_ext <<_ACEOF
30494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
30499#include <sys/types.h>
30500#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501
30502int
30503main ()
30504{
Reid Spencera773bd52006-08-04 18:18:08 +000030505return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030506 ;
30507 return 0;
30508}
30509_ACEOF
30510rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030511if { (ac_try="$ac_compile"
30512case "(($ac_try" in
30513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30514 *) ac_try_echo=$ac_try;;
30515esac
30516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30517 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030518 ac_status=$?
30519 grep -v '^ *+' conftest.er1 >conftest.err
30520 rm -f conftest.er1
30521 cat conftest.err >&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030523 (exit $ac_status); } &&
30524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30525 { (case "(($ac_try" in
30526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527 *) ac_try_echo=$ac_try;;
30528esac
30529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30530 (eval "$ac_try") 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest.$ac_objext'
30535 { (case "(($ac_try" in
30536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30537 *) ac_try_echo=$ac_try;;
30538esac
30539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30540 (eval "$ac_try") 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030544 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030545else
30546 echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
Reid Spencera773bd52006-08-04 18:18:08 +000030549 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030550fi
Reid Spencera773bd52006-08-04 18:18:08 +000030551
30552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030553fi
Reid Spencera773bd52006-08-04 18:18:08 +000030554{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30555echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030556
30557cat >>confdefs.h <<_ACEOF
30558#define RETSIGTYPE $ac_cv_type_signal
30559_ACEOF
30560
30561
Reid Spencera773bd52006-08-04 18:18:08 +000030562{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30563echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030564if test "${ac_cv_struct_tm+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30566else
30567 cat >conftest.$ac_ext <<_ACEOF
30568/* confdefs.h. */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h. */
30573#include <sys/types.h>
30574#include <time.h>
30575
30576int
30577main ()
30578{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030579struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030580 ;
30581 return 0;
30582}
30583_ACEOF
30584rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030585if { (ac_try="$ac_compile"
30586case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589esac
30590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030592 ac_status=$?
30593 grep -v '^ *+' conftest.er1 >conftest.err
30594 rm -f conftest.er1
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030597 (exit $ac_status); } &&
30598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30599 { (case "(($ac_try" in
30600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30601 *) ac_try_echo=$ac_try;;
30602esac
30603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30604 (eval "$ac_try") 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; } &&
30608 { ac_try='test -s conftest.$ac_objext'
30609 { (case "(($ac_try" in
30610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611 *) ac_try_echo=$ac_try;;
30612esac
30613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614 (eval "$ac_try") 2>&5
30615 ac_status=$?
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030618 ac_cv_struct_tm=time.h
30619else
30620 echo "$as_me: failed program was:" >&5
30621sed 's/^/| /' conftest.$ac_ext >&5
30622
Reid Spencera773bd52006-08-04 18:18:08 +000030623 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030624fi
Reid Spencera773bd52006-08-04 18:18:08 +000030625
30626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030627fi
Reid Spencera773bd52006-08-04 18:18:08 +000030628{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30629echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030630if test $ac_cv_struct_tm = sys/time.h; then
30631
30632cat >>confdefs.h <<\_ACEOF
30633#define TM_IN_SYS_TIME 1
30634_ACEOF
30635
30636fi
30637
Reid Spencera773bd52006-08-04 18:18:08 +000030638{ echo "$as_me:$LINENO: checking for int64_t" >&5
30639echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030640if test "${ac_cv_type_int64_t+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30642else
30643 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030644/* confdefs.h. */
30645_ACEOF
30646cat confdefs.h >>conftest.$ac_ext
30647cat >>conftest.$ac_ext <<_ACEOF
30648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030649$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030650typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030651int
30652main ()
30653{
Reid Spencera773bd52006-08-04 18:18:08 +000030654if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030655 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030656if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030657 return 0;
30658 ;
30659 return 0;
30660}
30661_ACEOF
30662rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030663if { (ac_try="$ac_compile"
30664case "(($ac_try" in
30665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30666 *) ac_try_echo=$ac_try;;
30667esac
30668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30669 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030670 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030671 grep -v '^ *+' conftest.er1 >conftest.err
30672 rm -f conftest.er1
30673 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030675 (exit $ac_status); } &&
30676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30677 { (case "(($ac_try" in
30678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30679 *) ac_try_echo=$ac_try;;
30680esac
30681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30682 (eval "$ac_try") 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; } &&
30686 { ac_try='test -s conftest.$ac_objext'
30687 { (case "(($ac_try" in
30688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30689 *) ac_try_echo=$ac_try;;
30690esac
30691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30692 (eval "$ac_try") 2>&5
30693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030696 ac_cv_type_int64_t=yes
30697else
30698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030699sed 's/^/| /' conftest.$ac_ext >&5
30700
Reid Spencera773bd52006-08-04 18:18:08 +000030701 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030702fi
Reid Spencera773bd52006-08-04 18:18:08 +000030703
30704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030705fi
Reid Spencera773bd52006-08-04 18:18:08 +000030706{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30707echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030708if test $ac_cv_type_int64_t = yes; then
30709
30710cat >>confdefs.h <<_ACEOF
30711#define HAVE_INT64_T 1
30712_ACEOF
30713
30714
30715else
30716 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30717echo "$as_me: error: Type int64_t required but not found" >&2;}
30718 { (exit 1); exit 1; }; }
30719fi
30720
Reid Spencera773bd52006-08-04 18:18:08 +000030721{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30722echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030723if test "${ac_cv_type_uint64_t+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030732$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030733typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030734int
30735main ()
30736{
Reid Spencera773bd52006-08-04 18:18:08 +000030737if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030738 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030739if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030740 return 0;
30741 ;
30742 return 0;
30743}
30744_ACEOF
30745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030746if { (ac_try="$ac_compile"
30747case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30750esac
30751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030753 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030754 grep -v '^ *+' conftest.er1 >conftest.err
30755 rm -f conftest.er1
30756 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030758 (exit $ac_status); } &&
30759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30760 { (case "(($ac_try" in
30761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30762 *) ac_try_echo=$ac_try;;
30763esac
30764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30765 (eval "$ac_try") 2>&5
30766 ac_status=$?
30767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30768 (exit $ac_status); }; } &&
30769 { ac_try='test -s conftest.$ac_objext'
30770 { (case "(($ac_try" in
30771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30772 *) ac_try_echo=$ac_try;;
30773esac
30774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30775 (eval "$ac_try") 2>&5
30776 ac_status=$?
30777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30778 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030779 ac_cv_type_uint64_t=yes
30780else
30781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030782sed 's/^/| /' conftest.$ac_ext >&5
30783
Reid Spencera773bd52006-08-04 18:18:08 +000030784 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030785fi
Reid Spencera773bd52006-08-04 18:18:08 +000030786
30787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030788fi
Reid Spencera773bd52006-08-04 18:18:08 +000030789{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30790echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030791if test $ac_cv_type_uint64_t = yes; then
30792
30793cat >>confdefs.h <<_ACEOF
30794#define HAVE_UINT64_T 1
30795_ACEOF
30796
30797
30798else
Reid Spencera773bd52006-08-04 18:18:08 +000030799 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30800echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030801if test "${ac_cv_type_u_int64_t+set}" = set; then
30802 echo $ECHO_N "(cached) $ECHO_C" >&6
30803else
30804 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030805/* confdefs.h. */
30806_ACEOF
30807cat confdefs.h >>conftest.$ac_ext
30808cat >>conftest.$ac_ext <<_ACEOF
30809/* end confdefs.h. */
30810$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030811typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030812int
30813main ()
30814{
Reid Spencera773bd52006-08-04 18:18:08 +000030815if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030816 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030817if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030818 return 0;
30819 ;
30820 return 0;
30821}
30822_ACEOF
30823rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030824if { (ac_try="$ac_compile"
30825case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30828esac
30829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030831 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030832 grep -v '^ *+' conftest.er1 >conftest.err
30833 rm -f conftest.er1
30834 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030836 (exit $ac_status); } &&
30837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30838 { (case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30841esac
30842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_try") 2>&5
30844 ac_status=$?
30845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30846 (exit $ac_status); }; } &&
30847 { ac_try='test -s conftest.$ac_objext'
30848 { (case "(($ac_try" in
30849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30850 *) ac_try_echo=$ac_try;;
30851esac
30852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30853 (eval "$ac_try") 2>&5
30854 ac_status=$?
30855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30856 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030857 ac_cv_type_u_int64_t=yes
30858else
30859 echo "$as_me: failed program was:" >&5
30860sed 's/^/| /' conftest.$ac_ext >&5
30861
Reid Spencera773bd52006-08-04 18:18:08 +000030862 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030863fi
Reid Spencera773bd52006-08-04 18:18:08 +000030864
30865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030866fi
Reid Spencera773bd52006-08-04 18:18:08 +000030867{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30868echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030869if test $ac_cv_type_u_int64_t = yes; then
30870
30871cat >>confdefs.h <<_ACEOF
30872#define HAVE_U_INT64_T 1
30873_ACEOF
30874
30875
Misha Brukmanceca9042004-09-02 23:02:30 +000030876else
30877 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30878echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30879 { (exit 1); exit 1; }; }
30880fi
30881
John Criswell679ff312004-09-02 18:44:44 +000030882fi
30883
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030884
30885
30886
30887
30888
30889
30890
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030891
30892
Reid Spencerdf3be822006-01-23 08:15:53 +000030893for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030894do
30895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030899 echo $ECHO_N "(cached) $ECHO_C" >&6
30900else
30901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030902/* confdefs.h. */
30903_ACEOF
30904cat confdefs.h >>conftest.$ac_ext
30905cat >>conftest.$ac_ext <<_ACEOF
30906/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30909#define $ac_func innocuous_$ac_func
30910
30911/* System header to define __stub macros and hopefully few prototypes,
30912 which can conflict with char $ac_func (); below.
30913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30914 <limits.h> exists even on freestanding compilers. */
30915
30916#ifdef __STDC__
30917# include <limits.h>
30918#else
30919# include <assert.h>
30920#endif
30921
30922#undef $ac_func
30923
Reid Spencera773bd52006-08-04 18:18:08 +000030924/* Override any GCC internal prototype to avoid an error.
30925 Use char because int might match the return type of a GCC
30926 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030927#ifdef __cplusplus
30928extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030929#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030930char $ac_func ();
30931/* The GNU C library defines this for functions which it implements
30932 to always fail with ENOSYS. Some functions are actually named
30933 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030934#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030935choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030936#endif
John Criswell7a73b802003-06-30 21:59:07 +000030937
John Criswell7a73b802003-06-30 21:59:07 +000030938int
30939main ()
30940{
Reid Spencera773bd52006-08-04 18:18:08 +000030941return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030942 ;
30943 return 0;
30944}
30945_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030946rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030947if { (ac_try="$ac_link"
30948case "(($ac_try" in
30949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950 *) ac_try_echo=$ac_try;;
30951esac
30952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030955 grep -v '^ *+' conftest.er1 >conftest.err
30956 rm -f conftest.er1
30957 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030959 (exit $ac_status); } &&
30960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30961 { (case "(($ac_try" in
30962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30963 *) ac_try_echo=$ac_try;;
30964esac
30965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30966 (eval "$ac_try") 2>&5
30967 ac_status=$?
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); }; } &&
30970 { ac_try='test -s conftest$ac_exeext'
30971 { (case "(($ac_try" in
30972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973 *) ac_try_echo=$ac_try;;
30974esac
30975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976 (eval "$ac_try") 2>&5
30977 ac_status=$?
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030980 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030981else
30982 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030983sed 's/^/| /' conftest.$ac_ext >&5
30984
Reid Spencera773bd52006-08-04 18:18:08 +000030985 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030986fi
Reid Spencera773bd52006-08-04 18:18:08 +000030987
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030988rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030989 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030990fi
Reid Spencera773bd52006-08-04 18:18:08 +000030991ac_res=`eval echo '${'$as_ac_var'}'`
30992 { echo "$as_me:$LINENO: result: $ac_res" >&5
30993echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030994if test `eval echo '${'$as_ac_var'}'` = yes; then
30995 cat >>confdefs.h <<_ACEOF
30996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030997_ACEOF
30998
30999fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031000done
John Criswell7a73b802003-06-30 21:59:07 +000031001
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031002
31003
31004
Reid Spencer6af3d262004-12-15 04:01:48 +000031005
Reid Spencer96cf5872007-07-13 10:05:30 +000031006for ac_func in powf fmodf strtof round
31007do
31008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31009{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31013else
31014 cat >conftest.$ac_ext <<_ACEOF
31015/* confdefs.h. */
31016_ACEOF
31017cat confdefs.h >>conftest.$ac_ext
31018cat >>conftest.$ac_ext <<_ACEOF
31019/* end confdefs.h. */
31020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31022#define $ac_func innocuous_$ac_func
31023
31024/* System header to define __stub macros and hopefully few prototypes,
31025 which can conflict with char $ac_func (); below.
31026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027 <limits.h> exists even on freestanding compilers. */
31028
31029#ifdef __STDC__
31030# include <limits.h>
31031#else
31032# include <assert.h>
31033#endif
31034
31035#undef $ac_func
31036
31037/* Override any GCC internal prototype to avoid an error.
31038 Use char because int might match the return type of a GCC
31039 builtin and then its argument prototype would still apply. */
31040#ifdef __cplusplus
31041extern "C"
31042#endif
31043char $ac_func ();
31044/* The GNU C library defines this for functions which it implements
31045 to always fail with ENOSYS. Some functions are actually named
31046 something starting with __ and the normal name is an alias. */
31047#if defined __stub_$ac_func || defined __stub___$ac_func
31048choke me
31049#endif
31050
31051int
31052main ()
31053{
31054return $ac_func ();
31055 ;
31056 return 0;
31057}
31058_ACEOF
31059rm -f conftest.$ac_objext conftest$ac_exeext
31060if { (ac_try="$ac_link"
31061case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_link") 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031072 (exit $ac_status); } &&
31073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31074 { (case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_try") 2>&5
31080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; } &&
31083 { ac_try='test -s conftest$ac_exeext'
31084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31087esac
31088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031093 eval "$as_ac_var=yes"
31094else
31095 echo "$as_me: failed program was:" >&5
31096sed 's/^/| /' conftest.$ac_ext >&5
31097
31098 eval "$as_ac_var=no"
31099fi
31100
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031101rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031102 conftest$ac_exeext conftest.$ac_ext
31103fi
31104ac_res=`eval echo '${'$as_ac_var'}'`
31105 { echo "$as_me:$LINENO: result: $ac_res" >&5
31106echo "${ECHO_T}$ac_res" >&6; }
31107if test `eval echo '${'$as_ac_var'}'` = yes; then
31108 cat >>confdefs.h <<_ACEOF
31109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31110_ACEOF
31111
31112fi
31113done
31114
31115
31116
31117
31118
Reid Spencer6af3d262004-12-15 04:01:48 +000031119
Reid Spencerb90645c2007-02-16 19:17:20 +000031120for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31121do
31122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31126 echo $ECHO_N "(cached) $ECHO_C" >&6
31127else
31128 cat >conftest.$ac_ext <<_ACEOF
31129/* confdefs.h. */
31130_ACEOF
31131cat confdefs.h >>conftest.$ac_ext
31132cat >>conftest.$ac_ext <<_ACEOF
31133/* end confdefs.h. */
31134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31136#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031137
Reid Spencerb90645c2007-02-16 19:17:20 +000031138/* System header to define __stub macros and hopefully few prototypes,
31139 which can conflict with char $ac_func (); below.
31140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31141 <limits.h> exists even on freestanding compilers. */
31142
31143#ifdef __STDC__
31144# include <limits.h>
31145#else
31146# include <assert.h>
31147#endif
31148
31149#undef $ac_func
31150
31151/* Override any GCC internal prototype to avoid an error.
31152 Use char because int might match the return type of a GCC
31153 builtin and then its argument prototype would still apply. */
31154#ifdef __cplusplus
31155extern "C"
31156#endif
31157char $ac_func ();
31158/* The GNU C library defines this for functions which it implements
31159 to always fail with ENOSYS. Some functions are actually named
31160 something starting with __ and the normal name is an alias. */
31161#if defined __stub_$ac_func || defined __stub___$ac_func
31162choke me
31163#endif
31164
31165int
31166main ()
31167{
31168return $ac_func ();
31169 ;
31170 return 0;
31171}
31172_ACEOF
31173rm -f conftest.$ac_objext conftest$ac_exeext
31174if { (ac_try="$ac_link"
31175case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_link") 2>conftest.er1
31181 ac_status=$?
31182 grep -v '^ *+' conftest.er1 >conftest.err
31183 rm -f conftest.er1
31184 cat conftest.err >&5
31185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031186 (exit $ac_status); } &&
31187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31188 { (case "(($ac_try" in
31189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31190 *) ac_try_echo=$ac_try;;
31191esac
31192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31193 (eval "$ac_try") 2>&5
31194 ac_status=$?
31195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); }; } &&
31197 { ac_try='test -s conftest$ac_exeext'
31198 { (case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31201esac
31202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_try") 2>&5
31204 ac_status=$?
31205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031207 eval "$as_ac_var=yes"
31208else
31209 echo "$as_me: failed program was:" >&5
31210sed 's/^/| /' conftest.$ac_ext >&5
31211
31212 eval "$as_ac_var=no"
31213fi
31214
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031215rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031216 conftest$ac_exeext conftest.$ac_ext
31217fi
31218ac_res=`eval echo '${'$as_ac_var'}'`
31219 { echo "$as_me:$LINENO: result: $ac_res" >&5
31220echo "${ECHO_T}$ac_res" >&6; }
31221if test `eval echo '${'$as_ac_var'}'` = yes; then
31222 cat >>confdefs.h <<_ACEOF
31223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224_ACEOF
31225
31226fi
31227done
31228
31229
31230
31231
31232for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031233do
31234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031235{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 cat >conftest.$ac_ext <<_ACEOF
31241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
31246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31248#define $ac_func innocuous_$ac_func
31249
31250/* System header to define __stub macros and hopefully few prototypes,
31251 which can conflict with char $ac_func (); below.
31252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253 <limits.h> exists even on freestanding compilers. */
31254
31255#ifdef __STDC__
31256# include <limits.h>
31257#else
31258# include <assert.h>
31259#endif
31260
31261#undef $ac_func
31262
Reid Spencera773bd52006-08-04 18:18:08 +000031263/* Override any GCC internal prototype to avoid an error.
31264 Use char because int might match the return type of a GCC
31265 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031266#ifdef __cplusplus
31267extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031268#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031269char $ac_func ();
31270/* The GNU C library defines this for functions which it implements
31271 to always fail with ENOSYS. Some functions are actually named
31272 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031273#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031274choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031275#endif
31276
31277int
31278main ()
31279{
Reid Spencera773bd52006-08-04 18:18:08 +000031280return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031281 ;
31282 return 0;
31283}
31284_ACEOF
31285rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031286if { (ac_try="$ac_link"
31287case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31290esac
31291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031293 ac_status=$?
31294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031298 (exit $ac_status); } &&
31299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300 { (case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31303esac
31304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_try") 2>&5
31306 ac_status=$?
31307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308 (exit $ac_status); }; } &&
31309 { ac_try='test -s conftest$ac_exeext'
31310 { (case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313esac
31314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315 (eval "$ac_try") 2>&5
31316 ac_status=$?
31317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031319 eval "$as_ac_var=yes"
31320else
31321 echo "$as_me: failed program was:" >&5
31322sed 's/^/| /' conftest.$ac_ext >&5
31323
Reid Spencera773bd52006-08-04 18:18:08 +000031324 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031325fi
Reid Spencera773bd52006-08-04 18:18:08 +000031326
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031327rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031328 conftest$ac_exeext conftest.$ac_ext
31329fi
Reid Spencera773bd52006-08-04 18:18:08 +000031330ac_res=`eval echo '${'$as_ac_var'}'`
31331 { echo "$as_me:$LINENO: result: $ac_res" >&5
31332echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031333if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336_ACEOF
31337
31338fi
31339done
31340
31341
31342
31343
31344
31345
31346
31347
31348for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031349do
31350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031354 echo $ECHO_N "(cached) $ECHO_C" >&6
31355else
31356 cat >conftest.$ac_ext <<_ACEOF
31357/* confdefs.h. */
31358_ACEOF
31359cat confdefs.h >>conftest.$ac_ext
31360cat >>conftest.$ac_ext <<_ACEOF
31361/* end confdefs.h. */
31362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31364#define $ac_func innocuous_$ac_func
31365
31366/* System header to define __stub macros and hopefully few prototypes,
31367 which can conflict with char $ac_func (); below.
31368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31369 <limits.h> exists even on freestanding compilers. */
31370
31371#ifdef __STDC__
31372# include <limits.h>
31373#else
31374# include <assert.h>
31375#endif
31376
31377#undef $ac_func
31378
Reid Spencera773bd52006-08-04 18:18:08 +000031379/* Override any GCC internal prototype to avoid an error.
31380 Use char because int might match the return type of a GCC
31381 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031382#ifdef __cplusplus
31383extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031384#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031385char $ac_func ();
31386/* The GNU C library defines this for functions which it implements
31387 to always fail with ENOSYS. Some functions are actually named
31388 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031389#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031390choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031391#endif
31392
31393int
31394main ()
31395{
Reid Spencera773bd52006-08-04 18:18:08 +000031396return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031397 ;
31398 return 0;
31399}
31400_ACEOF
31401rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031402if { (ac_try="$ac_link"
31403case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31406esac
31407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031409 ac_status=$?
31410 grep -v '^ *+' conftest.er1 >conftest.err
31411 rm -f conftest.er1
31412 cat conftest.err >&5
31413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031414 (exit $ac_status); } &&
31415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31416 { (case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419esac
31420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_try") 2>&5
31422 ac_status=$?
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); }; } &&
31425 { ac_try='test -s conftest$ac_exeext'
31426 { (case "(($ac_try" in
31427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31428 *) ac_try_echo=$ac_try;;
31429esac
31430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31431 (eval "$ac_try") 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031435 eval "$as_ac_var=yes"
31436else
31437 echo "$as_me: failed program was:" >&5
31438sed 's/^/| /' conftest.$ac_ext >&5
31439
Reid Spencera773bd52006-08-04 18:18:08 +000031440 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031441fi
Reid Spencera773bd52006-08-04 18:18:08 +000031442
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031443rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031444 conftest$ac_exeext conftest.$ac_ext
31445fi
Reid Spencera773bd52006-08-04 18:18:08 +000031446ac_res=`eval echo '${'$as_ac_var'}'`
31447 { echo "$as_me:$LINENO: result: $ac_res" >&5
31448echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031449if test `eval echo '${'$as_ac_var'}'` = yes; then
31450 cat >>confdefs.h <<_ACEOF
31451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31452_ACEOF
31453
31454fi
31455done
31456
31457
Reid Spencerba46ca32004-12-31 05:49:15 +000031458
31459
Chris Lattner0b142592005-11-14 06:57:34 +000031460
Chris Lattner511f11d2005-11-14 07:25:50 +000031461for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031462do
31463as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031464{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31465echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31466if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031467 echo $ECHO_N "(cached) $ECHO_C" >&6
31468else
31469 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031470/* confdefs.h. */
31471_ACEOF
31472cat confdefs.h >>conftest.$ac_ext
31473cat >>conftest.$ac_ext <<_ACEOF
31474/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031475/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31477#define $ac_func innocuous_$ac_func
31478
31479/* System header to define __stub macros and hopefully few prototypes,
31480 which can conflict with char $ac_func (); below.
31481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31482 <limits.h> exists even on freestanding compilers. */
31483
31484#ifdef __STDC__
31485# include <limits.h>
31486#else
31487# include <assert.h>
31488#endif
31489
31490#undef $ac_func
31491
Reid Spencera773bd52006-08-04 18:18:08 +000031492/* Override any GCC internal prototype to avoid an error.
31493 Use char because int might match the return type of a GCC
31494 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031495#ifdef __cplusplus
31496extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031497#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031498char $ac_func ();
31499/* The GNU C library defines this for functions which it implements
31500 to always fail with ENOSYS. Some functions are actually named
31501 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031502#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031503choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031504#endif
John Criswell7a73b802003-06-30 21:59:07 +000031505
John Criswell7a73b802003-06-30 21:59:07 +000031506int
31507main ()
31508{
Reid Spencera773bd52006-08-04 18:18:08 +000031509return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031510 ;
31511 return 0;
31512}
31513_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031514rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031515if { (ac_try="$ac_link"
31516case "(($ac_try" in
31517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518 *) ac_try_echo=$ac_try;;
31519esac
31520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31521 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031522 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031523 grep -v '^ *+' conftest.er1 >conftest.err
31524 rm -f conftest.er1
31525 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031527 (exit $ac_status); } &&
31528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31529 { (case "(($ac_try" in
31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531 *) ac_try_echo=$ac_try;;
31532esac
31533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534 (eval "$ac_try") 2>&5
31535 ac_status=$?
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); }; } &&
31538 { ac_try='test -s conftest$ac_exeext'
31539 { (case "(($ac_try" in
31540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31541 *) ac_try_echo=$ac_try;;
31542esac
31543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31544 (eval "$ac_try") 2>&5
31545 ac_status=$?
31546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031548 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031549else
31550 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031551sed 's/^/| /' conftest.$ac_ext >&5
31552
Reid Spencera773bd52006-08-04 18:18:08 +000031553 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031554fi
Reid Spencera773bd52006-08-04 18:18:08 +000031555
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031556rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031557 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031558fi
Reid Spencera773bd52006-08-04 18:18:08 +000031559ac_res=`eval echo '${'$as_ac_var'}'`
31560 { echo "$as_me:$LINENO: result: $ac_res" >&5
31561echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031562if test `eval echo '${'$as_ac_var'}'` = yes; then
31563 cat >>confdefs.h <<_ACEOF
31564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031565_ACEOF
31566
31567fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031568done
John Criswell7a73b802003-06-30 21:59:07 +000031569
Reid Spencercdb08a32006-06-05 16:11:07 +000031570
31571
31572
31573
Reid Spencerafa22e22006-12-10 23:29:19 +000031574for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031575do
31576as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031577{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31578echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31579if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031580 echo $ECHO_N "(cached) $ECHO_C" >&6
31581else
31582 cat >conftest.$ac_ext <<_ACEOF
31583/* confdefs.h. */
31584_ACEOF
31585cat confdefs.h >>conftest.$ac_ext
31586cat >>conftest.$ac_ext <<_ACEOF
31587/* end confdefs.h. */
31588/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31590#define $ac_func innocuous_$ac_func
31591
31592/* System header to define __stub macros and hopefully few prototypes,
31593 which can conflict with char $ac_func (); below.
31594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31595 <limits.h> exists even on freestanding compilers. */
31596
31597#ifdef __STDC__
31598# include <limits.h>
31599#else
31600# include <assert.h>
31601#endif
31602
31603#undef $ac_func
31604
Reid Spencera773bd52006-08-04 18:18:08 +000031605/* Override any GCC internal prototype to avoid an error.
31606 Use char because int might match the return type of a GCC
31607 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031608#ifdef __cplusplus
31609extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031610#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031611char $ac_func ();
31612/* The GNU C library defines this for functions which it implements
31613 to always fail with ENOSYS. Some functions are actually named
31614 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031615#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031616choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031617#endif
31618
31619int
31620main ()
31621{
Reid Spencera773bd52006-08-04 18:18:08 +000031622return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031623 ;
31624 return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031628if { (ac_try="$ac_link"
31629case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31632esac
31633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31634 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031635 ac_status=$?
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031640 (exit $ac_status); } &&
31641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31642 { (case "(($ac_try" in
31643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644 *) ac_try_echo=$ac_try;;
31645esac
31646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31647 (eval "$ac_try") 2>&5
31648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='test -s conftest$ac_exeext'
31652 { (case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31655esac
31656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_try") 2>&5
31658 ac_status=$?
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031661 eval "$as_ac_var=yes"
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
Reid Spencera773bd52006-08-04 18:18:08 +000031666 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031667fi
Reid Spencera773bd52006-08-04 18:18:08 +000031668
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031669rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031670 conftest$ac_exeext conftest.$ac_ext
31671fi
Reid Spencera773bd52006-08-04 18:18:08 +000031672ac_res=`eval echo '${'$as_ac_var'}'`
31673 { echo "$as_me:$LINENO: result: $ac_res" >&5
31674echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031675if test `eval echo '${'$as_ac_var'}'` = yes; then
31676 cat >>confdefs.h <<_ACEOF
31677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31678_ACEOF
31679
31680fi
31681done
31682
Reid Spencera773bd52006-08-04 18:18:08 +000031683{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31684echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031685if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686 echo $ECHO_N "(cached) $ECHO_C" >&6
31687else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031688 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031689ac_cpp='$CPP $CPPFLAGS'
31690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31692ac_compiler_gnu=$ac_cv_c_compiler_gnu
31693
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031694 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031695 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031696else
31697 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031699 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031700_ACEOF
31701cat confdefs.h >>conftest.$ac_ext
31702cat >>conftest.$ac_ext <<_ACEOF
31703/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031704
John Criswella0137d32003-10-13 16:22:01 +000031705#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031706#include <stdlib.h>
31707
John Criswella0137d32003-10-13 16:22:01 +000031708int
31709main ()
31710{
31711
Reid Spencer2706f8c2004-09-19 23:53:36 +000031712volatile double A, B;
31713char Buffer[100];
31714A = 1;
31715A /= 10.0;
31716sprintf(Buffer, "%a", A);
31717B = atof(Buffer);
31718if (A != B)
31719 return (1);
31720if (A != 0x1.999999999999ap-4)
31721 return (1);
31722return (0);
John Criswella0137d32003-10-13 16:22:01 +000031723 ;
31724 return 0;
31725}
31726_ACEOF
31727rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031728if { (ac_try="$ac_link"
31729case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31732esac
31733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031735 ac_status=$?
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031738 { (case "(($ac_try" in
31739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31740 *) ac_try_echo=$ac_try;;
31741esac
31742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31743 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031744 ac_status=$?
31745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031747 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031748else
31749 echo "$as_me: program exited with status $ac_status" >&5
31750echo "$as_me: failed program was:" >&5
31751sed 's/^/| /' conftest.$ac_ext >&5
31752
31753( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031754llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031755fi
Reid Spencera773bd52006-08-04 18:18:08 +000031756rm -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 +000031757fi
Reid Spencera773bd52006-08-04 18:18:08 +000031758
31759
Reid Spencer2706f8c2004-09-19 23:53:36 +000031760 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031761ac_cpp='$CPP $CPPFLAGS'
31762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764ac_compiler_gnu=$ac_cv_c_compiler_gnu
31765
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031766fi
Reid Spencera773bd52006-08-04 18:18:08 +000031767{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31768echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031769 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031770
31771cat >>confdefs.h <<\_ACEOF
31772#define HAVE_PRINTF_A 1
31773_ACEOF
31774
Reid Spencer2706f8c2004-09-19 23:53:36 +000031775 fi
John Criswella0137d32003-10-13 16:22:01 +000031776
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031777# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31778# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031779{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31780echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031781if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783else
John Criswell0021c312004-02-13 21:57:29 +000031784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031785/* confdefs.h. */
31786_ACEOF
31787cat confdefs.h >>conftest.$ac_ext
31788cat >>conftest.$ac_ext <<_ACEOF
31789/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031791int
31792main ()
31793{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031794char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031795 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031796 ;
31797 return 0;
31798}
31799_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031801if { (ac_try="$ac_link"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest$ac_exeext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834 ac_cv_working_alloca_h=yes
31835else
31836 echo "$as_me: failed program was:" >&5
31837sed 's/^/| /' conftest.$ac_ext >&5
31838
Reid Spencera773bd52006-08-04 18:18:08 +000031839 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031840fi
Reid Spencera773bd52006-08-04 18:18:08 +000031841
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843 conftest$ac_exeext conftest.$ac_ext
31844fi
Reid Spencera773bd52006-08-04 18:18:08 +000031845{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31846echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031847if test $ac_cv_working_alloca_h = yes; then
31848
31849cat >>confdefs.h <<\_ACEOF
31850#define HAVE_ALLOCA_H 1
31851_ACEOF
31852
31853fi
31854
Reid Spencera773bd52006-08-04 18:18:08 +000031855{ echo "$as_me:$LINENO: checking for alloca" >&5
31856echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031857if test "${ac_cv_func_alloca_works+set}" = set; then
31858 echo $ECHO_N "(cached) $ECHO_C" >&6
31859else
31860 cat >conftest.$ac_ext <<_ACEOF
31861/* confdefs.h. */
31862_ACEOF
31863cat confdefs.h >>conftest.$ac_ext
31864cat >>conftest.$ac_ext <<_ACEOF
31865/* end confdefs.h. */
31866#ifdef __GNUC__
31867# define alloca __builtin_alloca
31868#else
31869# ifdef _MSC_VER
31870# include <malloc.h>
31871# define alloca _alloca
31872# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031873# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031874# include <alloca.h>
31875# else
31876# ifdef _AIX
31877 #pragma alloca
31878# else
31879# ifndef alloca /* predefined by HP cc +Olibcalls */
31880char *alloca ();
31881# endif
31882# endif
31883# endif
31884# endif
31885#endif
31886
31887int
31888main ()
31889{
31890char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031891 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031892 ;
31893 return 0;
31894}
31895_ACEOF
31896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031897if { (ac_try="$ac_link"
31898case "(($ac_try" in
31899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31900 *) ac_try_echo=$ac_try;;
31901esac
31902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31903 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031904 ac_status=$?
31905 grep -v '^ *+' conftest.er1 >conftest.err
31906 rm -f conftest.er1
31907 cat conftest.err >&5
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031909 (exit $ac_status); } &&
31910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31911 { (case "(($ac_try" in
31912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913 *) ac_try_echo=$ac_try;;
31914esac
31915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916 (eval "$ac_try") 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; } &&
31920 { ac_try='test -s conftest$ac_exeext'
31921 { (case "(($ac_try" in
31922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31923 *) ac_try_echo=$ac_try;;
31924esac
31925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31926 (eval "$ac_try") 2>&5
31927 ac_status=$?
31928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31929 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031930 ac_cv_func_alloca_works=yes
31931else
31932 echo "$as_me: failed program was:" >&5
31933sed 's/^/| /' conftest.$ac_ext >&5
31934
Reid Spencera773bd52006-08-04 18:18:08 +000031935 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031936fi
Reid Spencera773bd52006-08-04 18:18:08 +000031937
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031938rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031939 conftest$ac_exeext conftest.$ac_ext
31940fi
Reid Spencera773bd52006-08-04 18:18:08 +000031941{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31942echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031943
31944if test $ac_cv_func_alloca_works = yes; then
31945
31946cat >>confdefs.h <<\_ACEOF
31947#define HAVE_ALLOCA 1
31948_ACEOF
31949
31950else
31951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31952# that cause trouble. Some versions do not even contain alloca or
31953# contain a buggy version. If you still want to use their alloca,
31954# use ar to extract alloca.o from them instead of compiling alloca.c.
31955
Reid Spencera773bd52006-08-04 18:18:08 +000031956ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031957
31958cat >>confdefs.h <<\_ACEOF
31959#define C_ALLOCA 1
31960_ACEOF
31961
31962
Reid Spencera773bd52006-08-04 18:18:08 +000031963{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31964echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031965if test "${ac_cv_os_cray+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967else
31968 cat >conftest.$ac_ext <<_ACEOF
31969/* confdefs.h. */
31970_ACEOF
31971cat confdefs.h >>conftest.$ac_ext
31972cat >>conftest.$ac_ext <<_ACEOF
31973/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031974#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031975webecray
31976#else
31977wenotbecray
31978#endif
31979
31980_ACEOF
31981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31982 $EGREP "webecray" >/dev/null 2>&1; then
31983 ac_cv_os_cray=yes
31984else
31985 ac_cv_os_cray=no
31986fi
31987rm -f conftest*
31988
31989fi
Reid Spencera773bd52006-08-04 18:18:08 +000031990{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31991echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031992if test $ac_cv_os_cray = yes; then
31993 for ac_func in _getb67 GETB67 getb67; do
31994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031998 echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000 cat >conftest.$ac_ext <<_ACEOF
32001/* confdefs.h. */
32002_ACEOF
32003cat confdefs.h >>conftest.$ac_ext
32004cat >>conftest.$ac_ext <<_ACEOF
32005/* end confdefs.h. */
32006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32008#define $ac_func innocuous_$ac_func
32009
32010/* System header to define __stub macros and hopefully few prototypes,
32011 which can conflict with char $ac_func (); below.
32012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32013 <limits.h> exists even on freestanding compilers. */
32014
32015#ifdef __STDC__
32016# include <limits.h>
32017#else
32018# include <assert.h>
32019#endif
32020
32021#undef $ac_func
32022
Reid Spencera773bd52006-08-04 18:18:08 +000032023/* Override any GCC internal prototype to avoid an error.
32024 Use char because int might match the return type of a GCC
32025 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032026#ifdef __cplusplus
32027extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032028#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032029char $ac_func ();
32030/* The GNU C library defines this for functions which it implements
32031 to always fail with ENOSYS. Some functions are actually named
32032 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032033#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032034choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032035#endif
32036
32037int
32038main ()
32039{
Reid Spencera773bd52006-08-04 18:18:08 +000032040return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032041 ;
32042 return 0;
32043}
32044_ACEOF
32045rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032046if { (ac_try="$ac_link"
32047case "(($ac_try" in
32048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049 *) ac_try_echo=$ac_try;;
32050esac
32051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032053 ac_status=$?
32054 grep -v '^ *+' conftest.er1 >conftest.err
32055 rm -f conftest.er1
32056 cat conftest.err >&5
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032058 (exit $ac_status); } &&
32059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
32066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; } &&
32069 { ac_try='test -s conftest$ac_exeext'
32070 { (case "(($ac_try" in
32071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072 *) ac_try_echo=$ac_try;;
32073esac
32074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075 (eval "$ac_try") 2>&5
32076 ac_status=$?
32077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32078 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032079 eval "$as_ac_var=yes"
32080else
32081 echo "$as_me: failed program was:" >&5
32082sed 's/^/| /' conftest.$ac_ext >&5
32083
Reid Spencera773bd52006-08-04 18:18:08 +000032084 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032085fi
Reid Spencera773bd52006-08-04 18:18:08 +000032086
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032087rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032088 conftest$ac_exeext conftest.$ac_ext
32089fi
Reid Spencera773bd52006-08-04 18:18:08 +000032090ac_res=`eval echo '${'$as_ac_var'}'`
32091 { echo "$as_me:$LINENO: result: $ac_res" >&5
32092echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032093if test `eval echo '${'$as_ac_var'}'` = yes; then
32094
32095cat >>confdefs.h <<_ACEOF
32096#define CRAY_STACKSEG_END $ac_func
32097_ACEOF
32098
32099 break
32100fi
32101
32102 done
32103fi
32104
Reid Spencera773bd52006-08-04 18:18:08 +000032105{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32106echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032107if test "${ac_cv_c_stack_direction+set}" = set; then
32108 echo $ECHO_N "(cached) $ECHO_C" >&6
32109else
32110 if test "$cross_compiling" = yes; then
32111 ac_cv_c_stack_direction=0
32112else
32113 cat >conftest.$ac_ext <<_ACEOF
32114/* confdefs.h. */
32115_ACEOF
32116cat confdefs.h >>conftest.$ac_ext
32117cat >>conftest.$ac_ext <<_ACEOF
32118/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032119$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032120int
32121find_stack_direction ()
32122{
32123 static char *addr = 0;
32124 auto char dummy;
32125 if (addr == 0)
32126 {
32127 addr = &dummy;
32128 return find_stack_direction ();
32129 }
John Criswell0021c312004-02-13 21:57:29 +000032130 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032131 return (&dummy > addr) ? 1 : -1;
32132}
John Criswell0021c312004-02-13 21:57:29 +000032133
John Criswell0021c312004-02-13 21:57:29 +000032134int
32135main ()
32136{
Reid Spencera773bd52006-08-04 18:18:08 +000032137 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032138}
32139_ACEOF
32140rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032141if { (ac_try="$ac_link"
32142case "(($ac_try" in
32143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32144 *) ac_try_echo=$ac_try;;
32145esac
32146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32147 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032148 ac_status=$?
32149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032151 { (case "(($ac_try" in
32152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153 *) ac_try_echo=$ac_try;;
32154esac
32155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032157 ac_status=$?
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032160 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032161else
32162 echo "$as_me: program exited with status $ac_status" >&5
32163echo "$as_me: failed program was:" >&5
32164sed 's/^/| /' conftest.$ac_ext >&5
32165
32166( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032167ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032168fi
Reid Spencera773bd52006-08-04 18:18:08 +000032169rm -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 +000032170fi
Reid Spencera773bd52006-08-04 18:18:08 +000032171
32172
John Criswell0021c312004-02-13 21:57:29 +000032173fi
Reid Spencera773bd52006-08-04 18:18:08 +000032174{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32175echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032176
32177cat >>confdefs.h <<_ACEOF
32178#define STACK_DIRECTION $ac_cv_c_stack_direction
32179_ACEOF
32180
32181
John Criswell0021c312004-02-13 21:57:29 +000032182fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032183
32184
Reid Spencera773bd52006-08-04 18:18:08 +000032185{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32186echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032187if test "${ac_cv_func_rand48+set}" = set; then
32188 echo $ECHO_N "(cached) $ECHO_C" >&6
32189else
Reid Spencera773bd52006-08-04 18:18:08 +000032190 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032191ac_cpp='$CXXCPP $CPPFLAGS'
32192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32195
32196 cat >conftest.$ac_ext <<_ACEOF
32197/* confdefs.h. */
32198_ACEOF
32199cat confdefs.h >>conftest.$ac_ext
32200cat >>conftest.$ac_ext <<_ACEOF
32201/* end confdefs.h. */
32202#include <stdlib.h>
32203int
32204main ()
32205{
32206srand48(0);lrand48();drand48();
32207 ;
32208 return 0;
32209}
32210_ACEOF
32211rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032212if { (ac_try="$ac_compile"
32213case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032219 ac_status=$?
32220 grep -v '^ *+' conftest.er1 >conftest.err
32221 rm -f conftest.er1
32222 cat conftest.err >&5
32223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032224 (exit $ac_status); } &&
32225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32226 { (case "(($ac_try" in
32227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32228 *) ac_try_echo=$ac_try;;
32229esac
32230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32231 (eval "$ac_try") 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest.$ac_objext'
32236 { (case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32239esac
32240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_try") 2>&5
32242 ac_status=$?
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032245 ac_cv_func_rand48=yes
32246else
32247 echo "$as_me: failed program was:" >&5
32248sed 's/^/| /' conftest.$ac_ext >&5
32249
Reid Spencera773bd52006-08-04 18:18:08 +000032250 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032251fi
Reid Spencera773bd52006-08-04 18:18:08 +000032252
32253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032254 ac_ext=c
32255ac_cpp='$CPP $CPPFLAGS'
32256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32258ac_compiler_gnu=$ac_cv_c_compiler_gnu
32259
32260fi
Reid Spencera773bd52006-08-04 18:18:08 +000032261{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32262echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032263
32264if test "$ac_cv_func_rand48" = "yes" ; then
32265
32266cat >>confdefs.h <<\_ACEOF
32267#define HAVE_RAND48 1
32268_ACEOF
32269
32270fi
John Criswell0021c312004-02-13 21:57:29 +000032271
32272
Reid Spencera773bd52006-08-04 18:18:08 +000032273{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32274echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032275if test "${ac_cv_cxx_namespaces+set}" = set; then
32276 echo $ECHO_N "(cached) $ECHO_C" >&6
32277else
Reid Spencera773bd52006-08-04 18:18:08 +000032278 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032279ac_cpp='$CXXCPP $CPPFLAGS'
32280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32283
32284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032285/* confdefs.h. */
32286_ACEOF
32287cat confdefs.h >>conftest.$ac_ext
32288cat >>conftest.$ac_ext <<_ACEOF
32289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032290namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032291int
32292main ()
32293{
32294using namespace Outer::Inner; return i;
32295 ;
32296 return 0;
32297}
32298_ACEOF
32299rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032300if { (ac_try="$ac_compile"
32301case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032308 grep -v '^ *+' conftest.er1 >conftest.err
32309 rm -f conftest.er1
32310 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032312 (exit $ac_status); } &&
32313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32317esac
32318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32327esac
32328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_try") 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032333 ac_cv_cxx_namespaces=yes
32334else
32335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032336sed 's/^/| /' conftest.$ac_ext >&5
32337
Reid Spencera773bd52006-08-04 18:18:08 +000032338 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032339fi
Reid Spencera773bd52006-08-04 18:18:08 +000032340
32341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032342 ac_ext=c
32343ac_cpp='$CPP $CPPFLAGS'
32344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347
32348
32349fi
Reid Spencera773bd52006-08-04 18:18:08 +000032350{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32351echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032352if test "$ac_cv_cxx_namespaces" = yes; then
32353
32354cat >>confdefs.h <<\_ACEOF
32355#define HAVE_NAMESPACES
32356_ACEOF
32357
32358fi
32359
Reid Spencera773bd52006-08-04 18:18:08 +000032360{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32361echo $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 +000032362if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032363 echo $ECHO_N "(cached) $ECHO_C" >&6
32364else
32365
Reid Spencera773bd52006-08-04 18:18:08 +000032366 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032367ac_cpp='$CXXCPP $CPPFLAGS'
32368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32371
32372 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032373/* confdefs.h. */
32374_ACEOF
32375cat confdefs.h >>conftest.$ac_ext
32376cat >>conftest.$ac_ext <<_ACEOF
32377/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032378#include <ext/hash_map>
32379#ifdef HAVE_NAMESPACES
32380using namespace std;
32381#endif
John Criswell7a73b802003-06-30 21:59:07 +000032382int
32383main ()
32384{
Brian Gaeke90583492003-11-10 03:06:28 +000032385hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032386 ;
32387 return 0;
32388}
32389_ACEOF
32390rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032391if { (ac_try="$ac_compile"
32392case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32395esac
32396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032399 grep -v '^ *+' conftest.er1 >conftest.err
32400 rm -f conftest.er1
32401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032403 (exit $ac_status); } &&
32404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32405 { (case "(($ac_try" in
32406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32407 *) ac_try_echo=$ac_try;;
32408esac
32409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32410 (eval "$ac_try") 2>&5
32411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest.$ac_objext'
32415 { (case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32418esac
32419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_try") 2>&5
32421 ac_status=$?
32422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32423 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032424 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032425else
32426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032427sed 's/^/| /' conftest.$ac_ext >&5
32428
Reid Spencera773bd52006-08-04 18:18:08 +000032429 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032430fi
Reid Spencera773bd52006-08-04 18:18:08 +000032431
32432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032433 ac_ext=c
32434ac_cpp='$CPP $CPPFLAGS'
32435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437ac_compiler_gnu=$ac_cv_c_compiler_gnu
32438
John Criswell7a73b802003-06-30 21:59:07 +000032439fi
Reid Spencera773bd52006-08-04 18:18:08 +000032440{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32441echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032442 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32443 then
John Criswell9f011862004-09-24 18:28:00 +000032444
32445cat >>confdefs.h <<\_ACEOF
32446#define HAVE_STD_EXT_HASH_MAP 1
32447_ACEOF
32448
32449 else
32450
32451cat >>confdefs.h <<\_ACEOF
32452#define HAVE_STD_EXT_HASH_MAP 0
32453_ACEOF
32454
Brian Gaeke90583492003-11-10 03:06:28 +000032455 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032456
Reid Spencera773bd52006-08-04 18:18:08 +000032457 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32458echo $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 +000032459if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461else
32462
Reid Spencera773bd52006-08-04 18:18:08 +000032463 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032464ac_cpp='$CXXCPP $CPPFLAGS'
32465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32468
32469 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032470/* confdefs.h. */
32471_ACEOF
32472cat confdefs.h >>conftest.$ac_ext
32473cat >>conftest.$ac_ext <<_ACEOF
32474/* end confdefs.h. */
32475#include <ext/hash_map>
32476#ifdef HAVE_NAMESPACES
32477using namespace __gnu_cxx;
32478#endif
32479int
32480main ()
32481{
32482hash_map<int,int> t;
32483 ;
32484 return 0;
32485}
32486_ACEOF
32487rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032488if { (ac_try="$ac_compile"
32489case "(($ac_try" in
32490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32491 *) ac_try_echo=$ac_try;;
32492esac
32493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32494 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032496 grep -v '^ *+' conftest.er1 >conftest.err
32497 rm -f conftest.er1
32498 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032500 (exit $ac_status); } &&
32501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32502 { (case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_try") 2>&5
32508 ac_status=$?
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); }; } &&
32511 { ac_try='test -s conftest.$ac_objext'
32512 { (case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32515esac
32516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_try") 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032521 ac_cv_cxx_have_gnu_ext_hash_map=yes
32522else
32523 echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
Reid Spencera773bd52006-08-04 18:18:08 +000032526 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032527fi
Reid Spencera773bd52006-08-04 18:18:08 +000032528
32529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032530 ac_ext=c
32531ac_cpp='$CPP $CPPFLAGS'
32532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534ac_compiler_gnu=$ac_cv_c_compiler_gnu
32535
32536fi
Reid Spencera773bd52006-08-04 18:18:08 +000032537{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32538echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032539 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32540 then
John Criswell9f011862004-09-24 18:28:00 +000032541
32542cat >>confdefs.h <<\_ACEOF
32543#define HAVE_GNU_EXT_HASH_MAP 1
32544_ACEOF
32545
32546 else
32547
32548cat >>confdefs.h <<\_ACEOF
32549#define HAVE_GNU_EXT_HASH_MAP 0
32550_ACEOF
32551
Brian Gaeke90583492003-11-10 03:06:28 +000032552 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032553
Reid Spencera773bd52006-08-04 18:18:08 +000032554 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32555echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032556if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32558else
John Criswell7a73b802003-06-30 21:59:07 +000032559
Reid Spencera773bd52006-08-04 18:18:08 +000032560 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032561ac_cpp='$CXXCPP $CPPFLAGS'
32562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32565
32566 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032567/* confdefs.h. */
32568_ACEOF
32569cat confdefs.h >>conftest.$ac_ext
32570cat >>conftest.$ac_ext <<_ACEOF
32571/* end confdefs.h. */
32572#include <hash_map>
32573int
32574main ()
32575{
32576hash_map<int,int> t;
32577 ;
32578 return 0;
32579}
32580_ACEOF
32581rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032582if { (ac_try="$ac_compile"
32583case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32586esac
32587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032589 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032590 grep -v '^ *+' conftest.er1 >conftest.err
32591 rm -f conftest.er1
32592 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032594 (exit $ac_status); } &&
32595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32596 { (case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599esac
32600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_try") 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; } &&
32605 { ac_try='test -s conftest.$ac_objext'
32606 { (case "(($ac_try" in
32607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32608 *) ac_try_echo=$ac_try;;
32609esac
32610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32611 (eval "$ac_try") 2>&5
32612 ac_status=$?
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032615 ac_cv_cxx_have_global_hash_map=yes
32616else
32617 echo "$as_me: failed program was:" >&5
32618sed 's/^/| /' conftest.$ac_ext >&5
32619
Reid Spencera773bd52006-08-04 18:18:08 +000032620 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032621fi
Reid Spencera773bd52006-08-04 18:18:08 +000032622
32623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032624 ac_ext=c
32625ac_cpp='$CPP $CPPFLAGS'
32626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32628ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629
32630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32632echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032633 if test "$ac_cv_cxx_have_global_hash_map" = yes
32634 then
John Criswell9f011862004-09-24 18:28:00 +000032635
32636cat >>confdefs.h <<\_ACEOF
32637#define HAVE_GLOBAL_HASH_MAP 1
32638_ACEOF
32639
32640 else
32641
32642cat >>confdefs.h <<\_ACEOF
32643#define HAVE_GLOBAL_HASH_MAP 0
32644_ACEOF
32645
Brian Gaeke90583492003-11-10 03:06:28 +000032646 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032647
Reid Spencera773bd52006-08-04 18:18:08 +000032648{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32649echo $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 +000032650if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032651 echo $ECHO_N "(cached) $ECHO_C" >&6
32652else
32653
Reid Spencera773bd52006-08-04 18:18:08 +000032654 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032655ac_cpp='$CXXCPP $CPPFLAGS'
32656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32659
32660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032661/* confdefs.h. */
32662_ACEOF
32663cat confdefs.h >>conftest.$ac_ext
32664cat >>conftest.$ac_ext <<_ACEOF
32665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032666#include <ext/hash_set>
32667#ifdef HAVE_NAMESPACES
32668using namespace std;
32669#endif
John Criswell7a73b802003-06-30 21:59:07 +000032670int
32671main ()
32672{
Brian Gaeke90583492003-11-10 03:06:28 +000032673hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032674 ;
32675 return 0;
32676}
32677_ACEOF
32678rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032679if { (ac_try="$ac_compile"
32680case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest.$ac_objext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032712 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032713else
32714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032715sed 's/^/| /' conftest.$ac_ext >&5
32716
Reid Spencera773bd52006-08-04 18:18:08 +000032717 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032718fi
Reid Spencera773bd52006-08-04 18:18:08 +000032719
32720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032721 ac_ext=c
32722ac_cpp='$CPP $CPPFLAGS'
32723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32729echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032730 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32731 then
John Criswell9f011862004-09-24 18:28:00 +000032732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_STD_EXT_HASH_SET 1
32735_ACEOF
32736
32737 else
32738
32739cat >>confdefs.h <<\_ACEOF
32740#define HAVE_STD_EXT_HASH_SET 0
32741_ACEOF
32742
Brian Gaeke90583492003-11-10 03:06:28 +000032743 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032744
Reid Spencera773bd52006-08-04 18:18:08 +000032745 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32746echo $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 +000032747if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32749else
32750
Reid Spencera773bd52006-08-04 18:18:08 +000032751 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032752ac_cpp='$CXXCPP $CPPFLAGS'
32753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
John Criswell7a73b802003-06-30 21:59:07 +000032757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032763#include <ext/hash_set>
32764#ifdef HAVE_NAMESPACES
32765using namespace __gnu_cxx;
32766#endif
John Criswell7a73b802003-06-30 21:59:07 +000032767int
32768main ()
32769{
Brian Gaeke90583492003-11-10 03:06:28 +000032770hash_set<int> t;
32771 ;
32772 return 0;
32773}
32774_ACEOF
32775rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032809 ac_cv_cxx_have_gnu_ext_hash_set=yes
32810else
32811 echo "$as_me: failed program was:" >&5
32812sed 's/^/| /' conftest.$ac_ext >&5
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032818 ac_ext=c
32819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824fi
Reid Spencera773bd52006-08-04 18:18:08 +000032825{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32826echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032827 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32828 then
John Criswell9f011862004-09-24 18:28:00 +000032829
32830cat >>confdefs.h <<\_ACEOF
32831#define HAVE_GNU_EXT_HASH_SET 1
32832_ACEOF
32833
32834 else
32835
32836cat >>confdefs.h <<\_ACEOF
32837#define HAVE_GNU_EXT_HASH_SET 0
32838_ACEOF
32839
Brian Gaeke90583492003-11-10 03:06:28 +000032840 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032841
Reid Spencera773bd52006-08-04 18:18:08 +000032842 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32843echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032844if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32845 echo $ECHO_N "(cached) $ECHO_C" >&6
32846else
32847
Reid Spencera773bd52006-08-04 18:18:08 +000032848 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032849ac_cpp='$CXXCPP $CPPFLAGS'
32850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32853
32854 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032855/* confdefs.h. */
32856_ACEOF
32857cat confdefs.h >>conftest.$ac_ext
32858cat >>conftest.$ac_ext <<_ACEOF
32859/* end confdefs.h. */
32860#include <hash_set>
32861int
32862main ()
32863{
John Criswell7a73b802003-06-30 21:59:07 +000032864hash_set<int> t; return 0;
32865 ;
32866 return 0;
32867}
32868_ACEOF
32869rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032870if { (ac_try="$ac_compile"
32871case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32874esac
32875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032877 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032878 grep -v '^ *+' conftest.er1 >conftest.err
32879 rm -f conftest.er1
32880 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032882 (exit $ac_status); } &&
32883 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32884 { (case "(($ac_try" in
32885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32886 *) ac_try_echo=$ac_try;;
32887esac
32888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32889 (eval "$ac_try") 2>&5
32890 ac_status=$?
32891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892 (exit $ac_status); }; } &&
32893 { ac_try='test -s conftest.$ac_objext'
32894 { (case "(($ac_try" in
32895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32896 *) ac_try_echo=$ac_try;;
32897esac
32898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32899 (eval "$ac_try") 2>&5
32900 ac_status=$?
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032903 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032904else
32905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032906sed 's/^/| /' conftest.$ac_ext >&5
32907
Reid Spencera773bd52006-08-04 18:18:08 +000032908 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032909fi
Reid Spencera773bd52006-08-04 18:18:08 +000032910
32911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032912 ac_ext=c
32913ac_cpp='$CPP $CPPFLAGS'
32914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916ac_compiler_gnu=$ac_cv_c_compiler_gnu
32917
John Criswell7a73b802003-06-30 21:59:07 +000032918fi
Reid Spencera773bd52006-08-04 18:18:08 +000032919{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32920echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032921 if test "$ac_cv_cxx_have_global_hash_set" = yes
32922 then
John Criswell9f011862004-09-24 18:28:00 +000032923
32924cat >>confdefs.h <<\_ACEOF
32925#define HAVE_GLOBAL_HASH_SET 1
32926_ACEOF
32927
32928 else
32929
32930cat >>confdefs.h <<\_ACEOF
32931#define HAVE_GLOBAL_HASH_SET 0
32932_ACEOF
32933
Brian Gaeke90583492003-11-10 03:06:28 +000032934 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032935
Reid Spencera773bd52006-08-04 18:18:08 +000032936{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32937echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032938if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32939 echo $ECHO_N "(cached) $ECHO_C" >&6
32940else
32941
Reid Spencera773bd52006-08-04 18:18:08 +000032942 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032943ac_cpp='$CXXCPP $CPPFLAGS'
32944ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32945ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32946ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32947
32948 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032949/* confdefs.h. */
32950_ACEOF
32951cat confdefs.h >>conftest.$ac_ext
32952cat >>conftest.$ac_ext <<_ACEOF
32953/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032954#include <iterator>
32955#ifdef HAVE_NAMESPACES
32956using namespace std;
32957#endif
John Criswell7a73b802003-06-30 21:59:07 +000032958int
32959main ()
32960{
32961iterator<int,int,int> t; return 0;
32962 ;
32963 return 0;
32964}
32965_ACEOF
32966rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032967if { (ac_try="$ac_compile"
32968case "(($ac_try" in
32969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32970 *) ac_try_echo=$ac_try;;
32971esac
32972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32973 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032975 grep -v '^ *+' conftest.er1 >conftest.err
32976 rm -f conftest.er1
32977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032979 (exit $ac_status); } &&
32980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32981 { (case "(($ac_try" in
32982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32983 *) ac_try_echo=$ac_try;;
32984esac
32985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32986 (eval "$ac_try") 2>&5
32987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest.$ac_objext'
32991 { (case "(($ac_try" in
32992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32993 *) ac_try_echo=$ac_try;;
32994esac
32995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32996 (eval "$ac_try") 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033000 ac_cv_cxx_have_std_iterator=yes
33001else
33002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033003sed 's/^/| /' conftest.$ac_ext >&5
33004
Reid Spencera773bd52006-08-04 18:18:08 +000033005 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033006fi
Reid Spencera773bd52006-08-04 18:18:08 +000033007
33008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033009 ac_ext=c
33010ac_cpp='$CPP $CPPFLAGS'
33011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33013ac_compiler_gnu=$ac_cv_c_compiler_gnu
33014
33015
33016fi
Reid Spencera773bd52006-08-04 18:18:08 +000033017{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33018echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033019if test "$ac_cv_cxx_have_std_iterator" = yes
33020then
John Criswell40468462004-09-24 21:19:06 +000033021
33022cat >>confdefs.h <<\_ACEOF
33023#define HAVE_STD_ITERATOR 1
33024_ACEOF
33025
33026else
33027
33028cat >>confdefs.h <<\_ACEOF
33029#define HAVE_STD_ITERATOR 0
33030_ACEOF
33031
John Criswell7a73b802003-06-30 21:59:07 +000033032fi
33033
Reid Spencera773bd52006-08-04 18:18:08 +000033034{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33035echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033036if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33038else
33039
Reid Spencera773bd52006-08-04 18:18:08 +000033040 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033041ac_cpp='$CXXCPP $CPPFLAGS'
33042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33045
33046 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033047/* confdefs.h. */
33048_ACEOF
33049cat confdefs.h >>conftest.$ac_ext
33050cat >>conftest.$ac_ext <<_ACEOF
33051/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033052#include <iterator>
33053#ifdef HAVE_NAMESPACES
33054using namespace std;
33055#endif
John Criswell7a73b802003-06-30 21:59:07 +000033056int
33057main ()
33058{
John Criswellc78022e2003-07-29 19:11:58 +000033059bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033060 ;
33061 return 0;
33062}
33063_ACEOF
33064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033065if { (ac_try="$ac_compile"
33066case "(($ac_try" in
33067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33068 *) ac_try_echo=$ac_try;;
33069esac
33070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33071 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033073 grep -v '^ *+' conftest.er1 >conftest.err
33074 rm -f conftest.er1
33075 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033077 (exit $ac_status); } &&
33078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33079 { (case "(($ac_try" in
33080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081 *) ac_try_echo=$ac_try;;
33082esac
33083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084 (eval "$ac_try") 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; } &&
33088 { ac_try='test -s conftest.$ac_objext'
33089 { (case "(($ac_try" in
33090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33091 *) ac_try_echo=$ac_try;;
33092esac
33093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33094 (eval "$ac_try") 2>&5
33095 ac_status=$?
33096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33097 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033098 ac_cv_cxx_have_bi_iterator=yes
33099else
33100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033101sed 's/^/| /' conftest.$ac_ext >&5
33102
Reid Spencera773bd52006-08-04 18:18:08 +000033103 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033104fi
Reid Spencera773bd52006-08-04 18:18:08 +000033105
33106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033107 ac_ext=c
33108ac_cpp='$CPP $CPPFLAGS'
33109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33111ac_compiler_gnu=$ac_cv_c_compiler_gnu
33112
33113
33114fi
Reid Spencera773bd52006-08-04 18:18:08 +000033115{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33116echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033117if test "$ac_cv_cxx_have_bi_iterator" = yes
33118then
John Criswell40468462004-09-24 21:19:06 +000033119
33120cat >>confdefs.h <<\_ACEOF
33121#define HAVE_BI_ITERATOR 1
33122_ACEOF
33123
33124else
33125
33126cat >>confdefs.h <<\_ACEOF
33127#define HAVE_BI_ITERATOR 0
33128_ACEOF
33129
John Criswell7a73b802003-06-30 21:59:07 +000033130fi
33131
Reid Spencera773bd52006-08-04 18:18:08 +000033132{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33133echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033134if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33135 echo $ECHO_N "(cached) $ECHO_C" >&6
33136else
33137
Reid Spencera773bd52006-08-04 18:18:08 +000033138 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033139ac_cpp='$CXXCPP $CPPFLAGS'
33140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33143
33144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033145/* confdefs.h. */
33146_ACEOF
33147cat confdefs.h >>conftest.$ac_ext
33148cat >>conftest.$ac_ext <<_ACEOF
33149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033150#include <iterator>
33151#ifdef HAVE_NAMESPACES
33152using namespace std;
33153#endif
John Criswell7a73b802003-06-30 21:59:07 +000033154int
33155main ()
33156{
John Criswellc78022e2003-07-29 19:11:58 +000033157forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033158 ;
33159 return 0;
33160}
33161_ACEOF
33162rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033163if { (ac_try="$ac_compile"
33164case "(($ac_try" in
33165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33166 *) ac_try_echo=$ac_try;;
33167esac
33168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33169 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033171 grep -v '^ *+' conftest.er1 >conftest.err
33172 rm -f conftest.er1
33173 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033175 (exit $ac_status); } &&
33176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33177 { (case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33180esac
33181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_try") 2>&5
33183 ac_status=$?
33184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33185 (exit $ac_status); }; } &&
33186 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033196 ac_cv_cxx_have_fwd_iterator=yes
33197else
33198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033199sed 's/^/| /' conftest.$ac_ext >&5
33200
Reid Spencera773bd52006-08-04 18:18:08 +000033201 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033202fi
Reid Spencera773bd52006-08-04 18:18:08 +000033203
33204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033205 ac_ext=c
33206ac_cpp='$CPP $CPPFLAGS'
33207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33209ac_compiler_gnu=$ac_cv_c_compiler_gnu
33210
33211
33212fi
Reid Spencera773bd52006-08-04 18:18:08 +000033213{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33214echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033215if test "$ac_cv_cxx_have_fwd_iterator" = yes
33216then
John Criswell40468462004-09-24 21:19:06 +000033217
33218cat >>confdefs.h <<\_ACEOF
33219#define HAVE_FWD_ITERATOR 1
33220_ACEOF
33221
33222else
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define HAVE_FWD_ITERATOR 0
33226_ACEOF
33227
John Criswell7a73b802003-06-30 21:59:07 +000033228fi
33229
33230
Reid Spencera773bd52006-08-04 18:18:08 +000033231{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33232echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033233if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
Reid Spencera773bd52006-08-04 18:18:08 +000033236 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033237ac_cpp='$CXXCPP $CPPFLAGS'
33238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33241
Reid Spencerabec8f92004-10-27 23:03:44 +000033242 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033243/* confdefs.h. */
33244_ACEOF
33245cat confdefs.h >>conftest.$ac_ext
33246cat >>conftest.$ac_ext <<_ACEOF
33247/* end confdefs.h. */
33248#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033249int
33250main ()
33251{
33252float f; isnan(f);
33253 ;
33254 return 0;
33255}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033256_ACEOF
33257rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033258if { (ac_try="$ac_compile"
33259case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033265 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033270 (exit $ac_status); } &&
33271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33272 { (case "(($ac_try" in
33273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33274 *) ac_try_echo=$ac_try;;
33275esac
33276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33277 (eval "$ac_try") 2>&5
33278 ac_status=$?
33279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280 (exit $ac_status); }; } &&
33281 { ac_try='test -s conftest.$ac_objext'
33282 { (case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33285esac
33286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_try") 2>&5
33288 ac_status=$?
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033291 ac_cv_func_isnan_in_math_h=yes
33292else
33293 echo "$as_me: failed program was:" >&5
33294sed 's/^/| /' conftest.$ac_ext >&5
33295
Reid Spencera773bd52006-08-04 18:18:08 +000033296 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033297fi
Reid Spencera773bd52006-08-04 18:18:08 +000033298
33299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033300 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033301ac_cpp='$CPP $CPPFLAGS'
33302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33304ac_compiler_gnu=$ac_cv_c_compiler_gnu
33305
33306fi
Reid Spencera773bd52006-08-04 18:18:08 +000033307{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33308echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033309
33310
33311if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033312
33313cat >>confdefs.h <<\_ACEOF
33314#define HAVE_ISNAN_IN_MATH_H 1
33315_ACEOF
33316
Reid Spencerabec8f92004-10-27 23:03:44 +000033317fi
33318
Reid Spencera773bd52006-08-04 18:18:08 +000033319{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33320echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033321if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33323else
Reid Spencera773bd52006-08-04 18:18:08 +000033324 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033325ac_cpp='$CXXCPP $CPPFLAGS'
33326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33329
Reid Spencerabec8f92004-10-27 23:03:44 +000033330 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033331/* confdefs.h. */
33332_ACEOF
33333cat confdefs.h >>conftest.$ac_ext
33334cat >>conftest.$ac_ext <<_ACEOF
33335/* end confdefs.h. */
33336#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033337int
33338main ()
33339{
33340float f; isnan(f);
33341 ;
33342 return 0;
33343}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033344_ACEOF
33345rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033346if { (ac_try="$ac_compile"
33347case "(($ac_try" in
33348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33349 *) ac_try_echo=$ac_try;;
33350esac
33351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33352 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033353 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033354 grep -v '^ *+' conftest.er1 >conftest.err
33355 rm -f conftest.er1
33356 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033358 (exit $ac_status); } &&
33359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33360 { (case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33363esac
33364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_try") 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; } &&
33369 { ac_try='test -s conftest.$ac_objext'
33370 { (case "(($ac_try" in
33371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372 *) ac_try_echo=$ac_try;;
33373esac
33374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375 (eval "$ac_try") 2>&5
33376 ac_status=$?
33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033379 ac_cv_func_isnan_in_cmath=yes
33380else
33381 echo "$as_me: failed program was:" >&5
33382sed 's/^/| /' conftest.$ac_ext >&5
33383
Reid Spencera773bd52006-08-04 18:18:08 +000033384 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033385fi
Reid Spencera773bd52006-08-04 18:18:08 +000033386
33387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033388 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033389ac_cpp='$CPP $CPPFLAGS'
33390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33392ac_compiler_gnu=$ac_cv_c_compiler_gnu
33393
33394fi
Reid Spencera773bd52006-08-04 18:18:08 +000033395{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33396echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033397
33398if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033399
33400cat >>confdefs.h <<\_ACEOF
33401#define HAVE_ISNAN_IN_CMATH 1
33402_ACEOF
33403
Reid Spencerabec8f92004-10-27 23:03:44 +000033404fi
33405
Reid Spencera773bd52006-08-04 18:18:08 +000033406{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33407echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033408if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33409 echo $ECHO_N "(cached) $ECHO_C" >&6
33410else
Reid Spencera773bd52006-08-04 18:18:08 +000033411 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033412ac_cpp='$CXXCPP $CPPFLAGS'
33413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33416
Reid Spencerabec8f92004-10-27 23:03:44 +000033417 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033418/* confdefs.h. */
33419_ACEOF
33420cat confdefs.h >>conftest.$ac_ext
33421cat >>conftest.$ac_ext <<_ACEOF
33422/* end confdefs.h. */
33423#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033424int
33425main ()
33426{
33427float f; std::isnan(f);
33428 ;
33429 return 0;
33430}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033431_ACEOF
33432rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033433if { (ac_try="$ac_compile"
33434case "(($ac_try" in
33435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33436 *) ac_try_echo=$ac_try;;
33437esac
33438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33439 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033441 grep -v '^ *+' conftest.er1 >conftest.err
33442 rm -f conftest.er1
33443 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033445 (exit $ac_status); } &&
33446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33447 { (case "(($ac_try" in
33448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33449 *) ac_try_echo=$ac_try;;
33450esac
33451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33452 (eval "$ac_try") 2>&5
33453 ac_status=$?
33454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33455 (exit $ac_status); }; } &&
33456 { ac_try='test -s conftest.$ac_objext'
33457 { (case "(($ac_try" in
33458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33459 *) ac_try_echo=$ac_try;;
33460esac
33461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33462 (eval "$ac_try") 2>&5
33463 ac_status=$?
33464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33465 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033466 ac_cv_func_std_isnan_in_cmath=yes
33467else
33468 echo "$as_me: failed program was:" >&5
33469sed 's/^/| /' conftest.$ac_ext >&5
33470
Reid Spencera773bd52006-08-04 18:18:08 +000033471 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033472fi
Reid Spencera773bd52006-08-04 18:18:08 +000033473
33474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033475 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033476ac_cpp='$CPP $CPPFLAGS'
33477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33479ac_compiler_gnu=$ac_cv_c_compiler_gnu
33480
33481fi
Reid Spencera773bd52006-08-04 18:18:08 +000033482{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33483echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033484
33485if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033486
33487cat >>confdefs.h <<\_ACEOF
33488#define HAVE_STD_ISNAN_IN_CMATH 1
33489_ACEOF
33490
Reid Spencerabec8f92004-10-27 23:03:44 +000033491fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033492
33493
Reid Spencera773bd52006-08-04 18:18:08 +000033494{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33495echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033496if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33498else
Reid Spencera773bd52006-08-04 18:18:08 +000033499 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033500ac_cpp='$CXXCPP $CPPFLAGS'
33501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33504
Reid Spencerabec8f92004-10-27 23:03:44 +000033505 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033506/* confdefs.h. */
33507_ACEOF
33508cat confdefs.h >>conftest.$ac_ext
33509cat >>conftest.$ac_ext <<_ACEOF
33510/* end confdefs.h. */
33511#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033512int
33513main ()
33514{
33515float f; isinf(f);
33516 ;
33517 return 0;
33518}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033519_ACEOF
33520rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033521if { (ac_try="$ac_compile"
33522case "(($ac_try" in
33523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33524 *) ac_try_echo=$ac_try;;
33525esac
33526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33527 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033529 grep -v '^ *+' conftest.er1 >conftest.err
33530 rm -f conftest.er1
33531 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033533 (exit $ac_status); } &&
33534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33535 { (case "(($ac_try" in
33536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537 *) ac_try_echo=$ac_try;;
33538esac
33539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540 (eval "$ac_try") 2>&5
33541 ac_status=$?
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); }; } &&
33544 { ac_try='test -s conftest.$ac_objext'
33545 { (case "(($ac_try" in
33546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547 *) ac_try_echo=$ac_try;;
33548esac
33549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550 (eval "$ac_try") 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033554 ac_cv_func_isinf_in_math_h=yes
33555else
33556 echo "$as_me: failed program was:" >&5
33557sed 's/^/| /' conftest.$ac_ext >&5
33558
Reid Spencera773bd52006-08-04 18:18:08 +000033559 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033560fi
Reid Spencera773bd52006-08-04 18:18:08 +000033561
33562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033563 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033564ac_cpp='$CPP $CPPFLAGS'
33565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33567ac_compiler_gnu=$ac_cv_c_compiler_gnu
33568
33569fi
Reid Spencera773bd52006-08-04 18:18:08 +000033570{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33571echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033572
33573if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033574
33575cat >>confdefs.h <<\_ACEOF
33576#define HAVE_ISINF_IN_MATH_H 1
33577_ACEOF
33578
Reid Spencerabec8f92004-10-27 23:03:44 +000033579fi
33580
Reid Spencera773bd52006-08-04 18:18:08 +000033581{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33582echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033583if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33584 echo $ECHO_N "(cached) $ECHO_C" >&6
33585else
Reid Spencera773bd52006-08-04 18:18:08 +000033586 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033587ac_cpp='$CXXCPP $CPPFLAGS'
33588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33591
Reid Spencerabec8f92004-10-27 23:03:44 +000033592 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033593/* confdefs.h. */
33594_ACEOF
33595cat confdefs.h >>conftest.$ac_ext
33596cat >>conftest.$ac_ext <<_ACEOF
33597/* end confdefs.h. */
33598#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033599int
33600main ()
33601{
33602float f; isinf(f);
33603 ;
33604 return 0;
33605}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033606_ACEOF
33607rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033608if { (ac_try="$ac_compile"
33609case "(($ac_try" in
33610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33611 *) ac_try_echo=$ac_try;;
33612esac
33613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33614 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033615 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033616 grep -v '^ *+' conftest.er1 >conftest.err
33617 rm -f conftest.er1
33618 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033620 (exit $ac_status); } &&
33621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33622 { (case "(($ac_try" in
33623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33624 *) ac_try_echo=$ac_try;;
33625esac
33626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33627 (eval "$ac_try") 2>&5
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); }; } &&
33631 { ac_try='test -s conftest.$ac_objext'
33632 { (case "(($ac_try" in
33633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33634 *) ac_try_echo=$ac_try;;
33635esac
33636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33637 (eval "$ac_try") 2>&5
33638 ac_status=$?
33639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033641 ac_cv_func_isinf_in_cmath=yes
33642else
33643 echo "$as_me: failed program was:" >&5
33644sed 's/^/| /' conftest.$ac_ext >&5
33645
Reid Spencera773bd52006-08-04 18:18:08 +000033646 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033647fi
Reid Spencera773bd52006-08-04 18:18:08 +000033648
33649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033650 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033651ac_cpp='$CPP $CPPFLAGS'
33652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33654ac_compiler_gnu=$ac_cv_c_compiler_gnu
33655
33656fi
Reid Spencera773bd52006-08-04 18:18:08 +000033657{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33658echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033659
33660if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033661
33662cat >>confdefs.h <<\_ACEOF
33663#define HAVE_ISINF_IN_CMATH 1
33664_ACEOF
33665
Reid Spencerabec8f92004-10-27 23:03:44 +000033666fi
33667
Reid Spencera773bd52006-08-04 18:18:08 +000033668{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33669echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033670if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33671 echo $ECHO_N "(cached) $ECHO_C" >&6
33672else
Reid Spencera773bd52006-08-04 18:18:08 +000033673 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033674ac_cpp='$CXXCPP $CPPFLAGS'
33675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33678
Reid Spencerabec8f92004-10-27 23:03:44 +000033679 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033680/* confdefs.h. */
33681_ACEOF
33682cat confdefs.h >>conftest.$ac_ext
33683cat >>conftest.$ac_ext <<_ACEOF
33684/* end confdefs.h. */
33685#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033686int
33687main ()
33688{
33689float f; std::isinf(f)}
33690 ;
33691 return 0;
33692}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033693_ACEOF
33694rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033695if { (ac_try="$ac_compile"
33696case "(($ac_try" in
33697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33698 *) ac_try_echo=$ac_try;;
33699esac
33700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33701 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033703 grep -v '^ *+' conftest.er1 >conftest.err
33704 rm -f conftest.er1
33705 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033707 (exit $ac_status); } &&
33708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33709 { (case "(($ac_try" in
33710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33712esac
33713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_try") 2>&5
33715 ac_status=$?
33716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33717 (exit $ac_status); }; } &&
33718 { ac_try='test -s conftest.$ac_objext'
33719 { (case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33722esac
33723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_try") 2>&5
33725 ac_status=$?
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033728 ac_cv_func_std_isinf_in_cmath=yes
33729else
33730 echo "$as_me: failed program was:" >&5
33731sed 's/^/| /' conftest.$ac_ext >&5
33732
Reid Spencera773bd52006-08-04 18:18:08 +000033733 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033734fi
Reid Spencera773bd52006-08-04 18:18:08 +000033735
33736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033737 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033738ac_cpp='$CPP $CPPFLAGS'
33739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33741ac_compiler_gnu=$ac_cv_c_compiler_gnu
33742
33743fi
Reid Spencera773bd52006-08-04 18:18:08 +000033744{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33745echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033746
33747if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033748
33749cat >>confdefs.h <<\_ACEOF
33750#define HAVE_STD_ISINF_IN_CMATH 1
33751_ACEOF
33752
Reid Spencerabec8f92004-10-27 23:03:44 +000033753fi
33754
Reid Spencera773bd52006-08-04 18:18:08 +000033755{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33756echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033757if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33758 echo $ECHO_N "(cached) $ECHO_C" >&6
33759else
Reid Spencera773bd52006-08-04 18:18:08 +000033760 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033761ac_cpp='$CXXCPP $CPPFLAGS'
33762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33765
Reid Spencerabec8f92004-10-27 23:03:44 +000033766 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033767/* confdefs.h. */
33768_ACEOF
33769cat confdefs.h >>conftest.$ac_ext
33770cat >>conftest.$ac_ext <<_ACEOF
33771/* end confdefs.h. */
33772#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033773int
33774main ()
33775{
33776float f; finite(f);
33777 ;
33778 return 0;
33779}
Brian Gaeked59a6472004-07-21 03:33:58 +000033780_ACEOF
33781rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033782if { (ac_try="$ac_compile"
33783case "(($ac_try" in
33784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785 *) ac_try_echo=$ac_try;;
33786esac
33787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033790 grep -v '^ *+' conftest.er1 >conftest.err
33791 rm -f conftest.er1
33792 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033794 (exit $ac_status); } &&
33795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33796 { (case "(($ac_try" in
33797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33798 *) ac_try_echo=$ac_try;;
33799esac
33800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33801 (eval "$ac_try") 2>&5
33802 ac_status=$?
33803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804 (exit $ac_status); }; } &&
33805 { ac_try='test -s conftest.$ac_objext'
33806 { (case "(($ac_try" in
33807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808 *) ac_try_echo=$ac_try;;
33809esac
33810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811 (eval "$ac_try") 2>&5
33812 ac_status=$?
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033815 ac_cv_func_finite_in_ieeefp_h=yes
33816else
33817 echo "$as_me: failed program was:" >&5
33818sed 's/^/| /' conftest.$ac_ext >&5
33819
Reid Spencera773bd52006-08-04 18:18:08 +000033820 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033821fi
Reid Spencera773bd52006-08-04 18:18:08 +000033822
33823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033824 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033825ac_cpp='$CPP $CPPFLAGS'
33826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33828ac_compiler_gnu=$ac_cv_c_compiler_gnu
33829
33830fi
Reid Spencera773bd52006-08-04 18:18:08 +000033831{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33832echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033833
Brian Gaeke6802b552004-10-28 05:06:45 +000033834if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033835
33836cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033837#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033838_ACEOF
33839
Reid Spencerabec8f92004-10-27 23:03:44 +000033840fi
33841
33842
33843
Reid Spencer30fe5262007-01-20 07:48:49 +000033844if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033845
33846
33847for ac_header in stdlib.h unistd.h
33848do
33849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033854 echo $ECHO_N "(cached) $ECHO_C" >&6
33855fi
Reid Spencera773bd52006-08-04 18:18:08 +000033856ac_res=`eval echo '${'$as_ac_Header'}'`
33857 { echo "$as_me:$LINENO: result: $ac_res" >&5
33858echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033859else
33860 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033861{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033863cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033864/* confdefs.h. */
33865_ACEOF
33866cat confdefs.h >>conftest.$ac_ext
33867cat >>conftest.$ac_ext <<_ACEOF
33868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033869$ac_includes_default
33870#include <$ac_header>
33871_ACEOF
33872rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033873if { (ac_try="$ac_compile"
33874case "(($ac_try" in
33875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876 *) ac_try_echo=$ac_try;;
33877esac
33878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033881 grep -v '^ *+' conftest.er1 >conftest.err
33882 rm -f conftest.er1
33883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033885 (exit $ac_status); } &&
33886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33887 { (case "(($ac_try" in
33888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33889 *) ac_try_echo=$ac_try;;
33890esac
33891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33892 (eval "$ac_try") 2>&5
33893 ac_status=$?
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); }; } &&
33896 { ac_try='test -s conftest.$ac_objext'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33903 ac_status=$?
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033906 ac_header_compiler=yes
33907else
33908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033909sed 's/^/| /' conftest.$ac_ext >&5
33910
Reid Spencera773bd52006-08-04 18:18:08 +000033911 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033912fi
Reid Spencera773bd52006-08-04 18:18:08 +000033913
33914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33915{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33916echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033917
33918# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033919{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33920echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033921cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033922/* confdefs.h. */
33923_ACEOF
33924cat confdefs.h >>conftest.$ac_ext
33925cat >>conftest.$ac_ext <<_ACEOF
33926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033927#include <$ac_header>
33928_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033929if { (ac_try="$ac_cpp conftest.$ac_ext"
33930case "(($ac_try" in
33931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33932 *) ac_try_echo=$ac_try;;
33933esac
33934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033936 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033937 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033938 rm -f conftest.er1
33939 cat conftest.err >&5
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033941 (exit $ac_status); } >/dev/null; then
33942 if test -s conftest.err; then
33943 ac_cpp_err=$ac_c_preproc_warn_flag
33944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33945 else
33946 ac_cpp_err=
33947 fi
33948else
33949 ac_cpp_err=yes
33950fi
33951if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033952 ac_header_preproc=yes
33953else
33954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033955sed 's/^/| /' conftest.$ac_ext >&5
33956
John Criswell7a73b802003-06-30 21:59:07 +000033957 ac_header_preproc=no
33958fi
Reid Spencera773bd52006-08-04 18:18:08 +000033959
John Criswell7a73b802003-06-30 21:59:07 +000033960rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033961{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33962echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033963
33964# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33966 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33971 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033972 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033973 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33977echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33981echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033986 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033987## ----------------------------------- ##
33988## Report this to llvmbugs@cs.uiuc.edu ##
33989## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033990_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033991 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033992 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033993esac
Reid Spencera773bd52006-08-04 18:18:08 +000033994{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33996if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033997 echo $ECHO_N "(cached) $ECHO_C" >&6
33998else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033999 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034000fi
Reid Spencera773bd52006-08-04 18:18:08 +000034001ac_res=`eval echo '${'$as_ac_Header'}'`
34002 { echo "$as_me:$LINENO: result: $ac_res" >&5
34003echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034004
34005fi
34006if test `eval echo '${'$as_ac_Header'}'` = yes; then
34007 cat >>confdefs.h <<_ACEOF
34008#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34009_ACEOF
34010
34011fi
34012
34013done
34014
34015
34016for ac_func in getpagesize
34017do
34018as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034019{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34020echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34021if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034022 echo $ECHO_N "(cached) $ECHO_C" >&6
34023else
34024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034025/* confdefs.h. */
34026_ACEOF
34027cat confdefs.h >>conftest.$ac_ext
34028cat >>conftest.$ac_ext <<_ACEOF
34029/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034030/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34032#define $ac_func innocuous_$ac_func
34033
John Criswell7a73b802003-06-30 21:59:07 +000034034/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034035 which can conflict with char $ac_func (); below.
34036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34037 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034038
John Criswell0c38eaf2003-09-10 15:17:25 +000034039#ifdef __STDC__
34040# include <limits.h>
34041#else
34042# include <assert.h>
34043#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034044
34045#undef $ac_func
34046
Reid Spencera773bd52006-08-04 18:18:08 +000034047/* Override any GCC internal prototype to avoid an error.
34048 Use char because int might match the return type of a GCC
34049 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034050#ifdef __cplusplus
34051extern "C"
34052#endif
John Criswell7a73b802003-06-30 21:59:07 +000034053char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034054/* The GNU C library defines this for functions which it implements
34055 to always fail with ENOSYS. Some functions are actually named
34056 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034057#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034058choke me
John Criswell7a73b802003-06-30 21:59:07 +000034059#endif
34060
John Criswell0c38eaf2003-09-10 15:17:25 +000034061int
34062main ()
34063{
Reid Spencera773bd52006-08-04 18:18:08 +000034064return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034065 ;
34066 return 0;
34067}
34068_ACEOF
34069rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034070if { (ac_try="$ac_link"
34071case "(($ac_try" in
34072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073 *) ac_try_echo=$ac_try;;
34074esac
34075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034078 grep -v '^ *+' conftest.er1 >conftest.err
34079 rm -f conftest.er1
34080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034082 (exit $ac_status); } &&
34083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34084 { (case "(($ac_try" in
34085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34086 *) ac_try_echo=$ac_try;;
34087esac
34088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34089 (eval "$ac_try") 2>&5
34090 ac_status=$?
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); }; } &&
34093 { ac_try='test -s conftest$ac_exeext'
34094 { (case "(($ac_try" in
34095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34096 *) ac_try_echo=$ac_try;;
34097esac
34098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34099 (eval "$ac_try") 2>&5
34100 ac_status=$?
34101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34102 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034103 eval "$as_ac_var=yes"
34104else
34105 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034106sed 's/^/| /' conftest.$ac_ext >&5
34107
Reid Spencera773bd52006-08-04 18:18:08 +000034108 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034109fi
Reid Spencera773bd52006-08-04 18:18:08 +000034110
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034111rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034112 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034113fi
Reid Spencera773bd52006-08-04 18:18:08 +000034114ac_res=`eval echo '${'$as_ac_var'}'`
34115 { echo "$as_me:$LINENO: result: $ac_res" >&5
34116echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034117if test `eval echo '${'$as_ac_var'}'` = yes; then
34118 cat >>confdefs.h <<_ACEOF
34119#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34120_ACEOF
34121
34122fi
34123done
34124
Reid Spencera773bd52006-08-04 18:18:08 +000034125{ echo "$as_me:$LINENO: checking for working mmap" >&5
34126echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034127if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34128 echo $ECHO_N "(cached) $ECHO_C" >&6
34129else
34130 if test "$cross_compiling" = yes; then
34131 ac_cv_func_mmap_fixed_mapped=no
34132else
34133 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034134/* confdefs.h. */
34135_ACEOF
34136cat confdefs.h >>conftest.$ac_ext
34137cat >>conftest.$ac_ext <<_ACEOF
34138/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034139$ac_includes_default
34140/* malloc might have been renamed as rpl_malloc. */
34141#undef malloc
34142
34143/* Thanks to Mike Haertel and Jim Avera for this test.
34144 Here is a matrix of mmap possibilities:
34145 mmap private not fixed
34146 mmap private fixed at somewhere currently unmapped
34147 mmap private fixed at somewhere already mapped
34148 mmap shared not fixed
34149 mmap shared fixed at somewhere currently unmapped
34150 mmap shared fixed at somewhere already mapped
34151 For private mappings, we should verify that changes cannot be read()
34152 back from the file, nor mmap's back from the file at a different
34153 address. (There have been systems where private was not correctly
34154 implemented like the infamous i386 svr4.0, and systems where the
34155 VM page cache was not coherent with the file system buffer cache
34156 like early versions of FreeBSD and possibly contemporary NetBSD.)
34157 For shared mappings, we should conversely verify that changes get
34158 propagated back to all the places they're supposed to be.
34159
34160 Grep wants private fixed already mapped.
34161 The main things grep needs to know about mmap are:
34162 * does it exist and is it safe to write into the mmap'd area
34163 * how to use it (BSD variants) */
34164
34165#include <fcntl.h>
34166#include <sys/mman.h>
34167
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034168#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034169char *malloc ();
34170#endif
34171
34172/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034173#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034174/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034175# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034176# define HAVE_SYS_PARAM_H 1
34177# endif
34178
34179# ifdef _SC_PAGESIZE
34180# define getpagesize() sysconf(_SC_PAGESIZE)
34181# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034182# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034183# include <sys/param.h>
34184# ifdef EXEC_PAGESIZE
34185# define getpagesize() EXEC_PAGESIZE
34186# else /* no EXEC_PAGESIZE */
34187# ifdef NBPG
34188# define getpagesize() NBPG * CLSIZE
34189# ifndef CLSIZE
34190# define CLSIZE 1
34191# endif /* no CLSIZE */
34192# else /* no NBPG */
34193# ifdef NBPC
34194# define getpagesize() NBPC
34195# else /* no NBPC */
34196# ifdef PAGESIZE
34197# define getpagesize() PAGESIZE
34198# endif /* PAGESIZE */
34199# endif /* no NBPC */
34200# endif /* no NBPG */
34201# endif /* no EXEC_PAGESIZE */
34202# else /* no HAVE_SYS_PARAM_H */
34203# define getpagesize() 8192 /* punt totally */
34204# endif /* no HAVE_SYS_PARAM_H */
34205# endif /* no _SC_PAGESIZE */
34206
34207#endif /* no HAVE_GETPAGESIZE */
34208
34209int
34210main ()
34211{
34212 char *data, *data2, *data3;
34213 int i, pagesize;
34214 int fd;
34215
34216 pagesize = getpagesize ();
34217
34218 /* First, make a file with some known garbage in it. */
34219 data = (char *) malloc (pagesize);
34220 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034221 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034222 for (i = 0; i < pagesize; ++i)
34223 *(data + i) = rand ();
34224 umask (0);
34225 fd = creat ("conftest.mmap", 0600);
34226 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034227 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034228 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034229 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034230 close (fd);
34231
34232 /* Next, try to mmap the file at a fixed address which already has
34233 something else allocated at it. If we can, also make sure that
34234 we see the same garbage. */
34235 fd = open ("conftest.mmap", O_RDWR);
34236 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034237 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034238 data2 = (char *) malloc (2 * pagesize);
34239 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034240 return 1;
34241 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034242 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034243 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034244 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034245 for (i = 0; i < pagesize; ++i)
34246 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034247 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034248
34249 /* Finally, make sure that changes to the mapped area do not
34250 percolate back to the file as seen by read(). (This is a bug on
34251 some variants of i386 svr4.0.) */
34252 for (i = 0; i < pagesize; ++i)
34253 *(data2 + i) = *(data2 + i) + 1;
34254 data3 = (char *) malloc (pagesize);
34255 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034256 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034257 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034258 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034259 for (i = 0; i < pagesize; ++i)
34260 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034261 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034262 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034263 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034264}
34265_ACEOF
34266rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034267if { (ac_try="$ac_link"
34268case "(($ac_try" in
34269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34270 *) ac_try_echo=$ac_try;;
34271esac
34272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34273 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034274 ac_status=$?
34275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034277 { (case "(($ac_try" in
34278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34279 *) ac_try_echo=$ac_try;;
34280esac
34281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34282 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034283 ac_status=$?
34284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34285 (exit $ac_status); }; }; then
34286 ac_cv_func_mmap_fixed_mapped=yes
34287else
34288 echo "$as_me: program exited with status $ac_status" >&5
34289echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034290sed 's/^/| /' conftest.$ac_ext >&5
34291
John Criswell7a73b802003-06-30 21:59:07 +000034292( exit $ac_status )
34293ac_cv_func_mmap_fixed_mapped=no
34294fi
Reid Spencera773bd52006-08-04 18:18:08 +000034295rm -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 +000034296fi
Reid Spencera773bd52006-08-04 18:18:08 +000034297
34298
John Criswell7a73b802003-06-30 21:59:07 +000034299fi
Reid Spencera773bd52006-08-04 18:18:08 +000034300{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34301echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034302if test $ac_cv_func_mmap_fixed_mapped = yes; then
34303
34304cat >>confdefs.h <<\_ACEOF
34305#define HAVE_MMAP 1
34306_ACEOF
34307
34308fi
34309rm -f conftest.mmap
34310
Reid Spencer30fe5262007-01-20 07:48:49 +000034311 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034312echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034313if test "${ac_cv_func_mmap_file+set}" = set; then
34314 echo $ECHO_N "(cached) $ECHO_C" >&6
34315else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034316 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034317ac_cpp='$CPP $CPPFLAGS'
34318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34320ac_compiler_gnu=$ac_cv_c_compiler_gnu
34321
34322 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034323 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034324else
34325 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034326
Reid Spencer777ce172004-09-20 04:09:56 +000034327 /* confdefs.h. */
34328_ACEOF
34329cat confdefs.h >>conftest.$ac_ext
34330cat >>conftest.$ac_ext <<_ACEOF
34331/* end confdefs.h. */
34332
John Criswell7a73b802003-06-30 21:59:07 +000034333#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034334#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034335#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034336
34337int
34338main ()
34339{
John Criswell7a73b802003-06-30 21:59:07 +000034340
34341 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034342 fd = creat ("foo",0777);
34343 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34344 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034345 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034346 ;
34347 return 0;
34348}
John Criswell7a73b802003-06-30 21:59:07 +000034349_ACEOF
34350rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034351if { (ac_try="$ac_link"
34352case "(($ac_try" in
34353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34354 *) ac_try_echo=$ac_try;;
34355esac
34356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34357 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034358 ac_status=$?
34359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034361 { (case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34364esac
34365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034367 ac_status=$?
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); }; }; then
34370 ac_cv_func_mmap_file=yes
34371else
34372 echo "$as_me: program exited with status $ac_status" >&5
34373echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034374sed 's/^/| /' conftest.$ac_ext >&5
34375
John Criswell7a73b802003-06-30 21:59:07 +000034376( exit $ac_status )
34377ac_cv_func_mmap_file=no
34378fi
Reid Spencera773bd52006-08-04 18:18:08 +000034379rm -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 +000034380fi
Reid Spencera773bd52006-08-04 18:18:08 +000034381
34382
John Criswell7a73b802003-06-30 21:59:07 +000034383 ac_ext=c
34384ac_cpp='$CPP $CPPFLAGS'
34385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34387ac_compiler_gnu=$ac_cv_c_compiler_gnu
34388
34389
34390fi
Reid Spencera773bd52006-08-04 18:18:08 +000034391{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34392echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034393if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034394
34395cat >>confdefs.h <<\_ACEOF
34396#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034397_ACEOF
34398
34399 MMAP_FILE=yes
34400
34401fi
34402
Reid Spencer30fe5262007-01-20 07:48:49 +000034403 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034404echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034405if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
Reid Spencer582a23c2004-12-29 07:07:57 +000034408 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034409 ac_cv_need_dev_zero_for_mmap=yes
34410 else
34411 ac_cv_need_dev_zero_for_mmap=no
34412 fi
34413
34414fi
Reid Spencera773bd52006-08-04 18:18:08 +000034415{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34416echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034417if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34418
34419cat >>confdefs.h <<\_ACEOF
34420#define NEED_DEV_ZERO_FOR_MMAP 1
34421_ACEOF
34422
34423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034424
Reid Spencer30fe5262007-01-20 07:48:49 +000034425 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34426 then
34427 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034428echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034429 fi
34430 if test "$ac_cv_func_mmap_file" = "no"
34431 then
34432 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034433echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034434 fi
John Criswellb13092b2003-07-22 21:00:24 +000034435fi
John Criswell7a73b802003-06-30 21:59:07 +000034436
34437
Reid Spencer9372f152007-07-30 20:13:24 +000034438
34439for ac_func in __dso_handle
34440do
34441as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34443echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34444if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34445 echo $ECHO_N "(cached) $ECHO_C" >&6
34446else
34447 cat >conftest.$ac_ext <<_ACEOF
34448/* confdefs.h. */
34449_ACEOF
34450cat confdefs.h >>conftest.$ac_ext
34451cat >>conftest.$ac_ext <<_ACEOF
34452/* end confdefs.h. */
34453/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34455#define $ac_func innocuous_$ac_func
34456
34457/* System header to define __stub macros and hopefully few prototypes,
34458 which can conflict with char $ac_func (); below.
34459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460 <limits.h> exists even on freestanding compilers. */
34461
34462#ifdef __STDC__
34463# include <limits.h>
34464#else
34465# include <assert.h>
34466#endif
34467
34468#undef $ac_func
34469
34470/* Override any GCC internal prototype to avoid an error.
34471 Use char because int might match the return type of a GCC
34472 builtin and then its argument prototype would still apply. */
34473#ifdef __cplusplus
34474extern "C"
34475#endif
34476char $ac_func ();
34477/* The GNU C library defines this for functions which it implements
34478 to always fail with ENOSYS. Some functions are actually named
34479 something starting with __ and the normal name is an alias. */
34480#if defined __stub_$ac_func || defined __stub___$ac_func
34481choke me
34482#endif
34483
34484int
34485main ()
34486{
34487return $ac_func ();
34488 ;
34489 return 0;
34490}
34491_ACEOF
34492rm -f conftest.$ac_objext conftest$ac_exeext
34493if { (ac_try="$ac_link"
34494case "(($ac_try" in
34495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496 *) ac_try_echo=$ac_try;;
34497esac
34498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499 (eval "$ac_link") 2>conftest.er1
34500 ac_status=$?
34501 grep -v '^ *+' conftest.er1 >conftest.err
34502 rm -f conftest.er1
34503 cat conftest.err >&5
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034505 (exit $ac_status); } &&
34506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34510esac
34511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; } &&
34516 { ac_try='test -s conftest$ac_exeext'
34517 { (case "(($ac_try" in
34518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34519 *) ac_try_echo=$ac_try;;
34520esac
34521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34522 (eval "$ac_try") 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034526 eval "$as_ac_var=yes"
34527else
34528 echo "$as_me: failed program was:" >&5
34529sed 's/^/| /' conftest.$ac_ext >&5
34530
34531 eval "$as_ac_var=no"
34532fi
34533
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034534rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034535 conftest$ac_exeext conftest.$ac_ext
34536fi
34537ac_res=`eval echo '${'$as_ac_var'}'`
34538 { echo "$as_me:$LINENO: result: $ac_res" >&5
34539echo "${ECHO_T}$ac_res" >&6; }
34540if test `eval echo '${'$as_ac_var'}'` = yes; then
34541 cat >>confdefs.h <<_ACEOF
34542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34543_ACEOF
34544
34545fi
34546done
34547
34548
Reid Spencera773bd52006-08-04 18:18:08 +000034549{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34550echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034551if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34552 echo $ECHO_N "(cached) $ECHO_C" >&6
34553else
34554 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034555if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034556 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034557 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34558 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034559 if test $? -eq 0 ; then
34560 llvm_cv_llvmgcc_sanity="yes"
34561 fi
34562 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034563fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034564fi
Reid Spencera773bd52006-08-04 18:18:08 +000034565{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34566echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034567
34568if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034569 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34570echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034571 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034572 LLVMCC1=$llvmcc1path
34573
Reid Spencer502935f2004-12-22 05:56:56 +000034574 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034575 LLVMCC1PLUS=$llvmcc1pluspath
34576
Reid Spencer502935f2004-12-22 05:56:56 +000034577 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34578 LLVMGCCDIR=$llvmgccdir
34579
Reid Spencer282d8c12006-12-21 22:55:41 +000034580 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34581 LLVMGCCLIBEXEC=$llvmgcclibexec
34582
Reid Spencerb5d75b82006-05-09 00:31:01 +000034583 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034584 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34585 LLVMGCC_VERSION=$llvmgccversion
34586
34587 LLVMGCC_MAJVERS=$llvmgccmajvers
34588
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034589 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034590 LLVMGCC_LANGS=$llvmgcclangs
34591
34592 { echo "$as_me:$LINENO: result: ok" >&5
34593echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034594fi
34595
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034596SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034597
34598
Reid Spencere9de0912004-08-20 09:03:57 +000034599# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034600# information into substitutions that will end up in Makefile.config.in
34601# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034602if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034603 prefix="/usr/local"
34604fi
Reid Spencere9de0912004-08-20 09:03:57 +000034605eval LLVM_PREFIX="${prefix}";
34606eval LLVM_BINDIR="${prefix}/bin";
34607eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034608eval LLVM_DATADIR="${prefix}/share/llvm";
34609eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34610eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034611eval LLVM_INCLUDEDIR="${prefix}/include";
34612eval LLVM_INFODIR="${prefix}/info";
34613eval LLVM_MANDIR="${prefix}/man";
34614LLVM_CONFIGTIME=`date`
34615
34616
34617
34618
34619
34620
34621
34622
34623
34624
34625
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034626# Place the various directores into the config.h file as #defines so that we
34627# can know about the installation paths within LLVM.
34628
Reid Spencere9de0912004-08-20 09:03:57 +000034629cat >>confdefs.h <<_ACEOF
34630#define LLVM_PREFIX "$LLVM_PREFIX"
34631_ACEOF
34632
34633
34634cat >>confdefs.h <<_ACEOF
34635#define LLVM_BINDIR "$LLVM_BINDIR"
34636_ACEOF
34637
34638
34639cat >>confdefs.h <<_ACEOF
34640#define LLVM_LIBDIR "$LLVM_LIBDIR"
34641_ACEOF
34642
34643
34644cat >>confdefs.h <<_ACEOF
34645#define LLVM_DATADIR "$LLVM_DATADIR"
34646_ACEOF
34647
34648
34649cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034650#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034651_ACEOF
34652
34653
34654cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034655#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034656_ACEOF
34657
34658
34659cat >>confdefs.h <<_ACEOF
34660#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34661_ACEOF
34662
34663
34664cat >>confdefs.h <<_ACEOF
34665#define LLVM_INFODIR "$LLVM_INFODIR"
34666_ACEOF
34667
34668
34669cat >>confdefs.h <<_ACEOF
34670#define LLVM_MANDIR "$LLVM_MANDIR"
34671_ACEOF
34672
34673
34674cat >>confdefs.h <<_ACEOF
34675#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34676_ACEOF
34677
34678
Eric Christopher790e11c2007-12-01 00:34:39 +000034679cat >>confdefs.h <<_ACEOF
34680#define LLVM_HOSTTRIPLE "$host"
34681_ACEOF
34682
34683
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034684# Determine which bindings to build.
34685if test "$BINDINGS_TO_BUILD" = auto ; then
34686 BINDINGS_TO_BUILD=""
34687 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34688 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34689 fi
34690fi
34691BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34692
34693
34694# This isn't really configurey, but it avoids having to repeat the list in
34695# other files.
34696ALL_BINDINGS=ocaml
34697
34698
Gordon Henriksenf0915682007-10-02 16:42:22 +000034699# Do any work necessary to ensure that bindings have what they need.
34700binding_prereqs_failed=0
34701for a_binding in $BINDINGS_TO_BUILD ; do
34702 case "$a_binding" in
34703 ocaml)
34704 if test "x$OCAMLC" = x ; then
34705 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34706echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34707 binding_prereqs_failed=1
34708 fi
34709 if test "x$OCAMLDEP" = x ; then
34710 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34711echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34712 binding_prereqs_failed=1
34713 fi
34714 if test "x$OCAMLOPT" = x ; then
34715 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34716echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34717 fi
34718 if test "x$with_ocaml_libdir" != xauto ; then
34719 OCAML_LIBDIR=$with_ocaml_libdir
34720
34721 else
34722 ocaml_stdlib="`"$OCAMLC" -where`"
34723 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34724 then
34725 # ocaml stdlib is beneath our prefix; use stdlib
34726 OCAML_LIBDIR=$ocaml_stdlib
34727
34728 else
34729 # ocaml stdlib is outside our prefix; use libdir/ocaml
34730 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34731
34732 fi
34733 fi
34734 ;;
34735 esac
34736done
34737if test "$binding_prereqs_failed" = 1 ; then
34738 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34739echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34740 { (exit 1); exit 1; }; }
34741fi
34742
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034743{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34744echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34745if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34746 echo $ECHO_N "(cached) $ECHO_C" >&6
34747else
34748 ac_ext=cpp
34749ac_cpp='$CXXCPP $CPPFLAGS'
34750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34753
34754 oldcxxflags="$CXXFLAGS"
34755 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34756 cat >conftest.$ac_ext <<_ACEOF
34757/* confdefs.h. */
34758_ACEOF
34759cat confdefs.h >>conftest.$ac_ext
34760cat >>conftest.$ac_ext <<_ACEOF
34761/* end confdefs.h. */
34762
34763int
34764main ()
34765{
34766
34767 ;
34768 return 0;
34769}
34770_ACEOF
34771rm -f conftest.$ac_objext
34772if { (ac_try="$ac_compile"
34773case "(($ac_try" in
34774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775 *) ac_try_echo=$ac_try;;
34776esac
34777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778 (eval "$ac_compile") 2>conftest.er1
34779 ac_status=$?
34780 grep -v '^ *+' conftest.er1 >conftest.err
34781 rm -f conftest.er1
34782 cat conftest.err >&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034784 (exit $ac_status); } &&
34785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34786 { (case "(($ac_try" in
34787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788 *) ac_try_echo=$ac_try;;
34789esac
34790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791 (eval "$ac_try") 2>&5
34792 ac_status=$?
34793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34794 (exit $ac_status); }; } &&
34795 { ac_try='test -s conftest.$ac_objext'
34796 { (case "(($ac_try" in
34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798 *) ac_try_echo=$ac_try;;
34799esac
34800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34801 (eval "$ac_try") 2>&5
34802 ac_status=$?
34803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34804 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034805 llvm_cv_cxx_visibility_inlines_hidden=yes
34806else
34807 echo "$as_me: failed program was:" >&5
34808sed 's/^/| /' conftest.$ac_ext >&5
34809
34810 llvm_cv_cxx_visibility_inlines_hidden=no
34811fi
34812
34813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 CXXFLAGS="$oldcxxflags"
34815 ac_ext=c
34816ac_cpp='$CPP $CPPFLAGS'
34817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34819ac_compiler_gnu=$ac_cv_c_compiler_gnu
34820
34821
34822fi
34823{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34824echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34825if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34826 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34827
34828else
34829 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34830
34831fi
34832
Gordon Henriksenf0915682007-10-02 16:42:22 +000034833
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034834
Reid Spencera773bd52006-08-04 18:18:08 +000034835ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034836
Reid Spencera773bd52006-08-04 18:18:08 +000034837ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034838
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034839ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034840
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034841ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034842
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034843ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034844
34845
Reid Spencera773bd52006-08-04 18:18:08 +000034846ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034847
34848
Reid Spencerea949cf2006-08-16 00:45:38 +000034849ac_config_files="$ac_config_files llvm.spec"
34850
34851
Reid Spencera773bd52006-08-04 18:18:08 +000034852ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034853
34854
Reid Spencera773bd52006-08-04 18:18:08 +000034855ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034856
34857
Reid Spencera773bd52006-08-04 18:18:08 +000034858ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034859
Reid Spencera773bd52006-08-04 18:18:08 +000034860ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034861
34862
Reid Spencera773bd52006-08-04 18:18:08 +000034863ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034864
34865
Reid Spencera773bd52006-08-04 18:18:08 +000034866ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034867
34868
Reid Spencera773bd52006-08-04 18:18:08 +000034869ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034870
34871
Reid Spencer8b2e1412006-11-17 03:32:33 +000034872ac_config_commands="$ac_config_commands runtime/Makefile"
34873
34874
Reid Spencera773bd52006-08-04 18:18:08 +000034875ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034876
34877
Reid Spencera773bd52006-08-04 18:18:08 +000034878ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034879
34880
Bill Wendlingf24eb392009-01-04 23:12:30 +000034881ac_config_commands="$ac_config_commands unittests/Makefile"
34882
34883
Reid Spencera773bd52006-08-04 18:18:08 +000034884ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034885
34886
Reid Spencera773bd52006-08-04 18:18:08 +000034887ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034888
34889
Reid Spencera773bd52006-08-04 18:18:08 +000034890ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034891
34892
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034893ac_config_commands="$ac_config_commands bindings/Makefile"
34894
34895
34896ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34897
34898
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034899
John Criswell7a73b802003-06-30 21:59:07 +000034900cat >confcache <<\_ACEOF
34901# This file is a shell script that caches the results of configure
34902# tests run on this system so they can be shared between configure
34903# scripts and configure runs, see configure's option --config-cache.
34904# It is not useful on other systems. If it contains results you don't
34905# want to keep, you may remove or edit it.
34906#
34907# config.status only pays attention to the cache file if you give it
34908# the --recheck option to rerun configure.
34909#
John Criswell0c38eaf2003-09-10 15:17:25 +000034910# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034911# loading this file, other *unset* `ac_cv_foo' will be assigned the
34912# following values.
34913
34914_ACEOF
34915
34916# The following way of writing the cache mishandles newlines in values,
34917# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034918# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034919# Ultrix sh set writes to stderr and can't be redirected directly,
34920# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034921(
34922 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34923 eval ac_val=\$$ac_var
34924 case $ac_val in #(
34925 *${as_nl}*)
34926 case $ac_var in #(
34927 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34928echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34929 esac
34930 case $ac_var in #(
34931 _ | IFS | as_nl) ;; #(
34932 *) $as_unset $ac_var ;;
34933 esac ;;
34934 esac
34935 done
34936
John Criswell7a73b802003-06-30 21:59:07 +000034937 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34939 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034940 # `set' does not quote correctly, so add quotes (double-quote
34941 # substitution turns \\\\ into \\, and sed turns \\ into \).
34942 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034943 "s/'/'\\\\''/g;
34944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034945 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034946 *)
34947 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034950 esac |
34951 sort
34952) |
John Criswell7a73b802003-06-30 21:59:07 +000034953 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034954 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034955 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034956 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34958 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34960 :end' >>confcache
34961if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34962 if test -w "$cache_file"; then
34963 test "x$cache_file" != "x/dev/null" &&
34964 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34965echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034966 cat confcache >$cache_file
34967 else
Reid Spencera773bd52006-08-04 18:18:08 +000034968 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34969echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034970 fi
34971fi
34972rm -f confcache
34973
34974test "x$prefix" = xNONE && prefix=$ac_default_prefix
34975# Let make expand exec_prefix.
34976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34977
John Criswell7a73b802003-06-30 21:59:07 +000034978DEFS=-DHAVE_CONFIG_H
34979
John Criswell0c38eaf2003-09-10 15:17:25 +000034980ac_libobjs=
34981ac_ltlibobjs=
34982for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34983 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34985 ac_i=`echo "$ac_i" | sed "$ac_script"`
34986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34987 # will be set to the directory where LIBOBJS objects are built.
34988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034990done
34991LIBOBJS=$ac_libobjs
34992
34993LTLIBOBJS=$ac_ltlibobjs
34994
34995
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034996if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34997 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34998Usually this means the macro was only invoked conditionally." >&5
34999echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35000Usually this means the macro was only invoked conditionally." >&2;}
35001 { (exit 1); exit 1; }; }
35002fi
35003if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35004 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35005Usually this means the macro was only invoked conditionally." >&5
35006echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35007Usually this means the macro was only invoked conditionally." >&2;}
35008 { (exit 1); exit 1; }; }
35009fi
John Criswell7a73b802003-06-30 21:59:07 +000035010
35011: ${CONFIG_STATUS=./config.status}
35012ac_clean_files_save=$ac_clean_files
35013ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35014{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35015echo "$as_me: creating $CONFIG_STATUS" >&6;}
35016cat >$CONFIG_STATUS <<_ACEOF
35017#! $SHELL
35018# Generated by $as_me.
35019# Run this file to recreate the current configuration.
35020# Compiler output produced by configure, useful for debugging
35021# configure, is in config.log if it exists.
35022
35023debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035024ac_cs_recheck=false
35025ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035026SHELL=\${CONFIG_SHELL-$SHELL}
35027_ACEOF
35028
35029cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035030## --------------------- ##
35031## M4sh Initialization. ##
35032## --------------------- ##
35033
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035034# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035035if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35036 emulate sh
35037 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035038 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35039 # is contrary to our usage. Disable this feature.
35040 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035041 setopt NO_GLOB_SUBST
35042else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035043 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035044fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035045BIN_SH=xpg4; export BIN_SH # for Tru64
35046DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035047
John Criswell7a73b802003-06-30 21:59:07 +000035048
Reid Spencera773bd52006-08-04 18:18:08 +000035049# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035050# Avoid depending upon Character Ranges.
35051as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35052as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35053as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35054as_cr_digits='0123456789'
35055as_cr_alnum=$as_cr_Letters$as_cr_digits
35056
35057# The user is always right.
35058if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035059 echo "#! /bin/sh" >conf$$.sh
35060 echo "exit 0" >>conf$$.sh
35061 chmod +x conf$$.sh
35062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035063 PATH_SEPARATOR=';'
35064 else
35065 PATH_SEPARATOR=:
35066 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035067 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035068fi
35069
Reid Spencera773bd52006-08-04 18:18:08 +000035070# Support unset when possible.
35071if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35072 as_unset=unset
35073else
35074 as_unset=false
35075fi
John Criswell7a73b802003-06-30 21:59:07 +000035076
Reid Spencera773bd52006-08-04 18:18:08 +000035077
35078# IFS
35079# We need space, tab and new line, in precisely that order. Quoting is
35080# there to prevent editors from complaining about space-tab.
35081# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35082# splitting by setting IFS to empty value.)
35083as_nl='
35084'
35085IFS=" "" $as_nl"
35086
35087# Find who we are. Look in the path if we contain no directory separator.
35088case $0 in
35089 *[\\/]* ) as_myself=$0 ;;
35090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035091for as_dir in $PATH
35092do
35093 IFS=$as_save_IFS
35094 test -z "$as_dir" && as_dir=.
35095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35096done
Reid Spencera773bd52006-08-04 18:18:08 +000035097IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035098
Reid Spencera773bd52006-08-04 18:18:08 +000035099 ;;
35100esac
35101# We did not find ourselves, most probably we were run as `sh COMMAND'
35102# in which case we are not to be found in the path.
35103if test "x$as_myself" = x; then
35104 as_myself=$0
35105fi
35106if test ! -f "$as_myself"; then
35107 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35108 { (exit 1); exit 1; }
35109fi
35110
35111# Work around bugs in pre-3.0 UWIN ksh.
35112for as_var in ENV MAIL MAILPATH
35113do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35114done
35115PS1='$ '
35116PS2='> '
35117PS4='+ '
35118
35119# NLS nuisances.
35120for as_var in \
35121 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35122 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35123 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035124do
Reid Spencera773bd52006-08-04 18:18:08 +000035125 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35126 eval $as_var=C; export $as_var
35127 else
35128 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35129 fi
35130done
35131
35132# Required to use basename.
35133if expr a : '\(a\)' >/dev/null 2>&1 &&
35134 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35135 as_expr=expr
35136else
35137 as_expr=false
35138fi
35139
35140if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35141 as_basename=basename
35142else
35143 as_basename=false
35144fi
35145
35146
35147# Name of the executable.
35148as_me=`$as_basename -- "$0" ||
35149$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35150 X"$0" : 'X\(//\)$' \| \
35151 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35152echo X/"$0" |
35153 sed '/^.*\/\([^/][^/]*\)\/*$/{
35154 s//\1/
35155 q
35156 }
35157 /^X\/\(\/\/\)$/{
35158 s//\1/
35159 q
35160 }
35161 /^X\/\(\/\).*/{
35162 s//\1/
35163 q
35164 }
35165 s/.*/./; q'`
35166
35167# CDPATH.
35168$as_unset CDPATH
35169
35170
35171
John Criswell7a73b802003-06-30 21:59:07 +000035172 as_lineno_1=$LINENO
35173 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035174 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035175 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035176
35177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35178 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035179 # line-number line after each line using $LINENO; the second 'sed'
35180 # does the real work. The second script uses 'N' to pair each
35181 # line-number line with the line containing $LINENO, and appends
35182 # trailing '-' during substitution so that $LINENO is not a special
35183 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035184 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035185 # scripts with optimization help from Paolo Bonzini. Blame Lee
35186 # E. McMahon (1931-1989) for sed's syntax. :-)
35187 sed -n '
35188 p
35189 /[$]LINENO/=
35190 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035191 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035192 s/[$]LINENO.*/&-/
35193 t lineno
35194 b
35195 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035196 N
Reid Spencera773bd52006-08-04 18:18:08 +000035197 :loop
35198 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035199 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035200 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035201 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035202 chmod +x "$as_me.lineno" ||
35203 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035204 { (exit 1); exit 1; }; }
35205
35206 # Don't try to exec as it changes $[0], causing all sort of problems
35207 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035208 # original and so on. Autoconf is especially sensitive to this).
35209 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035210 # Exit status is that of the last command.
35211 exit
35212}
35213
35214
Reid Spencera773bd52006-08-04 18:18:08 +000035215if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35216 as_dirname=dirname
35217else
35218 as_dirname=false
35219fi
35220
35221ECHO_C= ECHO_N= ECHO_T=
35222case `echo -n x` in
35223-n*)
35224 case `echo 'x\c'` in
35225 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35226 *) ECHO_C='\c';;
35227 esac;;
35228*)
35229 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035230esac
35231
Reid Spencera773bd52006-08-04 18:18:08 +000035232if expr a : '\(a\)' >/dev/null 2>&1 &&
35233 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035234 as_expr=expr
35235else
35236 as_expr=false
35237fi
35238
35239rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035240if test -d conf$$.dir; then
35241 rm -f conf$$.dir/conf$$.file
35242else
35243 rm -f conf$$.dir
35244 mkdir conf$$.dir
35245fi
John Criswell7a73b802003-06-30 21:59:07 +000035246echo >conf$$.file
35247if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035248 as_ln_s='ln -s'
35249 # ... but there are two gotchas:
35250 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35251 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35252 # In both cases, we have to default to `cp -p'.
35253 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035254 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035255elif ln conf$$.file conf$$ 2>/dev/null; then
35256 as_ln_s=ln
35257else
35258 as_ln_s='cp -p'
35259fi
Reid Spencera773bd52006-08-04 18:18:08 +000035260rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35261rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035262
John Criswell0c38eaf2003-09-10 15:17:25 +000035263if mkdir -p . 2>/dev/null; then
35264 as_mkdir_p=:
35265else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035266 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035267 as_mkdir_p=false
35268fi
35269
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035270# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35271# systems may use methods other than mode bits to determine executability.
35272cat >conf$$.file <<_ASEOF
35273#! /bin/sh
35274exit 0
35275_ASEOF
35276chmod +x conf$$.file
35277if test -x conf$$.file >/dev/null 2>&1; then
35278 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035279else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035280 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035281fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035282rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035283
35284# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035285as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035286
35287# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035288as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035289
35290
John Criswell7a73b802003-06-30 21:59:07 +000035291exec 6>&1
35292
Reid Spencera773bd52006-08-04 18:18:08 +000035293# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035294# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035295# values after options handling.
35296ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035297This file was extended by llvm $as_me 2.6svn, which was
35298generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035299
35300 CONFIG_FILES = $CONFIG_FILES
35301 CONFIG_HEADERS = $CONFIG_HEADERS
35302 CONFIG_LINKS = $CONFIG_LINKS
35303 CONFIG_COMMANDS = $CONFIG_COMMANDS
35304 $ $0 $@
35305
Reid Spencera773bd52006-08-04 18:18:08 +000035306on `(hostname || uname -n) 2>/dev/null | sed 1q`
35307"
35308
John Criswell7a73b802003-06-30 21:59:07 +000035309_ACEOF
35310
Reid Spencera773bd52006-08-04 18:18:08 +000035311cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035312# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035313config_files="$ac_config_files"
35314config_headers="$ac_config_headers"
35315config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035316
Reid Spencera773bd52006-08-04 18:18:08 +000035317_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035318
35319cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035320ac_cs_usage="\
35321\`$as_me' instantiates files from templates according to the
35322current configuration.
35323
35324Usage: $0 [OPTIONS] [FILE]...
35325
35326 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035327 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035328 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035329 -d, --debug don't remove temporary files
35330 --recheck update $as_me by reconfiguring in the same conditions
35331 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035332 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035333 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035334 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035335
35336Configuration files:
35337$config_files
35338
35339Configuration headers:
35340$config_headers
35341
John Criswellc764fbc2003-09-06 15:17:13 +000035342Configuration commands:
35343$config_commands
35344
John Criswell7a73b802003-06-30 21:59:07 +000035345Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035346
Reid Spencera773bd52006-08-04 18:18:08 +000035347_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035348cat >>$CONFIG_STATUS <<_ACEOF
35349ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035350llvm config.status 2.6svn
35351configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035352 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035353
Reid Spencera773bd52006-08-04 18:18:08 +000035354Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035355This config.status script is free software; the Free Software Foundation
35356gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035357
35358ac_pwd='$ac_pwd'
35359srcdir='$srcdir'
35360INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035361_ACEOF
35362
35363cat >>$CONFIG_STATUS <<\_ACEOF
35364# If no file are specified by the user, then we need to provide default
35365# value. By we need to know if files were specified by the user.
35366ac_need_defaults=:
35367while test $# != 0
35368do
35369 case $1 in
35370 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35372 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035373 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035374 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035375 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035376 ac_option=$1
35377 ac_optarg=$2
35378 ac_shift=shift
35379 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035380 esac
35381
John Criswell0c38eaf2003-09-10 15:17:25 +000035382 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035383 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35385 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35387 echo "$ac_cs_version"; exit ;;
35388 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035389 debug=: ;;
35390 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035391 $ac_shift
35392 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035393 ac_need_defaults=false;;
35394 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035395 $ac_shift
35396 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035397 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035398 --he | --h)
35399 # Conflict between --help and --header
35400 { echo "$as_me: error: ambiguous option: $1
35401Try \`$0 --help' for more information." >&2
35402 { (exit 1); exit 1; }; };;
35403 --help | --hel | -h )
35404 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35406 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35407 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035408
35409 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035410 -*) { echo "$as_me: error: unrecognized option: $1
35411Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035412 { (exit 1); exit 1; }; } ;;
35413
Reid Spencera773bd52006-08-04 18:18:08 +000035414 *) ac_config_targets="$ac_config_targets $1"
35415 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035416
35417 esac
35418 shift
35419done
35420
John Criswell0c38eaf2003-09-10 15:17:25 +000035421ac_configure_extra_args=
35422
35423if $ac_cs_silent; then
35424 exec 6>/dev/null
35425 ac_configure_extra_args="$ac_configure_extra_args --silent"
35426fi
35427
35428_ACEOF
35429cat >>$CONFIG_STATUS <<_ACEOF
35430if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035431 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35432 CONFIG_SHELL=$SHELL
35433 export CONFIG_SHELL
35434 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035435fi
35436
John Criswell7a73b802003-06-30 21:59:07 +000035437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035438cat >>$CONFIG_STATUS <<\_ACEOF
35439exec 5>>config.log
35440{
35441 echo
35442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35443## Running $as_me. ##
35444_ASBOX
35445 echo "$ac_log"
35446} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035447
Reid Spencera773bd52006-08-04 18:18:08 +000035448_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035449cat >>$CONFIG_STATUS <<_ACEOF
35450#
Reid Spencera773bd52006-08-04 18:18:08 +000035451# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035452#
Reid Spencerc0682832005-02-24 19:05:19 +000035453llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035454
35455_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035456
John Criswell7a73b802003-06-30 21:59:07 +000035457cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035458
35459# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035460for ac_config_target in $ac_config_targets
35461do
Reid Spencera773bd52006-08-04 18:18:08 +000035462 case $ac_config_target in
35463 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35464 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035465 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35466 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35467 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035468 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035469 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035470 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35471 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35472 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35473 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35474 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35475 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35476 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035477 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035478 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35479 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035480 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035481 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35482 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35483 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035484 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35485 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035486
John Criswell7a73b802003-06-30 21:59:07 +000035487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35488echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35489 { (exit 1); exit 1; }; };;
35490 esac
35491done
35492
Reid Spencera773bd52006-08-04 18:18:08 +000035493
John Criswell7a73b802003-06-30 21:59:07 +000035494# If the user did not use the arguments to specify the items to instantiate,
35495# then the envvar interface is used. Set only those that are not.
35496# We use the long form for the default assignment because of an extremely
35497# bizarre bug on SunOS 4.1.3.
35498if $ac_need_defaults; then
35499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035502fi
35503
John Criswell0c38eaf2003-09-10 15:17:25 +000035504# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035505# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035506# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035507# Hook for its removal unless debugging.
35508# Note that there is a small window in which the directory will not be cleaned:
35509# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035510$debug ||
35511{
Reid Spencera773bd52006-08-04 18:18:08 +000035512 tmp=
35513 trap 'exit_status=$?
35514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35515' 0
John Criswell7a73b802003-06-30 21:59:07 +000035516 trap '{ (exit 1); exit 1; }' 1 2 13 15
35517}
John Criswell7a73b802003-06-30 21:59:07 +000035518# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035519
John Criswell7a73b802003-06-30 21:59:07 +000035520{
Reid Spencera773bd52006-08-04 18:18:08 +000035521 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035522 test -n "$tmp" && test -d "$tmp"
35523} ||
35524{
Reid Spencera773bd52006-08-04 18:18:08 +000035525 tmp=./conf$$-$RANDOM
35526 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035527} ||
35528{
John Criswell0c38eaf2003-09-10 15:17:25 +000035529 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035530 { (exit 1); exit 1; }
35531}
35532
John Criswell7a73b802003-06-30 21:59:07 +000035533#
Reid Spencera773bd52006-08-04 18:18:08 +000035534# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035535#
35536
35537# No need to generate the scripts if there are no CONFIG_FILES.
35538# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035539if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035540
35541_ACEOF
35542
Reid Spencera773bd52006-08-04 18:18:08 +000035543
35544
35545ac_delim='%!_!# '
35546for ac_last_try in false false false false false :; do
35547 cat >conf$$subs.sed <<_ACEOF
35548SHELL!$SHELL$ac_delim
35549PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35550PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35551PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35552PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35553PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35554PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35555exec_prefix!$exec_prefix$ac_delim
35556prefix!$prefix$ac_delim
35557program_transform_name!$program_transform_name$ac_delim
35558bindir!$bindir$ac_delim
35559sbindir!$sbindir$ac_delim
35560libexecdir!$libexecdir$ac_delim
35561datarootdir!$datarootdir$ac_delim
35562datadir!$datadir$ac_delim
35563sysconfdir!$sysconfdir$ac_delim
35564sharedstatedir!$sharedstatedir$ac_delim
35565localstatedir!$localstatedir$ac_delim
35566includedir!$includedir$ac_delim
35567oldincludedir!$oldincludedir$ac_delim
35568docdir!$docdir$ac_delim
35569infodir!$infodir$ac_delim
35570htmldir!$htmldir$ac_delim
35571dvidir!$dvidir$ac_delim
35572pdfdir!$pdfdir$ac_delim
35573psdir!$psdir$ac_delim
35574libdir!$libdir$ac_delim
35575localedir!$localedir$ac_delim
35576mandir!$mandir$ac_delim
35577DEFS!$DEFS$ac_delim
35578ECHO_C!$ECHO_C$ac_delim
35579ECHO_N!$ECHO_N$ac_delim
35580ECHO_T!$ECHO_T$ac_delim
35581LIBS!$LIBS$ac_delim
35582build_alias!$build_alias$ac_delim
35583host_alias!$host_alias$ac_delim
35584target_alias!$target_alias$ac_delim
35585LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35586subdirs!$subdirs$ac_delim
35587build!$build$ac_delim
35588build_cpu!$build_cpu$ac_delim
35589build_vendor!$build_vendor$ac_delim
35590build_os!$build_os$ac_delim
35591host!$host$ac_delim
35592host_cpu!$host_cpu$ac_delim
35593host_vendor!$host_vendor$ac_delim
35594host_os!$host_os$ac_delim
35595target!$target$ac_delim
35596target_cpu!$target_cpu$ac_delim
35597target_vendor!$target_vendor$ac_delim
35598target_os!$target_os$ac_delim
35599OS!$OS$ac_delim
35600LINKALL!$LINKALL$ac_delim
35601NOLINKALL!$NOLINKALL$ac_delim
35602LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35603LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35604ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035605ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035606CC!$CC$ac_delim
35607CFLAGS!$CFLAGS$ac_delim
35608LDFLAGS!$LDFLAGS$ac_delim
35609CPPFLAGS!$CPPFLAGS$ac_delim
35610ac_ct_CC!$ac_ct_CC$ac_delim
35611EXEEXT!$EXEEXT$ac_delim
35612OBJEXT!$OBJEXT$ac_delim
35613CPP!$CPP$ac_delim
35614GREP!$GREP$ac_delim
35615EGREP!$EGREP$ac_delim
35616LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35617BUILD_CC!$BUILD_CC$ac_delim
35618BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035619BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035620CVSBUILD!$CVSBUILD$ac_delim
35621ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35622DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035623ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35624EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035625DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035626JIT!$JIT$ac_delim
35627TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35628ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35629ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035630ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035631TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035632ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035633EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035634BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035635CXX!$CXX$ac_delim
35636CXXFLAGS!$CXXFLAGS$ac_delim
35637ac_ct_CXX!$ac_ct_CXX$ac_delim
35638LEX!$LEX$ac_delim
Nick Lewycky2ab1d862009-01-20 00:52:24 +000035639LEXLIB!$LEXLIB$ac_delim
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035640LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035641FLEX!$FLEX$ac_delim
35642YACC!$YACC$ac_delim
35643YFLAGS!$YFLAGS$ac_delim
35644BISON!$BISON$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035645_ACEOF
35646
35647 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35648 break
35649 elif $ac_last_try; then
35650 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35651echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35652 { (exit 1); exit 1; }; }
35653 else
35654 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035655 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035656done
35657
35658ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35659if test -n "$ac_eof"; then
35660 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35661 ac_eof=`expr $ac_eof + 1`
35662fi
35663
35664cat >>$CONFIG_STATUS <<_ACEOF
35665cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35666/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35667_ACEOF
35668sed '
35669s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35670s/^/s,@/; s/!/@,|#_!!_#|/
35671:n
35672t n
35673s/'"$ac_delim"'$/,g/; t
35674s/$/\\/; p
35675N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35676' >>$CONFIG_STATUS <conf$$subs.sed
35677rm -f conf$$subs.sed
35678cat >>$CONFIG_STATUS <<_ACEOF
35679CEOF$ac_eof
35680_ACEOF
35681
35682
35683ac_delim='%!_!# '
35684for ac_last_try in false false false false false :; do
35685 cat >conf$$subs.sed <<_ACEOF
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035686NM!$NM$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035687ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035688LN_S!$LN_S$ac_delim
35689CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035690CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035691DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035692FIND!$FIND$ac_delim
35693MKDIR!$MKDIR$ac_delim
35694MV!$MV$ac_delim
35695RANLIB!$RANLIB$ac_delim
35696RM!$RM$ac_delim
35697SED!$SED$ac_delim
35698TAR!$TAR$ac_delim
35699BINPWD!$BINPWD$ac_delim
35700GRAPHVIZ!$GRAPHVIZ$ac_delim
35701DOT!$DOT$ac_delim
35702GV!$GV$ac_delim
35703DOTTY!$DOTTY$ac_delim
35704PERL!$PERL$ac_delim
35705HAVE_PERL!$HAVE_PERL$ac_delim
35706INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35707INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35708INSTALL_DATA!$INSTALL_DATA$ac_delim
35709BZIP2!$BZIP2$ac_delim
35710DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035711GROFF!$GROFF$ac_delim
35712GZIP!$GZIP$ac_delim
35713POD2HTML!$POD2HTML$ac_delim
35714POD2MAN!$POD2MAN$ac_delim
35715RUNTEST!$RUNTEST$ac_delim
35716TCLSH!$TCLSH$ac_delim
35717ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035718OCAMLC!$OCAMLC$ac_delim
35719OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035720OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035721OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035722GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035723INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35724INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35725CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35726CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35727LIBADD_DL!$LIBADD_DL$ac_delim
35728ECHO!$ECHO$ac_delim
35729AR!$AR$ac_delim
35730STRIP!$STRIP$ac_delim
35731CXXCPP!$CXXCPP$ac_delim
35732F77!$F77$ac_delim
35733FFLAGS!$FFLAGS$ac_delim
35734ac_ct_F77!$ac_ct_F77$ac_delim
35735LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035736LLVMGCC!$LLVMGCC$ac_delim
35737LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035738USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035739HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000035740HAVE_FFI!$HAVE_FFI$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035741HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035742ALLOCA!$ALLOCA$ac_delim
35743MMAP_FILE!$MMAP_FILE$ac_delim
35744LLVMCC1!$LLVMCC1$ac_delim
35745LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35746LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035747LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035748LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35749LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035750LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035751SHLIBEXT!$SHLIBEXT$ac_delim
35752LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35753LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35754LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35755LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35756LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35757LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35758LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35759LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35760LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35761LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035762BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35763ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035764OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035765ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035766LIBOBJS!$LIBOBJS$ac_delim
35767LTLIBOBJS!$LTLIBOBJS$ac_delim
35768_ACEOF
35769
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000035770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
Reid Spencera773bd52006-08-04 18:18:08 +000035771 break
35772 elif $ac_last_try; then
35773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35774echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35775 { (exit 1); exit 1; }; }
35776 else
35777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35778 fi
35779done
35780
35781ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35782if test -n "$ac_eof"; then
35783 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35784 ac_eof=`expr $ac_eof + 1`
35785fi
35786
35787cat >>$CONFIG_STATUS <<_ACEOF
35788cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35789/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35790_ACEOF
35791sed '
35792s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35793s/^/s,@/; s/!/@,|#_!!_#|/
35794:n
35795t n
35796s/'"$ac_delim"'$/,g/; t
35797s/$/\\/; p
35798N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35799' >>$CONFIG_STATUS <conf$$subs.sed
35800rm -f conf$$subs.sed
35801cat >>$CONFIG_STATUS <<_ACEOF
35802:end
35803s/|#_!!_#|//g
35804CEOF$ac_eof
35805_ACEOF
35806
35807
35808# VPATH may cause trouble with some makes, so we remove $(srcdir),
35809# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35810# trailing colons and then remove the whole line if VPATH becomes empty
35811# (actually we leave an empty line to preserve line numbers).
35812if test "x$srcdir" = x.; then
35813 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35814s/:*\$(srcdir):*/:/
35815s/:*\${srcdir}:*/:/
35816s/:*@srcdir@:*/:/
35817s/^\([^=]*=[ ]*\):*/\1/
35818s/:*$//
35819s/^[^=]*=[ ]*$//
35820}'
35821fi
35822
35823cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035824fi # test -n "$CONFIG_FILES"
35825
Reid Spencera773bd52006-08-04 18:18:08 +000035826
35827for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35828do
35829 case $ac_tag in
35830 :[FHLC]) ac_mode=$ac_tag; continue;;
35831 esac
35832 case $ac_mode$ac_tag in
35833 :[FHL]*:*);;
35834 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35835echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35836 { (exit 1); exit 1; }; };;
35837 :[FH]-) ac_tag=-:-;;
35838 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35839 esac
35840 ac_save_IFS=$IFS
35841 IFS=:
35842 set x $ac_tag
35843 IFS=$ac_save_IFS
35844 shift
35845 ac_file=$1
35846 shift
35847
35848 case $ac_mode in
35849 :L) ac_source=$1;;
35850 :[FH])
35851 ac_file_inputs=
35852 for ac_f
35853 do
35854 case $ac_f in
35855 -) ac_f="$tmp/stdin";;
35856 *) # Look for the file first in the build tree, then in the source tree
35857 # (if the path is not absolute). The absolute path cannot be DOS-style,
35858 # because $ac_f cannot contain `:'.
35859 test -f "$ac_f" ||
35860 case $ac_f in
35861 [\\/$]*) false;;
35862 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35863 esac ||
35864 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35865echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35866 { (exit 1); exit 1; }; };;
35867 esac
35868 ac_file_inputs="$ac_file_inputs $ac_f"
35869 done
35870
35871 # Let's still pretend it is `configure' which instantiates (i.e., don't
35872 # use $as_me), people would be surprised to read:
35873 # /* config.h. Generated by config.status. */
35874 configure_input="Generated from "`IFS=:
35875 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35876 if test x"$ac_file" != x-; then
35877 configure_input="$ac_file. $configure_input"
35878 { echo "$as_me:$LINENO: creating $ac_file" >&5
35879echo "$as_me: creating $ac_file" >&6;}
35880 fi
35881
35882 case $ac_tag in
35883 *:-:* | *:-) cat >"$tmp/stdin";;
35884 esac
35885 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035886 esac
35887
Reid Spencera773bd52006-08-04 18:18:08 +000035888 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035890 X"$ac_file" : 'X\(//\)[^/]' \| \
35891 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035893echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35895 s//\1/
35896 q
35897 }
35898 /^X\(\/\/\)[^/].*/{
35899 s//\1/
35900 q
35901 }
35902 /^X\(\/\/\)$/{
35903 s//\1/
35904 q
35905 }
35906 /^X\(\/\).*/{
35907 s//\1/
35908 q
35909 }
35910 s/.*/./; q'`
35911 { as_dir="$ac_dir"
35912 case $as_dir in #(
35913 -*) as_dir=./$as_dir;;
35914 esac
35915 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035916 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035917 while :; do
35918 case $as_dir in #(
35919 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35920 *) as_qdir=$as_dir;;
35921 esac
35922 as_dirs="'$as_qdir' $as_dirs"
35923 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035925 X"$as_dir" : 'X\(//\)[^/]' \| \
35926 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035928echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35930 s//\1/
35931 q
35932 }
35933 /^X\(\/\/\)[^/].*/{
35934 s//\1/
35935 q
35936 }
35937 /^X\(\/\/\)$/{
35938 s//\1/
35939 q
35940 }
35941 /^X\(\/\).*/{
35942 s//\1/
35943 q
35944 }
35945 s/.*/./; q'`
35946 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035947 done
Reid Spencera773bd52006-08-04 18:18:08 +000035948 test -z "$as_dirs" || eval "mkdir $as_dirs"
35949 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35950echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035951 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035952 ac_builddir=.
35953
Reid Spencera773bd52006-08-04 18:18:08 +000035954case "$ac_dir" in
35955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35956*)
John Criswell7a73b802003-06-30 21:59:07 +000035957 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035958 # A ".." for each directory in $ac_dir_suffix.
35959 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35960 case $ac_top_builddir_sub in
35961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35963 esac ;;
35964esac
35965ac_abs_top_builddir=$ac_pwd
35966ac_abs_builddir=$ac_pwd$ac_dir_suffix
35967# for backward compatibility:
35968ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035969
35970case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035971 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035972 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035973 ac_top_srcdir=$ac_top_builddir_sub
35974 ac_abs_top_srcdir=$ac_pwd ;;
35975 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035976 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035977 ac_top_srcdir=$srcdir
35978 ac_abs_top_srcdir=$srcdir ;;
35979 *) # Relative name.
35980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35981 ac_top_srcdir=$ac_top_build_prefix$srcdir
35982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035983esac
Reid Spencera773bd52006-08-04 18:18:08 +000035984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035985
John Criswell7a73b802003-06-30 21:59:07 +000035986
Reid Spencera773bd52006-08-04 18:18:08 +000035987 case $ac_mode in
35988 :F)
35989 #
35990 # CONFIG_FILE
35991 #
John Criswell7a73b802003-06-30 21:59:07 +000035992
35993 case $INSTALL in
35994 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035995 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035996 esac
John Criswell7a73b802003-06-30 21:59:07 +000035997_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035998
35999cat >>$CONFIG_STATUS <<\_ACEOF
36000# If the template does not know about datarootdir, expand it.
36001# FIXME: This hack should be removed a few years after 2.60.
36002ac_datarootdir_hack=; ac_datarootdir_seen=
36003
36004case `sed -n '/datarootdir/ {
36005 p
36006 q
36007}
36008/@datadir@/p
36009/@docdir@/p
36010/@infodir@/p
36011/@localedir@/p
36012/@mandir@/p
36013' $ac_file_inputs` in
36014*datarootdir*) ac_datarootdir_seen=yes;;
36015*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36016 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36017echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36018_ACEOF
36019cat >>$CONFIG_STATUS <<_ACEOF
36020 ac_datarootdir_hack='
36021 s&@datadir@&$datadir&g
36022 s&@docdir@&$docdir&g
36023 s&@infodir@&$infodir&g
36024 s&@localedir@&$localedir&g
36025 s&@mandir@&$mandir&g
36026 s&\\\${datarootdir}&$datarootdir&g' ;;
36027esac
36028_ACEOF
36029
36030# Neutralize VPATH when `$srcdir' = `.'.
36031# Shell code in configure.ac might set extrasub.
36032# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036033cat >>$CONFIG_STATUS <<_ACEOF
36034 sed "$ac_vpsub
36035$extrasub
36036_ACEOF
36037cat >>$CONFIG_STATUS <<\_ACEOF
36038:t
36039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036040s&@configure_input@&$configure_input&;t t
36041s&@top_builddir@&$ac_top_builddir_sub&;t t
36042s&@srcdir@&$ac_srcdir&;t t
36043s&@abs_srcdir@&$ac_abs_srcdir&;t t
36044s&@top_srcdir@&$ac_top_srcdir&;t t
36045s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36046s&@builddir@&$ac_builddir&;t t
36047s&@abs_builddir@&$ac_abs_builddir&;t t
36048s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36049s&@INSTALL@&$ac_INSTALL&;t t
36050$ac_datarootdir_hack
36051" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036052
Reid Spencera773bd52006-08-04 18:18:08 +000036053test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36054 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36055 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36056 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36057which seems to be undefined. Please make sure it is defined." >&5
36058echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36059which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036060
Reid Spencera773bd52006-08-04 18:18:08 +000036061 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036062 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036063 -) cat "$tmp/out"; rm -f "$tmp/out";;
36064 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036065 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036066 ;;
36067 :H)
36068 #
36069 # CONFIG_HEADER
36070 #
John Criswell7a73b802003-06-30 21:59:07 +000036071_ACEOF
36072
Reid Spencera773bd52006-08-04 18:18:08 +000036073# Transform confdefs.h into a sed script `conftest.defines', that
36074# substitutes the proper values into config.h.in to produce config.h.
36075rm -f conftest.defines conftest.tail
36076# First, append a space to every undef/define line, to ease matching.
36077echo 's/$/ /' >conftest.defines
36078# Then, protect against being on the right side of a sed subst, or in
36079# an unquoted here document, in config.status. If some macros were
36080# called several times there might be several #defines for the same
36081# symbol, which is useless. But do not sort them, since the last
36082# AC_DEFINE must be honored.
36083ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36084# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36085# NAME is the cpp macro being defined, VALUE is the value it is being given.
36086# PARAMS is the parameter list in the macro definition--in most cases, it's
36087# just an empty string.
36088ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36089ac_dB='\\)[ (].*,\\1define\\2'
36090ac_dC=' '
36091ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036092
Reid Spencera773bd52006-08-04 18:18:08 +000036093uniq confdefs.h |
36094 sed -n '
36095 t rset
36096 :rset
36097 s/^[ ]*#[ ]*define[ ][ ]*//
36098 t ok
36099 d
36100 :ok
36101 s/[\\&,]/\\&/g
36102 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36103 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36104 ' >>conftest.defines
36105
36106# Remove the space that was appended to ease matching.
36107# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036108# example, in the case of _POSIX_SOURCE, which is predefined and required
36109# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036110# (The regexp can be short, since the line contains either #define or #undef.)
36111echo 's/ $//
36112s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036113
Reid Spencera773bd52006-08-04 18:18:08 +000036114# Break up conftest.defines:
36115ac_max_sed_lines=50
36116
36117# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36118# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36119# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36120# et cetera.
36121ac_in='$ac_file_inputs'
36122ac_out='"$tmp/out1"'
36123ac_nxt='"$tmp/out2"'
36124
36125while :
John Criswell7a73b802003-06-30 21:59:07 +000036126do
Reid Spencera773bd52006-08-04 18:18:08 +000036127 # Write a here document:
36128 cat >>$CONFIG_STATUS <<_ACEOF
36129 # First, check the format of the line:
36130 cat >"\$tmp/defines.sed" <<\\CEOF
36131/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36132/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36133b
36134:def
36135_ACEOF
36136 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036137 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036138 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36139 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36140 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36141 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036142 rm -f conftest.defines
36143 mv conftest.tail conftest.defines
36144done
Reid Spencera773bd52006-08-04 18:18:08 +000036145rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036146
Reid Spencera773bd52006-08-04 18:18:08 +000036147echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036148cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036149 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036150 echo "/* $configure_input */" >"$tmp/config.h"
36151 cat "$ac_result" >>"$tmp/config.h"
36152 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036153 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36154echo "$as_me: $ac_file is unchanged" >&6;}
36155 else
John Criswell7a73b802003-06-30 21:59:07 +000036156 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036157 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036158 fi
36159 else
Reid Spencera773bd52006-08-04 18:18:08 +000036160 echo "/* $configure_input */"
36161 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036162 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036163 rm -f "$tmp/out12"
36164 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036165
Reid Spencera773bd52006-08-04 18:18:08 +000036166 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36167echo "$as_me: executing $ac_file commands" >&6;}
36168 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036169 esac
John Criswell7a73b802003-06-30 21:59:07 +000036170
Reid Spencera773bd52006-08-04 18:18:08 +000036171
36172 case $ac_file$ac_mode in
36173 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36174 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36175 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36176 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36177 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36178 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36179 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36180 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036181 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36182 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036183 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36184 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36185 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36186 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036187 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36188 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036189 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36190 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36191 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36192 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36193 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36194 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036195 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36196 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36197 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36198 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036199
36200 esac
36201done # for ac_tag
36202
John Criswell7a73b802003-06-30 21:59:07 +000036203
36204{ (exit 0); exit 0; }
36205_ACEOF
36206chmod +x $CONFIG_STATUS
36207ac_clean_files=$ac_clean_files_save
36208
36209
36210# configure is writing to config.log, and then calls config.status.
36211# config.status does its own redirection, appending to config.log.
36212# Unfortunately, on DOS this fails, as config.log is still kept open
36213# by configure, so config.status won't be able to write to it; its
36214# output is simply discarded. So we exec the FD to /dev/null,
36215# effectively closing config.log, so it can be properly (re)opened and
36216# appended to by config.status. When coming back to configure, we
36217# need to make the FD available again.
36218if test "$no_create" != yes; then
36219 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036220 ac_config_status_args=
36221 test "$silent" = yes &&
36222 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036223 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036224 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036225 exec 5>>config.log
36226 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36227 # would make configure fail if this is the last instruction.
36228 $ac_cs_success || { (exit 1); exit 1; }
36229fi
36230
John Criswell12399a12003-09-30 15:55:44 +000036231#
36232# CONFIG_SUBDIRS section.
36233#
36234if test "$no_recursion" != yes; then
36235
36236 # Remove --cache-file and --srcdir arguments so they do not pile up.
36237 ac_sub_configure_args=
36238 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036239 eval "set x $ac_configure_args"
36240 shift
36241 for ac_arg
36242 do
John Criswell12399a12003-09-30 15:55:44 +000036243 if test -n "$ac_prev"; then
36244 ac_prev=
36245 continue
36246 fi
36247 case $ac_arg in
36248 -cache-file | --cache-file | --cache-fil | --cache-fi \
36249 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36250 ac_prev=cache_file ;;
36251 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36252 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36253 | --c=*)
36254 ;;
36255 --config-cache | -C)
36256 ;;
36257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36258 ac_prev=srcdir ;;
36259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36260 ;;
36261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36262 ac_prev=prefix ;;
36263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036265 *)
36266 case $ac_arg in
36267 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36268 esac
36269 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036270 esac
36271 done
36272
36273 # Always prepend --prefix to ensure using the same prefix
36274 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036275 ac_arg="--prefix=$prefix"
36276 case $ac_arg in
36277 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36278 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000036279 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036280
36281 ac_popdir=`pwd`
36282 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36283
36284 # Do not complain, so a configure script can configure whichever
36285 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036286 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036287
Reid Spencera773bd52006-08-04 18:18:08 +000036288 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36289 echo "$as_me:$LINENO: $ac_msg" >&5
36290 echo "$ac_msg" >&6
36291 { as_dir="$ac_dir"
36292 case $as_dir in #(
36293 -*) as_dir=./$as_dir;;
36294 esac
36295 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036296 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036297 while :; do
36298 case $as_dir in #(
36299 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36300 *) as_qdir=$as_dir;;
36301 esac
36302 as_dirs="'$as_qdir' $as_dirs"
36303 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036304$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036305 X"$as_dir" : 'X\(//\)[^/]' \| \
36306 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036308echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36310 s//\1/
36311 q
36312 }
36313 /^X\(\/\/\)[^/].*/{
36314 s//\1/
36315 q
36316 }
36317 /^X\(\/\/\)$/{
36318 s//\1/
36319 q
36320 }
36321 /^X\(\/\).*/{
36322 s//\1/
36323 q
36324 }
36325 s/.*/./; q'`
36326 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036327 done
Reid Spencera773bd52006-08-04 18:18:08 +000036328 test -z "$as_dirs" || eval "mkdir $as_dirs"
36329 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36330echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036331 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036332 ac_builddir=.
36333
Reid Spencera773bd52006-08-04 18:18:08 +000036334case "$ac_dir" in
36335.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36336*)
John Criswell12399a12003-09-30 15:55:44 +000036337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036338 # A ".." for each directory in $ac_dir_suffix.
36339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36340 case $ac_top_builddir_sub in
36341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36343 esac ;;
36344esac
36345ac_abs_top_builddir=$ac_pwd
36346ac_abs_builddir=$ac_pwd$ac_dir_suffix
36347# for backward compatibility:
36348ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036349
36350case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036351 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036352 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036353 ac_top_srcdir=$ac_top_builddir_sub
36354 ac_abs_top_srcdir=$ac_pwd ;;
36355 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036356 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036357 ac_top_srcdir=$srcdir
36358 ac_abs_top_srcdir=$srcdir ;;
36359 *) # Relative name.
36360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36361 ac_top_srcdir=$ac_top_build_prefix$srcdir
36362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036363esac
Reid Spencera773bd52006-08-04 18:18:08 +000036364ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036365
36366
Reid Spencera773bd52006-08-04 18:18:08 +000036367 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036368
36369 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036370 if test -f "$ac_srcdir/configure.gnu"; then
36371 ac_sub_configure=$ac_srcdir/configure.gnu
36372 elif test -f "$ac_srcdir/configure"; then
36373 ac_sub_configure=$ac_srcdir/configure
36374 elif test -f "$ac_srcdir/configure.in"; then
36375 # This should be Cygnus configure.
36376 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036377 else
36378 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36379echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36380 ac_sub_configure=
36381 fi
36382
36383 # The recursion is here.
36384 if test -n "$ac_sub_configure"; then
36385 # Make the cache file name correct relative to the subdirectory.
36386 case $cache_file in
36387 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036388 *) # Relative name.
36389 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036390 esac
36391
Reid Spencera773bd52006-08-04 18:18:08 +000036392 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36393echo "$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 +000036394 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036395 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36396 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036397 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036398echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36399 { (exit 1); exit 1; }; }
36400 fi
36401
Reid Spencera773bd52006-08-04 18:18:08 +000036402 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036403 done
36404fi
36405