blob: d6e6758a3ea3ba70ae8150efae9e485940aa69d6 [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
Reid Spencera773bd52006-08-04 18:18:08 +0000815CC
816CFLAGS
817LDFLAGS
818CPPFLAGS
819ac_ct_CC
820EXEEXT
821OBJEXT
Nick Lewyckyfb138812009-03-12 03:34:33 +0000822ARCH
823ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000824CPP
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
Reid Spencera773bd52006-08-04 18:18:08 +0000849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000881OCAMLC
882OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000883OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000884OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000885GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000899LLVMGCC
900LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000901USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000902HAVE_PTHREAD
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +0000903HAVE_FFI
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000925BINDINGS_TO_BUILD
926ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000927OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000928ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000929RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000930RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000931LIBOBJS
932LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000933ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000949projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000950projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000951projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000952projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000958projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000986# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000995includedir='${prefix}/include'
996oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001006
1007ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001008ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001013 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=
1015 continue
1016 fi
1017
Reid Spencera773bd52006-08-04 18:18:08 +00001018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001050 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001052 datadir=$ac_optarg ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
John Criswell7a73b802003-06-30 21:59:07 +00001061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
Reid Spencera773bd52006-08-04 18:18:08 +00001114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
John Criswell7a73b802003-06-30 21:59:07 +00001120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
Reid Spencera773bd52006-08-04 18:18:08 +00001144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
John Criswell7a73b802003-06-30 21:59:07 +00001149 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001150 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
Reid Spencera773bd52006-08-04 18:18:08 +00001218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
John Criswell7a73b802003-06-30 21:59:07 +00001228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001293 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001324 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
Reid Spencera773bd52006-08-04 18:18:08 +00001344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001349do
Reid Spencera773bd52006-08-04 18:18:08 +00001350 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001351 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001354 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
Reid Spencera773bd52006-08-04 18:18:08 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
John Criswell7a73b802003-06-30 21:59:07 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001402echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001421 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001461\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
John Criswell7a73b802003-06-30 21:59:07 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001535 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001536 --enable-expensive-checks
1537
Reid Spencer8b2e1412006-11-17 03:32:33 +00001538 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001540 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001541 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001542 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001543 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001544 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001545 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001550 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001552 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001555 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001569 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001572 --with-binutils-include Specify path to binutils/include/ containing
1573 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001574 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001578 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001579 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001582 CC C compiler command
1583 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001588 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to <llvmbugs@cs.uiuc.edu>.
1599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001600ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001606 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001607 ac_builddir=.
1608
Reid Spencera773bd52006-08-04 18:18:08 +00001609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001624
1625case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001626 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001638esac
Reid Spencera773bd52006-08-04 18:18:08 +00001639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001640
Reid Spencera773bd52006-08-04 18:18:08 +00001641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001649 else
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001653 done
1654fi
1655
Reid Spencera773bd52006-08-04 18:18:08 +00001656test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001657if $ac_init_version; then
1658 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001659llvm configure 2.6svn
1660generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001661
Reid Spencera773bd52006-08-04 18:18:08 +00001662Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001666
Tanya Lattnercf067672008-01-17 05:57:22 +00001667Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001669 exit
John Criswell7a73b802003-06-30 21:59:07 +00001670fi
Reid Spencera773bd52006-08-04 18:18:08 +00001671cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001672This file contains any messages produced by compilers while
1673running configure, to aid debugging if configure makes a mistake.
1674
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001675It was created by llvm $as_me 2.6svn, which was
1676generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001677
1678 $ $0 $@
1679
1680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001681exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001682{
1683cat <<_ASUNAME
1684## --------- ##
1685## Platform. ##
1686## --------- ##
1687
1688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696
1697/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001700/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001701/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704
1705_ASUNAME
1706
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1713done
Reid Spencera773bd52006-08-04 18:18:08 +00001714IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001715
1716} >&5
1717
1718cat >&5 <<_ACEOF
1719
1720
1721## ----------- ##
1722## Core tests. ##
1723## ----------- ##
1724
1725_ACEOF
1726
1727
1728# Keep a trace of the command line.
1729# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001730# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001731# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001732# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001733ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001734ac_configure_args0=
1735ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001736ac_must_keep_next=false
1737for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001738do
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 for ac_arg
1740 do
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001746 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 2)
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001754 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1764 ;;
1765 -* ) ac_must_keep_next=true ;;
1766 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001768 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ;;
1770 esac
1771 done
John Criswell7a73b802003-06-30 21:59:07 +00001772done
John Criswell0c38eaf2003-09-10 15:17:25 +00001773$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774$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 +00001775
1776# When interrupted or exit'd, cleanup temporary files, and complete
1777# config.log. We remove comments because anyway the quotes in there
1778# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001779# WARNING: Use '\'' to represent an apostrophe within the trap.
1780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001781trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1783 {
1784 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001785
John Criswell7a73b802003-06-30 21:59:07 +00001786 cat <<\_ASBOX
1787## ---------------- ##
1788## Cache variables. ##
1789## ---------------- ##
1790_ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001793(
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1805 esac ;;
1806 esac
1807 done
John Criswell7a73b802003-06-30 21:59:07 +00001808 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001811 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001815 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001817 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001818 esac |
1819 sort
1820)
John Criswell7a73b802003-06-30 21:59:07 +00001821 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001822
1823 cat <<\_ASBOX
1824## ----------------- ##
1825## Output variables. ##
1826## ----------------- ##
1827_ASBOX
1828 echo
1829 for ac_var in $ac_subst_vars
1830 do
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001836 done | sort
1837 echo
1838
1839 if test -n "$ac_subst_files"; then
1840 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001841## ------------------- ##
1842## File substitutions. ##
1843## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001844_ASBOX
1845 echo
1846 for ac_var in $ac_subst_files
1847 do
Reid Spencera773bd52006-08-04 18:18:08 +00001848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001853 done | sort
1854 echo
1855 fi
1856
John Criswell7a73b802003-06-30 21:59:07 +00001857 if test -s confdefs.h; then
1858 cat <<\_ASBOX
1859## ----------- ##
1860## confdefs.h. ##
1861## ----------- ##
1862_ASBOX
1863 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001864 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001865 echo
1866 fi
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1870 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001873 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001874' 0
John Criswell7a73b802003-06-30 21:59:07 +00001875for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877done
1878ac_signal=0
1879
1880# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001881rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001882
1883# Predefined preprocessor variables.
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_NAME "$PACKAGE_NAME"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_VERSION "$PACKAGE_VERSION"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_STRING "$PACKAGE_STRING"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907_ACEOF
1908
1909
1910# Let the site file select an alternate cache file if it wants to.
1911# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001912if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916else
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001919fi
Reid Spencera773bd52006-08-04 18:18:08 +00001920shift
1921for ac_site_file
1922do
John Criswell7a73b802003-06-30 21:59:07 +00001923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1927 . "$ac_site_file"
1928 fi
1929done
1930
1931if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936echo "$as_me: loading cache $cache_file" >&6;}
1937 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001940 esac
1941 fi
1942else
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944echo "$as_me: creating cache $cache_file" >&6;}
1945 >$cache_file
1946fi
1947
1948# Check that the precious variables saved in the cache have kept the same
1949# value.
1950ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001951for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001969echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001971echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001973echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001974 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 esac
1987 fi
1988done
1989if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
1995fi
1996
Reid Spencera773bd52006-08-04 18:18:08 +00001997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
John Criswell7a73b802003-06-30 21:59:07 +00002021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
Tanya Lattnercf067672008-01-17 05:57:22 +00002029LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030
2031
2032
2033
2034
2035
2036
John Criswell7a73b802003-06-30 21:59:07 +00002037ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002038for ac_dir in autoconf "$srcdir"/autoconf; do
2039 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 break
Reid Spencera773bd52006-08-04 18:18:08 +00002043 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 break
Reid Spencera773bd52006-08-04 18:18:08 +00002047 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 break
2051 fi
2052done
2053if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002054 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002056 { (exit 1); exit 1; }; }
2057fi
Reid Spencera773bd52006-08-04 18:18:08 +00002058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2066
John Criswell7a73b802003-06-30 21:59:07 +00002067
John Criswell392aaa32003-07-22 19:18:09 +00002068
Reid Spencer2706f8c2004-09-19 23:53:36 +00002069if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002072echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 fi
John Criswell93e1c722003-09-15 17:04:06 +00002075fi
2076
John Criswell33a911a2003-11-25 20:36:46 +00002077for i in `ls ${srcdir}/projects`
2078do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 if test -d ${srcdir}/projects/${i} ; then
2080 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002081 CVS) ;;
2082 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002085 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002088 # llvm-test is the old name of the test-suite, kept here for backwards
2089 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002090 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002092 test-suite) subdirs="$subdirs projects/test-suite"
2093 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002103 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002107 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002111 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 esac
John Criswell33a911a2003-11-25 20:36:46 +00002113 fi
2114done
John Criswell559a6c12003-09-30 16:31:48 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116
2117# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002121 { (exit 1); exit 1; }; }
2122
Reid Spencera773bd52006-08-04 18:18:08 +00002123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
Reid Spencera773bd52006-08-04 18:18:08 +00002128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002138 { (exit 1); exit 1; }; }
2139
2140fi
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
John Criswell7a73b802003-06-30 21:59:07 +00002149build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002161
2162
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
Reid Spencera773bd52006-08-04 18:18:08 +00002168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002175fi
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177fi
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
John Criswell7a73b802003-06-30 21:59:07 +00002186host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
Reid Spencera773bd52006-08-04 18:18:08 +00002205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214fi
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
John Criswell7a73b802003-06-30 21:59:07 +00002223target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
Reid Spencera773bd52006-08-04 18:18:08 +00002244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002249 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002275 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002285 *-*-dragonfly*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="DragonFly"
2289 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002290 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2315 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2320 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002325esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002326fi
Reid Spencera773bd52006-08-04 18:18:08 +00002327{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002329
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002333 { (exit 1); exit 1; }; }
2334fi
2335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337
2338
Reid Spencera773bd52006-08-04 18:18:08 +00002339LINKALL=$llvm_cv_link_all_option
2340
2341NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344case $llvm_cv_platform_type in
2345 Unix)
2346
2347cat >>confdefs.h <<\_ACEOF
2348#define LLVM_ON_UNIX 1
2349_ACEOF
2350
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002351 LLVM_ON_UNIX=1
2352
2353 LLVM_ON_WIN32=0
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355 ;;
2356 Win32)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_WIN32 1
2360_ACEOF
2361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=0
2363
2364 LLVM_ON_WIN32=1
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367esac
2368
Reid Spencera773bd52006-08-04 18:18:08 +00002369{ echo "$as_me:$LINENO: checking target architecture" >&5
2370echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002375 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002380 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002381 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002382 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002383 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002384 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002385 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002386esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387fi
Reid Spencera773bd52006-08-04 18:18:08 +00002388{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391if test "$llvm_cv_target_arch" = "Unknown" ; then
2392 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394fi
John Criswell76595452003-07-01 22:07:39 +00002395
Nick Lewyckyfb138812009-03-12 03:34:33 +00002396if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
2397 ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002402if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2404set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407if test "${ac_cv_prog_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 if test -n "$CC"; then
2411 ac_cv_prog_CC="$CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425done
Reid Spencera773bd52006-08-04 18:18:08 +00002426IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427
2428fi
2429fi
2430CC=$ac_cv_prog_CC
2431if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002432 { echo "$as_me:$LINENO: result: $CC" >&5
2433echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434else
Reid Spencera773bd52006-08-04 18:18:08 +00002435 { echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437fi
2438
Reid Spencera773bd52006-08-04 18:18:08 +00002439
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440fi
2441if test -z "$ac_cv_prog_CC"; then
2442 ac_ct_CC=$CC
2443 # Extract the first word of "gcc", so it can be a program name with args.
2444set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2449else
2450 if test -n "$ac_ct_CC"; then
2451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2452else
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002459 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 +00002460 ac_cv_prog_ac_ct_CC="gcc"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 break 2
2463 fi
2464done
2465done
Reid Spencera773bd52006-08-04 18:18:08 +00002466IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467
2468fi
2469fi
2470ac_ct_CC=$ac_cv_prog_ac_ct_CC
2471if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002472 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2473echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474else
Reid Spencera773bd52006-08-04 18:18:08 +00002475 { echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477fi
2478
Reid Spencera773bd52006-08-04 18:18:08 +00002479 if test "x$ac_ct_CC" = x; then
2480 CC=""
2481 else
2482 case $cross_compiling:$ac_tool_warned in
2483yes:)
2484{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2485whose name does not start with the host triplet. If you think this
2486configuration is useful to you, please write to autoconf@gnu.org." >&5
2487echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2488whose name does not start with the host triplet. If you think this
2489configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2490ac_tool_warned=yes ;;
2491esac
2492 CC=$ac_ct_CC
2493 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494else
2495 CC="$ac_cv_prog_CC"
2496fi
2497
2498if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002499 if test -n "$ac_tool_prefix"; then
2500 # 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 +00002501set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002516 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 +00002517 ac_cv_prog_CC="${ac_tool_prefix}cc"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2519 break 2
2520 fi
2521done
2522done
Reid Spencera773bd52006-08-04 18:18:08 +00002523IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002524
2525fi
2526fi
2527CC=$ac_cv_prog_CC
2528if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002529 { echo "$as_me:$LINENO: result: $CC" >&5
2530echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531else
Reid Spencera773bd52006-08-04 18:18:08 +00002532 { echo "$as_me:$LINENO: result: no" >&5
2533echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534fi
2535
Reid Spencera773bd52006-08-04 18:18:08 +00002536
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538fi
2539if test -z "$CC"; then
2540 # Extract the first word of "cc", so it can be a program name with args.
2541set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544if test "${ac_cv_prog_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
2547 if test -n "$CC"; then
2548 ac_cv_prog_CC="$CC" # Let the user override the test.
2549else
2550 ac_prog_rejected=no
2551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552for as_dir in $PATH
2553do
2554 IFS=$as_save_IFS
2555 test -z "$as_dir" && as_dir=.
2556 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002557 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 +00002558 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2559 ac_prog_rejected=yes
2560 continue
2561 fi
2562 ac_cv_prog_CC="cc"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566done
2567done
Reid Spencera773bd52006-08-04 18:18:08 +00002568IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569
2570if test $ac_prog_rejected = yes; then
2571 # We found a bogon in the path, so make sure we never use it.
2572 set dummy $ac_cv_prog_CC
2573 shift
2574 if test $# != 0; then
2575 # We chose a different compiler from the bogus one.
2576 # However, it has the same basename, so the bogon will be chosen
2577 # first if we set CC to just the basename; use the full file name.
2578 shift
2579 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2580 fi
2581fi
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002586 { echo "$as_me:$LINENO: result: $CC" >&5
2587echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588else
Reid Spencera773bd52006-08-04 18:18:08 +00002589 { echo "$as_me:$LINENO: result: no" >&5
2590echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002591fi
2592
Reid Spencera773bd52006-08-04 18:18:08 +00002593
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594fi
2595if test -z "$CC"; then
2596 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002597 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002598 do
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606 if test -n "$CC"; then
2607 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002608else
2609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610for as_dir in $PATH
2611do
2612 IFS=$as_save_IFS
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002615 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 +00002616 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2618 break 2
2619 fi
2620done
2621done
Reid Spencera773bd52006-08-04 18:18:08 +00002622IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002623
2624fi
2625fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626CC=$ac_cv_prog_CC
2627if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002628 { echo "$as_me:$LINENO: result: $CC" >&5
2629echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002630else
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: no" >&5
2632echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002633fi
2634
Reid Spencera773bd52006-08-04 18:18:08 +00002635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002637 done
2638fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639if test -z "$CC"; then
2640 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002641 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002642do
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002648 echo $ECHO_N "(cached) $ECHO_C" >&6
2649else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002650 if test -n "$ac_ct_CC"; then
2651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002652else
2653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654for as_dir in $PATH
2655do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002659 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 +00002660 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664done
2665done
Reid Spencera773bd52006-08-04 18:18:08 +00002666IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002667
2668fi
2669fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670ac_ct_CC=$ac_cv_prog_ac_ct_CC
2671if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002672 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2673echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002674else
Reid Spencera773bd52006-08-04 18:18:08 +00002675 { echo "$as_me:$LINENO: result: no" >&5
2676echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002677fi
2678
Reid Spencera773bd52006-08-04 18:18:08 +00002679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002681done
John Criswell7a73b802003-06-30 21:59:07 +00002682
Reid Spencera773bd52006-08-04 18:18:08 +00002683 if test "x$ac_ct_CC" = x; then
2684 CC=""
2685 else
2686 case $cross_compiling:$ac_tool_warned in
2687yes:)
2688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689whose name does not start with the host triplet. If you think this
2690configuration is useful to you, please write to autoconf@gnu.org." >&5
2691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692whose name does not start with the host triplet. If you think this
2693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694ac_tool_warned=yes ;;
2695esac
2696 CC=$ac_ct_CC
2697 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002698fi
2699
John Criswell7a73b802003-06-30 21:59:07 +00002700fi
2701
2702
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002703test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2704See \`config.log' for more details." >&5
2705echo "$as_me: error: no acceptable C compiler found in \$PATH
2706See \`config.log' for more details." >&2;}
2707 { (exit 1); exit 1; }; }
2708
John Criswell7a73b802003-06-30 21:59:07 +00002709# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002710echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002711ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002712{ (ac_try="$ac_compiler --version >&5"
2713case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2716esac
2717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002722{ (ac_try="$ac_compiler -v >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002732{ (ac_try="$ac_compiler -V >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
2742
2743cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002749
John Criswell7a73b802003-06-30 21:59:07 +00002750int
2751main ()
2752{
2753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002759ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002760# Try to create an executable without -o first, disregard a.out.
2761# It will help us diagnose broken compilers, and finding out an intuition
2762# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002763{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2764echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002765ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002766#
2767# List of possible output files, starting from the most likely.
2768# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2769# only as a last resort. b.out is created by i960 compilers.
2770ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2771#
2772# The IRIX 6 linker writes into existing files which may not be
2773# executable, retaining their permissions. Remove them first so a
2774# subsequent execution test works.
2775ac_rmfiles=
2776for ac_file in $ac_files
2777do
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2780 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2781 esac
2782done
2783rm -f $ac_rmfiles
2784
2785if { (ac_try="$ac_link_default"
2786case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002795 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2796# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2797# in a Makefile. We should not override ac_cv_exeext if it was cached,
2798# so that the user can short-circuit this test for compilers unknown to
2799# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002800for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002801do
2802 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002803 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002805 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002806 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002807 # We found the default executable, but exeext='' is most
2808 # certainly right.
2809 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002810 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002811 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2812 then :; else
2813 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2814 fi
2815 # We set ac_cv_exeext here because the later test for it is not
2816 # safe: cross compilers may not add the suffix if given an `-o'
2817 # argument, so we may need to know it at that point already.
2818 # Even if this section looks crufty: it has the advantage of
2819 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002820 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002821 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002822 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002823 esac
2824done
Reid Spencera773bd52006-08-04 18:18:08 +00002825test "$ac_cv_exeext" = no && ac_cv_exeext=
2826
John Criswell7a73b802003-06-30 21:59:07 +00002827else
2828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002829sed 's/^/| /' conftest.$ac_ext >&5
2830
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002831{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002832See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002833echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002834See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002835 { (exit 77); exit 77; }; }
2836fi
2837
2838ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002839{ echo "$as_me:$LINENO: result: $ac_file" >&5
2840echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002841
Reid Spencera773bd52006-08-04 18:18:08 +00002842# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002843# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002844{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2845echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002846# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2847# If not cross compiling, check that we can run a simple program.
2848if test "$cross_compiling" != yes; then
2849 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002850 { (case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853esac
2854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 cross_compiling=no
2860 else
2861 if test "$cross_compiling" = maybe; then
2862 cross_compiling=yes
2863 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002864 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002865If you meant to cross compile, use \`--host'.
2866See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002867echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002868If you meant to cross compile, use \`--host'.
2869See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002870 { (exit 1); exit 1; }; }
2871 fi
2872 fi
2873fi
Reid Spencera773bd52006-08-04 18:18:08 +00002874{ echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002876
John Criswell0c38eaf2003-09-10 15:17:25 +00002877rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002878ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002879# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002880# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002881{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2882echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2883{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2884echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002885
Reid Spencera773bd52006-08-04 18:18:08 +00002886{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2887echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2888if { (ac_try="$ac_link"
2889case "(($ac_try" in
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2892esac
2893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002895 ac_status=$?
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2899# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2900# work properly (i.e., refer to `conftest.exe'), while it won't with
2901# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002902for ac_file in conftest.exe conftest conftest.*; do
2903 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002904 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002907 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002908 * ) break;;
2909 esac
2910done
2911else
John Criswell0c38eaf2003-09-10 15:17:25 +00002912 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2913See \`config.log' for more details." >&5
2914echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2915See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002916 { (exit 1); exit 1; }; }
2917fi
2918
2919rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002920{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2921echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002922
2923rm -f conftest.$ac_ext
2924EXEEXT=$ac_cv_exeext
2925ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002926{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2927echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002928if test "${ac_cv_objext+set}" = set; then
2929 echo $ECHO_N "(cached) $ECHO_C" >&6
2930else
2931 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002937
John Criswell7a73b802003-06-30 21:59:07 +00002938int
2939main ()
2940{
2941
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002947if { (ac_try="$ac_compile"
2948case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951esac
2952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002957 for ac_file in conftest.o conftest.obj conftest.*; do
2958 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002959 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2962 break;;
2963 esac
2964done
2965else
2966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002967sed 's/^/| /' conftest.$ac_ext >&5
2968
2969{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2970See \`config.log' for more details." >&5
2971echo "$as_me: error: cannot compute suffix of object files: cannot compile
2972See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002973 { (exit 1); exit 1; }; }
2974fi
2975
2976rm -f conftest.$ac_cv_objext conftest.$ac_ext
2977fi
Reid Spencera773bd52006-08-04 18:18:08 +00002978{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2979echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002980OBJEXT=$ac_cv_objext
2981ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002982{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2983echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002984if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002988/* confdefs.h. */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002993
John Criswell7a73b802003-06-30 21:59:07 +00002994int
2995main ()
2996{
2997#ifndef __GNUC__
2998 choke me
2999#endif
3000
3001 ;
3002 return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003006if { (ac_try="$ac_compile"
3007case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010esac
3011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003014 grep -v '^ *+' conftest.er1 >conftest.err
3015 rm -f conftest.er1
3016 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003018 (exit $ac_status); } &&
3019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; } &&
3029 { ac_try='test -s conftest.$ac_objext'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003039 ac_compiler_gnu=yes
3040else
3041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003042sed 's/^/| /' conftest.$ac_ext >&5
3043
Reid Spencera773bd52006-08-04 18:18:08 +00003044 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003045fi
Reid Spencera773bd52006-08-04 18:18:08 +00003046
3047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003048ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003049
3050fi
Reid Spencera773bd52006-08-04 18:18:08 +00003051{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003053GCC=`test $ac_compiler_gnu = yes && echo yes`
3054ac_test_CFLAGS=${CFLAGS+set}
3055ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003056{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003058if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003059 echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
Reid Spencera773bd52006-08-04 18:18:08 +00003061 ac_save_c_werror_flag=$ac_c_werror_flag
3062 ac_c_werror_flag=yes
3063 ac_cv_prog_cc_g=no
3064 CFLAGS="-g"
3065 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003066/* confdefs.h. */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003071
John Criswell7a73b802003-06-30 21:59:07 +00003072int
3073main ()
3074{
3075
3076 ;
3077 return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003093 (exit $ac_status); } &&
3094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3098esac
3099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003114 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003115else
3116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003117sed 's/^/| /' conftest.$ac_ext >&5
3118
Reid Spencera773bd52006-08-04 18:18:08 +00003119 CFLAGS=""
3120 cat >conftest.$ac_ext <<_ACEOF
3121/* confdefs.h. */
3122_ACEOF
3123cat confdefs.h >>conftest.$ac_ext
3124cat >>conftest.$ac_ext <<_ACEOF
3125/* end confdefs.h. */
3126
3127int
3128main ()
3129{
3130
3131 ;
3132 return 0;
3133}
3134_ACEOF
3135rm -f conftest.$ac_objext
3136if { (ac_try="$ac_compile"
3137case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140esac
3141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003148 (exit $ac_status); } &&
3149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003169 :
3170else
3171 echo "$as_me: failed program was:" >&5
3172sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 ac_c_werror_flag=$ac_save_c_werror_flag
3175 CFLAGS="-g"
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186
3187 ;
3188 return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext
3192if { (ac_try="$ac_compile"
3193case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196esac
3197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compile") 2>conftest.er1
3199 ac_status=$?
3200 grep -v '^ *+' conftest.er1 >conftest.err
3201 rm -f conftest.er1
3202 cat conftest.err >&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003204 (exit $ac_status); } &&
3205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3212 ac_status=$?
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); }; } &&
3215 { ac_try='test -s conftest.$ac_objext'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003225 ac_cv_prog_cc_g=yes
3226else
3227 echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230
John Criswell7a73b802003-06-30 21:59:07 +00003231fi
Reid Spencera773bd52006-08-04 18:18:08 +00003232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003234fi
Reid Spencera773bd52006-08-04 18:18:08 +00003235
3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
3238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3241fi
3242{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3243echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244if test "$ac_test_CFLAGS" = set; then
3245 CFLAGS=$ac_save_CFLAGS
3246elif test $ac_cv_prog_cc_g = yes; then
3247 if test "$GCC" = yes; then
3248 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003249 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003251 fi
3252else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003253 if test "$GCC" = yes; then
3254 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003255 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003257 fi
3258fi
Reid Spencera773bd52006-08-04 18:18:08 +00003259{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3260echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3261if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263else
Reid Spencera773bd52006-08-04 18:18:08 +00003264 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265ac_save_CC=$CC
3266cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#include <stdarg.h>
3273#include <stdio.h>
3274#include <sys/types.h>
3275#include <sys/stat.h>
3276/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3277struct buf { int x; };
3278FILE * (*rcsopen) (struct buf *, struct stat *, int);
3279static char *e (p, i)
3280 char **p;
3281 int i;
3282{
3283 return p[i];
3284}
3285static char *f (char * (*g) (char **, int), char **p, ...)
3286{
3287 char *s;
3288 va_list v;
3289 va_start (v,p);
3290 s = g (p, va_arg (v,int));
3291 va_end (v);
3292 return s;
3293}
3294
3295/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3296 function prototypes and stuff, but not '\xHH' hex character constants.
3297 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003298 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3300 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003301 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003302int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303
Reid Spencera773bd52006-08-04 18:18:08 +00003304/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3305 inside strings and character constants. */
3306#define FOO(x) 'x'
3307int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309int test (int i, double x);
3310struct s1 {int (*f) (int a);};
3311struct s2 {int (*f) (double a);};
3312int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3313int argc;
3314char **argv;
3315int
3316main ()
3317{
3318return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3319 ;
3320 return 0;
3321}
3322_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003323for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3324 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003325do
3326 CC="$ac_save_CC $ac_arg"
3327 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003328if { (ac_try="$ac_compile"
3329case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3332esac
3333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335 ac_status=$?
3336 grep -v '^ *+' conftest.er1 >conftest.err
3337 rm -f conftest.er1
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003340 (exit $ac_status); } &&
3341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003361 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362else
3363 echo "$as_me: failed program was:" >&5
3364sed 's/^/| /' conftest.$ac_ext >&5
3365
Reid Spencera773bd52006-08-04 18:18:08 +00003366
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367fi
Reid Spencera773bd52006-08-04 18:18:08 +00003368
3369rm -f core conftest.err conftest.$ac_objext
3370 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371done
Reid Spencera773bd52006-08-04 18:18:08 +00003372rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373CC=$ac_save_CC
3374
3375fi
Reid Spencera773bd52006-08-04 18:18:08 +00003376# AC_CACHE_VAL
3377case "x$ac_cv_prog_cc_c89" in
3378 x)
3379 { echo "$as_me:$LINENO: result: none needed" >&5
3380echo "${ECHO_T}none needed" >&6; } ;;
3381 xno)
3382 { echo "$as_me:$LINENO: result: unsupported" >&5
3383echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003384 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003385 CC="$CC $ac_cv_prog_cc_c89"
3386 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3387echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003388esac
3389
John Criswell0c38eaf2003-09-10 15:17:25 +00003390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003391ac_ext=c
3392ac_cpp='$CPP $CPPFLAGS'
3393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396
3397
Nick Lewyckyfb138812009-03-12 03:34:33 +00003398{ echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
3399echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
3400if test "${llvm_cv_linux_mixed+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3402else
3403 ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#ifndef __x86_64__
3416 error: Not x86-64 even if uname says so!
3417 #endif
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
3427rm -f conftest.$ac_objext
3428if { (ac_try="$ac_compile"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_compile") 2>conftest.er1
3435 ac_status=$?
3436 grep -v '^ *+' conftest.er1 >conftest.err
3437 rm -f conftest.er1
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3442 { (case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_try") 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455esac
3456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_try") 2>&5
3458 ac_status=$?
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; }; then
3461 llvm_cv_linux_mixed=no
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 llvm_cv_linux_mixed=yes
3467fi
3468
3469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_ext=c
3471ac_cpp='$CPP $CPPFLAGS'
3472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476
3477fi
3478{ echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
3479echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
3480
3481 if test "$llvm_cv_linux_mixed" = "yes"; then
3482 llvm_cv_target_arch="x86"
3483 fi
3484fi
3485
3486ARCH=$llvm_cv_target_arch
3487
3488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489ac_ext=c
3490ac_cpp='$CPP $CPPFLAGS'
3491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003494{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3495echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003496# On Suns, sometimes $CPP names a directory.
3497if test -n "$CPP" && test -d "$CPP"; then
3498 CPP=
3499fi
3500if test -z "$CPP"; then
3501 if test "${ac_cv_prog_CPP+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 # Double quotes because CPP needs to be expanded
3505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3506 do
3507 ac_preproc_ok=false
3508for ac_c_preproc_warn_flag in '' yes
3509do
3510 # Use a header file that comes with gcc, so configuring glibc
3511 # with a fresh cross-compiler works.
3512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3513 # <limits.h> exists even on freestanding compilers.
3514 # On the NeXT, cc -E runs the code through the compiler's parser,
3515 # not just through cpp. "Syntax error" is here to catch this case.
3516 cat >conftest.$ac_ext <<_ACEOF
3517/* confdefs.h. */
3518_ACEOF
3519cat confdefs.h >>conftest.$ac_ext
3520cat >>conftest.$ac_ext <<_ACEOF
3521/* end confdefs.h. */
3522#ifdef __STDC__
3523# include <limits.h>
3524#else
3525# include <assert.h>
3526#endif
3527 Syntax error
3528_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003529if { (ac_try="$ac_cpp conftest.$ac_ext"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
3534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003541 (exit $ac_status); } >/dev/null; then
3542 if test -s conftest.err; then
3543 ac_cpp_err=$ac_c_preproc_warn_flag
3544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3545 else
3546 ac_cpp_err=
3547 fi
3548else
3549 ac_cpp_err=yes
3550fi
3551if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552 :
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558continue
3559fi
Reid Spencera773bd52006-08-04 18:18:08 +00003560
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003561rm -f conftest.err conftest.$ac_ext
3562
Reid Spencera773bd52006-08-04 18:18:08 +00003563 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h. */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h. */
3571#include <ac_nonexistent.h>
3572_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003585 (exit $ac_status); } >/dev/null; then
3586 if test -s conftest.err; then
3587 ac_cpp_err=$ac_c_preproc_warn_flag
3588 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3589 else
3590 ac_cpp_err=
3591 fi
3592else
3593 ac_cpp_err=yes
3594fi
3595if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003596 # Broken: success on invalid input.
3597continue
3598else
3599 echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602 # Passes both tests.
3603ac_preproc_ok=:
3604break
3605fi
Reid Spencera773bd52006-08-04 18:18:08 +00003606
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003607rm -f conftest.err conftest.$ac_ext
3608
3609done
3610# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611rm -f conftest.err conftest.$ac_ext
3612if $ac_preproc_ok; then
3613 break
3614fi
3615
3616 done
3617 ac_cv_prog_CPP=$CPP
3618
3619fi
3620 CPP=$ac_cv_prog_CPP
3621else
3622 ac_cv_prog_CPP=$CPP
3623fi
Reid Spencera773bd52006-08-04 18:18:08 +00003624{ echo "$as_me:$LINENO: result: $CPP" >&5
3625echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626ac_preproc_ok=false
3627for ac_c_preproc_warn_flag in '' yes
3628do
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat >conftest.$ac_ext <<_ACEOF
3636/* confdefs.h. */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h. */
3641#ifdef __STDC__
3642# include <limits.h>
3643#else
3644# include <assert.h>
3645#endif
3646 Syntax error
3647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003648if { (ac_try="$ac_cpp conftest.$ac_ext"
3649case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652esac
3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003655 ac_status=$?
3656 grep -v '^ *+' conftest.er1 >conftest.err
3657 rm -f conftest.er1
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003660 (exit $ac_status); } >/dev/null; then
3661 if test -s conftest.err; then
3662 ac_cpp_err=$ac_c_preproc_warn_flag
3663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3664 else
3665 ac_cpp_err=
3666 fi
3667else
3668 ac_cpp_err=yes
3669fi
3670if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003671 :
3672else
3673 echo "$as_me: failed program was:" >&5
3674sed 's/^/| /' conftest.$ac_ext >&5
3675
3676 # Broken: fails on valid input.
3677continue
3678fi
Reid Spencera773bd52006-08-04 18:18:08 +00003679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003680rm -f conftest.err conftest.$ac_ext
3681
Reid Spencera773bd52006-08-04 18:18:08 +00003682 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003683 # can be detected and how.
3684 cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h. */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h. */
3690#include <ac_nonexistent.h>
3691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003692if { (ac_try="$ac_cpp conftest.$ac_ext"
3693case "(($ac_try" in
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3696esac
3697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003699 ac_status=$?
3700 grep -v '^ *+' conftest.er1 >conftest.err
3701 rm -f conftest.er1
3702 cat conftest.err >&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003704 (exit $ac_status); } >/dev/null; then
3705 if test -s conftest.err; then
3706 ac_cpp_err=$ac_c_preproc_warn_flag
3707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3708 else
3709 ac_cpp_err=
3710 fi
3711else
3712 ac_cpp_err=yes
3713fi
3714if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003715 # Broken: success on invalid input.
3716continue
3717else
3718 echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721 # Passes both tests.
3722ac_preproc_ok=:
3723break
3724fi
Reid Spencera773bd52006-08-04 18:18:08 +00003725
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003726rm -f conftest.err conftest.$ac_ext
3727
3728done
3729# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3730rm -f conftest.err conftest.$ac_ext
3731if $ac_preproc_ok; then
3732 :
3733else
3734 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3735See \`config.log' for more details." >&5
3736echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3737See \`config.log' for more details." >&2;}
3738 { (exit 1); exit 1; }; }
3739fi
3740
John Criswell7a73b802003-06-30 21:59:07 +00003741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
John Criswell7a73b802003-06-30 21:59:07 +00003747
Reid Spencera773bd52006-08-04 18:18:08 +00003748{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3749echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003750if test "${ac_cv_path_GREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
Reid Spencera773bd52006-08-04 18:18:08 +00003753 # Extract the first word of "grep ggrep" to use in msg output
3754if test -z "$GREP"; then
3755set dummy grep ggrep; ac_prog_name=$2
3756if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
Reid Spencera773bd52006-08-04 18:18:08 +00003759 ac_path_GREP_found=false
3760# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003766 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003767 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003768 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003769 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003770 # Check for GNU ac_path_GREP and select it if it is found.
3771 # Check for GNU $ac_path_GREP
3772case `"$ac_path_GREP" --version 2>&1` in
3773*GNU*)
3774 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3775*)
3776 ac_count=0
3777 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3778 while :
3779 do
3780 cat "conftest.in" "conftest.in" >"conftest.tmp"
3781 mv "conftest.tmp" "conftest.in"
3782 cp "conftest.in" "conftest.nl"
3783 echo 'GREP' >> "conftest.nl"
3784 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3786 ac_count=`expr $ac_count + 1`
3787 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3788 # Best one so far, save it but keep looking for a better one
3789 ac_cv_path_GREP="$ac_path_GREP"
3790 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003791 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003792 # 10*(2^10) chars as input seems more than enough
3793 test $ac_count -gt 10 && break
3794 done
3795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3796esac
3797
3798
3799 $ac_path_GREP_found && break 3
3800 done
3801done
3802
3803done
3804IFS=$as_save_IFS
3805
3806
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003807fi
Reid Spencera773bd52006-08-04 18:18:08 +00003808
3809GREP="$ac_cv_path_GREP"
3810if test -z "$GREP"; then
3811 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3812echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3813 { (exit 1); exit 1; }; }
3814fi
3815
3816else
3817 ac_cv_path_GREP=$GREP
3818fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003819
John Criswell7a73b802003-06-30 21:59:07 +00003820
Reid Spencera773bd52006-08-04 18:18:08 +00003821fi
3822{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3823echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3824 GREP="$ac_cv_path_GREP"
3825
3826
3827{ echo "$as_me:$LINENO: checking for egrep" >&5
3828echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3829if test "${ac_cv_path_EGREP+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3831else
3832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3833 then ac_cv_path_EGREP="$GREP -E"
3834 else
3835 # Extract the first word of "egrep" to use in msg output
3836if test -z "$EGREP"; then
3837set dummy egrep; ac_prog_name=$2
3838if test "${ac_cv_path_EGREP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 ac_path_EGREP_found=false
3842# Loop through the user's path and test for each of PROGNAME-LIST
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003851 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854case `"$ac_path_EGREP" --version 2>&1` in
3855*GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3857*)
3858 ac_count=0
3859 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3860 while :
3861 do
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 ac_count=`expr $ac_count + 1`
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3873 fi
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878esac
3879
3880
3881 $ac_path_EGREP_found && break 3
3882 done
3883done
3884
3885done
3886IFS=$as_save_IFS
3887
3888
3889fi
3890
3891EGREP="$ac_cv_path_EGREP"
3892if test -z "$EGREP"; then
3893 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3894echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3895 { (exit 1); exit 1; }; }
3896fi
3897
3898else
3899 ac_cv_path_EGREP=$EGREP
3900fi
3901
3902
3903 fi
3904fi
3905{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3906echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3907 EGREP="$ac_cv_path_EGREP"
3908
3909
3910{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3911echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003912if test "${ac_cv_header_stdc+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3914else
3915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003916/* confdefs.h. */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003921#include <stdlib.h>
3922#include <stdarg.h>
3923#include <string.h>
3924#include <float.h>
3925
John Criswell0c38eaf2003-09-10 15:17:25 +00003926int
3927main ()
3928{
3929
3930 ;
3931 return 0;
3932}
John Criswell7a73b802003-06-30 21:59:07 +00003933_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003934rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003935if { (ac_try="$ac_compile"
3936case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003943 grep -v '^ *+' conftest.er1 >conftest.err
3944 rm -f conftest.er1
3945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003947 (exit $ac_status); } &&
3948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3949 { (case "(($ac_try" in
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3952esac
3953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_try") 2>&5
3955 ac_status=$?
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); }; } &&
3958 { ac_try='test -s conftest.$ac_objext'
3959 { (case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003968 ac_cv_header_stdc=yes
3969else
3970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003971sed 's/^/| /' conftest.$ac_ext >&5
3972
Reid Spencera773bd52006-08-04 18:18:08 +00003973 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003974fi
Reid Spencera773bd52006-08-04 18:18:08 +00003975
3976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003977
3978if test $ac_cv_header_stdc = yes; then
3979 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3980 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003981/* confdefs.h. */
3982_ACEOF
3983cat confdefs.h >>conftest.$ac_ext
3984cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003986#include <string.h>
3987
3988_ACEOF
3989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003990 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003991 :
3992else
3993 ac_cv_header_stdc=no
3994fi
3995rm -f conftest*
3996
3997fi
3998
3999if test $ac_cv_header_stdc = yes; then
4000 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004002/* confdefs.h. */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004007#include <stdlib.h>
4008
4009_ACEOF
4010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004011 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004012 :
4013else
4014 ac_cv_header_stdc=no
4015fi
4016rm -f conftest*
4017
4018fi
4019
4020if test $ac_cv_header_stdc = yes; then
4021 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022 if test "$cross_compiling" = yes; then
4023 :
4024else
4025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004026/* confdefs.h. */
4027_ACEOF
4028cat confdefs.h >>conftest.$ac_ext
4029cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004031#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00004032#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00004033#if ((' ' & 0x0FF) == 0x020)
4034# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4036#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004037# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004038 (('a' <= (c) && (c) <= 'i') \
4039 || ('j' <= (c) && (c) <= 'r') \
4040 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004041# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4042#endif
4043
4044#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4045int
4046main ()
4047{
4048 int i;
4049 for (i = 0; i < 256; i++)
4050 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004051 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00004052 return 2;
4053 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004054}
4055_ACEOF
4056rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004057if { (ac_try="$ac_link"
4058case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004067 { (case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070esac
4071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4072 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004073 ac_status=$?
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); }; }; then
4076 :
4077else
4078 echo "$as_me: program exited with status $ac_status" >&5
4079echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004080sed 's/^/| /' conftest.$ac_ext >&5
4081
John Criswell7a73b802003-06-30 21:59:07 +00004082( exit $ac_status )
4083ac_cv_header_stdc=no
4084fi
Reid Spencera773bd52006-08-04 18:18:08 +00004085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4086fi
4087
4088
John Criswell7a73b802003-06-30 21:59:07 +00004089fi
4090fi
Reid Spencera773bd52006-08-04 18:18:08 +00004091{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4092echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004093if test $ac_cv_header_stdc = yes; then
4094
4095cat >>confdefs.h <<\_ACEOF
4096#define STDC_HEADERS 1
4097_ACEOF
4098
4099fi
4100
Reid Spencera773bd52006-08-04 18:18:08 +00004101# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4112 inttypes.h stdint.h unistd.h
4113do
4114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4115{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4117if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 cat >conftest.$ac_ext <<_ACEOF
4121/* confdefs.h. */
4122_ACEOF
4123cat confdefs.h >>conftest.$ac_ext
4124cat >>conftest.$ac_ext <<_ACEOF
4125/* end confdefs.h. */
4126$ac_includes_default
4127
4128#include <$ac_header>
4129_ACEOF
4130rm -f conftest.$ac_objext
4131if { (ac_try="$ac_compile"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4151 ac_status=$?
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004164 eval "$as_ac_Header=yes"
4165else
4166 echo "$as_me: failed program was:" >&5
4167sed 's/^/| /' conftest.$ac_ext >&5
4168
4169 eval "$as_ac_Header=no"
4170fi
4171
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174ac_res=`eval echo '${'$as_ac_Header'}'`
4175 { echo "$as_me:$LINENO: result: $ac_res" >&5
4176echo "${ECHO_T}$ac_res" >&6; }
4177if test `eval echo '${'$as_ac_Header'}'` = yes; then
4178 cat >>confdefs.h <<_ACEOF
4179#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4180_ACEOF
4181
4182fi
4183
4184done
4185
4186
4187{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4188echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4189if test "${ac_cv_c_bigendian+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 # See if sys/param.h defines the BYTE_ORDER macro.
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199#include <sys/types.h>
4200#include <sys/param.h>
4201
4202int
4203main ()
4204{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004205#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004206 bogus endian macros
4207#endif
4208
4209 ;
4210 return 0;
4211}
4212_ACEOF
4213rm -f conftest.$ac_objext
4214if { (ac_try="$ac_compile"
4215case "(($ac_try" in
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4218esac
4219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4220 (eval "$ac_compile") 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4234 ac_status=$?
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; } &&
4237 { ac_try='test -s conftest.$ac_objext'
4238 { (case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_try") 2>&5
4244 ac_status=$?
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004247 # It does; now see whether it defined to BIG_ENDIAN or not.
4248cat >conftest.$ac_ext <<_ACEOF
4249/* confdefs.h. */
4250_ACEOF
4251cat confdefs.h >>conftest.$ac_ext
4252cat >>conftest.$ac_ext <<_ACEOF
4253/* end confdefs.h. */
4254#include <sys/types.h>
4255#include <sys/param.h>
4256
4257int
4258main ()
4259{
4260#if BYTE_ORDER != BIG_ENDIAN
4261 not big endian
4262#endif
4263
4264 ;
4265 return 0;
4266}
4267_ACEOF
4268rm -f conftest.$ac_objext
4269if { (ac_try="$ac_compile"
4270case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273esac
4274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_compile") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004281 (exit $ac_status); } &&
4282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004302 ac_cv_c_bigendian=yes
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307 ac_cv_c_bigendian=no
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311else
4312 echo "$as_me: failed program was:" >&5
4313sed 's/^/| /' conftest.$ac_ext >&5
4314
4315 # It does not; compile a test program.
4316if test "$cross_compiling" = yes; then
4317 # try to guess the endianness by grepping values into an object file
4318 ac_cv_c_bigendian=unknown
4319 cat >conftest.$ac_ext <<_ACEOF
4320/* confdefs.h. */
4321_ACEOF
4322cat confdefs.h >>conftest.$ac_ext
4323cat >>conftest.$ac_ext <<_ACEOF
4324/* end confdefs.h. */
4325short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4326short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4327void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4328short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4329short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4330void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4331int
4332main ()
4333{
4334 _ascii (); _ebcdic ();
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339rm -f conftest.$ac_objext
4340if { (ac_try="$ac_compile"
4341case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4344esac
4345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_compile") 2>conftest.er1
4347 ac_status=$?
4348 grep -v '^ *+' conftest.er1 >conftest.err
4349 rm -f conftest.er1
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_try") 2>&5
4360 ac_status=$?
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367esac
4368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_try") 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004373 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4374 ac_cv_c_bigendian=yes
4375fi
4376if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4377 if test "$ac_cv_c_bigendian" = unknown; then
4378 ac_cv_c_bigendian=no
4379 else
4380 # finding both strings is unlikely to happen, but who knows?
4381 ac_cv_c_bigendian=unknown
4382 fi
4383fi
4384else
4385 echo "$as_me: failed program was:" >&5
4386sed 's/^/| /' conftest.$ac_ext >&5
4387
4388
4389fi
4390
4391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392else
4393 cat >conftest.$ac_ext <<_ACEOF
4394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
4399$ac_includes_default
4400int
4401main ()
4402{
4403
4404 /* Are we little or big endian? From Harbison&Steele. */
4405 union
4406 {
4407 long int l;
4408 char c[sizeof (long int)];
4409 } u;
4410 u.l = 1;
4411 return u.c[sizeof (long int) - 1] == 1;
4412
4413 ;
4414 return 0;
4415}
4416_ACEOF
4417rm -f conftest$ac_exeext
4418if { (ac_try="$ac_link"
4419case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422esac
4423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_link") 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4428 { (case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_try") 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_cv_c_bigendian=no
4438else
4439 echo "$as_me: program exited with status $ac_status" >&5
4440echo "$as_me: failed program was:" >&5
4441sed 's/^/| /' conftest.$ac_ext >&5
4442
4443( exit $ac_status )
4444ac_cv_c_bigendian=yes
4445fi
4446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4447fi
4448
4449
4450fi
4451
4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453fi
4454{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4455echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4456case $ac_cv_c_bigendian in
4457 yes)
4458 ENDIAN=big
4459 ;;
4460 no)
4461 ENDIAN=little
4462 ;;
4463 *)
4464 { { echo "$as_me:$LINENO: error: unknown endianness
4465presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4466echo "$as_me: error: unknown endianness
4467presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4468 { (exit 1); exit 1; }; } ;;
4469esac
4470
4471
4472if test "$cross_compiling" = yes; then
4473 LLVM_CROSS_COMPILING=1
4474
4475
4476{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4477echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4478if test "${ac_cv_build_exeext+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480else
4481 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4482 ac_cv_build_exeext=.exe
4483else
4484 ac_build_prefix=${build_alias}-
4485
4486 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4487set dummy ${ac_build_prefix}gcc; ac_word=$2
4488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 if test -n "$BUILD_CC"; then
4494 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4495else
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 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507done
4508done
4509IFS=$as_save_IFS
4510
4511fi
4512fi
4513BUILD_CC=$ac_cv_prog_BUILD_CC
4514if test -n "$BUILD_CC"; then
4515 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4516echo "${ECHO_T}$BUILD_CC" >&6; }
4517else
4518 { echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6; }
4520fi
4521
4522
4523 if test -z "$BUILD_CC"; then
4524 # Extract the first word of "gcc", so it can be a program name with args.
4525set dummy gcc; ac_word=$2
4526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531 if test -n "$BUILD_CC"; then
4532 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4533else
4534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535for as_dir in $PATH
4536do
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004540 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 +00004541 ac_cv_prog_BUILD_CC="gcc"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4544 fi
4545done
4546done
4547IFS=$as_save_IFS
4548
4549fi
4550fi
4551BUILD_CC=$ac_cv_prog_BUILD_CC
4552if test -n "$BUILD_CC"; then
4553 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4554echo "${ECHO_T}$BUILD_CC" >&6; }
4555else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557echo "${ECHO_T}no" >&6; }
4558fi
4559
4560
4561 if test -z "$BUILD_CC"; then
4562 # Extract the first word of "cc", so it can be a program name with args.
4563set dummy cc; ac_word=$2
4564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 if test -n "$BUILD_CC"; then
4570 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4571else
4572 ac_prog_rejected=no
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004579 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 +00004580 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4581 ac_prog_rejected=yes
4582 continue
4583 fi
4584 ac_cv_prog_BUILD_CC="cc"
4585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4586 break 2
4587 fi
4588done
4589done
4590IFS=$as_save_IFS
4591
4592if test $ac_prog_rejected = yes; then
4593 # We found a bogon in the path, so make sure we never use it.
4594 set dummy $ac_cv_prog_BUILD_CC
4595 shift
4596 if test $# != 0; then
4597 # We chose a different compiler from the bogus one.
4598 # However, it has the same basename, so the bogon will be chosen
4599 # first if we set BUILD_CC to just the basename; use the full file name.
4600 shift
4601 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4602 fi
4603fi
4604fi
4605fi
4606BUILD_CC=$ac_cv_prog_BUILD_CC
4607if test -n "$BUILD_CC"; then
4608 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4609echo "${ECHO_T}$BUILD_CC" >&6; }
4610else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6; }
4613fi
4614
4615
4616 fi
4617 fi
4618 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4619echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4620 { (exit 1); exit 1; }; }
4621 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4622 rm -f conftest*
4623 echo 'int main () { return 0; }' > conftest.$ac_ext
4624 ac_cv_build_exeext=
4625 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4626 (eval $ac_build_link) 2>&5
4627 ac_status=$?
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); }; then
4630 for file in conftest.*; do
4631 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004632 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004633 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4634 esac
4635 done
4636 else
4637 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4638echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4639 { (exit 1); exit 1; }; }
4640 fi
4641 rm -f conftest*
4642 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4643fi
4644fi
4645
4646BUILD_EXEEXT=""
4647test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4648{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4649echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4650ac_build_exeext=$BUILD_EXEEXT
4651
Jim Grosbach673612e2008-10-02 22:56:44 +00004652 ac_build_prefix=${build_alias}-
4653 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4654set dummy ${ac_build_prefix}g++; ac_word=$2
4655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4657if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660 if test -n "$BUILD_CXX"; then
4661 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4662else
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 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678fi
4679fi
4680BUILD_CXX=$ac_cv_prog_BUILD_CXX
4681if test -n "$BUILD_CXX"; then
4682 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4683echo "${ECHO_T}$BUILD_CXX" >&6; }
4684else
4685 { echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6; }
4687fi
4688
4689
4690 if test -z "$BUILD_CXX"; then
4691 # Extract the first word of "g++", so it can be a program name with args.
4692set dummy g++; ac_word=$2
4693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698 if test -n "$BUILD_CXX"; then
4699 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004707 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 +00004708 ac_cv_prog_BUILD_CXX="g++"
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4711 fi
4712done
4713done
4714IFS=$as_save_IFS
4715
4716fi
4717fi
4718BUILD_CXX=$ac_cv_prog_BUILD_CXX
4719if test -n "$BUILD_CXX"; then
4720 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4721echo "${ECHO_T}$BUILD_CXX" >&6; }
4722else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6; }
4725fi
4726
4727
4728 if test -z "$BUILD_CXX"; then
4729 # Extract the first word of "c++", so it can be a program name with args.
4730set dummy c++; ac_word=$2
4731{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4733if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4735else
4736 if test -n "$BUILD_CXX"; then
4737 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4738else
4739 ac_prog_rejected=no
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004746 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 +00004747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4748 ac_prog_rejected=yes
4749 continue
4750 fi
4751 ac_cv_prog_BUILD_CXX="c++"
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4754 fi
4755done
4756done
4757IFS=$as_save_IFS
4758
4759if test $ac_prog_rejected = yes; then
4760 # We found a bogon in the path, so make sure we never use it.
4761 set dummy $ac_cv_prog_BUILD_CXX
4762 shift
4763 if test $# != 0; then
4764 # We chose a different compiler from the bogus one.
4765 # However, it has the same basename, so the bogon will be chosen
4766 # first if we set BUILD_CXX to just the basename; use the full file name.
4767 shift
4768 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4769 fi
4770fi
4771fi
4772fi
4773BUILD_CXX=$ac_cv_prog_BUILD_CXX
4774if test -n "$BUILD_CXX"; then
4775 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4776echo "${ECHO_T}$BUILD_CXX" >&6; }
4777else
4778 { echo "$as_me:$LINENO: result: no" >&5
4779echo "${ECHO_T}no" >&6; }
4780fi
4781
4782
4783 fi
4784 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004785else
4786 LLVM_CROSS_COMPILING=0
4787
4788fi
4789
Reid Spencer0b1e4662007-04-02 15:41:39 +00004790if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004791 cvsbuild="yes"
4792 optimize="no"
4793 CVSBUILD=CVSBUILD=1
4794
4795else
4796 cvsbuild="no"
4797 optimize="yes"
4798fi
4799
4800
4801# Check whether --enable-optimized was given.
4802if test "${enable_optimized+set}" = set; then
4803 enableval=$enable_optimized;
4804else
4805 enableval=$optimize
4806fi
4807
4808if test ${enableval} = "no" ; then
4809 ENABLE_OPTIMIZED=
4810
4811else
4812 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4813
4814fi
4815
4816# Check whether --enable-assertions was given.
4817if test "${enable_assertions+set}" = set; then
4818 enableval=$enable_assertions;
4819else
4820 enableval="yes"
4821fi
4822
4823if test ${enableval} = "yes" ; then
4824 DISABLE_ASSERTIONS=
4825
4826else
4827 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4828
4829fi
4830
David Greenea696d242007-06-28 19:36:08 +00004831# Check whether --enable-expensive-checks was given.
4832if test "${enable_expensive_checks+set}" = set; then
4833 enableval=$enable_expensive_checks;
4834else
4835 enableval="no"
4836fi
4837
4838if test ${enableval} = "yes" ; then
4839 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4840
4841 EXPENSIVE_CHECKS=yes
4842
4843else
4844 ENABLE_EXPENSIVE_CHECKS=
4845
4846 EXPENSIVE_CHECKS=no
4847
4848fi
4849
Reid Spencer8b2e1412006-11-17 03:32:33 +00004850# Check whether --enable-debug-runtime was given.
4851if test "${enable_debug_runtime+set}" = set; then
4852 enableval=$enable_debug_runtime;
4853else
4854 enableval=no
4855fi
4856
4857if test ${enableval} = "no" ; then
4858 DEBUG_RUNTIME=
4859
4860else
4861 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4862
4863fi
4864
Reid Spencera773bd52006-08-04 18:18:08 +00004865# Check whether --enable-jit was given.
4866if test "${enable_jit+set}" = set; then
4867 enableval=$enable_jit;
4868else
4869 enableval=default
4870fi
4871
4872if test ${enableval} = "no"
4873then
4874 JIT=
4875
4876else
4877 case "$llvm_cv_target_arch" in
4878 x86) TARGET_HAS_JIT=1
4879 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004880 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004881 ;;
4882 PowerPC) TARGET_HAS_JIT=1
4883 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004884 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004885 ;;
4886 Alpha) TARGET_HAS_JIT=1
4887 ;;
4888 IA64) TARGET_HAS_JIT=0
4889 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004890 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004891 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004892 Mips) TARGET_HAS_JIT=0
4893 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004894 PIC16) TARGET_HAS_JIT=0
4895 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004896 XCore) TARGET_HAS_JIT=0
4897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004898 *) TARGET_HAS_JIT=0
4899 ;;
4900 esac
4901fi
4902
4903# Check whether --enable-doxygen was given.
4904if test "${enable_doxygen+set}" = set; then
4905 enableval=$enable_doxygen;
4906else
4907 enableval=default
4908fi
4909
4910case "$enableval" in
4911 yes) ENABLE_DOXYGEN=1
4912 ;;
4913 no) ENABLE_DOXYGEN=0
4914 ;;
4915 default) ENABLE_DOXYGEN=0
4916 ;;
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4918echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4920esac
4921
4922# Check whether --enable-threads was given.
4923if test "${enable_threads+set}" = set; then
4924 enableval=$enable_threads;
4925else
Reid Spencer65c5d752006-11-05 17:08:18 +00004926 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004927fi
4928
4929case "$enableval" in
4930 yes) ENABLE_THREADS=1
4931 ;;
4932 no) ENABLE_THREADS=0
4933 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004934 default) ENABLE_THREADS=1
4935 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4937echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4939esac
4940
4941cat >>confdefs.h <<_ACEOF
4942#define ENABLE_THREADS $ENABLE_THREADS
4943_ACEOF
4944
4945
Reid Spencer89b0d992006-12-16 22:07:52 +00004946# Check whether --enable-pic was given.
4947if test "${enable_pic+set}" = set; then
4948 enableval=$enable_pic;
4949else
4950 enableval=default
4951fi
4952
4953case "$enableval" in
4954 yes) ENABLE_PIC=1
4955 ;;
4956 no) ENABLE_PIC=0
4957 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004958 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004959 ;;
4960 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4961echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4962 { (exit 1); exit 1; }; } ;;
4963esac
4964
4965cat >>confdefs.h <<_ACEOF
4966#define ENABLE_PIC $ENABLE_PIC
4967_ACEOF
4968
4969
Reid Spencera773bd52006-08-04 18:18:08 +00004970TARGETS_TO_BUILD=""
4971# Check whether --enable-targets was given.
4972if test "${enable_targets+set}" = set; then
4973 enableval=$enable_targets;
4974else
4975 enableval=all
4976fi
4977
4978case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004979 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004980 host-only)
4981 case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86" ;;
4983 x86_64) TARGETS_TO_BUILD="X86" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4987 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004988 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004989 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004991 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004992 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4996 esac
4997 ;;
4998 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4999 case "$a_target" in
5000 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5001 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5002 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5003 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5004 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5005 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00005006 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00005007 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00005008 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00005009 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00005010 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00005011 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5012 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00005013 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00005014 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5015echo "$as_me: error: Unrecognized target $a_target" >&2;}
5016 { (exit 1); exit 1; }; } ;;
5017 esac
5018 done
5019 ;;
5020esac
Reid Spencera773bd52006-08-04 18:18:08 +00005021TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5022
5023
Reid Spencer65c5d752006-11-05 17:08:18 +00005024# Check whether --enable-cbe-printf-a was given.
5025if test "${enable_cbe_printf_a+set}" = set; then
5026 enableval=$enable_cbe_printf_a;
5027else
5028 enableval=default
5029fi
5030
5031case "$enableval" in
5032 yes) ENABLE_CBE_PRINTF_A=1
5033 ;;
5034 no) ENABLE_CBE_PRINTF_A=0
5035 ;;
5036 default) ENABLE_CBE_PRINTF_A=1
5037 ;;
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5039echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5041esac
5042
5043cat >>confdefs.h <<_ACEOF
5044#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5045_ACEOF
5046
5047
Reid Spencera773bd52006-08-04 18:18:08 +00005048
5049# Check whether --with-llvmgccdir was given.
5050if test "${with_llvmgccdir+set}" = set; then
5051 withval=$with_llvmgccdir;
5052else
5053 withval=default
5054fi
5055
5056case "$withval" in
5057 default) WITH_LLVMGCCDIR=default ;;
5058 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5059 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5060echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5061 { (exit 1); exit 1; }; } ;;
5062esac
5063
5064
Devang Patel5d28b882007-12-04 22:54:47 +00005065# Check whether --with-llvmgcc was given.
5066if test "${with_llvmgcc+set}" = set; then
5067 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5068 WITH_LLVMGCCDIR=""
5069fi
5070
5071
5072
5073# Check whether --with-llvmgxx was given.
5074if test "${with_llvmgxx+set}" = set; then
5075 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5076 WITH_LLVMGCCDIR=""
5077fi
5078
5079
5080if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5081 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5082echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5083 { (exit 1); exit 1; }; };
5084fi
5085
5086if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5087 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5088echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5089 { (exit 1); exit 1; }; };
5090fi
5091
5092
Reid Spencera773bd52006-08-04 18:18:08 +00005093# Check whether --with-extra-options was given.
5094if test "${with_extra_options+set}" = set; then
5095 withval=$with_extra_options;
5096else
5097 withval=default
5098fi
5099
5100case "$withval" in
5101 default) EXTRA_OPTIONS= ;;
5102 *) EXTRA_OPTIONS=$withval ;;
5103esac
5104EXTRA_OPTIONS=$EXTRA_OPTIONS
5105
5106
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005107# Check whether --enable-bindings was given.
5108if test "${enable_bindings+set}" = set; then
5109 enableval=$enable_bindings;
5110else
5111 enableval=default
5112fi
5113
5114BINDINGS_TO_BUILD=""
5115case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005116 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005117 all ) BINDINGS_TO_BUILD="ocaml" ;;
5118 none | no) BINDINGS_TO_BUILD="" ;;
5119 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5120 case "$a_binding" in
5121 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5122 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5123echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5124 { (exit 1); exit 1; }; } ;;
5125 esac
5126 done
5127 ;;
5128esac
5129
Reid Spencera773bd52006-08-04 18:18:08 +00005130
Gordon Henriksenf0915682007-10-02 16:42:22 +00005131# Check whether --with-ocaml-libdir was given.
5132if test "${with_ocaml_libdir+set}" = set; then
5133 withval=$with_ocaml_libdir;
5134else
5135 withval=auto
5136fi
5137
5138case "$withval" in
5139 auto) with_ocaml_libdir="$withval" ;;
5140 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5141 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5142echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5143 { (exit 1); exit 1; }; } ;;
5144esac
5145
5146
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005147# Check whether --with-binutils-include was given.
5148if test "${with_binutils_include+set}" = set; then
5149 withval=$with_binutils_include;
5150else
5151 withval=default
5152fi
5153
5154case "$withval" in
5155 default) WITH_BINUTILS_INCDIR=default ;;
5156 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5157 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5158echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5159 { (exit 1); exit 1; }; } ;;
5160esac
5161if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5162 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5163
5164 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5165 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5166 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5167echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5168 { (exit 1); exit 1; }; };
5169 fi
5170fi
5171
5172
Reid Spencera773bd52006-08-04 18:18:08 +00005173ac_ext=c
5174ac_cpp='$CPP $CPPFLAGS'
5175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5179echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5180# On Suns, sometimes $CPP names a directory.
5181if test -n "$CPP" && test -d "$CPP"; then
5182 CPP=
5183fi
5184if test -z "$CPP"; then
5185 if test "${ac_cv_prog_CPP+set}" = set; then
5186 echo $ECHO_N "(cached) $ECHO_C" >&6
5187else
5188 # Double quotes because CPP needs to be expanded
5189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5190 do
5191 ac_preproc_ok=false
5192for ac_c_preproc_warn_flag in '' yes
5193do
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat >conftest.$ac_ext <<_ACEOF
5201/* confdefs.h. */
5202_ACEOF
5203cat confdefs.h >>conftest.$ac_ext
5204cat >>conftest.$ac_ext <<_ACEOF
5205/* end confdefs.h. */
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211 Syntax error
5212_ACEOF
5213if { (ac_try="$ac_cpp conftest.$ac_ext"
5214case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217esac
5218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005225 (exit $ac_status); } >/dev/null; then
5226 if test -s conftest.err; then
5227 ac_cpp_err=$ac_c_preproc_warn_flag
5228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5229 else
5230 ac_cpp_err=
5231 fi
5232else
5233 ac_cpp_err=yes
5234fi
5235if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005236 :
5237else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Broken: fails on valid input.
5242continue
5243fi
5244
5245rm -f conftest.err conftest.$ac_ext
5246
5247 # OK, works on sane cases. Now check whether nonexistent headers
5248 # can be detected and how.
5249 cat >conftest.$ac_ext <<_ACEOF
5250/* confdefs.h. */
5251_ACEOF
5252cat confdefs.h >>conftest.$ac_ext
5253cat >>conftest.$ac_ext <<_ACEOF
5254/* end confdefs.h. */
5255#include <ac_nonexistent.h>
5256_ACEOF
5257if { (ac_try="$ac_cpp conftest.$ac_ext"
5258case "(($ac_try" in
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5261esac
5262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005269 (exit $ac_status); } >/dev/null; then
5270 if test -s conftest.err; then
5271 ac_cpp_err=$ac_c_preproc_warn_flag
5272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5273 else
5274 ac_cpp_err=
5275 fi
5276else
5277 ac_cpp_err=yes
5278fi
5279if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005280 # Broken: success on invalid input.
5281continue
5282else
5283 echo "$as_me: failed program was:" >&5
5284sed 's/^/| /' conftest.$ac_ext >&5
5285
5286 # Passes both tests.
5287ac_preproc_ok=:
5288break
5289fi
5290
5291rm -f conftest.err conftest.$ac_ext
5292
5293done
5294# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5295rm -f conftest.err conftest.$ac_ext
5296if $ac_preproc_ok; then
5297 break
5298fi
5299
5300 done
5301 ac_cv_prog_CPP=$CPP
5302
5303fi
5304 CPP=$ac_cv_prog_CPP
5305else
5306 ac_cv_prog_CPP=$CPP
5307fi
5308{ echo "$as_me:$LINENO: result: $CPP" >&5
5309echo "${ECHO_T}$CPP" >&6; }
5310ac_preproc_ok=false
5311for ac_c_preproc_warn_flag in '' yes
5312do
5313 # Use a header file that comes with gcc, so configuring glibc
5314 # with a fresh cross-compiler works.
5315 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5316 # <limits.h> exists even on freestanding compilers.
5317 # On the NeXT, cc -E runs the code through the compiler's parser,
5318 # not just through cpp. "Syntax error" is here to catch this case.
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#ifdef __STDC__
5326# include <limits.h>
5327#else
5328# include <assert.h>
5329#endif
5330 Syntax error
5331_ACEOF
5332if { (ac_try="$ac_cpp conftest.$ac_ext"
5333case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336esac
5337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005344 (exit $ac_status); } >/dev/null; then
5345 if test -s conftest.err; then
5346 ac_cpp_err=$ac_c_preproc_warn_flag
5347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5348 else
5349 ac_cpp_err=
5350 fi
5351else
5352 ac_cpp_err=yes
5353fi
5354if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005355 :
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 # Broken: fails on valid input.
5361continue
5362fi
5363
5364rm -f conftest.err conftest.$ac_ext
5365
5366 # OK, works on sane cases. Now check whether nonexistent headers
5367 # can be detected and how.
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374#include <ac_nonexistent.h>
5375_ACEOF
5376if { (ac_try="$ac_cpp conftest.$ac_ext"
5377case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383 ac_status=$?
5384 grep -v '^ *+' conftest.er1 >conftest.err
5385 rm -f conftest.er1
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_c_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 else
5393 ac_cpp_err=
5394 fi
5395else
5396 ac_cpp_err=yes
5397fi
5398if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005399 # Broken: success on invalid input.
5400continue
5401else
5402 echo "$as_me: failed program was:" >&5
5403sed 's/^/| /' conftest.$ac_ext >&5
5404
5405 # Passes both tests.
5406ac_preproc_ok=:
5407break
5408fi
5409
5410rm -f conftest.err conftest.$ac_ext
5411
5412done
5413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5414rm -f conftest.err conftest.$ac_ext
5415if $ac_preproc_ok; then
5416 :
5417else
5418 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5419See \`config.log' for more details." >&5
5420echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5421See \`config.log' for more details." >&2;}
5422 { (exit 1); exit 1; }; }
5423fi
5424
5425ac_ext=c
5426ac_cpp='$CPP $CPPFLAGS'
5427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_c_compiler_gnu
5430
5431ac_ext=c
5432ac_cpp='$CPP $CPPFLAGS'
5433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436if test -n "$ac_tool_prefix"; then
5437 for ac_prog in gcc
5438 do
5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5443if test "${ac_cv_prog_CC+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446 if test -n "$CC"; then
5447 ac_cv_prog_CC="$CC" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
5454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005455 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 +00005456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
5460done
5461done
5462IFS=$as_save_IFS
5463
5464fi
5465fi
5466CC=$ac_cv_prog_CC
5467if test -n "$CC"; then
5468 { echo "$as_me:$LINENO: result: $CC" >&5
5469echo "${ECHO_T}$CC" >&6; }
5470else
5471 { echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6; }
5473fi
5474
5475
5476 test -n "$CC" && break
5477 done
5478fi
5479if test -z "$CC"; then
5480 ac_ct_CC=$CC
5481 for ac_prog in gcc
5482do
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484set dummy $ac_prog; ac_word=$2
5485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 if test -n "$ac_ct_CC"; then
5491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5492else
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005499 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 +00005500 ac_cv_prog_ac_ct_CC="$ac_prog"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504done
5505done
5506IFS=$as_save_IFS
5507
5508fi
5509fi
5510ac_ct_CC=$ac_cv_prog_ac_ct_CC
5511if test -n "$ac_ct_CC"; then
5512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5513echo "${ECHO_T}$ac_ct_CC" >&6; }
5514else
5515 { echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6; }
5517fi
5518
5519
5520 test -n "$ac_ct_CC" && break
5521done
5522
5523 if test "x$ac_ct_CC" = x; then
5524 CC=""
5525 else
5526 case $cross_compiling:$ac_tool_warned in
5527yes:)
5528{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5529whose name does not start with the host triplet. If you think this
5530configuration is useful to you, please write to autoconf@gnu.org." >&5
5531echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5532whose name does not start with the host triplet. If you think this
5533configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5534ac_tool_warned=yes ;;
5535esac
5536 CC=$ac_ct_CC
5537 fi
5538fi
5539
5540
5541test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5542See \`config.log' for more details." >&5
5543echo "$as_me: error: no acceptable C compiler found in \$PATH
5544See \`config.log' for more details." >&2;}
5545 { (exit 1); exit 1; }; }
5546
5547# Provide some information about the compiler.
5548echo "$as_me:$LINENO: checking for C compiler version" >&5
5549ac_compiler=`set X $ac_compile; echo $2`
5550{ (ac_try="$ac_compiler --version >&5"
5551case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compiler --version >&5") 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }
5560{ (ac_try="$ac_compiler -v >&5"
5561case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compiler -v >&5") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570{ (ac_try="$ac_compiler -V >&5"
5571case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compiler -V >&5") 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580
5581{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5582echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5583if test "${ac_cv_c_compiler_gnu+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */
5592
5593int
5594main ()
5595{
5596#ifndef __GNUC__
5597 choke me
5598#endif
5599
5600 ;
5601 return 0;
5602}
5603_ACEOF
5604rm -f conftest.$ac_objext
5605if { (ac_try="$ac_compile"
5606case "(($ac_try" in
5607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5609esac
5610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5612 ac_status=$?
5613 grep -v '^ *+' conftest.er1 >conftest.err
5614 rm -f conftest.er1
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005617 (exit $ac_status); } &&
5618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5619 { (case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622esac
5623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_try") 2>&5
5625 ac_status=$?
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); }; } &&
5628 { ac_try='test -s conftest.$ac_objext'
5629 { (case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_try") 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005638 ac_compiler_gnu=yes
5639else
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643 ac_compiler_gnu=no
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647ac_cv_c_compiler_gnu=$ac_compiler_gnu
5648
5649fi
5650{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5652GCC=`test $ac_compiler_gnu = yes && echo yes`
5653ac_test_CFLAGS=${CFLAGS+set}
5654ac_save_CFLAGS=$CFLAGS
5655{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5656echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5657if test "${ac_cv_prog_cc_g+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660 ac_save_c_werror_flag=$ac_c_werror_flag
5661 ac_c_werror_flag=yes
5662 ac_cv_prog_cc_g=no
5663 CFLAGS="-g"
5664 cat >conftest.$ac_ext <<_ACEOF
5665/* confdefs.h. */
5666_ACEOF
5667cat confdefs.h >>conftest.$ac_ext
5668cat >>conftest.$ac_ext <<_ACEOF
5669/* end confdefs.h. */
5670
5671int
5672main ()
5673{
5674
5675 ;
5676 return 0;
5677}
5678_ACEOF
5679rm -f conftest.$ac_objext
5680if { (ac_try="$ac_compile"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5687 ac_status=$?
5688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005713 ac_cv_prog_cc_g=yes
5714else
5715 echo "$as_me: failed program was:" >&5
5716sed 's/^/| /' conftest.$ac_ext >&5
5717
5718 CFLAGS=""
5719 cat >conftest.$ac_ext <<_ACEOF
5720/* confdefs.h. */
5721_ACEOF
5722cat confdefs.h >>conftest.$ac_ext
5723cat >>conftest.$ac_ext <<_ACEOF
5724/* end confdefs.h. */
5725
5726int
5727main ()
5728{
5729
5730 ;
5731 return 0;
5732}
5733_ACEOF
5734rm -f conftest.$ac_objext
5735if { (ac_try="$ac_compile"
5736case "(($ac_try" in
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5739esac
5740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5742 ac_status=$?
5743 grep -v '^ *+' conftest.er1 >conftest.err
5744 rm -f conftest.er1
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
5763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_try") 2>&5
5765 ac_status=$?
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005768 :
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_c_werror_flag=$ac_save_c_werror_flag
5774 CFLAGS="-g"
5775 cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781
5782int
5783main ()
5784{
5785
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005824 ac_cv_prog_cc_g=yes
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829
5830fi
5831
5832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833fi
5834
5835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5836fi
5837
5838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 ac_c_werror_flag=$ac_save_c_werror_flag
5840fi
5841{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5842echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5843if test "$ac_test_CFLAGS" = set; then
5844 CFLAGS=$ac_save_CFLAGS
5845elif test $ac_cv_prog_cc_g = yes; then
5846 if test "$GCC" = yes; then
5847 CFLAGS="-g -O2"
5848 else
5849 CFLAGS="-g"
5850 fi
5851else
5852 if test "$GCC" = yes; then
5853 CFLAGS="-O2"
5854 else
5855 CFLAGS=
5856 fi
5857fi
5858{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5859echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5860if test "${ac_cv_prog_cc_c89+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5862else
5863 ac_cv_prog_cc_c89=no
5864ac_save_CC=$CC
5865cat >conftest.$ac_ext <<_ACEOF
5866/* confdefs.h. */
5867_ACEOF
5868cat confdefs.h >>conftest.$ac_ext
5869cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */
5871#include <stdarg.h>
5872#include <stdio.h>
5873#include <sys/types.h>
5874#include <sys/stat.h>
5875/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5876struct buf { int x; };
5877FILE * (*rcsopen) (struct buf *, struct stat *, int);
5878static char *e (p, i)
5879 char **p;
5880 int i;
5881{
5882 return p[i];
5883}
5884static char *f (char * (*g) (char **, int), char **p, ...)
5885{
5886 char *s;
5887 va_list v;
5888 va_start (v,p);
5889 s = g (p, va_arg (v,int));
5890 va_end (v);
5891 return s;
5892}
5893
5894/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5895 function prototypes and stuff, but not '\xHH' hex character constants.
5896 These don't provoke an error unfortunately, instead are silently treated
5897 as 'x'. The following induces an error, until -std is added to get
5898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5899 array size at least. It's necessary to write '\x00'==0 to get something
5900 that's true only with -std. */
5901int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5902
5903/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5904 inside strings and character constants. */
5905#define FOO(x) 'x'
5906int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5907
5908int test (int i, double x);
5909struct s1 {int (*f) (int a);};
5910struct s2 {int (*f) (double a);};
5911int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5912int argc;
5913char **argv;
5914int
5915main ()
5916{
5917return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5924do
5925 CC="$ac_save_CC $ac_arg"
5926 rm -f conftest.$ac_objext
5927if { (ac_try="$ac_compile"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; } &&
5950 { ac_try='test -s conftest.$ac_objext'
5951 { (case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_try") 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005960 ac_cv_prog_cc_c89=$ac_arg
5961else
5962 echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5966fi
5967
5968rm -f core conftest.err conftest.$ac_objext
5969 test "x$ac_cv_prog_cc_c89" != "xno" && break
5970done
5971rm -f conftest.$ac_ext
5972CC=$ac_save_CC
5973
5974fi
5975# AC_CACHE_VAL
5976case "x$ac_cv_prog_cc_c89" in
5977 x)
5978 { echo "$as_me:$LINENO: result: none needed" >&5
5979echo "${ECHO_T}none needed" >&6; } ;;
5980 xno)
5981 { echo "$as_me:$LINENO: result: unsupported" >&5
5982echo "${ECHO_T}unsupported" >&6; } ;;
5983 *)
5984 CC="$CC $ac_cv_prog_cc_c89"
5985 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5986echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5987esac
5988
5989
5990ac_ext=c
5991ac_cpp='$CPP $CPPFLAGS'
5992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996ac_ext=cpp
5997ac_cpp='$CXXCPP $CPPFLAGS'
5998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6001if test -z "$CXX"; then
6002 if test -n "$CCC"; then
6003 CXX=$CCC
6004 else
6005 if test -n "$ac_tool_prefix"; then
6006 for ac_prog in g++
6007 do
6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6012if test "${ac_cv_prog_CXX+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015 if test -n "$CXX"; then
6016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006024 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 +00006025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029done
6030done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035CXX=$ac_cv_prog_CXX
6036if test -n "$CXX"; then
6037 { echo "$as_me:$LINENO: result: $CXX" >&5
6038echo "${ECHO_T}$CXX" >&6; }
6039else
6040 { echo "$as_me:$LINENO: result: no" >&5
6041echo "${ECHO_T}no" >&6; }
6042fi
6043
6044
6045 test -n "$CXX" && break
6046 done
6047fi
6048if test -z "$CXX"; then
6049 ac_ct_CXX=$CXX
6050 for ac_prog in g++
6051do
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053set dummy $ac_prog; ac_word=$2
6054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6056if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059 if test -n "$ac_ct_CXX"; then
6060 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006068 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 +00006069 ac_cv_prog_ac_ct_CXX="$ac_prog"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073done
6074done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6080if test -n "$ac_ct_CXX"; then
6081 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6082echo "${ECHO_T}$ac_ct_CXX" >&6; }
6083else
6084 { echo "$as_me:$LINENO: result: no" >&5
6085echo "${ECHO_T}no" >&6; }
6086fi
6087
6088
6089 test -n "$ac_ct_CXX" && break
6090done
6091
6092 if test "x$ac_ct_CXX" = x; then
6093 CXX="g++"
6094 else
6095 case $cross_compiling:$ac_tool_warned in
6096yes:)
6097{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6098whose name does not start with the host triplet. If you think this
6099configuration is useful to you, please write to autoconf@gnu.org." >&5
6100echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6101whose name does not start with the host triplet. If you think this
6102configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6103ac_tool_warned=yes ;;
6104esac
6105 CXX=$ac_ct_CXX
6106 fi
6107fi
6108
6109 fi
6110fi
6111# Provide some information about the compiler.
6112echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6113ac_compiler=`set X $ac_compile; echo $2`
6114{ (ac_try="$ac_compiler --version >&5"
6115case "(($ac_try" in
6116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6117 *) ac_try_echo=$ac_try;;
6118esac
6119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6120 (eval "$ac_compiler --version >&5") 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); }
6124{ (ac_try="$ac_compiler -v >&5"
6125case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_compiler -v >&5") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }
6134{ (ac_try="$ac_compiler -V >&5"
6135case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compiler -V >&5") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }
6144
6145{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6146echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6147if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150 cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156
6157int
6158main ()
6159{
6160#ifndef __GNUC__
6161 choke me
6162#endif
6163
6164 ;
6165 return 0;
6166}
6167_ACEOF
6168rm -f conftest.$ac_objext
6169if { (ac_try="$ac_compile"
6170case "(($ac_try" in
6171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172 *) ac_try_echo=$ac_try;;
6173esac
6174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175 (eval "$ac_compile") 2>conftest.er1
6176 ac_status=$?
6177 grep -v '^ *+' conftest.er1 >conftest.err
6178 rm -f conftest.er1
6179 cat conftest.err >&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006181 (exit $ac_status); } &&
6182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6183 { (case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186esac
6187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6188 (eval "$ac_try") 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_try") 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006202 ac_compiler_gnu=yes
6203else
6204 echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207 ac_compiler_gnu=no
6208fi
6209
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6212
6213fi
6214{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6215echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6216GXX=`test $ac_compiler_gnu = yes && echo yes`
6217ac_test_CXXFLAGS=${CXXFLAGS+set}
6218ac_save_CXXFLAGS=$CXXFLAGS
6219{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6220echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6221if test "${ac_cv_prog_cxx_g+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6225 ac_cxx_werror_flag=yes
6226 ac_cv_prog_cxx_g=no
6227 CXXFLAGS="-g"
6228 cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
6234
6235int
6236main ()
6237{
6238
6239 ;
6240 return 0;
6241}
6242_ACEOF
6243rm -f conftest.$ac_objext
6244if { (ac_try="$ac_compile"
6245case "(($ac_try" in
6246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6247 *) ac_try_echo=$ac_try;;
6248esac
6249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6251 ac_status=$?
6252 grep -v '^ *+' conftest.er1 >conftest.err
6253 rm -f conftest.er1
6254 cat conftest.err >&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006256 (exit $ac_status); } &&
6257 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6258 { (case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_try") 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (case "(($ac_try" in
6269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270 *) ac_try_echo=$ac_try;;
6271esac
6272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273 (eval "$ac_try") 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006277 ac_cv_prog_cxx_g=yes
6278else
6279 echo "$as_me: failed program was:" >&5
6280sed 's/^/| /' conftest.$ac_ext >&5
6281
6282 CXXFLAGS=""
6283 cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h. */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h. */
6289
6290int
6291main ()
6292{
6293
6294 ;
6295 return 0;
6296}
6297_ACEOF
6298rm -f conftest.$ac_objext
6299if { (ac_try="$ac_compile"
6300case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6306 ac_status=$?
6307 grep -v '^ *+' conftest.er1 >conftest.err
6308 rm -f conftest.er1
6309 cat conftest.err >&5
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006311 (exit $ac_status); } &&
6312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6313 { (case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_try") 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
6323 { (case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
6327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_try") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006332 :
6333else
6334 echo "$as_me: failed program was:" >&5
6335sed 's/^/| /' conftest.$ac_ext >&5
6336
6337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6338 CXXFLAGS="-g"
6339 cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345
6346int
6347main ()
6348{
6349
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (ac_try="$ac_compile"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006388 ac_cv_prog_cxx_g=yes
6389else
6390 echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393
6394fi
6395
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397fi
6398
6399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400fi
6401
6402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6404fi
6405{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6406echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6407if test "$ac_test_CXXFLAGS" = set; then
6408 CXXFLAGS=$ac_save_CXXFLAGS
6409elif test $ac_cv_prog_cxx_g = yes; then
6410 if test "$GXX" = yes; then
6411 CXXFLAGS="-g -O2"
6412 else
6413 CXXFLAGS="-g"
6414 fi
6415else
6416 if test "$GXX" = yes; then
6417 CXXFLAGS="-O2"
6418 else
6419 CXXFLAGS=
6420 fi
6421fi
6422ac_ext=c
6423ac_cpp='$CPP $CPPFLAGS'
6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
Reid Spencera773bd52006-08-04 18:18:08 +00006428
6429{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6430echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6431if test "${lt_cv_path_NM+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434 if test -n "$NM"; then
6435 # Let the user override the test.
6436 lt_cv_path_NM="$NM"
6437else
6438 lt_nm_to_check="${ac_tool_prefix}nm"
6439 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6440 lt_nm_to_check="$lt_nm_to_check nm"
6441 fi
6442 for lt_tmp_nm in $lt_nm_to_check; do
6443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6444 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6445 IFS="$lt_save_ifs"
6446 test -z "$ac_dir" && ac_dir=.
6447 tmp_nm="$ac_dir/$lt_tmp_nm"
6448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6449 # Check to see if the nm accepts a BSD-compat flag.
6450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6451 # nm: unknown option "B" ignored
6452 # Tru64's nm complains that /dev/null is an invalid object file
6453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6454 */dev/null* | *'Invalid file or object type'*)
6455 lt_cv_path_NM="$tmp_nm -B"
6456 break
6457 ;;
6458 *)
6459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6460 */dev/null*)
6461 lt_cv_path_NM="$tmp_nm -p"
6462 break
6463 ;;
6464 *)
6465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6466 continue # so that we can try to find one that supports BSD flags
6467 ;;
6468 esac
6469 ;;
6470 esac
6471 fi
6472 done
6473 IFS="$lt_save_ifs"
6474 done
6475 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6476fi
6477fi
6478{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6479echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6480NM="$lt_cv_path_NM"
6481
6482
6483
6484{ echo "$as_me:$LINENO: checking for GNU make" >&5
6485echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6486if test "${llvm_cv_gnu_make_command+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6488else
6489 llvm_cv_gnu_make_command=''
6490 for a in "$MAKE" make gmake gnumake ; do
6491 if test -z "$a" ; then continue ; fi ;
6492 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6493 then
6494 llvm_cv_gnu_make_command=$a ;
6495 break;
6496 fi
6497 done
6498fi
6499{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6500echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6501 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6502 ifGNUmake='' ;
6503 else
6504 ifGNUmake='#' ;
6505 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6506echo "${ECHO_T}\"Not found\"" >&6; };
6507 fi
6508
6509
6510{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6511echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6512LN_S=$as_ln_s
6513if test "$LN_S" = "ln -s"; then
6514 { echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6; }
6516else
6517 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6518echo "${ECHO_T}no, using $LN_S" >&6; }
6519fi
6520
6521# Extract the first word of "cmp", so it can be a program name with args.
6522set dummy cmp; ac_word=$2
6523{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525if test "${ac_cv_path_CMP+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527else
6528 case $CMP in
6529 [\\/]* | ?:[\\/]*)
6530 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6531 ;;
6532 *)
6533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006539 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 +00006540 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544done
6545done
6546IFS=$as_save_IFS
6547
6548 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6549 ;;
6550esac
6551fi
6552CMP=$ac_cv_path_CMP
6553if test -n "$CMP"; then
6554 { echo "$as_me:$LINENO: result: $CMP" >&5
6555echo "${ECHO_T}$CMP" >&6; }
6556else
6557 { echo "$as_me:$LINENO: result: no" >&5
6558echo "${ECHO_T}no" >&6; }
6559fi
6560
6561
6562# Extract the first word of "cp", so it can be a program name with args.
6563set dummy cp; ac_word=$2
6564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566if test "${ac_cv_path_CP+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6568else
6569 case $CP in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006580 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 +00006581 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585done
6586done
6587IFS=$as_save_IFS
6588
6589 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6590 ;;
6591esac
6592fi
6593CP=$ac_cv_path_CP
6594if test -n "$CP"; then
6595 { echo "$as_me:$LINENO: result: $CP" >&5
6596echo "${ECHO_T}$CP" >&6; }
6597else
6598 { echo "$as_me:$LINENO: result: no" >&5
6599echo "${ECHO_T}no" >&6; }
6600fi
6601
6602
6603# Extract the first word of "date", so it can be a program name with args.
6604set dummy date; ac_word=$2
6605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607if test "${ac_cv_path_DATE+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 case $DATE in
6611 [\\/]* | ?:[\\/]*)
6612 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6613 ;;
6614 *)
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618 IFS=$as_save_IFS
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006621 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 +00006622 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626done
6627done
6628IFS=$as_save_IFS
6629
6630 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6631 ;;
6632esac
6633fi
6634DATE=$ac_cv_path_DATE
6635if test -n "$DATE"; then
6636 { echo "$as_me:$LINENO: result: $DATE" >&5
6637echo "${ECHO_T}$DATE" >&6; }
6638else
6639 { echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6; }
6641fi
6642
6643
6644# Extract the first word of "find", so it can be a program name with args.
6645set dummy find; ac_word=$2
6646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648if test "${ac_cv_path_FIND+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651 case $FIND in
6652 [\\/]* | ?:[\\/]*)
6653 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6654 ;;
6655 *)
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657for as_dir in $PATH
6658do
6659 IFS=$as_save_IFS
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006662 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 +00006663 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6665 break 2
6666 fi
6667done
6668done
6669IFS=$as_save_IFS
6670
6671 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6672 ;;
6673esac
6674fi
6675FIND=$ac_cv_path_FIND
6676if test -n "$FIND"; then
6677 { echo "$as_me:$LINENO: result: $FIND" >&5
6678echo "${ECHO_T}$FIND" >&6; }
6679else
6680 { echo "$as_me:$LINENO: result: no" >&5
6681echo "${ECHO_T}no" >&6; }
6682fi
6683
6684
6685# Extract the first word of "grep", so it can be a program name with args.
6686set dummy grep; ac_word=$2
6687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689if test "${ac_cv_path_GREP+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691else
6692 case $GREP in
6693 [\\/]* | ?:[\\/]*)
6694 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6695 ;;
6696 *)
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006703 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 +00006704 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709done
6710IFS=$as_save_IFS
6711
6712 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6713 ;;
6714esac
6715fi
6716GREP=$ac_cv_path_GREP
6717if test -n "$GREP"; then
6718 { echo "$as_me:$LINENO: result: $GREP" >&5
6719echo "${ECHO_T}$GREP" >&6; }
6720else
6721 { echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6; }
6723fi
6724
6725
6726# Extract the first word of "mkdir", so it can be a program name with args.
6727set dummy mkdir; ac_word=$2
6728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6730if test "${ac_cv_path_MKDIR+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733 case $MKDIR in
6734 [\\/]* | ?:[\\/]*)
6735 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6736 ;;
6737 *)
6738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739for as_dir in $PATH
6740do
6741 IFS=$as_save_IFS
6742 test -z "$as_dir" && as_dir=.
6743 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006744 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 +00006745 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 break 2
6748 fi
6749done
6750done
6751IFS=$as_save_IFS
6752
6753 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6754 ;;
6755esac
6756fi
6757MKDIR=$ac_cv_path_MKDIR
6758if test -n "$MKDIR"; then
6759 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6760echo "${ECHO_T}$MKDIR" >&6; }
6761else
6762 { echo "$as_me:$LINENO: result: no" >&5
6763echo "${ECHO_T}no" >&6; }
6764fi
6765
6766
6767# Extract the first word of "mv", so it can be a program name with args.
6768set dummy mv; ac_word=$2
6769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771if test "${ac_cv_path_MV+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774 case $MV in
6775 [\\/]* | ?:[\\/]*)
6776 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6777 ;;
6778 *)
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006785 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 +00006786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
6792IFS=$as_save_IFS
6793
6794 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6795 ;;
6796esac
6797fi
6798MV=$ac_cv_path_MV
6799if test -n "$MV"; then
6800 { echo "$as_me:$LINENO: result: $MV" >&5
6801echo "${ECHO_T}$MV" >&6; }
6802else
6803 { echo "$as_me:$LINENO: result: no" >&5
6804echo "${ECHO_T}no" >&6; }
6805fi
6806
6807
6808if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6810set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_prog_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 if test -n "$RANLIB"; then
6817 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006825 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 +00006826 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836RANLIB=$ac_cv_prog_RANLIB
6837if test -n "$RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6839echo "${ECHO_T}$RANLIB" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845
6846fi
6847if test -z "$ac_cv_prog_RANLIB"; then
6848 ac_ct_RANLIB=$RANLIB
6849 # Extract the first word of "ranlib", so it can be a program name with args.
6850set dummy ranlib; ac_word=$2
6851{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6853if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6854 echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856 if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858else
6859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860for as_dir in $PATH
6861do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006865 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 +00006866 ac_cv_prog_ac_ct_RANLIB="ranlib"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870done
6871done
6872IFS=$as_save_IFS
6873
6874fi
6875fi
6876ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6877if test -n "$ac_ct_RANLIB"; then
6878 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6879echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6880else
6881 { echo "$as_me:$LINENO: result: no" >&5
6882echo "${ECHO_T}no" >&6; }
6883fi
6884
6885 if test "x$ac_ct_RANLIB" = x; then
6886 RANLIB=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889yes:)
6890{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6891whose name does not start with the host triplet. If you think this
6892configuration is useful to you, please write to autoconf@gnu.org." >&5
6893echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6894whose name does not start with the host triplet. If you think this
6895configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6896ac_tool_warned=yes ;;
6897esac
6898 RANLIB=$ac_ct_RANLIB
6899 fi
6900else
6901 RANLIB="$ac_cv_prog_RANLIB"
6902fi
6903
6904# Extract the first word of "rm", so it can be a program name with args.
6905set dummy rm; ac_word=$2
6906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908if test "${ac_cv_path_RM+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910else
6911 case $RM in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6914 ;;
6915 *)
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917for as_dir in $PATH
6918do
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006922 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 +00006923 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927done
6928done
6929IFS=$as_save_IFS
6930
6931 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6932 ;;
6933esac
6934fi
6935RM=$ac_cv_path_RM
6936if test -n "$RM"; then
6937 { echo "$as_me:$LINENO: result: $RM" >&5
6938echo "${ECHO_T}$RM" >&6; }
6939else
6940 { echo "$as_me:$LINENO: result: no" >&5
6941echo "${ECHO_T}no" >&6; }
6942fi
6943
6944
6945# Extract the first word of "sed", so it can be a program name with args.
6946set dummy sed; ac_word=$2
6947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949if test "${ac_cv_path_SED+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952 case $SED in
6953 [\\/]* | ?:[\\/]*)
6954 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6955 ;;
6956 *)
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006963 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 +00006964 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6967 fi
6968done
6969done
6970IFS=$as_save_IFS
6971
6972 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6973 ;;
6974esac
6975fi
6976SED=$ac_cv_path_SED
6977if test -n "$SED"; then
6978 { echo "$as_me:$LINENO: result: $SED" >&5
6979echo "${ECHO_T}$SED" >&6; }
6980else
6981 { echo "$as_me:$LINENO: result: no" >&5
6982echo "${ECHO_T}no" >&6; }
6983fi
6984
6985
6986# Extract the first word of "tar", so it can be a program name with args.
6987set dummy tar; ac_word=$2
6988{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990if test "${ac_cv_path_TAR+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992else
6993 case $TAR in
6994 [\\/]* | ?:[\\/]*)
6995 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6996 ;;
6997 *)
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001 IFS=$as_save_IFS
7002 test -z "$as_dir" && as_dir=.
7003 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007004 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 +00007005 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007 break 2
7008 fi
7009done
7010done
7011IFS=$as_save_IFS
7012
7013 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7014 ;;
7015esac
7016fi
7017TAR=$ac_cv_path_TAR
7018if test -n "$TAR"; then
7019 { echo "$as_me:$LINENO: result: $TAR" >&5
7020echo "${ECHO_T}$TAR" >&6; }
7021else
7022 { echo "$as_me:$LINENO: result: no" >&5
7023echo "${ECHO_T}no" >&6; }
7024fi
7025
7026
7027# Extract the first word of "pwd", so it can be a program name with args.
7028set dummy pwd; ac_word=$2
7029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7031if test "${ac_cv_path_BINPWD+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034 case $BINPWD in
7035 [\\/]* | ?:[\\/]*)
7036 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7037 ;;
7038 *)
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007045 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 +00007046 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050done
7051done
7052IFS=$as_save_IFS
7053
7054 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7055 ;;
7056esac
7057fi
7058BINPWD=$ac_cv_path_BINPWD
7059if test -n "$BINPWD"; then
7060 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7061echo "${ECHO_T}$BINPWD" >&6; }
7062else
7063 { echo "$as_me:$LINENO: result: no" >&5
7064echo "${ECHO_T}no" >&6; }
7065fi
7066
7067
7068
7069# Extract the first word of "Graphviz", so it can be a program name with args.
7070set dummy Graphviz; ac_word=$2
7071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7073if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076 case $GRAPHVIZ in
7077 [\\/]* | ?:[\\/]*)
7078 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7079 ;;
7080 *)
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007087 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 +00007088 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 break 2
7091 fi
7092done
7093done
7094IFS=$as_save_IFS
7095
7096 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7097 ;;
7098esac
7099fi
7100GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7101if test -n "$GRAPHVIZ"; then
7102 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7103echo "${ECHO_T}$GRAPHVIZ" >&6; }
7104else
7105 { echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6; }
7107fi
7108
7109
7110if test "$GRAPHVIZ" != "echo Graphviz" ; then
7111
7112cat >>confdefs.h <<\_ACEOF
7113#define HAVE_GRAPHVIZ 1
7114_ACEOF
7115
Jeff Cohen28783c32007-01-12 18:22:38 +00007116 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007117 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7118 fi
7119
7120cat >>confdefs.h <<_ACEOF
7121#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7122_ACEOF
7123
7124fi
7125# Extract the first word of "dot", so it can be a program name with args.
7126set dummy dot; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_DOT+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $DOT in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007143 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 +00007144 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7153 ;;
7154esac
7155fi
7156DOT=$ac_cv_path_DOT
7157if test -n "$DOT"; then
7158 { echo "$as_me:$LINENO: result: $DOT" >&5
7159echo "${ECHO_T}$DOT" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166if test "$DOT" != "echo dot" ; then
7167
7168cat >>confdefs.h <<\_ACEOF
7169#define HAVE_DOT 1
7170_ACEOF
7171
Jeff Cohen28783c32007-01-12 18:22:38 +00007172 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007173 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7174 fi
7175
7176cat >>confdefs.h <<_ACEOF
7177#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7178_ACEOF
7179
7180fi
7181for ac_prog in gv gsview32
7182do
7183 # Extract the first word of "$ac_prog", so it can be a program name with args.
7184set dummy $ac_prog; ac_word=$2
7185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187if test "${ac_cv_path_GV+set}" = set; then
7188 echo $ECHO_N "(cached) $ECHO_C" >&6
7189else
7190 case $GV in
7191 [\\/]* | ?:[\\/]*)
7192 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7193 ;;
7194 *)
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
7200 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007201 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 +00007202 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204 break 2
7205 fi
7206done
7207done
7208IFS=$as_save_IFS
7209
7210 ;;
7211esac
7212fi
7213GV=$ac_cv_path_GV
7214if test -n "$GV"; then
7215 { echo "$as_me:$LINENO: result: $GV" >&5
7216echo "${ECHO_T}$GV" >&6; }
7217else
7218 { echo "$as_me:$LINENO: result: no" >&5
7219echo "${ECHO_T}no" >&6; }
7220fi
7221
7222
7223 test -n "$GV" && break
7224done
7225test -n "$GV" || GV="echo gv"
7226
7227if test "$GV" != "echo gv" ; then
7228
7229cat >>confdefs.h <<\_ACEOF
7230#define HAVE_GV 1
7231_ACEOF
7232
Jeff Cohen28783c32007-01-12 18:22:38 +00007233 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007234 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7235 fi
7236
7237cat >>confdefs.h <<_ACEOF
7238#define LLVM_PATH_GV "$GV${EXEEXT}"
7239_ACEOF
7240
7241fi
7242# Extract the first word of "dotty", so it can be a program name with args.
7243set dummy dotty; ac_word=$2
7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_DOTTY+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 case $DOTTY in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007260 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 +00007261 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7270 ;;
7271esac
7272fi
7273DOTTY=$ac_cv_path_DOTTY
7274if test -n "$DOTTY"; then
7275 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7276echo "${ECHO_T}$DOTTY" >&6; }
7277else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282
7283if test "$DOTTY" != "echo dotty" ; then
7284
7285cat >>confdefs.h <<\_ACEOF
7286#define HAVE_DOTTY 1
7287_ACEOF
7288
Jeff Cohen28783c32007-01-12 18:22:38 +00007289 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007290 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7291 fi
7292
7293cat >>confdefs.h <<_ACEOF
7294#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7295_ACEOF
7296
7297fi
7298
7299
7300# Extract the first word of "perl", so it can be a program name with args.
7301set dummy perl; ac_word=$2
7302{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7304if test "${ac_cv_path_PERL+set}" = set; then
7305 echo $ECHO_N "(cached) $ECHO_C" >&6
7306else
7307 case $PERL in
7308 [\\/]* | ?:[\\/]*)
7309 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7310 ;;
7311 *)
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313for as_dir in $PATH
7314do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007318 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 +00007319 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323done
7324done
7325IFS=$as_save_IFS
7326
7327 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7328 ;;
7329esac
7330fi
7331PERL=$ac_cv_path_PERL
7332if test -n "$PERL"; then
7333 { echo "$as_me:$LINENO: result: $PERL" >&5
7334echo "${ECHO_T}$PERL" >&6; }
7335else
7336 { echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6; }
7338fi
7339
7340
7341if test "$PERL" != "none"; then
7342 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7343echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7344 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7345 { echo "$as_me:$LINENO: result: yes" >&5
7346echo "${ECHO_T}yes" >&6; }
7347 else
7348 PERL=none
7349 { echo "$as_me:$LINENO: result: not found" >&5
7350echo "${ECHO_T}not found" >&6; }
7351 fi
7352fi
7353
7354
7355if test x"$PERL" = xnone; then
7356 HAVE_PERL=0
7357
Reid Spencer59807fa2007-05-17 18:11:03 +00007358 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7359echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7360 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007361else
7362 HAVE_PERL=1
7363
7364fi
7365
7366# Find a good install program. We prefer a C program (faster),
7367# so one script is as good as another. But avoid the broken or
7368# incompatible versions:
7369# SysV /etc/install, /usr/sbin/install
7370# SunOS /usr/etc/install
7371# IRIX /sbin/install
7372# AIX /bin/install
7373# AmigaOS /C/install, which installs bootblocks on floppy discs
7374# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7375# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7376# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7377# OS/2's system install, which has a completely different semantic
7378# ./install, which can be erroneously created by make from ./install.sh.
7379{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7380echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7381if test -z "$INSTALL"; then
7382if test "${ac_cv_path_install+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386for as_dir in $PATH
7387do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 # Account for people who put trailing slashes in PATH elements.
7391case $as_dir/ in
7392 ./ | .// | /cC/* | \
7393 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7394 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7395 /usr/ucb/* ) ;;
7396 *)
7397 # OSF1 and SCO ODT 3.0 have their own names for install.
7398 # Don't use installbsd from OSF since it installs stuff as root
7399 # by default.
7400 for ac_prog in ginstall scoinst install; do
7401 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007402 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 +00007403 if test $ac_prog = install &&
7404 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7405 # AIX install. It has an incompatible calling convention.
7406 :
7407 elif test $ac_prog = install &&
7408 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7409 # program-specific install script used by HP pwplus--don't use.
7410 :
7411 else
7412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7413 break 3
7414 fi
7415 fi
7416 done
7417 done
7418 ;;
7419esac
7420done
7421IFS=$as_save_IFS
7422
7423
7424fi
7425 if test "${ac_cv_path_install+set}" = set; then
7426 INSTALL=$ac_cv_path_install
7427 else
7428 # As a last resort, use the slow shell script. Don't cache a
7429 # value for INSTALL within a source directory, because that will
7430 # break other packages using the cache if that directory is
7431 # removed, or if the value is a relative name.
7432 INSTALL=$ac_install_sh
7433 fi
7434fi
7435{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7436echo "${ECHO_T}$INSTALL" >&6; }
7437
7438# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7439# It thinks the first close brace ends the variable substitution.
7440test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7441
7442test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7443
7444test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7445
7446
7447# Extract the first word of "bzip2", so it can be a program name with args.
7448set dummy bzip2; ac_word=$2
7449{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451if test "${ac_cv_path_BZIP2+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454 case $BZIP2 in
7455 [\\/]* | ?:[\\/]*)
7456 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7457 ;;
7458 *)
7459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460for as_dir in $PATH
7461do
7462 IFS=$as_save_IFS
7463 test -z "$as_dir" && as_dir=.
7464 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007465 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 +00007466 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7468 break 2
7469 fi
7470done
7471done
7472IFS=$as_save_IFS
7473
Reid Spencera773bd52006-08-04 18:18:08 +00007474 ;;
7475esac
7476fi
7477BZIP2=$ac_cv_path_BZIP2
7478if test -n "$BZIP2"; then
7479 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7480echo "${ECHO_T}$BZIP2" >&6; }
7481else
7482 { echo "$as_me:$LINENO: result: no" >&5
7483echo "${ECHO_T}no" >&6; }
7484fi
7485
7486
7487# Extract the first word of "doxygen", so it can be a program name with args.
7488set dummy doxygen; ac_word=$2
7489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491if test "${ac_cv_path_DOXYGEN+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493else
7494 case $DOXYGEN in
7495 [\\/]* | ?:[\\/]*)
7496 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7497 ;;
7498 *)
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502 IFS=$as_save_IFS
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007505 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 +00007506 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 break 2
7509 fi
7510done
7511done
7512IFS=$as_save_IFS
7513
Reid Spencera773bd52006-08-04 18:18:08 +00007514 ;;
7515esac
7516fi
7517DOXYGEN=$ac_cv_path_DOXYGEN
7518if test -n "$DOXYGEN"; then
7519 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7520echo "${ECHO_T}$DOXYGEN" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
Reid Spencera773bd52006-08-04 18:18:08 +00007527# Extract the first word of "groff", so it can be a program name with args.
7528set dummy groff; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_GROFF+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 case $GROFF in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007545 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 +00007546 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552IFS=$as_save_IFS
7553
Reid Spencera773bd52006-08-04 18:18:08 +00007554 ;;
7555esac
7556fi
7557GROFF=$ac_cv_path_GROFF
7558if test -n "$GROFF"; then
7559 { echo "$as_me:$LINENO: result: $GROFF" >&5
7560echo "${ECHO_T}$GROFF" >&6; }
7561else
7562 { echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6; }
7564fi
7565
7566
7567# Extract the first word of "gzip", so it can be a program name with args.
7568set dummy gzip; ac_word=$2
7569{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571if test "${ac_cv_path_GZIP+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574 case $GZIP in
7575 [\\/]* | ?:[\\/]*)
7576 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7577 ;;
7578 *)
7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582 IFS=$as_save_IFS
7583 test -z "$as_dir" && as_dir=.
7584 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007585 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 +00007586 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588 break 2
7589 fi
7590done
7591done
7592IFS=$as_save_IFS
7593
Reid Spencera773bd52006-08-04 18:18:08 +00007594 ;;
7595esac
7596fi
7597GZIP=$ac_cv_path_GZIP
7598if test -n "$GZIP"; then
7599 { echo "$as_me:$LINENO: result: $GZIP" >&5
7600echo "${ECHO_T}$GZIP" >&6; }
7601else
7602 { echo "$as_me:$LINENO: result: no" >&5
7603echo "${ECHO_T}no" >&6; }
7604fi
7605
7606
7607# Extract the first word of "pod2html", so it can be a program name with args.
7608set dummy pod2html; ac_word=$2
7609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611if test "${ac_cv_path_POD2HTML+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614 case $POD2HTML in
7615 [\\/]* | ?:[\\/]*)
7616 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7617 ;;
7618 *)
7619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620for as_dir in $PATH
7621do
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007625 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 +00007626 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7629 fi
7630done
7631done
7632IFS=$as_save_IFS
7633
Reid Spencera773bd52006-08-04 18:18:08 +00007634 ;;
7635esac
7636fi
7637POD2HTML=$ac_cv_path_POD2HTML
7638if test -n "$POD2HTML"; then
7639 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7640echo "${ECHO_T}$POD2HTML" >&6; }
7641else
7642 { echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6; }
7644fi
7645
7646
7647# Extract the first word of "pod2man", so it can be a program name with args.
7648set dummy pod2man; ac_word=$2
7649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7651if test "${ac_cv_path_POD2MAN+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 case $POD2MAN in
7655 [\\/]* | ?:[\\/]*)
7656 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7657 ;;
7658 *)
7659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007665 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 +00007666 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671done
7672IFS=$as_save_IFS
7673
Reid Spencera773bd52006-08-04 18:18:08 +00007674 ;;
7675esac
7676fi
7677POD2MAN=$ac_cv_path_POD2MAN
7678if test -n "$POD2MAN"; then
7679 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7680echo "${ECHO_T}$POD2MAN" >&6; }
7681else
7682 { echo "$as_me:$LINENO: result: no" >&5
7683echo "${ECHO_T}no" >&6; }
7684fi
7685
7686
7687# Extract the first word of "runtest", so it can be a program name with args.
7688set dummy runtest; ac_word=$2
7689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7691if test "${ac_cv_path_RUNTEST+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7693else
7694 case $RUNTEST in
7695 [\\/]* | ?:[\\/]*)
7696 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7697 ;;
7698 *)
7699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7700for as_dir in $PATH
7701do
7702 IFS=$as_save_IFS
7703 test -z "$as_dir" && as_dir=.
7704 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007705 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 +00007706 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 break 2
7709 fi
7710done
7711done
7712IFS=$as_save_IFS
7713
Reid Spencera773bd52006-08-04 18:18:08 +00007714 ;;
7715esac
7716fi
7717RUNTEST=$ac_cv_path_RUNTEST
7718if test -n "$RUNTEST"; then
7719 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7720echo "${ECHO_T}$RUNTEST" >&6; }
7721else
7722 { echo "$as_me:$LINENO: result: no" >&5
7723echo "${ECHO_T}no" >&6; }
7724fi
7725
7726
7727
7728no_itcl=true
7729{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7730echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7731
7732# Check whether --with-tclinclude was given.
7733if test "${with_tclinclude+set}" = set; then
7734 withval=$with_tclinclude; with_tclinclude=${withval}
7735else
7736 with_tclinclude=''
7737fi
7738
7739if test "${ac_cv_path_tclsh+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742
7743if test x"${with_tclinclude}" != x ; then
7744 if test -f ${with_tclinclude}/tclsh ; then
7745 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7746 elif test -f ${with_tclinclude}/src/tclsh ; then
7747 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7748 else
7749 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7750echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7751 { (exit 1); exit 1; }; }
7752 fi
7753fi
7754
7755if test x"${ac_cv_path_tclsh}" = x ; then
7756 { echo "$as_me:$LINENO: result: none" >&5
7757echo "${ECHO_T}none" >&6; }
7758 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
7759do
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761set dummy $ac_prog; ac_word=$2
7762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764if test "${ac_cv_path_TCLSH+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767 case $TCLSH in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773for as_dir in $PATH
7774do
7775 IFS=$as_save_IFS
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007778 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 +00007779 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781 break 2
7782 fi
7783done
7784done
7785IFS=$as_save_IFS
7786
7787 ;;
7788esac
7789fi
7790TCLSH=$ac_cv_path_TCLSH
7791if test -n "$TCLSH"; then
7792 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7793echo "${ECHO_T}$TCLSH" >&6; }
7794else
7795 { echo "$as_me:$LINENO: result: no" >&5
7796echo "${ECHO_T}no" >&6; }
7797fi
7798
7799
7800 test -n "$TCLSH" && break
7801done
7802
7803 if test x"${TCLSH}" = x ; then
7804 ac_cv_path_tclsh='';
7805 else
7806 ac_cv_path_tclsh="${TCLSH}";
7807 fi
7808else
7809 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7810echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7811 TCLSH="${ac_cv_path_tclsh}"
7812
7813fi
7814
7815fi
7816
7817# Extract the first word of "zip", so it can be a program name with args.
7818set dummy zip; ac_word=$2
7819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7821if test "${ac_cv_path_ZIP+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7823else
7824 case $ZIP in
7825 [\\/]* | ?:[\\/]*)
7826 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7827 ;;
7828 *)
7829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832 IFS=$as_save_IFS
7833 test -z "$as_dir" && as_dir=.
7834 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007835 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 +00007836 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7838 break 2
7839 fi
7840done
7841done
7842IFS=$as_save_IFS
7843
Reid Spencera773bd52006-08-04 18:18:08 +00007844 ;;
7845esac
7846fi
7847ZIP=$ac_cv_path_ZIP
7848if test -n "$ZIP"; then
7849 { echo "$as_me:$LINENO: result: $ZIP" >&5
7850echo "${ECHO_T}$ZIP" >&6; }
7851else
7852 { echo "$as_me:$LINENO: result: no" >&5
7853echo "${ECHO_T}no" >&6; }
7854fi
7855
7856
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007857for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007858do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_path_OCAMLC+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 case $OCAMLC in
7867 [\\/]* | ?:[\\/]*)
7868 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007877 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 +00007878 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884IFS=$as_save_IFS
7885
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007886 ;;
7887esac
7888fi
7889OCAMLC=$ac_cv_path_OCAMLC
7890if test -n "$OCAMLC"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7892echo "${ECHO_T}$OCAMLC" >&6; }
7893else
7894 { echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6; }
7896fi
7897
7898
Gordon Henriksene7072162008-03-07 18:20:01 +00007899 test -n "$OCAMLC" && break
7900done
7901
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007902for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007903do
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $OCAMLOPT in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007922 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 +00007923 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007931 ;;
7932esac
7933fi
7934OCAMLOPT=$ac_cv_path_OCAMLOPT
7935if test -n "$OCAMLOPT"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7937echo "${ECHO_T}$OCAMLOPT" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
Gordon Henriksene7072162008-03-07 18:20:01 +00007944 test -n "$OCAMLOPT" && break
7945done
7946
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007947for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007948do
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 case $OCAMLDEP in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007967 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 +00007968 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974IFS=$as_save_IFS
7975
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007976 ;;
7977esac
7978fi
7979OCAMLDEP=$ac_cv_path_OCAMLDEP
7980if test -n "$OCAMLDEP"; then
7981 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7982echo "${ECHO_T}$OCAMLDEP" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
Gordon Henriksene7072162008-03-07 18:20:01 +00007989 test -n "$OCAMLDEP" && break
7990done
7991
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007992for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007993do
7994 # Extract the first word of "$ac_prog", so it can be a program name with args.
7995set dummy $ac_prog; ac_word=$2
7996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7998if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001 case $OCAMLDOC in
8002 [\\/]* | ?:[\\/]*)
8003 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8004 ;;
8005 *)
8006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007for as_dir in $PATH
8008do
8009 IFS=$as_save_IFS
8010 test -z "$as_dir" && as_dir=.
8011 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008012 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 +00008013 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 break 2
8016 fi
8017done
8018done
8019IFS=$as_save_IFS
8020
8021 ;;
8022esac
8023fi
8024OCAMLDOC=$ac_cv_path_OCAMLDOC
8025if test -n "$OCAMLDOC"; then
8026 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8027echo "${ECHO_T}$OCAMLDOC" >&6; }
8028else
8029 { echo "$as_me:$LINENO: result: no" >&5
8030echo "${ECHO_T}no" >&6; }
8031fi
8032
8033
8034 test -n "$OCAMLDOC" && break
8035done
8036
Torok Edwincc499a42008-10-22 09:56:27 +00008037for ac_prog in gas as
8038do
8039 # Extract the first word of "$ac_prog", so it can be a program name with args.
8040set dummy $ac_prog; ac_word=$2
8041{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043if test "${ac_cv_path_GAS+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8045else
8046 case $GAS in
8047 [\\/]* | ?:[\\/]*)
8048 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8049 ;;
8050 *)
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054 IFS=$as_save_IFS
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008057 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 +00008058 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060 break 2
8061 fi
8062done
8063done
8064IFS=$as_save_IFS
8065
8066 ;;
8067esac
8068fi
8069GAS=$ac_cv_path_GAS
8070if test -n "$GAS"; then
8071 { echo "$as_me:$LINENO: result: $GAS" >&5
8072echo "${ECHO_T}$GAS" >&6; }
8073else
8074 { echo "$as_me:$LINENO: result: no" >&5
8075echo "${ECHO_T}no" >&6; }
8076fi
8077
8078
8079 test -n "$GAS" && break
8080done
8081
Reid Spencera773bd52006-08-04 18:18:08 +00008082
8083{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8084echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8085if test "${llvm_cv_link_use_r+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8087else
8088 ac_ext=c
8089ac_cpp='$CPP $CPPFLAGS'
8090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8092ac_compiler_gnu=$ac_cv_c_compiler_gnu
8093
8094 oldcflags="$CFLAGS"
8095 CFLAGS="$CFLAGS -Wl,-R."
8096 cat >conftest.$ac_ext <<_ACEOF
8097/* confdefs.h. */
8098_ACEOF
8099cat confdefs.h >>conftest.$ac_ext
8100cat >>conftest.$ac_ext <<_ACEOF
8101/* end confdefs.h. */
8102
8103int
8104main ()
8105{
8106int main() { return 0; }
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext conftest$ac_exeext
8112if { (ac_try="$ac_link"
8113case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_link") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008124 (exit $ac_status); } &&
8125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8126 { (case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
8130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_try") 2>&5
8132 ac_status=$?
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; } &&
8135 { ac_try='test -s conftest$ac_exeext'
8136 { (case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_try") 2>&5
8142 ac_status=$?
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008145 llvm_cv_link_use_r=yes
8146else
8147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 llvm_cv_link_use_r=no
8151fi
8152
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008153rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008154 conftest$ac_exeext conftest.$ac_ext
8155 CFLAGS="$oldcflags"
8156 ac_ext=c
8157ac_cpp='$CPP $CPPFLAGS'
8158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161
8162
8163fi
8164{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8165echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8166if test "$llvm_cv_link_use_r" = yes ; then
8167
8168cat >>confdefs.h <<\_ACEOF
8169#define HAVE_LINK_R 1
8170_ACEOF
8171
8172 fi
8173
8174
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008175{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8176echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8177if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 ac_ext=c
8181ac_cpp='$CPP $CPPFLAGS'
8182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8184ac_compiler_gnu=$ac_cv_c_compiler_gnu
8185
8186 oldcflags="$CFLAGS"
8187 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8188 cat >conftest.$ac_ext <<_ACEOF
8189/* confdefs.h. */
8190_ACEOF
8191cat confdefs.h >>conftest.$ac_ext
8192cat >>conftest.$ac_ext <<_ACEOF
8193/* end confdefs.h. */
8194
8195int
8196main ()
8197{
8198int main() { return 0; }
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203rm -f conftest.$ac_objext conftest$ac_exeext
8204if { (ac_try="$ac_link"
8205case "(($ac_try" in
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8208esac
8209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_link") 2>conftest.er1
8211 ac_status=$?
8212 grep -v '^ *+' conftest.er1 >conftest.err
8213 rm -f conftest.er1
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221esac
8222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231esac
8232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8237 llvm_cv_link_use_export_dynamic=yes
8238else
8239 echo "$as_me: failed program was:" >&5
8240sed 's/^/| /' conftest.$ac_ext >&5
8241
8242 llvm_cv_link_use_export_dynamic=no
8243fi
8244
8245rm -f core conftest.err conftest.$ac_objext \
8246 conftest$ac_exeext conftest.$ac_ext
8247 CFLAGS="$oldcflags"
8248 ac_ext=c
8249ac_cpp='$CPP $CPPFLAGS'
8250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8252ac_compiler_gnu=$ac_cv_c_compiler_gnu
8253
8254
8255fi
8256{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8257echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8258if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8259
8260cat >>confdefs.h <<\_ACEOF
8261#define HAVE_LINK_EXPORT_DYNAMIC 1
8262_ACEOF
8263
8264 fi
8265
8266
Reid Spencera773bd52006-08-04 18:18:08 +00008267
8268
8269{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8270echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8271if test "${ac_cv_c_const+set}" = set; then
8272 echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280
8281int
8282main ()
8283{
8284/* FIXME: Include the comments suggested by Paul. */
8285#ifndef __cplusplus
8286 /* Ultrix mips cc rejects this. */
8287 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008288 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008289 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008290 char const *const *ccp;
8291 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008292 /* NEC SVR4.0.2 mips cc rejects this. */
8293 struct point {int x, y;};
8294 static struct point const zero = {0,0};
8295 /* AIX XL C 1.02.0.0 rejects this.
8296 It does not let you subtract one const X* pointer from another in
8297 an arm of an if-expression whose if-part is not a constant
8298 expression */
8299 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008300 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008301 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008302 ++ccp;
8303 p = (char**) ccp;
8304 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008305 { /* SCO 3.2v4 cc rejects this. */
8306 char *t;
8307 char const *s = 0 ? (char *) 0 : (char const *) 0;
8308
8309 *t++ = 0;
8310 if (s) return 0;
8311 }
8312 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8313 int x[] = {25, 17};
8314 const int *foo = &x[0];
8315 ++foo;
8316 }
8317 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8318 typedef const int *iptr;
8319 iptr p = 0;
8320 ++p;
8321 }
8322 { /* AIX XL C 1.02.0.0 rejects this saying
8323 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8324 struct s { int j; const int *ap[3]; };
8325 struct s *b; b->j = 5;
8326 }
8327 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8328 const int foo = 10;
8329 if (!foo) return 0;
8330 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008331 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008332#endif
8333
8334 ;
8335 return 0;
8336}
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (ac_try="$ac_compile"
8340case "(($ac_try" in
8341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8343esac
8344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8346 ac_status=$?
8347 grep -v '^ *+' conftest.er1 >conftest.err
8348 rm -f conftest.er1
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008351 (exit $ac_status); } &&
8352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8353 { (case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
8357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8358 (eval "$ac_try") 2>&5
8359 ac_status=$?
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); }; } &&
8362 { ac_try='test -s conftest.$ac_objext'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366esac
8367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008372 ac_cv_c_const=yes
8373else
8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 ac_cv_c_const=no
8378fi
8379
8380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381fi
8382{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8383echo "${ECHO_T}$ac_cv_c_const" >&6; }
8384if test $ac_cv_c_const = no; then
8385
8386cat >>confdefs.h <<\_ACEOF
8387#define const
8388_ACEOF
8389
8390fi
8391
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008392
8393
8394
8395
8396
8397ac_header_dirent=no
8398for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8399 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008400{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8401echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008403 echo $ECHO_N "(cached) $ECHO_C" >&6
8404else
8405 cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411#include <sys/types.h>
8412#include <$ac_hdr>
8413
8414int
8415main ()
8416{
8417if ((DIR *) 0)
8418return 0;
8419 ;
8420 return 0;
8421}
8422_ACEOF
8423rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008424if { (ac_try="$ac_compile"
8425case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428esac
8429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008436 (exit $ac_status); } &&
8437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8438 { (case "(($ac_try" in
8439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440 *) ac_try_echo=$ac_try;;
8441esac
8442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443 (eval "$ac_try") 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; } &&
8447 { ac_try='test -s conftest.$ac_objext'
8448 { (case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
8452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453 (eval "$ac_try") 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008457 eval "$as_ac_Header=yes"
8458else
8459 echo "$as_me: failed program was:" >&5
8460sed 's/^/| /' conftest.$ac_ext >&5
8461
Reid Spencera773bd52006-08-04 18:18:08 +00008462 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463fi
Reid Spencera773bd52006-08-04 18:18:08 +00008464
8465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466fi
Reid Spencera773bd52006-08-04 18:18:08 +00008467ac_res=`eval echo '${'$as_ac_Header'}'`
8468 { echo "$as_me:$LINENO: result: $ac_res" >&5
8469echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008470if test `eval echo '${'$as_ac_Header'}'` = yes; then
8471 cat >>confdefs.h <<_ACEOF
8472#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8473_ACEOF
8474
8475ac_header_dirent=$ac_hdr; break
8476fi
8477
8478done
8479# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8480if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008481 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8482echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008483if test "${ac_cv_search_opendir+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485else
8486 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008487cat >conftest.$ac_ext <<_ACEOF
8488/* confdefs.h. */
8489_ACEOF
8490cat confdefs.h >>conftest.$ac_ext
8491cat >>conftest.$ac_ext <<_ACEOF
8492/* end confdefs.h. */
8493
Reid Spencera773bd52006-08-04 18:18:08 +00008494/* Override any GCC internal prototype to avoid an error.
8495 Use char because int might match the return type of a GCC
8496 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497#ifdef __cplusplus
8498extern "C"
8499#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500char opendir ();
8501int
8502main ()
8503{
Reid Spencera773bd52006-08-04 18:18:08 +00008504return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008505 ;
8506 return 0;
8507}
8508_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008509for ac_lib in '' dir; do
8510 if test -z "$ac_lib"; then
8511 ac_res="none required"
8512 else
8513 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008514 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008515 fi
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517if { (ac_try="$ac_link"
8518case "(($ac_try" in
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8521esac
8522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8531 { (case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534esac
8535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_try") 2>&5
8537 ac_status=$?
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest$ac_exeext'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008550 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
8554
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008555
8556fi
8557
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008558rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008559 conftest$ac_exeext
8560 if test "${ac_cv_search_opendir+set}" = set; then
8561 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008562fi
John Criswell7a73b802003-06-30 21:59:07 +00008563done
Reid Spencera773bd52006-08-04 18:18:08 +00008564if test "${ac_cv_search_opendir+set}" = set; then
8565 :
8566else
8567 ac_cv_search_opendir=no
8568fi
8569rm conftest.$ac_ext
8570LIBS=$ac_func_search_save_LIBS
8571fi
8572{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8573echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8574ac_res=$ac_cv_search_opendir
8575if test "$ac_res" != no; then
8576 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008577
Reid Spencera773bd52006-08-04 18:18:08 +00008578fi
8579
8580else
8581 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8582echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8583if test "${ac_cv_search_opendir+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 ac_func_search_save_LIBS=$LIBS
8587cat >conftest.$ac_ext <<_ACEOF
8588/* confdefs.h. */
8589_ACEOF
8590cat confdefs.h >>conftest.$ac_ext
8591cat >>conftest.$ac_ext <<_ACEOF
8592/* end confdefs.h. */
8593
8594/* Override any GCC internal prototype to avoid an error.
8595 Use char because int might match the return type of a GCC
8596 builtin and then its argument prototype would still apply. */
8597#ifdef __cplusplus
8598extern "C"
8599#endif
8600char opendir ();
8601int
8602main ()
8603{
8604return opendir ();
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609for ac_lib in '' x; do
8610 if test -z "$ac_lib"; then
8611 ac_res="none required"
8612 else
8613 ac_res=-l$ac_lib
8614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8615 fi
8616 rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (ac_try="$ac_link"
8618case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_link") 2>conftest.er1
8624 ac_status=$?
8625 grep -v '^ *+' conftest.er1 >conftest.err
8626 rm -f conftest.er1
8627 cat conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008629 (exit $ac_status); } &&
8630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_try") 2>&5
8637 ac_status=$?
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); }; } &&
8640 { ac_try='test -s conftest$ac_exeext'
8641 { (case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644esac
8645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_try") 2>&5
8647 ac_status=$?
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008650 ac_cv_search_opendir=$ac_res
8651else
8652 echo "$as_me: failed program was:" >&5
8653sed 's/^/| /' conftest.$ac_ext >&5
8654
8655
8656fi
8657
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008658rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008659 conftest$ac_exeext
8660 if test "${ac_cv_search_opendir+set}" = set; then
8661 break
8662fi
8663done
8664if test "${ac_cv_search_opendir+set}" = set; then
8665 :
8666else
8667 ac_cv_search_opendir=no
8668fi
8669rm conftest.$ac_ext
8670LIBS=$ac_func_search_save_LIBS
8671fi
8672{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8673echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8674ac_res=$ac_cv_search_opendir
8675if test "$ac_res" != no; then
8676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8677
8678fi
8679
8680fi
John Criswell7a73b802003-06-30 21:59:07 +00008681
8682
8683for ac_header in dlfcn.h
8684do
8685as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008686if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008690 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008691fi
Reid Spencera773bd52006-08-04 18:18:08 +00008692ac_res=`eval echo '${'$as_ac_Header'}'`
8693 { echo "$as_me:$LINENO: result: $ac_res" >&5
8694echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008695else
Brian Gaeke0a621332004-09-08 20:38:05 +00008696 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008697{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8698echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008699cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008700/* confdefs.h. */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008705$ac_includes_default
8706#include <$ac_header>
8707_ACEOF
8708rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008709if { (ac_try="$ac_compile"
8710case "(($ac_try" in
8711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8712 *) ac_try_echo=$ac_try;;
8713esac
8714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8715 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008716 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723 { (case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726esac
8727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_try") 2>&5
8729 ac_status=$?
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); }; } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_try") 2>&5
8739 ac_status=$?
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008742 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008743else
8744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008745sed 's/^/| /' conftest.$ac_ext >&5
8746
Reid Spencera773bd52006-08-04 18:18:08 +00008747 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008748fi
Reid Spencera773bd52006-08-04 18:18:08 +00008749
8750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8752echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008753
8754# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008755{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008757cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008758/* confdefs.h. */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h. */
8763#include <$ac_header>
8764_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008765if { (ac_try="$ac_cpp conftest.$ac_ext"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
8770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008772 ac_status=$?
8773 grep -v '^ *+' conftest.er1 >conftest.err
8774 rm -f conftest.er1
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008777 (exit $ac_status); } >/dev/null; then
8778 if test -s conftest.err; then
8779 ac_cpp_err=$ac_c_preproc_warn_flag
8780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8781 else
8782 ac_cpp_err=
8783 fi
8784else
8785 ac_cpp_err=yes
8786fi
8787if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008788 ac_header_preproc=yes
8789else
8790 echo "$as_me: failed program was:" >&5
8791sed 's/^/| /' conftest.$ac_ext >&5
8792
8793 ac_header_preproc=no
8794fi
Reid Spencera773bd52006-08-04 18:18:08 +00008795
Brian Gaeke0a621332004-09-08 20:38:05 +00008796rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008797{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8798echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008799
8800# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8802 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8804echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8806echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8807 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008808 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008809 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8815echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8817echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8819echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8821echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008822 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008823## ----------------------------------- ##
8824## Report this to llvmbugs@cs.uiuc.edu ##
8825## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008826_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008827 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008828 ;;
8829esac
Reid Spencera773bd52006-08-04 18:18:08 +00008830{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008835 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008836fi
Reid Spencera773bd52006-08-04 18:18:08 +00008837ac_res=`eval echo '${'$as_ac_Header'}'`
8838 { echo "$as_me:$LINENO: result: $ac_res" >&5
8839echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008840
8841fi
John Criswell7a73b802003-06-30 21:59:07 +00008842if test `eval echo '${'$as_ac_Header'}'` = yes; then
8843 cat >>confdefs.h <<_ACEOF
8844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8845_ACEOF
8846
8847fi
8848
8849done
8850
Reid Spencera773bd52006-08-04 18:18:08 +00008851# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008852if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008853 enableval=$enable_ltdl_install;
8854fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008856
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008857
8858
8859if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008860 INSTALL_LTDL_TRUE=
8861 INSTALL_LTDL_FALSE='#'
8862else
8863 INSTALL_LTDL_TRUE='#'
8864 INSTALL_LTDL_FALSE=
8865fi
8866
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008867
8868
8869if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008870 CONVENIENCE_LTDL_TRUE=
8871 CONVENIENCE_LTDL_FALSE='#'
8872else
8873 CONVENIENCE_LTDL_TRUE='#'
8874 CONVENIENCE_LTDL_FALSE=
8875fi
8876
8877
Reid Spencera773bd52006-08-04 18:18:08 +00008878{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8879echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008880library_names_spec=
8881libname_spec='lib$name'
8882soname_spec=
8883shrext_cmds=".so"
8884postinstall_cmds=
8885postuninstall_cmds=
8886finish_cmds=
8887finish_eval=
8888shlibpath_var=
8889shlibpath_overrides_runpath=unknown
8890version_type=none
8891dynamic_linker="$host_os ld.so"
8892sys_lib_dlsearch_path_spec="/lib /usr/lib"
8893if test "$GCC" = yes; then
8894 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8895 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8896 # if the path contains ";" then we assume it to be the separator
8897 # otherwise default to the standard path separator (i.e. ":") - it is
8898 # assumed that no part of a normal pathname contains ";" but that should
8899 # okay in the real world where ";" in dirpaths is itself problematic.
8900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8901 else
8902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 fi
8904else
8905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8906fi
8907need_lib_prefix=unknown
8908hardcode_into_libs=no
8909
8910# when you set need_version to no, make sure it does not cause -set_version
8911# flags to be left without arguments
8912need_version=unknown
8913
8914case $host_os in
8915aix3*)
8916 version_type=linux
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8918 shlibpath_var=LIBPATH
8919
8920 # AIX 3 has no versioning support, so we append a major version to the name.
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 ;;
8923
8924aix4* | aix5*)
8925 version_type=linux
8926 need_lib_prefix=no
8927 need_version=no
8928 hardcode_into_libs=yes
8929 if test "$host_cpu" = ia64; then
8930 # AIX 5 supports IA64
8931 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8932 shlibpath_var=LD_LIBRARY_PATH
8933 else
8934 # With GCC up to 2.95.x, collect2 would create an import file
8935 # for dependence libraries. The import file would start with
8936 # the line `#! .'. This would cause the generated library to
8937 # depend on `.', always an invalid library. This was fixed in
8938 # development snapshots of GCC prior to 3.0.
8939 case $host_os in
8940 aix4 | aix4.[01] | aix4.[01].*)
8941 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8942 echo ' yes '
8943 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8944 :
8945 else
8946 can_build_shared=no
8947 fi
8948 ;;
8949 esac
8950 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8951 # soname into executable. Probably we can add versioning support to
8952 # collect2, so additional links can be useful in future.
8953 if test "$aix_use_runtimelinking" = yes; then
8954 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8955 # instead of lib<name>.a to let people know that these are not
8956 # typical AIX shared libraries.
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 else
8959 # We preserve .a as extension for shared libraries through AIX4.2
8960 # and later when we are not doing run time linking.
8961 library_names_spec='${libname}${release}.a $libname.a'
8962 soname_spec='${libname}${release}${shared_ext}$major'
8963 fi
8964 shlibpath_var=LIBPATH
8965 fi
8966 ;;
8967
8968amigaos*)
8969 library_names_spec='$libname.ixlibrary $libname.a'
8970 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8971 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'
8972 ;;
8973
8974beos*)
8975 library_names_spec='${libname}${shared_ext}'
8976 dynamic_linker="$host_os ld.so"
8977 shlibpath_var=LIBRARY_PATH
8978 ;;
8979
8980bsdi[45]*)
8981 version_type=linux
8982 need_version=no
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984 soname_spec='${libname}${release}${shared_ext}$major'
8985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8986 shlibpath_var=LD_LIBRARY_PATH
8987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8989 # the default ld.so.conf also contains /usr/contrib/lib and
8990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8991 # libtool to hard-code these into programs
8992 ;;
8993
8994cygwin* | mingw* | pw32*)
8995 version_type=windows
8996 shrext_cmds=".dll"
8997 need_version=no
8998 need_lib_prefix=no
8999
9000 case $GCC,$host_os in
9001 yes,cygwin* | yes,mingw* | yes,pw32*)
9002 library_names_spec='$libname.dll.a'
9003 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9004 postinstall_cmds='base_file=`basename \${file}`~
9005 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9006 dldir=$destdir/`dirname \$dlpath`~
9007 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009008 $install_prog $dir/$dlname \$dldir/$dlname~
9009 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009010 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9011 dlpath=$dir/\$dldll~
9012 $rm \$dlpath'
9013 shlibpath_overrides_runpath=yes
9014
9015 case $host_os in
9016 cygwin*)
9017 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9018 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9020 ;;
9021 mingw*)
9022 # MinGW DLLs use traditional 'lib' prefix
9023 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9024 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9025 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9026 # It is most probably a Windows format PATH printed by
9027 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9028 # path with ; separators, and with drive letters. We can handle the
9029 # drive letters (cygwin fileutils understands them), so leave them,
9030 # especially as we might pass files found there to a mingw objdump,
9031 # which wouldn't understand a cygwinified path. Ahh.
9032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9033 else
9034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9035 fi
9036 ;;
9037 pw32*)
9038 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009039 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 +00009040 ;;
9041 esac
9042 ;;
9043
9044 *)
9045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9046 ;;
9047 esac
9048 dynamic_linker='Win32 ld.exe'
9049 # FIXME: first we should search . and the directory the executable is in
9050 shlibpath_var=PATH
9051 ;;
9052
9053darwin* | rhapsody*)
9054 dynamic_linker="$host_os dyld"
9055 version_type=darwin
9056 need_lib_prefix=no
9057 need_version=no
9058 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9059 soname_spec='${libname}${release}${major}$shared_ext'
9060 shlibpath_overrides_runpath=yes
9061 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009062 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009063 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9064 if test "$GCC" = yes; then
9065 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"`
9066 else
9067 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9068 fi
9069 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9070 ;;
9071
9072dgux*)
9073 version_type=linux
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 ;;
9080
9081freebsd1*)
9082 dynamic_linker=no
9083 ;;
9084
9085kfreebsd*-gnu)
9086 version_type=linux
9087 need_lib_prefix=no
9088 need_version=no
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9090 soname_spec='${libname}${release}${shared_ext}$major'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 shlibpath_overrides_runpath=no
9093 hardcode_into_libs=yes
9094 dynamic_linker='GNU ld.so'
9095 ;;
9096
Reid Spencera773bd52006-08-04 18:18:08 +00009097freebsd* | dragonfly*)
9098 # DragonFly does not have aout. When/if they implement a new
9099 # versioning mechanism, adjust this.
9100 if test -x /usr/bin/objformat; then
9101 objformat=`/usr/bin/objformat`
9102 else
9103 case $host_os in
9104 freebsd[123]*) objformat=aout ;;
9105 *) objformat=elf ;;
9106 esac
9107 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009108 version_type=freebsd-$objformat
9109 case $version_type in
9110 freebsd-elf*)
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9112 need_version=no
9113 need_lib_prefix=no
9114 ;;
9115 freebsd-*)
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9117 need_version=yes
9118 ;;
9119 esac
9120 shlibpath_var=LD_LIBRARY_PATH
9121 case $host_os in
9122 freebsd2*)
9123 shlibpath_overrides_runpath=yes
9124 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009125 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126 shlibpath_overrides_runpath=yes
9127 hardcode_into_libs=yes
9128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009131 shlibpath_overrides_runpath=no
9132 hardcode_into_libs=yes
9133 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009134 freebsd*) # from 4.6 on
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9137 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009138 esac
9139 ;;
9140
9141gnu*)
9142 version_type=linux
9143 need_lib_prefix=no
9144 need_version=no
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 hardcode_into_libs=yes
9149 ;;
9150
9151hpux9* | hpux10* | hpux11*)
9152 # Give a soname corresponding to the major version so that dld.sl refuses to
9153 # link against other versions.
9154 version_type=sunos
9155 need_lib_prefix=no
9156 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009157 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009158 ia64*)
9159 shrext_cmds='.so'
9160 hardcode_into_libs=yes
9161 dynamic_linker="$host_os dld.so"
9162 shlibpath_var=LD_LIBRARY_PATH
9163 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 soname_spec='${libname}${release}${shared_ext}$major'
9166 if test "X$HPUX_IA64_MODE" = X32; then
9167 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9168 else
9169 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9170 fi
9171 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9172 ;;
9173 hppa*64*)
9174 shrext_cmds='.sl'
9175 hardcode_into_libs=yes
9176 dynamic_linker="$host_os dld.sl"
9177 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9182 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9183 ;;
9184 *)
9185 shrext_cmds='.sl'
9186 dynamic_linker="$host_os dld.sl"
9187 shlibpath_var=SHLIB_PATH
9188 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 soname_spec='${libname}${release}${shared_ext}$major'
9191 ;;
9192 esac
9193 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9194 postinstall_cmds='chmod 555 $lib'
9195 ;;
9196
Reid Spencera773bd52006-08-04 18:18:08 +00009197interix3*)
9198 version_type=linux
9199 need_lib_prefix=no
9200 need_version=no
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 shlibpath_overrides_runpath=no
9206 hardcode_into_libs=yes
9207 ;;
9208
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209irix5* | irix6* | nonstopux*)
9210 case $host_os in
9211 nonstopux*) version_type=nonstopux ;;
9212 *)
9213 if test "$lt_cv_prog_gnu_ld" = yes; then
9214 version_type=linux
9215 else
9216 version_type=irix
9217 fi ;;
9218 esac
9219 need_lib_prefix=no
9220 need_version=no
9221 soname_spec='${libname}${release}${shared_ext}$major'
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9223 case $host_os in
9224 irix5* | nonstopux*)
9225 libsuff= shlibsuff=
9226 ;;
9227 *)
9228 case $LD in # libtool.m4 will add one of these switches to LD
9229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9230 libsuff= shlibsuff= libmagic=32-bit;;
9231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9232 libsuff=32 shlibsuff=N32 libmagic=N32;;
9233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9235 *) libsuff= shlibsuff= libmagic=never-match;;
9236 esac
9237 ;;
9238 esac
9239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9240 shlibpath_overrides_runpath=no
9241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9243 hardcode_into_libs=yes
9244 ;;
9245
9246# No shared lib support for Linux oldld, aout, or coff.
9247linux*oldld* | linux*aout* | linux*coff*)
9248 dynamic_linker=no
9249 ;;
9250
9251# This must be Linux ELF.
9252linux*)
9253 version_type=linux
9254 need_lib_prefix=no
9255 need_version=no
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 shlibpath_overrides_runpath=no
9261 # This implies no fast_install, which is unacceptable.
9262 # Some rework will be needed to allow for fast_install
9263 # before this can be enabled.
9264 hardcode_into_libs=yes
9265
9266 # Append ld.so.conf contents to the search path
9267 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009268 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 +00009269 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9270 fi
9271
9272 # We used to test for /lib/ld.so.1 and disable shared libraries on
9273 # powerpc, because MkLinux only supported shared libraries with the
9274 # GNU dynamic linker. Since this was broken with cross compilers,
9275 # most powerpc-linux boxes support dynamic linking these days and
9276 # people can always --disable-shared, the test was removed, and we
9277 # assume the GNU/Linux dynamic linker is in use.
9278 dynamic_linker='GNU/Linux ld.so'
9279 ;;
9280
9281knetbsd*-gnu)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 shlibpath_overrides_runpath=no
9289 hardcode_into_libs=yes
9290 dynamic_linker='GNU ld.so'
9291 ;;
9292
9293netbsd*)
9294 version_type=sunos
9295 need_lib_prefix=no
9296 need_version=no
9297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9299 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9300 dynamic_linker='NetBSD (a.out) ld.so'
9301 else
9302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9303 soname_spec='${libname}${release}${shared_ext}$major'
9304 dynamic_linker='NetBSD ld.elf_so'
9305 fi
9306 shlibpath_var=LD_LIBRARY_PATH
9307 shlibpath_overrides_runpath=yes
9308 hardcode_into_libs=yes
9309 ;;
9310
9311newsos6)
9312 version_type=linux
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 shlibpath_overrides_runpath=yes
9316 ;;
9317
9318nto-qnx*)
9319 version_type=linux
9320 need_lib_prefix=no
9321 need_version=no
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9325 shlibpath_overrides_runpath=yes
9326 ;;
9327
9328openbsd*)
9329 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009330 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009332 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9333 case $host_os in
9334 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9335 *) need_version=no ;;
9336 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9341 case $host_os in
9342 openbsd2.[89] | openbsd2.[89].*)
9343 shlibpath_overrides_runpath=no
9344 ;;
9345 *)
9346 shlibpath_overrides_runpath=yes
9347 ;;
9348 esac
9349 else
9350 shlibpath_overrides_runpath=yes
9351 fi
9352 ;;
9353
9354os2*)
9355 libname_spec='$name'
9356 shrext_cmds=".dll"
9357 need_lib_prefix=no
9358 library_names_spec='$libname${shared_ext} $libname.a'
9359 dynamic_linker='OS/2 ld.exe'
9360 shlibpath_var=LIBPATH
9361 ;;
9362
9363osf3* | osf4* | osf5*)
9364 version_type=osf
9365 need_lib_prefix=no
9366 need_version=no
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 shlibpath_var=LD_LIBRARY_PATH
9370 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9371 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9372 ;;
9373
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009374solaris*)
9375 version_type=linux
9376 need_lib_prefix=no
9377 need_version=no
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 shlibpath_overrides_runpath=yes
9382 hardcode_into_libs=yes
9383 # ldd complains unless libraries are executable
9384 postinstall_cmds='chmod +x $lib'
9385 ;;
9386
9387sunos4*)
9388 version_type=sunos
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9390 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes
9393 if test "$with_gnu_ld" = yes; then
9394 need_lib_prefix=no
9395 fi
9396 need_version=yes
9397 ;;
9398
Reid Spencera773bd52006-08-04 18:18:08 +00009399sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009400 version_type=linux
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9402 soname_spec='${libname}${release}${shared_ext}$major'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 case $host_vendor in
9405 sni)
9406 shlibpath_overrides_runpath=no
9407 need_lib_prefix=no
9408 export_dynamic_flag_spec='${wl}-Blargedynsym'
9409 runpath_var=LD_RUN_PATH
9410 ;;
9411 siemens)
9412 need_lib_prefix=no
9413 ;;
9414 motorola)
9415 need_lib_prefix=no
9416 need_version=no
9417 shlibpath_overrides_runpath=no
9418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9419 ;;
9420 esac
9421 ;;
9422
9423sysv4*MP*)
9424 if test -d /usr/nec ;then
9425 version_type=linux
9426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9427 soname_spec='$libname${shared_ext}.$major'
9428 shlibpath_var=LD_LIBRARY_PATH
9429 fi
9430 ;;
9431
Reid Spencera773bd52006-08-04 18:18:08 +00009432sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9433 version_type=freebsd-elf
9434 need_lib_prefix=no
9435 need_version=no
9436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9437 soname_spec='${libname}${release}${shared_ext}$major'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 hardcode_into_libs=yes
9440 if test "$with_gnu_ld" = yes; then
9441 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9442 shlibpath_overrides_runpath=no
9443 else
9444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9445 shlibpath_overrides_runpath=yes
9446 case $host_os in
9447 sco3.2v5*)
9448 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9449 ;;
9450 esac
9451 fi
9452 sys_lib_dlsearch_path_spec='/usr/lib'
9453 ;;
9454
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455uts4*)
9456 version_type=linux
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 soname_spec='${libname}${release}${shared_ext}$major'
9459 shlibpath_var=LD_LIBRARY_PATH
9460 ;;
9461
9462*)
9463 dynamic_linker=no
9464 ;;
9465esac
Reid Spencera773bd52006-08-04 18:18:08 +00009466{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9467echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468test "$dynamic_linker" = no && can_build_shared=no
9469
Reid Spencera773bd52006-08-04 18:18:08 +00009470variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9471if test "$GCC" = yes; then
9472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9473fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474
Reid Spencera773bd52006-08-04 18:18:08 +00009475
9476{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9477echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478if test "${libltdl_cv_shlibext+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9480else
9481
9482module=yes
9483eval libltdl_cv_shlibext=$shrext_cmds
9484
9485fi
Reid Spencera773bd52006-08-04 18:18:08 +00009486{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9487echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009488if test -n "$libltdl_cv_shlibext"; then
9489
9490cat >>confdefs.h <<_ACEOF
9491#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9492_ACEOF
9493
9494fi
9495
9496
Reid Spencera773bd52006-08-04 18:18:08 +00009497{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9498echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499if test "${libltdl_cv_shlibpath_var+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9501else
9502 libltdl_cv_shlibpath_var="$shlibpath_var"
9503fi
Reid Spencera773bd52006-08-04 18:18:08 +00009504{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9505echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506if test -n "$libltdl_cv_shlibpath_var"; then
9507
9508cat >>confdefs.h <<_ACEOF
9509#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9510_ACEOF
9511
9512fi
9513
9514
Reid Spencera773bd52006-08-04 18:18:08 +00009515{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9516echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517if test "${libltdl_cv_sys_search_path+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9519else
9520 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9521fi
Reid Spencera773bd52006-08-04 18:18:08 +00009522{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9523echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524if test -n "$libltdl_cv_sys_search_path"; then
9525 sys_search_path=
9526 for dir in $libltdl_cv_sys_search_path; do
9527 if test -z "$sys_search_path"; then
9528 sys_search_path="$dir"
9529 else
9530 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9531 fi
9532 done
9533
9534cat >>confdefs.h <<_ACEOF
9535#define LTDL_SYSSEARCHPATH "$sys_search_path"
9536_ACEOF
9537
9538fi
9539
Reid Spencera773bd52006-08-04 18:18:08 +00009540{ echo "$as_me:$LINENO: checking for objdir" >&5
9541echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542if test "${libltdl_cv_objdir+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9544else
9545 libltdl_cv_objdir="$objdir"
9546 if test -n "$objdir"; then
9547 :
9548 else
9549 rm -f .libs 2>/dev/null
9550 mkdir .libs 2>/dev/null
9551 if test -d .libs; then
9552 libltdl_cv_objdir=.libs
9553 else
9554 # MS-DOS does not allow filenames that begin with a dot.
9555 libltdl_cv_objdir=_libs
9556 fi
9557 rmdir .libs 2>/dev/null
9558 fi
9559
9560fi
Reid Spencera773bd52006-08-04 18:18:08 +00009561{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9562echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563
9564cat >>confdefs.h <<_ACEOF
9565#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9566_ACEOF
9567
9568
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009569
9570
9571
9572
9573# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009574{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9575echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578else
9579
9580# These are sane defaults that work on at least a few old systems.
9581# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9582
9583# Character class describing NM global symbol codes.
9584symcode='[BCDEGRST]'
9585
9586# Regexp to match symbols that can be accessed directly from C.
9587sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9588
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589# Transform an extracted symbol line into a proper C declaration
9590lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9591
9592# Transform an extracted symbol line into symbol name and symbol address
9593lt_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'"
9594
9595# Define system-specific variables.
9596case $host_os in
9597aix*)
9598 symcode='[BCDT]'
9599 ;;
9600cygwin* | mingw* | pw32*)
9601 symcode='[ABCDGISTW]'
9602 ;;
9603hpux*) # Its linker distinguishes data from code symbols
9604 if test "$host_cpu" = ia64; then
9605 symcode='[ABCDEGRST]'
9606 fi
9607 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9608 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'"
9609 ;;
9610linux*)
9611 if test "$host_cpu" = ia64; then
9612 symcode='[ABCDGIRSTW]'
9613 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9614 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'"
9615 fi
9616 ;;
9617irix* | nonstopux*)
9618 symcode='[BCDEGRST]'
9619 ;;
9620osf*)
9621 symcode='[BCDEGQRST]'
9622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009623solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624 symcode='[BDRT]'
9625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009626sco3.2v5*)
9627 symcode='[DT]'
9628 ;;
9629sysv4.2uw2*)
9630 symcode='[DT]'
9631 ;;
9632sysv5* | sco5v6* | unixware* | OpenUNIX*)
9633 symcode='[ABDT]'
9634 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635sysv4)
9636 symcode='[DFNSTU]'
9637 ;;
9638esac
9639
9640# Handle CRLF in mingw tool chain
9641opt_cr=
9642case $build_os in
9643mingw*)
9644 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9645 ;;
9646esac
9647
9648# If we're using GNU nm, then use its standard symbol codes.
9649case `$NM -V 2>&1` in
9650*GNU* | *'with BFD'*)
9651 symcode='[ABCDGIRSTW]' ;;
9652esac
9653
9654# Try without a prefix undercore, then with it.
9655for ac_symprfx in "" "_"; do
9656
Reid Spencera773bd52006-08-04 18:18:08 +00009657 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9658 symxfrm="\\1 $ac_symprfx\\2 \\2"
9659
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009661 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 +00009662
9663 # Check to see that the pipe works correctly.
9664 pipe_works=no
9665
9666 rm -f conftest*
9667 cat > conftest.$ac_ext <<EOF
9668#ifdef __cplusplus
9669extern "C" {
9670#endif
9671char nm_test_var;
9672void nm_test_func(){}
9673#ifdef __cplusplus
9674}
9675#endif
9676int main(){nm_test_var='a';nm_test_func();return(0);}
9677EOF
9678
9679 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9680 (eval $ac_compile) 2>&5
9681 ac_status=$?
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 (exit $ac_status); }; then
9684 # Now try to grab the symbols.
9685 nlist=conftest.nm
9686 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9687 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9688 ac_status=$?
9689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690 (exit $ac_status); } && test -s "$nlist"; then
9691 # Try sorting and uniquifying the output.
9692 if sort "$nlist" | uniq > "$nlist"T; then
9693 mv -f "$nlist"T "$nlist"
9694 else
9695 rm -f "$nlist"T
9696 fi
9697
9698 # Make sure that we snagged all the symbols we need.
9699 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9700 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9701 cat <<EOF > conftest.$ac_ext
9702#ifdef __cplusplus
9703extern "C" {
9704#endif
9705
9706EOF
9707 # Now generate the symbol file.
9708 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9709
9710 cat <<EOF >> conftest.$ac_ext
9711#if defined (__STDC__) && __STDC__
9712# define lt_ptr_t void *
9713#else
9714# define lt_ptr_t char *
9715# define const
9716#endif
9717
9718/* The mapping between symbol names and symbols. */
9719const struct {
9720 const char *name;
9721 lt_ptr_t address;
9722}
9723lt_preloaded_symbols[] =
9724{
9725EOF
9726 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9727 cat <<\EOF >> conftest.$ac_ext
9728 {0, (lt_ptr_t) 0}
9729};
9730
9731#ifdef __cplusplus
9732}
9733#endif
9734EOF
9735 # Now try linking the two files.
9736 mv conftest.$ac_objext conftstm.$ac_objext
9737 lt_save_LIBS="$LIBS"
9738 lt_save_CFLAGS="$CFLAGS"
9739 LIBS="conftstm.$ac_objext"
9740 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9746 pipe_works=yes
9747 fi
9748 LIBS="$lt_save_LIBS"
9749 CFLAGS="$lt_save_CFLAGS"
9750 else
9751 echo "cannot find nm_test_func in $nlist" >&5
9752 fi
9753 else
9754 echo "cannot find nm_test_var in $nlist" >&5
9755 fi
9756 else
9757 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9758 fi
9759 else
9760 echo "$progname: failed program was:" >&5
9761 cat conftest.$ac_ext >&5
9762 fi
9763 rm -f conftest* conftst*
9764
9765 # Do not use the global_symbol_pipe unless it works.
9766 if test "$pipe_works" = yes; then
9767 break
9768 else
9769 lt_cv_sys_global_symbol_pipe=
9770 fi
9771done
9772
9773fi
9774
9775if test -z "$lt_cv_sys_global_symbol_pipe"; then
9776 lt_cv_sys_global_symbol_to_cdecl=
9777fi
9778if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009779 { echo "$as_me:$LINENO: result: failed" >&5
9780echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009781else
Reid Spencera773bd52006-08-04 18:18:08 +00009782 { echo "$as_me:$LINENO: result: ok" >&5
9783echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784fi
9785
9786
Reid Spencera773bd52006-08-04 18:18:08 +00009787{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9788echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9791else
9792 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9793 libltdl_cv_preloaded_symbols=yes
9794 else
9795 libltdl_cv_preloaded_symbols=no
9796 fi
9797
9798fi
Reid Spencera773bd52006-08-04 18:18:08 +00009799{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9800echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009801if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9802
9803cat >>confdefs.h <<\_ACEOF
9804#define HAVE_PRELOADED_SYMBOLS 1
9805_ACEOF
9806
9807fi
9808
9809LIBADD_DL=
9810
9811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817
Reid Spencera773bd52006-08-04 18:18:08 +00009818{ echo "$as_me:$LINENO: checking for shl_load" >&5
9819echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820if test "${ac_cv_func_shl_load+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 cat >conftest.$ac_ext <<_ACEOF
9824/* confdefs.h. */
9825_ACEOF
9826cat confdefs.h >>conftest.$ac_ext
9827cat >>conftest.$ac_ext <<_ACEOF
9828/* end confdefs.h. */
9829/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9831#define shl_load innocuous_shl_load
9832
9833/* System header to define __stub macros and hopefully few prototypes,
9834 which can conflict with char shl_load (); below.
9835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9836 <limits.h> exists even on freestanding compilers. */
9837
9838#ifdef __STDC__
9839# include <limits.h>
9840#else
9841# include <assert.h>
9842#endif
9843
9844#undef shl_load
9845
Reid Spencera773bd52006-08-04 18:18:08 +00009846/* Override any GCC internal prototype to avoid an error.
9847 Use char because int might match the return type of a GCC
9848 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849#ifdef __cplusplus
9850extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852char shl_load ();
9853/* The GNU C library defines this for functions which it implements
9854 to always fail with ENOSYS. Some functions are actually named
9855 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009856#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858#endif
9859
9860int
9861main ()
9862{
Reid Spencera773bd52006-08-04 18:18:08 +00009863return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864 ;
9865 return 0;
9866}
9867_ACEOF
9868rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009869if { (ac_try="$ac_link"
9870case "(($ac_try" in
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9873esac
9874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009876 ac_status=$?
9877 grep -v '^ *+' conftest.er1 >conftest.err
9878 rm -f conftest.er1
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9886esac
9887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902 ac_cv_func_shl_load=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
Reid Spencera773bd52006-08-04 18:18:08 +00009907 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009908fi
Reid Spencera773bd52006-08-04 18:18:08 +00009909
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009910rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911 conftest$ac_exeext conftest.$ac_ext
9912fi
Reid Spencera773bd52006-08-04 18:18:08 +00009913{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9914echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915if test $ac_cv_func_shl_load = yes; then
9916
9917cat >>confdefs.h <<\_ACEOF
9918#define HAVE_SHL_LOAD 1
9919_ACEOF
9920
9921else
Reid Spencera773bd52006-08-04 18:18:08 +00009922 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9923echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9926else
9927 ac_check_lib_save_LIBS=$LIBS
9928LIBS="-ldld $LIBS"
9929cat >conftest.$ac_ext <<_ACEOF
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935
Reid Spencera773bd52006-08-04 18:18:08 +00009936/* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009939#ifdef __cplusplus
9940extern "C"
9941#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942char shl_load ();
9943int
9944main ()
9945{
Reid Spencera773bd52006-08-04 18:18:08 +00009946return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959 ac_status=$?
9960 grep -v '^ *+' conftest.er1 >conftest.err
9961 rm -f conftest.er1
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985 ac_cv_lib_dld_shl_load=yes
9986else
9987 echo "$as_me: failed program was:" >&5
9988sed 's/^/| /' conftest.$ac_ext >&5
9989
Reid Spencera773bd52006-08-04 18:18:08 +00009990 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991fi
Reid Spencera773bd52006-08-04 18:18:08 +00009992
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009993rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 conftest$ac_exeext conftest.$ac_ext
9995LIBS=$ac_check_lib_save_LIBS
9996fi
Reid Spencera773bd52006-08-04 18:18:08 +00009997{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9998echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009999if test $ac_cv_lib_dld_shl_load = yes; then
10000
10001cat >>confdefs.h <<\_ACEOF
10002#define HAVE_SHL_LOAD 1
10003_ACEOF
10004
10005 LIBADD_DL="$LIBADD_DL -ldld"
10006else
Reid Spencera773bd52006-08-04 18:18:08 +000010007 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10008echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10011else
10012 ac_check_lib_save_LIBS=$LIBS
10013LIBS="-ldl $LIBS"
10014cat >conftest.$ac_ext <<_ACEOF
10015/* confdefs.h. */
10016_ACEOF
10017cat confdefs.h >>conftest.$ac_ext
10018cat >>conftest.$ac_ext <<_ACEOF
10019/* end confdefs.h. */
10020
Reid Spencera773bd52006-08-04 18:18:08 +000010021/* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010024#ifdef __cplusplus
10025extern "C"
10026#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027char dlopen ();
10028int
10029main ()
10030{
Reid Spencera773bd52006-08-04 18:18:08 +000010031return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010037if { (ac_try="$ac_link"
10038case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10041esac
10042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054esac
10055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064esac
10065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_cv_lib_dl_dlopen=yes
10071else
10072 echo "$as_me: failed program was:" >&5
10073sed 's/^/| /' conftest.$ac_ext >&5
10074
Reid Spencera773bd52006-08-04 18:18:08 +000010075 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076fi
Reid Spencera773bd52006-08-04 18:18:08 +000010077
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079 conftest$ac_exeext conftest.$ac_ext
10080LIBS=$ac_check_lib_save_LIBS
10081fi
Reid Spencera773bd52006-08-04 18:18:08 +000010082{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10083echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084if test $ac_cv_lib_dl_dlopen = yes; then
10085
10086cat >>confdefs.h <<\_ACEOF
10087#define HAVE_LIBDL 1
10088_ACEOF
10089
10090 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10091else
10092 cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098#if HAVE_DLFCN_H
10099# include <dlfcn.h>
10100#endif
10101
10102int
10103main ()
10104{
10105dlopen(0, 0);
10106 ;
10107 return 0;
10108}
10109_ACEOF
10110rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010111if { (ac_try="$ac_link"
10112case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010123 (exit $ac_status); } &&
10124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10125 { (case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128esac
10129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_try") 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; } &&
10134 { ac_try='test -s conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10141 ac_status=$?
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144
10145cat >>confdefs.h <<\_ACEOF
10146#define HAVE_LIBDL 1
10147_ACEOF
10148 libltdl_cv_func_dlopen="yes"
10149else
10150 echo "$as_me: failed program was:" >&5
10151sed 's/^/| /' conftest.$ac_ext >&5
10152
Reid Spencera773bd52006-08-04 18:18:08 +000010153 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10154echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 ac_check_lib_save_LIBS=$LIBS
10159LIBS="-lsvld $LIBS"
10160cat >conftest.$ac_ext <<_ACEOF
10161/* confdefs.h. */
10162_ACEOF
10163cat confdefs.h >>conftest.$ac_ext
10164cat >>conftest.$ac_ext <<_ACEOF
10165/* end confdefs.h. */
10166
Reid Spencera773bd52006-08-04 18:18:08 +000010167/* Override any GCC internal prototype to avoid an error.
10168 Use char because int might match the return type of a GCC
10169 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010170#ifdef __cplusplus
10171extern "C"
10172#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173char dlopen ();
10174int
10175main ()
10176{
Reid Spencera773bd52006-08-04 18:18:08 +000010177return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010178 ;
10179 return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010183if { (ac_try="$ac_link"
10184case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187esac
10188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest$ac_exeext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210esac
10211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 ac_cv_lib_svld_dlopen=yes
10217else
10218 echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222fi
Reid Spencera773bd52006-08-04 18:18:08 +000010223
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010224rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 conftest$ac_exeext conftest.$ac_ext
10226LIBS=$ac_check_lib_save_LIBS
10227fi
Reid Spencera773bd52006-08-04 18:18:08 +000010228{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10229echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230if test $ac_cv_lib_svld_dlopen = yes; then
10231
10232cat >>confdefs.h <<\_ACEOF
10233#define HAVE_LIBDL 1
10234_ACEOF
10235
10236 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10237else
Reid Spencera773bd52006-08-04 18:18:08 +000010238 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10239echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 ac_check_lib_save_LIBS=$LIBS
10244LIBS="-ldld $LIBS"
10245cat >conftest.$ac_ext <<_ACEOF
10246/* confdefs.h. */
10247_ACEOF
10248cat confdefs.h >>conftest.$ac_ext
10249cat >>conftest.$ac_ext <<_ACEOF
10250/* end confdefs.h. */
10251
Reid Spencera773bd52006-08-04 18:18:08 +000010252/* Override any GCC internal prototype to avoid an error.
10253 Use char because int might match the return type of a GCC
10254 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255#ifdef __cplusplus
10256extern "C"
10257#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258char dld_link ();
10259int
10260main ()
10261{
Reid Spencera773bd52006-08-04 18:18:08 +000010262return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010263 ;
10264 return 0;
10265}
10266_ACEOF
10267rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010268if { (ac_try="$ac_link"
10269case "(($ac_try" in
10270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10271 *) ac_try_echo=$ac_try;;
10272esac
10273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10274 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275 ac_status=$?
10276 grep -v '^ *+' conftest.er1 >conftest.err
10277 rm -f conftest.er1
10278 cat conftest.err >&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010280 (exit $ac_status); } &&
10281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10282 { (case "(($ac_try" in
10283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10284 *) ac_try_echo=$ac_try;;
10285esac
10286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10287 (eval "$ac_try") 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }; } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10297 (eval "$ac_try") 2>&5
10298 ac_status=$?
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301 ac_cv_lib_dld_dld_link=yes
10302else
10303 echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
Reid Spencera773bd52006-08-04 18:18:08 +000010306 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307fi
Reid Spencera773bd52006-08-04 18:18:08 +000010308
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010309rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310 conftest$ac_exeext conftest.$ac_ext
10311LIBS=$ac_check_lib_save_LIBS
10312fi
Reid Spencera773bd52006-08-04 18:18:08 +000010313{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10314echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010315if test $ac_cv_lib_dld_dld_link = yes; then
10316
10317cat >>confdefs.h <<\_ACEOF
10318#define HAVE_DLD 1
10319_ACEOF
10320
10321 LIBADD_DL="$LIBADD_DL -ldld"
10322else
Reid Spencera773bd52006-08-04 18:18:08 +000010323 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10324echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010325if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327else
10328 cat >conftest.$ac_ext <<_ACEOF
10329/* confdefs.h. */
10330_ACEOF
10331cat confdefs.h >>conftest.$ac_ext
10332cat >>conftest.$ac_ext <<_ACEOF
10333/* end confdefs.h. */
10334/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10336#define _dyld_func_lookup innocuous__dyld_func_lookup
10337
10338/* System header to define __stub macros and hopefully few prototypes,
10339 which can conflict with char _dyld_func_lookup (); below.
10340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10341 <limits.h> exists even on freestanding compilers. */
10342
10343#ifdef __STDC__
10344# include <limits.h>
10345#else
10346# include <assert.h>
10347#endif
10348
10349#undef _dyld_func_lookup
10350
Reid Spencera773bd52006-08-04 18:18:08 +000010351/* Override any GCC internal prototype to avoid an error.
10352 Use char because int might match the return type of a GCC
10353 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354#ifdef __cplusplus
10355extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357char _dyld_func_lookup ();
10358/* The GNU C library defines this for functions which it implements
10359 to always fail with ENOSYS. Some functions are actually named
10360 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010361#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010363#endif
10364
10365int
10366main ()
10367{
Reid Spencera773bd52006-08-04 18:18:08 +000010368return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369 ;
10370 return 0;
10371}
10372_ACEOF
10373rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010374if { (ac_try="$ac_link"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010386 (exit $ac_status); } &&
10387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10388 { (case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10391esac
10392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_try") 2>&5
10394 ac_status=$?
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); }; } &&
10397 { ac_try='test -s conftest$ac_exeext'
10398 { (case "(($ac_try" in
10399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400 *) ac_try_echo=$ac_try;;
10401esac
10402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403 (eval "$ac_try") 2>&5
10404 ac_status=$?
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407 ac_cv_func__dyld_func_lookup=yes
10408else
10409 echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
Reid Spencera773bd52006-08-04 18:18:08 +000010412 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010413fi
Reid Spencera773bd52006-08-04 18:18:08 +000010414
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010415rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010416 conftest$ac_exeext conftest.$ac_ext
10417fi
Reid Spencera773bd52006-08-04 18:18:08 +000010418{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10419echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010420if test $ac_cv_func__dyld_func_lookup = yes; then
10421
10422cat >>confdefs.h <<\_ACEOF
10423#define HAVE_DYLD 1
10424_ACEOF
10425
10426fi
10427
10428
10429fi
10430
10431
10432fi
10433
10434
10435fi
Reid Spencera773bd52006-08-04 18:18:08 +000010436
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438 conftest$ac_exeext conftest.$ac_ext
10439
10440fi
10441
10442
10443fi
10444
10445
10446fi
10447
10448
10449if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10450then
10451 lt_save_LIBS="$LIBS"
10452 LIBS="$LIBS $LIBADD_DL"
10453
10454for ac_func in dlerror
10455do
10456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010457{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10459if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010460 echo $ECHO_N "(cached) $ECHO_C" >&6
10461else
10462 cat >conftest.$ac_ext <<_ACEOF
10463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
10468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10470#define $ac_func innocuous_$ac_func
10471
10472/* System header to define __stub macros and hopefully few prototypes,
10473 which can conflict with char $ac_func (); below.
10474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10475 <limits.h> exists even on freestanding compilers. */
10476
10477#ifdef __STDC__
10478# include <limits.h>
10479#else
10480# include <assert.h>
10481#endif
10482
10483#undef $ac_func
10484
Reid Spencera773bd52006-08-04 18:18:08 +000010485/* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010488#ifdef __cplusplus
10489extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010490#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491char $ac_func ();
10492/* The GNU C library defines this for functions which it implements
10493 to always fail with ENOSYS. Some functions are actually named
10494 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010495#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497#endif
10498
10499int
10500main ()
10501{
Reid Spencera773bd52006-08-04 18:18:08 +000010502return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010503 ;
10504 return 0;
10505}
10506_ACEOF
10507rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010508if { (ac_try="$ac_link"
10509case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010515 ac_status=$?
10516 grep -v '^ *+' conftest.er1 >conftest.err
10517 rm -f conftest.er1
10518 cat conftest.err >&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010520 (exit $ac_status); } &&
10521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10522 { (case "(($ac_try" in
10523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524 *) ac_try_echo=$ac_try;;
10525esac
10526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527 (eval "$ac_try") 2>&5
10528 ac_status=$?
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; } &&
10531 { ac_try='test -s conftest$ac_exeext'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 eval "$as_ac_var=yes"
10542else
10543 echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
Reid Spencera773bd52006-08-04 18:18:08 +000010546 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010547fi
Reid Spencera773bd52006-08-04 18:18:08 +000010548
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010549rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550 conftest$ac_exeext conftest.$ac_ext
10551fi
Reid Spencera773bd52006-08-04 18:18:08 +000010552ac_res=`eval echo '${'$as_ac_var'}'`
10553 { echo "$as_me:$LINENO: result: $ac_res" >&5
10554echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555if test `eval echo '${'$as_ac_var'}'` = yes; then
10556 cat >>confdefs.h <<_ACEOF
10557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10558_ACEOF
10559
10560fi
10561done
10562
10563 LIBS="$lt_save_LIBS"
10564fi
10565ac_ext=c
10566ac_cpp='$CPP $CPPFLAGS'
10567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10569ac_compiler_gnu=$ac_cv_c_compiler_gnu
10570
10571
10572
Reid Spencera773bd52006-08-04 18:18:08 +000010573{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10574echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 ac_cv_sys_symbol_underscore=no
10579 cat > conftest.$ac_ext <<EOF
10580void nm_test_func(){}
10581int main(){nm_test_func;return 0;}
10582EOF
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; then
10588 # Now try to grab the symbols.
10589 ac_nlist=conftest.nm
10590 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10591 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10592 ac_status=$?
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && test -s "$ac_nlist"; then
10595 # See whether the symbols have a leading underscore.
10596 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10597 ac_cv_sys_symbol_underscore=yes
10598 else
10599 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10600 :
10601 else
10602 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10603 fi
10604 fi
10605 else
10606 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10607 fi
10608 else
10609 echo "configure: failed program was:" >&5
10610 cat conftest.c >&5
10611 fi
10612 rm -rf conftest*
10613
10614fi
Reid Spencera773bd52006-08-04 18:18:08 +000010615{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10616echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010617
10618
10619if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10620 if test x"$libltdl_cv_func_dlopen" = xyes ||
10621 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010622 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10623echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010624if test "${libltdl_cv_need_uscore+set}" = set; then
10625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 libltdl_cv_need_uscore=unknown
10628 save_LIBS="$LIBS"
10629 LIBS="$LIBS $LIBADD_DL"
10630 if test "$cross_compiling" = yes; then :
10631 libltdl_cv_need_uscore=cross
10632else
10633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634 lt_status=$lt_dlunknown
10635 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb138812009-03-12 03:34:33 +000010636#line 10636 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637#include "confdefs.h"
10638
10639#if HAVE_DLFCN_H
10640#include <dlfcn.h>
10641#endif
10642
10643#include <stdio.h>
10644
10645#ifdef RTLD_GLOBAL
10646# define LT_DLGLOBAL RTLD_GLOBAL
10647#else
10648# ifdef DL_GLOBAL
10649# define LT_DLGLOBAL DL_GLOBAL
10650# else
10651# define LT_DLGLOBAL 0
10652# endif
10653#endif
10654
10655/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656 find out it does not work in some platform. */
10657#ifndef LT_DLLAZY_OR_NOW
10658# ifdef RTLD_LAZY
10659# define LT_DLLAZY_OR_NOW RTLD_LAZY
10660# else
10661# ifdef DL_LAZY
10662# define LT_DLLAZY_OR_NOW DL_LAZY
10663# else
10664# ifdef RTLD_NOW
10665# define LT_DLLAZY_OR_NOW RTLD_NOW
10666# else
10667# ifdef DL_NOW
10668# define LT_DLLAZY_OR_NOW DL_NOW
10669# else
10670# define LT_DLLAZY_OR_NOW 0
10671# endif
10672# endif
10673# endif
10674# endif
10675#endif
10676
10677#ifdef __cplusplus
10678extern "C" void exit (int);
10679#endif
10680
10681void fnord() { int i=42;}
10682int main ()
10683{
10684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685 int status = $lt_dlunknown;
10686
10687 if (self)
10688 {
10689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691 /* dlclose (self); */
10692 }
Reid Spencera773bd52006-08-04 18:18:08 +000010693 else
10694 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695
10696 exit (status);
10697}
10698EOF
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010704 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 lt_status=$?
10706 case x$lt_status in
10707 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10708 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010709 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710 esac
10711 else :
10712 # compilation failed
10713
10714 fi
10715fi
10716rm -fr conftest*
10717
10718 LIBS="$save_LIBS"
10719
10720fi
Reid Spencera773bd52006-08-04 18:18:08 +000010721{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10722echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010723 fi
10724fi
10725
10726if test x"$libltdl_cv_need_uscore" = xyes; then
10727
10728cat >>confdefs.h <<\_ACEOF
10729#define NEED_USCORE 1
10730_ACEOF
10731
10732fi
10733
10734
Reid Spencera773bd52006-08-04 18:18:08 +000010735{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10736echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010737if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 # PORTME does your system automatically load deplibs for dlopen?
10741 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10742 # For now, we just catch OSes we know something about -- in the
10743 # future, we'll try test this programmatically.
10744 libltdl_cv_sys_dlopen_deplibs=unknown
10745 case "$host_os" in
10746 aix3*|aix4.1.*|aix4.2.*)
10747 # Unknown whether this is true for these versions of AIX, but
10748 # we want this `case' here to explicitly catch those versions.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10750 ;;
10751 aix[45]*)
10752 libltdl_cv_sys_dlopen_deplibs=yes
10753 ;;
10754 darwin*)
10755 # Assuming the user has installed a libdl from somewhere, this is true
10756 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10757 libltdl_cv_sys_dlopen_deplibs=yes
10758 ;;
10759 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10760 # GNU and its variants, using gnu ld.so (Glibc)
10761 libltdl_cv_sys_dlopen_deplibs=yes
10762 ;;
10763 hpux10*|hpux11*)
10764 libltdl_cv_sys_dlopen_deplibs=yes
10765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010766 interix*)
10767 libltdl_cv_sys_dlopen_deplibs=yes
10768 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769 irix[12345]*|irix6.[01]*)
10770 # Catch all versions of IRIX before 6.2, and indicate that we don't
10771 # know how it worked for any of those versions.
10772 libltdl_cv_sys_dlopen_deplibs=unknown
10773 ;;
10774 irix*)
10775 # The case above catches anything before 6.2, and it's known that
10776 # at 6.2 and later dlopen does load deplibs.
10777 libltdl_cv_sys_dlopen_deplibs=yes
10778 ;;
10779 netbsd*)
10780 libltdl_cv_sys_dlopen_deplibs=yes
10781 ;;
10782 openbsd*)
10783 libltdl_cv_sys_dlopen_deplibs=yes
10784 ;;
10785 osf[1234]*)
10786 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10787 # it did *not* use an RPATH in a shared library to find objects the
10788 # library depends on, so we explictly say `no'.
10789 libltdl_cv_sys_dlopen_deplibs=no
10790 ;;
10791 osf5.0|osf5.0a|osf5.1)
10792 # dlopen *does* load deplibs and with the right loader patch applied
10793 # it even uses RPATH in a shared library to search for shared objects
10794 # that the library depends on, but there's no easy way to know if that
10795 # patch is installed. Since this is the case, all we can really
10796 # say is unknown -- it depends on the patch being installed. If
10797 # it is, this changes to `yes'. Without it, it would be `no'.
10798 libltdl_cv_sys_dlopen_deplibs=unknown
10799 ;;
10800 osf*)
10801 # the two cases above should catch all versions of osf <= 5.1. Read
10802 # the comments above for what we know about them.
10803 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10804 # is used to find them so we can finally say `yes'.
10805 libltdl_cv_sys_dlopen_deplibs=yes
10806 ;;
10807 solaris*)
10808 libltdl_cv_sys_dlopen_deplibs=yes
10809 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10811 libltdl_cv_sys_dlopen_deplibs=yes
10812 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813 esac
10814
10815fi
Reid Spencera773bd52006-08-04 18:18:08 +000010816{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10817echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10819
10820cat >>confdefs.h <<\_ACEOF
10821#define LTDL_DLOPEN_DEPLIBS 1
10822_ACEOF
10823
10824fi
10825
10826
10827for ac_header in argz.h
10828do
10829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10833if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835fi
Reid Spencera773bd52006-08-04 18:18:08 +000010836ac_res=`eval echo '${'$as_ac_Header'}'`
10837 { echo "$as_me:$LINENO: result: $ac_res" >&5
10838echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839else
10840 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010841{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849$ac_includes_default
10850#include <$ac_header>
10851_ACEOF
10852rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010853if { (ac_try="$ac_compile"
10854case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010865 (exit $ac_status); } &&
10866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867 { (case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_try") 2>&5
10873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest.$ac_objext'
10877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
10883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886 ac_header_compiler=yes
10887else
10888 echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
Reid Spencera773bd52006-08-04 18:18:08 +000010891 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892fi
Reid Spencera773bd52006-08-04 18:18:08 +000010893
10894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10895{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10896echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897
10898# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010899{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010901cat >conftest.$ac_ext <<_ACEOF
10902/* confdefs.h. */
10903_ACEOF
10904cat confdefs.h >>conftest.$ac_ext
10905cat >>conftest.$ac_ext <<_ACEOF
10906/* end confdefs.h. */
10907#include <$ac_header>
10908_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010909if { (ac_try="$ac_cpp conftest.$ac_ext"
10910case "(($ac_try" in
10911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10912 *) ac_try_echo=$ac_try;;
10913esac
10914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010921 (exit $ac_status); } >/dev/null; then
10922 if test -s conftest.err; then
10923 ac_cpp_err=$ac_c_preproc_warn_flag
10924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10925 else
10926 ac_cpp_err=
10927 fi
10928else
10929 ac_cpp_err=yes
10930fi
10931if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010932 ac_header_preproc=yes
10933else
10934 echo "$as_me: failed program was:" >&5
10935sed 's/^/| /' conftest.$ac_ext >&5
10936
10937 ac_header_preproc=no
10938fi
Reid Spencera773bd52006-08-04 18:18:08 +000010939
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010941{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10942echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943
10944# So? What about this header?
10945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10946 yes:no: )
10947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10948echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10950echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10951 ac_header_preproc=yes
10952 ;;
10953 no:yes:* )
10954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10955echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10957echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10959echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10961echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10963echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10965echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010966 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967## ----------------------------------- ##
10968## Report this to llvmbugs@cs.uiuc.edu ##
10969## ----------------------------------- ##
10970_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010971 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972 ;;
10973esac
Reid Spencera773bd52006-08-04 18:18:08 +000010974{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977 echo $ECHO_N "(cached) $ECHO_C" >&6
10978else
10979 eval "$as_ac_Header=\$ac_header_preproc"
10980fi
Reid Spencera773bd52006-08-04 18:18:08 +000010981ac_res=`eval echo '${'$as_ac_Header'}'`
10982 { echo "$as_me:$LINENO: result: $ac_res" >&5
10983echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010984
10985fi
10986if test `eval echo '${'$as_ac_Header'}'` = yes; then
10987 cat >>confdefs.h <<_ACEOF
10988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10989_ACEOF
10990
10991fi
10992
10993done
10994
10995
Reid Spencera773bd52006-08-04 18:18:08 +000010996{ echo "$as_me:$LINENO: checking for error_t" >&5
10997echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010998if test "${ac_cv_type_error_t+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11000else
11001 cat >conftest.$ac_ext <<_ACEOF
11002/* confdefs.h. */
11003_ACEOF
11004cat confdefs.h >>conftest.$ac_ext
11005cat >>conftest.$ac_ext <<_ACEOF
11006/* end confdefs.h. */
11007#if HAVE_ARGZ_H
11008# include <argz.h>
11009#endif
11010
Reid Spencera773bd52006-08-04 18:18:08 +000011011typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012int
11013main ()
11014{
Reid Spencera773bd52006-08-04 18:18:08 +000011015if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011016 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011017if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011018 return 0;
11019 ;
11020 return 0;
11021}
11022_ACEOF
11023rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011024if { (ac_try="$ac_compile"
11025case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028esac
11029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011036 (exit $ac_status); } &&
11037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041esac
11042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11044 ac_status=$?
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest.$ac_objext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11051esac
11052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057 ac_cv_type_error_t=yes
11058else
11059 echo "$as_me: failed program was:" >&5
11060sed 's/^/| /' conftest.$ac_ext >&5
11061
Reid Spencera773bd52006-08-04 18:18:08 +000011062 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063fi
Reid Spencera773bd52006-08-04 18:18:08 +000011064
11065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066fi
Reid Spencera773bd52006-08-04 18:18:08 +000011067{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11068echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069if test $ac_cv_type_error_t = yes; then
11070
11071cat >>confdefs.h <<_ACEOF
11072#define HAVE_ERROR_T 1
11073_ACEOF
11074
11075
11076else
11077
11078cat >>confdefs.h <<\_ACEOF
11079#define error_t int
11080_ACEOF
11081
11082fi
11083
11084
11085
11086
11087
11088
11089
11090for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11091do
11092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011093{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097else
11098 cat >conftest.$ac_ext <<_ACEOF
11099/* confdefs.h. */
11100_ACEOF
11101cat confdefs.h >>conftest.$ac_ext
11102cat >>conftest.$ac_ext <<_ACEOF
11103/* end confdefs.h. */
11104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106#define $ac_func innocuous_$ac_func
11107
11108/* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11112
11113#ifdef __STDC__
11114# include <limits.h>
11115#else
11116# include <assert.h>
11117#endif
11118
11119#undef $ac_func
11120
Reid Spencera773bd52006-08-04 18:18:08 +000011121/* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011124#ifdef __cplusplus
11125extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127char $ac_func ();
11128/* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011131#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011132choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133#endif
11134
11135int
11136main ()
11137{
Reid Spencera773bd52006-08-04 18:18:08 +000011138return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139 ;
11140 return 0;
11141}
11142_ACEOF
11143rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011144if { (ac_try="$ac_link"
11145case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148esac
11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11158 { (case "(($ac_try" in
11159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160 *) ac_try_echo=$ac_try;;
11161esac
11162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163 (eval "$ac_try") 2>&5
11164 ac_status=$?
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11171esac
11172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_try") 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177 eval "$as_ac_var=yes"
11178else
11179 echo "$as_me: failed program was:" >&5
11180sed 's/^/| /' conftest.$ac_ext >&5
11181
Reid Spencera773bd52006-08-04 18:18:08 +000011182 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183fi
Reid Spencera773bd52006-08-04 18:18:08 +000011184
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011185rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186 conftest$ac_exeext conftest.$ac_ext
11187fi
Reid Spencera773bd52006-08-04 18:18:08 +000011188ac_res=`eval echo '${'$as_ac_var'}'`
11189 { echo "$as_me:$LINENO: result: $ac_res" >&5
11190echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011191if test `eval echo '${'$as_ac_var'}'` = yes; then
11192 cat >>confdefs.h <<_ACEOF
11193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11194_ACEOF
11195
11196fi
11197done
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11227 stdio.h unistd.h
11228do
11229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11233if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234 echo $ECHO_N "(cached) $ECHO_C" >&6
11235fi
Reid Spencera773bd52006-08-04 18:18:08 +000011236ac_res=`eval echo '${'$as_ac_Header'}'`
11237 { echo "$as_me:$LINENO: result: $ac_res" >&5
11238echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239else
11240 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011241{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249$ac_includes_default
11250#include <$ac_header>
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_header_compiler=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_header_compiler=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
11295{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11296echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011297
11298# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011299{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011301cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
11307#include <$ac_header>
11308_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011309if { (ac_try="$ac_cpp conftest.$ac_ext"
11310case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11313esac
11314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316 ac_status=$?
11317 grep -v '^ *+' conftest.er1 >conftest.err
11318 rm -f conftest.er1
11319 cat conftest.err >&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011321 (exit $ac_status); } >/dev/null; then
11322 if test -s conftest.err; then
11323 ac_cpp_err=$ac_c_preproc_warn_flag
11324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11325 else
11326 ac_cpp_err=
11327 fi
11328else
11329 ac_cpp_err=yes
11330fi
11331if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332 ac_header_preproc=yes
11333else
11334 echo "$as_me: failed program was:" >&5
11335sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_header_preproc=no
11338fi
Reid Spencera773bd52006-08-04 18:18:08 +000011339
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011340rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343
11344# So? What about this header?
11345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11346 yes:no: )
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11352 ;;
11353 no:yes:* )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011366 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367## ----------------------------------- ##
11368## Report this to llvmbugs@cs.uiuc.edu ##
11369## ----------------------------------- ##
11370_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011371 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372 ;;
11373esac
Reid Spencera773bd52006-08-04 18:18:08 +000011374{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011377 echo $ECHO_N "(cached) $ECHO_C" >&6
11378else
11379 eval "$as_ac_Header=\$ac_header_preproc"
11380fi
Reid Spencera773bd52006-08-04 18:18:08 +000011381ac_res=`eval echo '${'$as_ac_Header'}'`
11382 { echo "$as_me:$LINENO: result: $ac_res" >&5
11383echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384
11385fi
11386if test `eval echo '${'$as_ac_Header'}'` = yes; then
11387 cat >>confdefs.h <<_ACEOF
11388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11389_ACEOF
11390
11391fi
11392
11393done
11394
11395
11396
11397
11398
11399for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11400do
11401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407fi
Reid Spencera773bd52006-08-04 18:18:08 +000011408ac_res=`eval echo '${'$as_ac_Header'}'`
11409 { echo "$as_me:$LINENO: result: $ac_res" >&5
11410echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411else
11412 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011413{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421$ac_includes_default
11422#include <$ac_header>
11423_ACEOF
11424rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011425if { (ac_try="$ac_compile"
11426case "(($ac_try" in
11427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428 *) ac_try_echo=$ac_try;;
11429esac
11430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11439 { (case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_try") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; } &&
11448 { ac_try='test -s conftest.$ac_objext'
11449 { (case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452esac
11453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454 (eval "$ac_try") 2>&5
11455 ac_status=$?
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011458 ac_header_compiler=yes
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
Reid Spencera773bd52006-08-04 18:18:08 +000011463 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464fi
Reid Spencera773bd52006-08-04 18:18:08 +000011465
11466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11467{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11468echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011469
11470# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011471{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479#include <$ac_header>
11480_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011481if { (ac_try="$ac_cpp conftest.$ac_ext"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011493 (exit $ac_status); } >/dev/null; then
11494 if test -s conftest.err; then
11495 ac_cpp_err=$ac_c_preproc_warn_flag
11496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11497 else
11498 ac_cpp_err=
11499 fi
11500else
11501 ac_cpp_err=yes
11502fi
11503if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011504 ac_header_preproc=yes
11505else
11506 echo "$as_me: failed program was:" >&5
11507sed 's/^/| /' conftest.$ac_ext >&5
11508
11509 ac_header_preproc=no
11510fi
Reid Spencera773bd52006-08-04 18:18:08 +000011511
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011512rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011513{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11514echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515
11516# So? What about this header?
11517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11518 yes:no: )
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11520echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11522echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11523 ac_header_preproc=yes
11524 ;;
11525 no:yes:* )
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11531echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11533echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11535echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11537echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011538 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539## ----------------------------------- ##
11540## Report this to llvmbugs@cs.uiuc.edu ##
11541## ----------------------------------- ##
11542_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011543 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 ;;
11545esac
Reid Spencera773bd52006-08-04 18:18:08 +000011546{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 eval "$as_ac_Header=\$ac_header_preproc"
11552fi
Reid Spencera773bd52006-08-04 18:18:08 +000011553ac_res=`eval echo '${'$as_ac_Header'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011556
11557fi
11558if test `eval echo '${'$as_ac_Header'}'` = yes; then
11559 cat >>confdefs.h <<_ACEOF
11560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11561_ACEOF
11562
11563fi
11564
11565done
11566
11567
11568
11569for ac_header in string.h strings.h
11570do
11571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011572if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577fi
Reid Spencera773bd52006-08-04 18:18:08 +000011578ac_res=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581else
11582 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011583{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591$ac_includes_default
11592#include <$ac_header>
11593_ACEOF
11594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011595if { (ac_try="$ac_compile"
11596case "(($ac_try" in
11597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11599esac
11600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011602 ac_status=$?
11603 grep -v '^ *+' conftest.er1 >conftest.err
11604 rm -f conftest.er1
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011607 (exit $ac_status); } &&
11608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11609 { (case "(($ac_try" in
11610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611 *) ac_try_echo=$ac_try;;
11612esac
11613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614 (eval "$ac_try") 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (case "(($ac_try" in
11620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621 *) ac_try_echo=$ac_try;;
11622esac
11623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624 (eval "$ac_try") 2>&5
11625 ac_status=$?
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011628 ac_header_compiler=yes
11629else
11630 echo "$as_me: failed program was:" >&5
11631sed 's/^/| /' conftest.$ac_ext >&5
11632
Reid Spencera773bd52006-08-04 18:18:08 +000011633 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634fi
Reid Spencera773bd52006-08-04 18:18:08 +000011635
11636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11638echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011639
11640# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011641{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11642echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643cat >conftest.$ac_ext <<_ACEOF
11644/* confdefs.h. */
11645_ACEOF
11646cat confdefs.h >>conftest.$ac_ext
11647cat >>conftest.$ac_ext <<_ACEOF
11648/* end confdefs.h. */
11649#include <$ac_header>
11650_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011651if { (ac_try="$ac_cpp conftest.$ac_ext"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011663 (exit $ac_status); } >/dev/null; then
11664 if test -s conftest.err; then
11665 ac_cpp_err=$ac_c_preproc_warn_flag
11666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11667 else
11668 ac_cpp_err=
11669 fi
11670else
11671 ac_cpp_err=yes
11672fi
11673if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674 ac_header_preproc=yes
11675else
11676 echo "$as_me: failed program was:" >&5
11677sed 's/^/| /' conftest.$ac_ext >&5
11678
11679 ac_header_preproc=no
11680fi
Reid Spencera773bd52006-08-04 18:18:08 +000011681
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011682rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011683{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11684echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685
11686# So? What about this header?
11687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11688 yes:no: )
11689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11690echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11692echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11693 ac_header_preproc=yes
11694 ;;
11695 no:yes:* )
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11697echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11699echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11701echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11703echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11707echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011708 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709## ----------------------------------- ##
11710## Report this to llvmbugs@cs.uiuc.edu ##
11711## ----------------------------------- ##
11712_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011713 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714 ;;
11715esac
Reid Spencera773bd52006-08-04 18:18:08 +000011716{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719 echo $ECHO_N "(cached) $ECHO_C" >&6
11720else
11721 eval "$as_ac_Header=\$ac_header_preproc"
11722fi
Reid Spencera773bd52006-08-04 18:18:08 +000011723ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011726
11727fi
11728if test `eval echo '${'$as_ac_Header'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11731_ACEOF
11732 break
11733fi
11734
11735done
11736
11737
11738
11739
11740for ac_func in strchr index
11741do
11742as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011743{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11744echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */
11754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756#define $ac_func innocuous_$ac_func
11757
11758/* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11762
11763#ifdef __STDC__
11764# include <limits.h>
11765#else
11766# include <assert.h>
11767#endif
11768
11769#undef $ac_func
11770
Reid Spencera773bd52006-08-04 18:18:08 +000011771/* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774#ifdef __cplusplus
11775extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777char $ac_func ();
11778/* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011781#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783#endif
11784
11785int
11786main ()
11787{
Reid Spencera773bd52006-08-04 18:18:08 +000011788return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 eval "$as_ac_var=yes"
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
Reid Spencera773bd52006-08-04 18:18:08 +000011832 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833fi
Reid Spencera773bd52006-08-04 18:18:08 +000011834
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011835rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836 conftest$ac_exeext conftest.$ac_ext
11837fi
Reid Spencera773bd52006-08-04 18:18:08 +000011838ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844_ACEOF
11845 break
11846fi
11847done
11848
11849
11850
11851for ac_func in strrchr rindex
11852do
11853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859 cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867#define $ac_func innocuous_$ac_func
11868
11869/* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11873
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879
11880#undef $ac_func
11881
Reid Spencera773bd52006-08-04 18:18:08 +000011882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885#ifdef __cplusplus
11886extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888char $ac_func ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011892#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894#endif
11895
11896int
11897main ()
11898{
Reid Spencera773bd52006-08-04 18:18:08 +000011899return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011905if { (ac_try="$ac_link"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
11935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 eval "$as_ac_var=yes"
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
Reid Spencera773bd52006-08-04 18:18:08 +000011943 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944fi
Reid Spencera773bd52006-08-04 18:18:08 +000011945
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 conftest$ac_exeext conftest.$ac_ext
11948fi
Reid Spencera773bd52006-08-04 18:18:08 +000011949ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955_ACEOF
11956 break
11957fi
11958done
11959
11960
11961
11962for ac_func in memcpy bcopy
11963do
11964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011965{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11967if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968 echo $ECHO_N "(cached) $ECHO_C" >&6
11969else
11970 cat >conftest.$ac_ext <<_ACEOF
11971/* confdefs.h. */
11972_ACEOF
11973cat confdefs.h >>conftest.$ac_ext
11974cat >>conftest.$ac_ext <<_ACEOF
11975/* end confdefs.h. */
11976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978#define $ac_func innocuous_$ac_func
11979
11980/* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11984
11985#ifdef __STDC__
11986# include <limits.h>
11987#else
11988# include <assert.h>
11989#endif
11990
11991#undef $ac_func
11992
Reid Spencera773bd52006-08-04 18:18:08 +000011993/* Override any GCC internal prototype to avoid an error.
11994 Use char because int might match the return type of a GCC
11995 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011996#ifdef __cplusplus
11997extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011998#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999char $ac_func ();
12000/* The GNU C library defines this for functions which it implements
12001 to always fail with ENOSYS. Some functions are actually named
12002 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012003#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012004choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005#endif
12006
12007int
12008main ()
12009{
Reid Spencera773bd52006-08-04 18:18:08 +000012010return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012016if { (ac_try="$ac_link"
12017case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012023 ac_status=$?
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012028 (exit $ac_status); } &&
12029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12030 { (case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_try") 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043esac
12044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_try") 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049 eval "$as_ac_var=yes"
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
Reid Spencera773bd52006-08-04 18:18:08 +000012054 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055fi
Reid Spencera773bd52006-08-04 18:18:08 +000012056
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012057rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 conftest$ac_exeext conftest.$ac_ext
12059fi
Reid Spencera773bd52006-08-04 18:18:08 +000012060ac_res=`eval echo '${'$as_ac_var'}'`
12061 { echo "$as_me:$LINENO: result: $ac_res" >&5
12062echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063if test `eval echo '${'$as_ac_var'}'` = yes; then
12064 cat >>confdefs.h <<_ACEOF
12065#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12066_ACEOF
12067 break
12068fi
12069done
12070
12071
12072
12073for ac_func in memmove strcmp
12074do
12075as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012076{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12077echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12078if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080else
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12089#define $ac_func innocuous_$ac_func
12090
12091/* System header to define __stub macros and hopefully few prototypes,
12092 which can conflict with char $ac_func (); below.
12093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12094 <limits.h> exists even on freestanding compilers. */
12095
12096#ifdef __STDC__
12097# include <limits.h>
12098#else
12099# include <assert.h>
12100#endif
12101
12102#undef $ac_func
12103
Reid Spencera773bd52006-08-04 18:18:08 +000012104/* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107#ifdef __cplusplus
12108extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012109#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110char $ac_func ();
12111/* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012114#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116#endif
12117
12118int
12119main ()
12120{
Reid Spencera773bd52006-08-04 18:18:08 +000012121return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012127if { (ac_try="$ac_link"
12128case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12141 { (case "(($ac_try" in
12142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12144esac
12145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_try") 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest$ac_exeext'
12151 { (case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_try") 2>&5
12157 ac_status=$?
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012160 eval "$as_ac_var=yes"
12161else
12162 echo "$as_me: failed program was:" >&5
12163sed 's/^/| /' conftest.$ac_ext >&5
12164
Reid Spencera773bd52006-08-04 18:18:08 +000012165 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166fi
Reid Spencera773bd52006-08-04 18:18:08 +000012167
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012168rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169 conftest$ac_exeext conftest.$ac_ext
12170fi
Reid Spencera773bd52006-08-04 18:18:08 +000012171ac_res=`eval echo '${'$as_ac_var'}'`
12172 { echo "$as_me:$LINENO: result: $ac_res" >&5
12173echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174if test `eval echo '${'$as_ac_var'}'` = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12177_ACEOF
12178
12179fi
12180done
12181
12182
12183
12184
12185for ac_func in closedir opendir readdir
12186do
12187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012188{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12190if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12201#define $ac_func innocuous_$ac_func
12202
12203/* System header to define __stub macros and hopefully few prototypes,
12204 which can conflict with char $ac_func (); below.
12205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12206 <limits.h> exists even on freestanding compilers. */
12207
12208#ifdef __STDC__
12209# include <limits.h>
12210#else
12211# include <assert.h>
12212#endif
12213
12214#undef $ac_func
12215
Reid Spencera773bd52006-08-04 18:18:08 +000012216/* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012219#ifdef __cplusplus
12220extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012221#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222char $ac_func ();
12223/* The GNU C library defines this for functions which it implements
12224 to always fail with ENOSYS. Some functions are actually named
12225 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012226#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228#endif
12229
12230int
12231main ()
12232{
Reid Spencera773bd52006-08-04 18:18:08 +000012233return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234 ;
12235 return 0;
12236}
12237_ACEOF
12238rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012239if { (ac_try="$ac_link"
12240case "(($ac_try" in
12241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12243esac
12244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246 ac_status=$?
12247 grep -v '^ *+' conftest.er1 >conftest.err
12248 rm -f conftest.er1
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012251 (exit $ac_status); } &&
12252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12253 { (case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_try") 2>&5
12259 ac_status=$?
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; } &&
12262 { ac_try='test -s conftest$ac_exeext'
12263 { (case "(($ac_try" in
12264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12265 *) ac_try_echo=$ac_try;;
12266esac
12267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_try") 2>&5
12269 ac_status=$?
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012272 eval "$as_ac_var=yes"
12273else
12274 echo "$as_me: failed program was:" >&5
12275sed 's/^/| /' conftest.$ac_ext >&5
12276
Reid Spencera773bd52006-08-04 18:18:08 +000012277 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278fi
Reid Spencera773bd52006-08-04 18:18:08 +000012279
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012280rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281 conftest$ac_exeext conftest.$ac_ext
12282fi
Reid Spencera773bd52006-08-04 18:18:08 +000012283ac_res=`eval echo '${'$as_ac_var'}'`
12284 { echo "$as_me:$LINENO: result: $ac_res" >&5
12285echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286if test `eval echo '${'$as_ac_var'}'` = yes; then
12287 cat >>confdefs.h <<_ACEOF
12288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289_ACEOF
12290
12291fi
12292done
12293
12294
Reid Spencera773bd52006-08-04 18:18:08 +000012295# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012296if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012297 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012298 case $enableval in
12299 yes) enable_shared=yes ;;
12300 no) enable_shared=no ;;
12301 *)
12302 enable_shared=no
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12306 IFS="$lt_save_ifs"
12307 if test "X$pkg" = "X$p"; then
12308 enable_shared=yes
12309 fi
12310 done
12311 IFS="$lt_save_ifs"
12312 ;;
12313 esac
12314else
12315 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012316fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317
Reid Spencera773bd52006-08-04 18:18:08 +000012318
12319# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012321 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322 case $enableval in
12323 yes) enable_static=yes ;;
12324 no) enable_static=no ;;
12325 *)
12326 enable_static=no
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329 for pkg in $enableval; do
12330 IFS="$lt_save_ifs"
12331 if test "X$pkg" = "X$p"; then
12332 enable_static=yes
12333 fi
12334 done
12335 IFS="$lt_save_ifs"
12336 ;;
12337 esac
12338else
12339 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012340fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341
Reid Spencera773bd52006-08-04 18:18:08 +000012342
12343# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012345 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012346 case $enableval in
12347 yes) enable_fast_install=yes ;;
12348 no) enable_fast_install=no ;;
12349 *)
12350 enable_fast_install=no
12351 # Look at the argument we got. We use all the common list separators.
12352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12353 for pkg in $enableval; do
12354 IFS="$lt_save_ifs"
12355 if test "X$pkg" = "X$p"; then
12356 enable_fast_install=yes
12357 fi
12358 done
12359 IFS="$lt_save_ifs"
12360 ;;
12361 esac
12362else
12363 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012364fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365
Reid Spencera773bd52006-08-04 18:18:08 +000012366
12367{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12368echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369if test "${lt_cv_path_SED+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371else
12372 # Loop through the user's path and test for sed and gsed.
12373# Then use that list of sed's as ones to test for truncation.
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for lt_ac_prog in sed gsed; do
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12382 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12383 fi
12384 done
12385 done
12386done
12387lt_ac_max=0
12388lt_ac_count=0
12389# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12390# along with /bin/sed that truncates output.
12391for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012392 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 cat /dev/null > conftest.in
12394 lt_ac_count=0
12395 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12396 # Check for GNU sed and select it if it is found.
12397 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12398 lt_cv_path_SED=$lt_ac_sed
12399 break
12400 fi
12401 while true; do
12402 cat conftest.in conftest.in >conftest.tmp
12403 mv conftest.tmp conftest.in
12404 cp conftest.in conftest.nl
12405 echo >>conftest.nl
12406 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12407 cmp -s conftest.out conftest.nl || break
12408 # 10000 chars as input seems more than enough
12409 test $lt_ac_count -gt 10 && break
12410 lt_ac_count=`expr $lt_ac_count + 1`
12411 if test $lt_ac_count -gt $lt_ac_max; then
12412 lt_ac_max=$lt_ac_count
12413 lt_cv_path_SED=$lt_ac_sed
12414 fi
12415 done
12416done
12417
12418fi
12419
12420SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012421{ echo "$as_me:$LINENO: result: $SED" >&5
12422echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423
12424
Reid Spencera773bd52006-08-04 18:18:08 +000012425# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012427 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428else
12429 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012430fi
12431
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432ac_prog=ld
12433if test "$GCC" = yes; then
12434 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012435 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12436echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012437 case $host in
12438 *-*-mingw*)
12439 # gcc leaves a trailing carriage return which upsets mingw
12440 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12441 *)
12442 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12443 esac
12444 case $ac_prog in
12445 # Accept absolute paths.
12446 [\\/]* | ?:[\\/]*)
12447 re_direlt='/[^/][^/]*/\.\./'
12448 # Canonicalize the pathname of ld
12449 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12450 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12451 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12452 done
12453 test -z "$LD" && LD="$ac_prog"
12454 ;;
12455 "")
12456 # If it fails, then pretend we aren't using GCC.
12457 ac_prog=ld
12458 ;;
12459 *)
12460 # If it is relative, then search for the first ld in PATH.
12461 with_gnu_ld=unknown
12462 ;;
12463 esac
12464elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012465 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12466echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467else
Reid Spencera773bd52006-08-04 18:18:08 +000012468 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12469echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470fi
12471if test "${lt_cv_path_LD+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12473else
12474 if test -z "$LD"; then
12475 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12476 for ac_dir in $PATH; do
12477 IFS="$lt_save_ifs"
12478 test -z "$ac_dir" && ac_dir=.
12479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12480 lt_cv_path_LD="$ac_dir/$ac_prog"
12481 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012482 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483 # Break only if it was the GNU/non-GNU ld that we prefer.
12484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12485 *GNU* | *'with BFD'*)
12486 test "$with_gnu_ld" != no && break
12487 ;;
12488 *)
12489 test "$with_gnu_ld" != yes && break
12490 ;;
12491 esac
12492 fi
12493 done
12494 IFS="$lt_save_ifs"
12495else
12496 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12497fi
12498fi
12499
12500LD="$lt_cv_path_LD"
12501if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012502 { echo "$as_me:$LINENO: result: $LD" >&5
12503echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012504else
Reid Spencera773bd52006-08-04 18:18:08 +000012505 { echo "$as_me:$LINENO: result: no" >&5
12506echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012507fi
12508test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12509echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12510 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012511{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12512echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513if test "${lt_cv_prog_gnu_ld+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
Reid Spencera773bd52006-08-04 18:18:08 +000012516 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517case `$LD -v 2>&1 </dev/null` in
12518*GNU* | *'with BFD'*)
12519 lt_cv_prog_gnu_ld=yes
12520 ;;
12521*)
12522 lt_cv_prog_gnu_ld=no
12523 ;;
12524esac
12525fi
Reid Spencera773bd52006-08-04 18:18:08 +000012526{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12527echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012528with_gnu_ld=$lt_cv_prog_gnu_ld
12529
12530
Reid Spencera773bd52006-08-04 18:18:08 +000012531{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12532echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012533if test "${lt_cv_ld_reload_flag+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 lt_cv_ld_reload_flag='-r'
12537fi
Reid Spencera773bd52006-08-04 18:18:08 +000012538{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12539echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540reload_flag=$lt_cv_ld_reload_flag
12541case $reload_flag in
12542"" | " "*) ;;
12543*) reload_flag=" $reload_flag" ;;
12544esac
12545reload_cmds='$LD$reload_flag -o $output$reload_objs'
12546case $host_os in
12547 darwin*)
12548 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012549 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550 else
12551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12552 fi
12553 ;;
12554esac
12555
Reid Spencera773bd52006-08-04 18:18:08 +000012556{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12557echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012558if test "${lt_cv_deplibs_check_method+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12560else
12561 lt_cv_file_magic_cmd='$MAGIC_CMD'
12562lt_cv_file_magic_test_file=
12563lt_cv_deplibs_check_method='unknown'
12564# Need to set the preceding variable on all platforms that support
12565# interlibrary dependencies.
12566# 'none' -- dependencies not supported.
12567# `unknown' -- same as none, but documents that we really don't know.
12568# 'pass_all' -- all dependencies passed with no checks.
12569# 'test_compile' -- check by making test program.
12570# 'file_magic [[regex]]' -- check by looking for files in library path
12571# which responds to the $file_magic_cmd with a given extended regex.
12572# If you have `file' or equivalent on your system and you're not sure
12573# whether `pass_all' will *always* work, you probably want this one.
12574
12575case $host_os in
12576aix4* | aix5*)
12577 lt_cv_deplibs_check_method=pass_all
12578 ;;
12579
12580beos*)
12581 lt_cv_deplibs_check_method=pass_all
12582 ;;
12583
12584bsdi[45]*)
12585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12586 lt_cv_file_magic_cmd='/usr/bin/file -L'
12587 lt_cv_file_magic_test_file=/shlib/libc.so
12588 ;;
12589
12590cygwin*)
12591 # func_win32_libid is a shell function defined in ltmain.sh
12592 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593 lt_cv_file_magic_cmd='func_win32_libid'
12594 ;;
12595
12596mingw* | pw32*)
12597 # Base MSYS/MinGW do not provide the 'file' command needed by
12598 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12599 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12600 lt_cv_file_magic_cmd='$OBJDUMP -f'
12601 ;;
12602
12603darwin* | rhapsody*)
12604 lt_cv_deplibs_check_method=pass_all
12605 ;;
12606
Reid Spencera773bd52006-08-04 18:18:08 +000012607freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609 case $host_cpu in
12610 i*86 )
12611 # Not sure whether the presence of OpenBSD here was a mistake.
12612 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012613 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 +000012614 lt_cv_file_magic_cmd=/usr/bin/file
12615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12616 ;;
12617 esac
12618 else
12619 lt_cv_deplibs_check_method=pass_all
12620 fi
12621 ;;
12622
12623gnu*)
12624 lt_cv_deplibs_check_method=pass_all
12625 ;;
12626
12627hpux10.20* | hpux11*)
12628 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012629 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012630 ia64*)
12631 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633 ;;
12634 hppa*64*)
12635 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]'
12636 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637 ;;
12638 *)
12639 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12640 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641 ;;
12642 esac
12643 ;;
12644
Reid Spencera773bd52006-08-04 18:18:08 +000012645interix3*)
12646 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648 ;;
12649
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012650irix5* | irix6* | nonstopux*)
12651 case $LD in
12652 *-32|*"-32 ") libmagic=32-bit;;
12653 *-n32|*"-n32 ") libmagic=N32;;
12654 *-64|*"-64 ") libmagic=64-bit;;
12655 *) libmagic=never-match;;
12656 esac
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
12659
12660# This must be Linux ELF.
12661linux*)
12662 lt_cv_deplibs_check_method=pass_all
12663 ;;
12664
12665netbsd*)
12666 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12667 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12668 else
12669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670 fi
12671 ;;
12672
12673newos6*)
12674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675 lt_cv_file_magic_cmd=/usr/bin/file
12676 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677 ;;
12678
12679nto-qnx*)
12680 lt_cv_deplibs_check_method=unknown
12681 ;;
12682
12683openbsd*)
12684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12685 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12686 else
12687 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688 fi
12689 ;;
12690
12691osf3* | osf4* | osf5*)
12692 lt_cv_deplibs_check_method=pass_all
12693 ;;
12694
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695solaris*)
12696 lt_cv_deplibs_check_method=pass_all
12697 ;;
12698
Reid Spencera773bd52006-08-04 18:18:08 +000012699sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012700 case $host_vendor in
12701 motorola)
12702 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]'
12703 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12704 ;;
12705 ncr)
12706 lt_cv_deplibs_check_method=pass_all
12707 ;;
12708 sequent)
12709 lt_cv_file_magic_cmd='/bin/file'
12710 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12711 ;;
12712 sni)
12713 lt_cv_file_magic_cmd='/bin/file'
12714 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12715 lt_cv_file_magic_test_file=/lib/libc.so
12716 ;;
12717 siemens)
12718 lt_cv_deplibs_check_method=pass_all
12719 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012720 pc)
12721 lt_cv_deplibs_check_method=pass_all
12722 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723 esac
12724 ;;
12725
Reid Spencera773bd52006-08-04 18:18:08 +000012726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012727 lt_cv_deplibs_check_method=pass_all
12728 ;;
12729esac
12730
12731fi
Reid Spencera773bd52006-08-04 18:18:08 +000012732{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12733echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012734file_magic_cmd=$lt_cv_file_magic_cmd
12735deplibs_check_method=$lt_cv_deplibs_check_method
12736test -z "$deplibs_check_method" && deplibs_check_method=unknown
12737
12738
12739
12740# If no C compiler was specified, use CC.
12741LTCC=${LTCC-"$CC"}
12742
Reid Spencera773bd52006-08-04 18:18:08 +000012743# If no C compiler flags were specified, use CFLAGS.
12744LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12745
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012746# Allow CC to be a program name with arguments.
12747compiler=$CC
12748
Reid Spencera773bd52006-08-04 18:18:08 +000012749# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012750if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012751 enableval=$enable_libtool_lock;
12752fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012753
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012754test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12755
12756# Some flags need to be propagated to the compiler or linker for good
12757# libtool support.
12758case $host in
12759ia64-*-hpux*)
12760 # Find out which ABI we are using.
12761 echo 'int i;' > conftest.$ac_ext
12762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12763 (eval $ac_compile) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; then
12767 case `/usr/bin/file conftest.$ac_objext` in
12768 *ELF-32*)
12769 HPUX_IA64_MODE="32"
12770 ;;
12771 *ELF-64*)
12772 HPUX_IA64_MODE="64"
12773 ;;
12774 esac
12775 fi
12776 rm -rf conftest*
12777 ;;
12778*-*-irix6*)
12779 # Find out which ABI we are using.
Nick Lewyckyfb138812009-03-12 03:34:33 +000012780 echo '#line 12780 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12782 (eval $ac_compile) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; then
12786 if test "$lt_cv_prog_gnu_ld" = yes; then
12787 case `/usr/bin/file conftest.$ac_objext` in
12788 *32-bit*)
12789 LD="${LD-ld} -melf32bsmip"
12790 ;;
12791 *N32*)
12792 LD="${LD-ld} -melf32bmipn32"
12793 ;;
12794 *64-bit*)
12795 LD="${LD-ld} -melf64bmip"
12796 ;;
12797 esac
12798 else
12799 case `/usr/bin/file conftest.$ac_objext` in
12800 *32-bit*)
12801 LD="${LD-ld} -32"
12802 ;;
12803 *N32*)
12804 LD="${LD-ld} -n32"
12805 ;;
12806 *64-bit*)
12807 LD="${LD-ld} -64"
12808 ;;
12809 esac
12810 fi
12811 fi
12812 rm -rf conftest*
12813 ;;
12814
12815x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012823 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012824 *32-bit*)
12825 case $host in
12826 x86_64-*linux*)
12827 LD="${LD-ld} -m elf_i386"
12828 ;;
12829 ppc64-*linux*|powerpc64-*linux*)
12830 LD="${LD-ld} -m elf32ppclinux"
12831 ;;
12832 s390x-*linux*)
12833 LD="${LD-ld} -m elf_s390"
12834 ;;
12835 sparc64-*linux*)
12836 LD="${LD-ld} -m elf32_sparc"
12837 ;;
12838 esac
12839 ;;
12840 *64-bit*)
12841 case $host in
12842 x86_64-*linux*)
12843 LD="${LD-ld} -m elf_x86_64"
12844 ;;
12845 ppc*-*linux*|powerpc*-*linux*)
12846 LD="${LD-ld} -m elf64ppc"
12847 ;;
12848 s390*-*linux*)
12849 LD="${LD-ld} -m elf64_s390"
12850 ;;
12851 sparc*-*linux*)
12852 LD="${LD-ld} -m elf64_sparc"
12853 ;;
12854 esac
12855 ;;
12856 esac
12857 fi
12858 rm -rf conftest*
12859 ;;
12860
12861*-*-sco3.2v5*)
12862 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12863 SAVE_CFLAGS="$CFLAGS"
12864 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012865 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12866echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012867if test "${lt_cv_cc_needs_belf+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12869else
12870 ac_ext=c
12871ac_cpp='$CPP $CPPFLAGS'
12872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
Reid Spencera773bd52006-08-04 18:18:08 +000012883int
12884main ()
12885{
12886
12887 ;
12888 return 0;
12889}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012890_ACEOF
12891rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012892if { (ac_try="$ac_link"
12893case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896esac
12897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012899 ac_status=$?
12900 grep -v '^ *+' conftest.er1 >conftest.err
12901 rm -f conftest.er1
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909esac
12910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12919esac
12920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012925 lt_cv_cc_needs_belf=yes
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
Reid Spencera773bd52006-08-04 18:18:08 +000012930 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012931fi
Reid Spencera773bd52006-08-04 18:18:08 +000012932
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012933rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012934 conftest$ac_exeext conftest.$ac_ext
12935 ac_ext=c
12936ac_cpp='$CPP $CPPFLAGS'
12937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12939ac_compiler_gnu=$ac_cv_c_compiler_gnu
12940
12941fi
Reid Spencera773bd52006-08-04 18:18:08 +000012942{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12943echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12946 CFLAGS="$SAVE_CFLAGS"
12947 fi
12948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012949sparc*-*solaris*)
12950 # Find out which ABI we are using.
12951 echo 'int i;' > conftest.$ac_ext
12952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12953 (eval $ac_compile) 2>&5
12954 ac_status=$?
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); }; then
12957 case `/usr/bin/file conftest.o` in
12958 *64-bit*)
12959 case $lt_cv_prog_gnu_ld in
12960 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12961 *) LD="${LD-ld} -64" ;;
12962 esac
12963 ;;
12964 esac
12965 fi
12966 rm -rf conftest*
12967 ;;
12968
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012969
12970esac
12971
12972need_locks="$enable_libtool_lock"
12973
12974
Reid Spencer2706f8c2004-09-19 23:53:36 +000012975
12976
12977if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12978 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12979 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012980 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012981ac_cpp='$CXXCPP $CPPFLAGS'
12982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012985{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12986echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012987if test -z "$CXXCPP"; then
12988 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
John Criswell47fdd832003-07-14 16:52:07 +000012991 # Double quotes because CXXCPP needs to be expanded
12992 for CXXCPP in "$CXX -E" "/lib/cpp"
12993 do
12994 ac_preproc_ok=false
12995for ac_cxx_preproc_warn_flag in '' yes
12996do
12997 # Use a header file that comes with gcc, so configuring glibc
12998 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13000 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013001 # On the NeXT, cc -E runs the code through the compiler's parser,
13002 # not just through cpp. "Syntax error" is here to catch this case.
13003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009#ifdef __STDC__
13010# include <limits.h>
13011#else
13012# include <assert.h>
13013#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013014 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013015_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013016if { (ac_try="$ac_cpp conftest.$ac_ext"
13017case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13020esac
13021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013023 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013024 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013025 rm -f conftest.er1
13026 cat conftest.err >&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013028 (exit $ac_status); } >/dev/null; then
13029 if test -s conftest.err; then
13030 ac_cpp_err=$ac_cxx_preproc_warn_flag
13031 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13032 else
13033 ac_cpp_err=
13034 fi
13035else
13036 ac_cpp_err=yes
13037fi
13038if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013039 :
13040else
13041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013042sed 's/^/| /' conftest.$ac_ext >&5
13043
John Criswell47fdd832003-07-14 16:52:07 +000013044 # Broken: fails on valid input.
13045continue
13046fi
Reid Spencera773bd52006-08-04 18:18:08 +000013047
John Criswell47fdd832003-07-14 16:52:07 +000013048rm -f conftest.err conftest.$ac_ext
13049
Reid Spencera773bd52006-08-04 18:18:08 +000013050 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013051 # can be detected and how.
13052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013053/* confdefs.h. */
13054_ACEOF
13055cat confdefs.h >>conftest.$ac_ext
13056cat >>conftest.$ac_ext <<_ACEOF
13057/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013058#include <ac_nonexistent.h>
13059_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013060if { (ac_try="$ac_cpp conftest.$ac_ext"
13061case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013067 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013068 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013069 rm -f conftest.er1
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013072 (exit $ac_status); } >/dev/null; then
13073 if test -s conftest.err; then
13074 ac_cpp_err=$ac_cxx_preproc_warn_flag
13075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13076 else
13077 ac_cpp_err=
13078 fi
13079else
13080 ac_cpp_err=yes
13081fi
13082if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013083 # Broken: success on invalid input.
13084continue
13085else
13086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013087sed 's/^/| /' conftest.$ac_ext >&5
13088
John Criswell47fdd832003-07-14 16:52:07 +000013089 # Passes both tests.
13090ac_preproc_ok=:
13091break
13092fi
Reid Spencera773bd52006-08-04 18:18:08 +000013093
John Criswell47fdd832003-07-14 16:52:07 +000013094rm -f conftest.err conftest.$ac_ext
13095
13096done
13097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13098rm -f conftest.err conftest.$ac_ext
13099if $ac_preproc_ok; then
13100 break
John Criswell7a73b802003-06-30 21:59:07 +000013101fi
13102
John Criswell47fdd832003-07-14 16:52:07 +000013103 done
13104 ac_cv_prog_CXXCPP=$CXXCPP
13105
13106fi
13107 CXXCPP=$ac_cv_prog_CXXCPP
13108else
13109 ac_cv_prog_CXXCPP=$CXXCPP
13110fi
Reid Spencera773bd52006-08-04 18:18:08 +000013111{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13112echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013113ac_preproc_ok=false
13114for ac_cxx_preproc_warn_flag in '' yes
13115do
13116 # Use a header file that comes with gcc, so configuring glibc
13117 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013120 # On the NeXT, cc -E runs the code through the compiler's parser,
13121 # not just through cpp. "Syntax error" is here to catch this case.
13122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
13128#ifdef __STDC__
13129# include <limits.h>
13130#else
13131# include <assert.h>
13132#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013133 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013134_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013135if { (ac_try="$ac_cpp conftest.$ac_ext"
13136case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139esac
13140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013142 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013143 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013147 (exit $ac_status); } >/dev/null; then
13148 if test -s conftest.err; then
13149 ac_cpp_err=$ac_cxx_preproc_warn_flag
13150 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13151 else
13152 ac_cpp_err=
13153 fi
13154else
13155 ac_cpp_err=yes
13156fi
13157if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013158 :
13159else
13160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013161sed 's/^/| /' conftest.$ac_ext >&5
13162
John Criswell47fdd832003-07-14 16:52:07 +000013163 # Broken: fails on valid input.
13164continue
13165fi
Reid Spencera773bd52006-08-04 18:18:08 +000013166
John Criswell47fdd832003-07-14 16:52:07 +000013167rm -f conftest.err conftest.$ac_ext
13168
Reid Spencera773bd52006-08-04 18:18:08 +000013169 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013170 # can be detected and how.
13171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013177#include <ac_nonexistent.h>
13178_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013179if { (ac_try="$ac_cpp conftest.$ac_ext"
13180case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013186 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013187 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013191 (exit $ac_status); } >/dev/null; then
13192 if test -s conftest.err; then
13193 ac_cpp_err=$ac_cxx_preproc_warn_flag
13194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13195 else
13196 ac_cpp_err=
13197 fi
13198else
13199 ac_cpp_err=yes
13200fi
13201if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013202 # Broken: success on invalid input.
13203continue
13204else
13205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013206sed 's/^/| /' conftest.$ac_ext >&5
13207
John Criswell47fdd832003-07-14 16:52:07 +000013208 # Passes both tests.
13209ac_preproc_ok=:
13210break
13211fi
Reid Spencera773bd52006-08-04 18:18:08 +000013212
John Criswell47fdd832003-07-14 16:52:07 +000013213rm -f conftest.err conftest.$ac_ext
13214
13215done
13216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13217rm -f conftest.err conftest.$ac_ext
13218if $ac_preproc_ok; then
13219 :
13220else
John Criswell0c38eaf2003-09-10 15:17:25 +000013221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13222See \`config.log' for more details." >&5
13223echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13224See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013225 { (exit 1); exit 1; }; }
13226fi
13227
Reid Spencera773bd52006-08-04 18:18:08 +000013228ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013229ac_cpp='$CXXCPP $CPPFLAGS'
13230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13233
Reid Spencer2706f8c2004-09-19 23:53:36 +000013234fi
13235
John Criswell47fdd832003-07-14 16:52:07 +000013236
13237ac_ext=f
13238ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13239ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13241if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013242 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 +000013243 do
13244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013248if test "${ac_cv_prog_F77+set}" = set; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
13251 if test -n "$F77"; then
13252 ac_cv_prog_F77="$F77" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013260 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 +000013261 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265done
13266done
Reid Spencera773bd52006-08-04 18:18:08 +000013267IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013268
13269fi
13270fi
13271F77=$ac_cv_prog_F77
13272if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013273 { echo "$as_me:$LINENO: result: $F77" >&5
13274echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013275else
Reid Spencera773bd52006-08-04 18:18:08 +000013276 { echo "$as_me:$LINENO: result: no" >&5
13277echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013278fi
13279
Reid Spencera773bd52006-08-04 18:18:08 +000013280
John Criswell47fdd832003-07-14 16:52:07 +000013281 test -n "$F77" && break
13282 done
13283fi
13284if test -z "$F77"; then
13285 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013286 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 +000013287do
13288 # Extract the first word of "$ac_prog", so it can be a program name with args.
13289set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013292if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 if test -n "$ac_ct_F77"; then
13296 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13297else
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
13303 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013304 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 +000013305 ac_cv_prog_ac_ct_F77="$ac_prog"
13306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13307 break 2
13308 fi
13309done
13310done
Reid Spencera773bd52006-08-04 18:18:08 +000013311IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013312
13313fi
13314fi
13315ac_ct_F77=$ac_cv_prog_ac_ct_F77
13316if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013317 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13318echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013319else
Reid Spencera773bd52006-08-04 18:18:08 +000013320 { echo "$as_me:$LINENO: result: no" >&5
13321echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013322fi
13323
Reid Spencera773bd52006-08-04 18:18:08 +000013324
John Criswell47fdd832003-07-14 16:52:07 +000013325 test -n "$ac_ct_F77" && break
13326done
13327
Reid Spencera773bd52006-08-04 18:18:08 +000013328 if test "x$ac_ct_F77" = x; then
13329 F77=""
13330 else
13331 case $cross_compiling:$ac_tool_warned in
13332yes:)
13333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13334whose name does not start with the host triplet. If you think this
13335configuration is useful to you, please write to autoconf@gnu.org." >&5
13336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13337whose name does not start with the host triplet. If you think this
13338configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13339ac_tool_warned=yes ;;
13340esac
13341 F77=$ac_ct_F77
13342 fi
John Criswell47fdd832003-07-14 16:52:07 +000013343fi
13344
13345
13346# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013347echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013348ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013349{ (ac_try="$ac_compiler --version >&5"
13350case "(($ac_try" in
13351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13353esac
13354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013356 ac_status=$?
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013359{ (ac_try="$ac_compiler -v >&5"
13360case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
13364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013366 ac_status=$?
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013369{ (ac_try="$ac_compiler -V >&5"
13370case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13373esac
13374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013376 ac_status=$?
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013379rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013380
13381# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013382# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013383ac_save_ext=$ac_ext
13384ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013385{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13386echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013387if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 cat >conftest.$ac_ext <<_ACEOF
13391 program main
13392#ifndef __GNUC__
13393 choke me
13394#endif
13395
13396 end
13397_ACEOF
13398rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013399if { (ac_try="$ac_compile"
13400case "(($ac_try" in
13401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402 *) ac_try_echo=$ac_try;;
13403esac
13404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13405 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013411 (exit $ac_status); } &&
13412 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13413 { (case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13416esac
13417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_try") 2>&5
13419 ac_status=$?
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); }; } &&
13422 { ac_try='test -s conftest.$ac_objext'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013432 ac_compiler_gnu=yes
13433else
13434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013435sed 's/^/| /' conftest.$ac_ext >&5
13436
Reid Spencera773bd52006-08-04 18:18:08 +000013437 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013438fi
Reid Spencera773bd52006-08-04 18:18:08 +000013439
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013441ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13442
13443fi
Reid Spencera773bd52006-08-04 18:18:08 +000013444{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13445echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013446ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013447ac_test_FFLAGS=${FFLAGS+set}
13448ac_save_FFLAGS=$FFLAGS
13449FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013450{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13451echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013452if test "${ac_cv_prog_f77_g+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 FFLAGS=-g
13456cat >conftest.$ac_ext <<_ACEOF
13457 program main
13458
13459 end
13460_ACEOF
13461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013462if { (ac_try="$ac_compile"
13463case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13466esac
13467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013474 (exit $ac_status); } &&
13475 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13476 { (case "(($ac_try" in
13477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13478 *) ac_try_echo=$ac_try;;
13479esac
13480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_try") 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; } &&
13485 { ac_try='test -s conftest.$ac_objext'
13486 { (case "(($ac_try" in
13487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13488 *) ac_try_echo=$ac_try;;
13489esac
13490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13491 (eval "$ac_try") 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013495 ac_cv_prog_f77_g=yes
13496else
13497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013498sed 's/^/| /' conftest.$ac_ext >&5
13499
Reid Spencera773bd52006-08-04 18:18:08 +000013500 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013501fi
Reid Spencera773bd52006-08-04 18:18:08 +000013502
13503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013504
13505fi
Reid Spencera773bd52006-08-04 18:18:08 +000013506{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13507echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013508if test "$ac_test_FFLAGS" = set; then
13509 FFLAGS=$ac_save_FFLAGS
13510elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013512 FFLAGS="-g -O2"
13513 else
13514 FFLAGS="-g"
13515 fi
13516else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013518 FFLAGS="-O2"
13519 else
13520 FFLAGS=
13521 fi
13522fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013523
13524G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013525ac_ext=c
13526ac_cpp='$CPP $CPPFLAGS'
13527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529ac_compiler_gnu=$ac_cv_c_compiler_gnu
13530
13531
13532
13533# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13534
13535# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013536{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13537echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013538if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13540else
13541 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013542 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013543
13544 case $build_os in
13545 msdosdjgpp*)
13546 # On DJGPP, this test can blow up pretty badly due to problems in libc
13547 # (any single argument exceeding 2000 bytes causes a buffer overrun
13548 # during glob expansion). Even if it were fixed, the result of this
13549 # check would be larger than it should be.
13550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13551 ;;
13552
13553 gnu*)
13554 # Under GNU Hurd, this test is not required because there is
13555 # no limit to the length of command line arguments.
13556 # Libtool will interpret -1 as no limit whatsoever
13557 lt_cv_sys_max_cmd_len=-1;
13558 ;;
13559
13560 cygwin* | mingw*)
13561 # On Win9x/ME, this test blows up -- it succeeds, but takes
13562 # about 5 minutes as the teststring grows exponentially.
13563 # Worse, since 9x/ME are not pre-emptively multitasking,
13564 # you end up with a "frozen" computer, even though with patience
13565 # the test eventually succeeds (with a max line length of 256k).
13566 # Instead, let's just punt: use the minimum linelength reported by
13567 # all of the supported platforms: 8192 (on NT/2K/XP).
13568 lt_cv_sys_max_cmd_len=8192;
13569 ;;
13570
Reid Spencer2706f8c2004-09-19 23:53:36 +000013571 amigaos*)
13572 # On AmigaOS with pdksh, this test takes hours, literally.
13573 # So we just punt and use a minimum line length of 8192.
13574 lt_cv_sys_max_cmd_len=8192;
13575 ;;
13576
Reid Spencera773bd52006-08-04 18:18:08 +000013577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013578 # This has been around since 386BSD, at least. Likely further.
13579 if test -x /sbin/sysctl; then
13580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13581 elif test -x /usr/sbin/sysctl; then
13582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13583 else
Reid Spencera773bd52006-08-04 18:18:08 +000013584 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585 fi
13586 # And add a safety zone
13587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013589 ;;
13590
Reid Spencera773bd52006-08-04 18:18:08 +000013591 interix*)
13592 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13593 lt_cv_sys_max_cmd_len=196608
13594 ;;
13595
13596 osf*)
13597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13599 # nice to cause kernel panics so lets avoid the loop below.
13600 # First set a reasonable default.
13601 lt_cv_sys_max_cmd_len=16384
13602 #
13603 if test -x /sbin/sysconfig; then
13604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13606 esac
13607 fi
13608 ;;
13609 sco3.2v5*)
13610 lt_cv_sys_max_cmd_len=102400
13611 ;;
13612 sysv5* | sco5v6* | sysv4.2uw2*)
13613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13614 if test -n "$kargmax"; then
13615 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13616 else
13617 lt_cv_sys_max_cmd_len=32768
13618 fi
13619 ;;
13620 *)
John Criswell47fdd832003-07-14 16:52:07 +000013621 # If test is not a shell built-in, we'll probably end up computing a
13622 # maximum length that is only half of the actual maximum length, but
13623 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013624 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13625 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13626 = "XX$teststring") >/dev/null 2>&1 &&
13627 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013628 lt_cv_sys_max_cmd_len=$new_result &&
13629 test $i != 17 # 1/2 MB should be enough
13630 do
13631 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013632 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013633 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013634 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013635 # Add a significant safety factor because C++ compilers can tack on massive
13636 # amounts of additional arguments before passing them to the linker.
13637 # It appears as though 1/2 is a usable value.
13638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13639 ;;
13640 esac
13641
13642fi
13643
13644if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013645 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13646echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013647else
Reid Spencera773bd52006-08-04 18:18:08 +000013648 { echo "$as_me:$LINENO: result: none" >&5
13649echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013650fi
13651
13652
13653
13654
13655# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013656{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13657echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013658if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13660else
13661
13662# These are sane defaults that work on at least a few old systems.
13663# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13664
13665# Character class describing NM global symbol codes.
13666symcode='[BCDEGRST]'
13667
13668# Regexp to match symbols that can be accessed directly from C.
13669sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13670
John Criswell47fdd832003-07-14 16:52:07 +000013671# Transform an extracted symbol line into a proper C declaration
13672lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13673
13674# Transform an extracted symbol line into symbol name and symbol address
13675lt_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'"
13676
13677# Define system-specific variables.
13678case $host_os in
13679aix*)
13680 symcode='[BCDT]'
13681 ;;
13682cygwin* | mingw* | pw32*)
13683 symcode='[ABCDGISTW]'
13684 ;;
13685hpux*) # Its linker distinguishes data from code symbols
13686 if test "$host_cpu" = ia64; then
13687 symcode='[ABCDEGRST]'
13688 fi
13689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13690 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'"
13691 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013692linux*)
13693 if test "$host_cpu" = ia64; then
13694 symcode='[ABCDGIRSTW]'
13695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13696 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'"
13697 fi
13698 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013699irix* | nonstopux*)
13700 symcode='[BCDEGRST]'
13701 ;;
13702osf*)
13703 symcode='[BCDEGQRST]'
13704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013705solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013706 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013708sco3.2v5*)
13709 symcode='[DT]'
13710 ;;
13711sysv4.2uw2*)
13712 symcode='[DT]'
13713 ;;
13714sysv5* | sco5v6* | unixware* | OpenUNIX*)
13715 symcode='[ABDT]'
13716 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013717sysv4)
13718 symcode='[DFNSTU]'
13719 ;;
13720esac
13721
13722# Handle CRLF in mingw tool chain
13723opt_cr=
13724case $build_os in
13725mingw*)
13726 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13727 ;;
13728esac
13729
13730# If we're using GNU nm, then use its standard symbol codes.
13731case `$NM -V 2>&1` in
13732*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013733 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013734esac
13735
13736# Try without a prefix undercore, then with it.
13737for ac_symprfx in "" "_"; do
13738
Reid Spencera773bd52006-08-04 18:18:08 +000013739 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13740 symxfrm="\\1 $ac_symprfx\\2 \\2"
13741
John Criswell47fdd832003-07-14 16:52:07 +000013742 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013743 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 +000013744
13745 # Check to see that the pipe works correctly.
13746 pipe_works=no
13747
13748 rm -f conftest*
13749 cat > conftest.$ac_ext <<EOF
13750#ifdef __cplusplus
13751extern "C" {
13752#endif
13753char nm_test_var;
13754void nm_test_func(){}
13755#ifdef __cplusplus
13756}
13757#endif
13758int main(){nm_test_var='a';nm_test_func();return(0);}
13759EOF
13760
13761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13762 (eval $ac_compile) 2>&5
13763 ac_status=$?
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); }; then
13766 # Now try to grab the symbols.
13767 nlist=conftest.nm
13768 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13769 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); } && test -s "$nlist"; then
13773 # Try sorting and uniquifying the output.
13774 if sort "$nlist" | uniq > "$nlist"T; then
13775 mv -f "$nlist"T "$nlist"
13776 else
13777 rm -f "$nlist"T
13778 fi
13779
13780 # Make sure that we snagged all the symbols we need.
13781 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13782 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13783 cat <<EOF > conftest.$ac_ext
13784#ifdef __cplusplus
13785extern "C" {
13786#endif
13787
13788EOF
13789 # Now generate the symbol file.
13790 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13791
13792 cat <<EOF >> conftest.$ac_ext
13793#if defined (__STDC__) && __STDC__
13794# define lt_ptr_t void *
13795#else
13796# define lt_ptr_t char *
13797# define const
13798#endif
13799
13800/* The mapping between symbol names and symbols. */
13801const struct {
13802 const char *name;
13803 lt_ptr_t address;
13804}
13805lt_preloaded_symbols[] =
13806{
13807EOF
13808 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13809 cat <<\EOF >> conftest.$ac_ext
13810 {0, (lt_ptr_t) 0}
13811};
13812
13813#ifdef __cplusplus
13814}
13815#endif
13816EOF
13817 # Now try linking the two files.
13818 mv conftest.$ac_objext conftstm.$ac_objext
13819 lt_save_LIBS="$LIBS"
13820 lt_save_CFLAGS="$CFLAGS"
13821 LIBS="conftstm.$ac_objext"
13822 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13824 (eval $ac_link) 2>&5
13825 ac_status=$?
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13828 pipe_works=yes
13829 fi
13830 LIBS="$lt_save_LIBS"
13831 CFLAGS="$lt_save_CFLAGS"
13832 else
13833 echo "cannot find nm_test_func in $nlist" >&5
13834 fi
13835 else
13836 echo "cannot find nm_test_var in $nlist" >&5
13837 fi
13838 else
13839 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13840 fi
13841 else
13842 echo "$progname: failed program was:" >&5
13843 cat conftest.$ac_ext >&5
13844 fi
13845 rm -f conftest* conftst*
13846
13847 # Do not use the global_symbol_pipe unless it works.
13848 if test "$pipe_works" = yes; then
13849 break
13850 else
13851 lt_cv_sys_global_symbol_pipe=
13852 fi
13853done
13854
13855fi
13856
13857if test -z "$lt_cv_sys_global_symbol_pipe"; then
13858 lt_cv_sys_global_symbol_to_cdecl=
13859fi
13860if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013861 { echo "$as_me:$LINENO: result: failed" >&5
13862echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013863else
Reid Spencera773bd52006-08-04 18:18:08 +000013864 { echo "$as_me:$LINENO: result: ok" >&5
13865echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013866fi
13867
Reid Spencera773bd52006-08-04 18:18:08 +000013868{ echo "$as_me:$LINENO: checking for objdir" >&5
13869echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013870if test "${lt_cv_objdir+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 rm -f .libs 2>/dev/null
13874mkdir .libs 2>/dev/null
13875if test -d .libs; then
13876 lt_cv_objdir=.libs
13877else
13878 # MS-DOS does not allow filenames that begin with a dot.
13879 lt_cv_objdir=_libs
13880fi
13881rmdir .libs 2>/dev/null
13882fi
Reid Spencera773bd52006-08-04 18:18:08 +000013883{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13884echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013885objdir=$lt_cv_objdir
13886
13887
13888
13889
13890
13891case $host_os in
13892aix3*)
13893 # AIX sometimes has problems with the GCC collect2 program. For some
13894 # reason, if we set the COLLECT_NAMES environment variable, the problems
13895 # vanish in a puff of smoke.
13896 if test "X${COLLECT_NAMES+set}" != Xset; then
13897 COLLECT_NAMES=
13898 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013899 fi
13900 ;;
13901esac
13902
John Criswell47fdd832003-07-14 16:52:07 +000013903# Sed substitution that helps us do robust quoting. It backslashifies
13904# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013905Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013906sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13907
13908# Same as above, but do not quote variable references.
13909double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13910
13911# Sed substitution to delay expansion of an escaped shell variable in a
13912# double_quote_subst'ed string.
13913delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13914
13915# Sed substitution to avoid accidental globbing in evaled expressions
13916no_glob_subst='s/\*/\\\*/g'
13917
13918# Constants:
13919rm="rm -f"
13920
13921# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013922default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013923can_build_shared=yes
13924
Reid Spencera773bd52006-08-04 18:18:08 +000013925# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013926# which needs '.lib').
13927libext=a
13928ltmain="$ac_aux_dir/ltmain.sh"
13929ofile="$default_ofile"
13930with_gnu_ld="$lt_cv_prog_gnu_ld"
13931
13932if test -n "$ac_tool_prefix"; then
13933 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13934set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013935{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013937if test "${ac_cv_prog_AR+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
13939else
13940 if test -n "$AR"; then
13941 ac_cv_prog_AR="$AR" # Let the user override the test.
13942else
13943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13944for as_dir in $PATH
13945do
13946 IFS=$as_save_IFS
13947 test -z "$as_dir" && as_dir=.
13948 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013949 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 +000013950 ac_cv_prog_AR="${ac_tool_prefix}ar"
13951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13952 break 2
13953 fi
13954done
13955done
Reid Spencera773bd52006-08-04 18:18:08 +000013956IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013957
13958fi
13959fi
13960AR=$ac_cv_prog_AR
13961if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013962 { echo "$as_me:$LINENO: result: $AR" >&5
13963echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013964else
Reid Spencera773bd52006-08-04 18:18:08 +000013965 { echo "$as_me:$LINENO: result: no" >&5
13966echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013967fi
13968
Reid Spencera773bd52006-08-04 18:18:08 +000013969
John Criswell47fdd832003-07-14 16:52:07 +000013970fi
13971if test -z "$ac_cv_prog_AR"; then
13972 ac_ct_AR=$AR
13973 # Extract the first word of "ar", so it can be a program name with args.
13974set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013975{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013977if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
13980 if test -n "$ac_ct_AR"; then
13981 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13982else
13983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13984for as_dir in $PATH
13985do
13986 IFS=$as_save_IFS
13987 test -z "$as_dir" && as_dir=.
13988 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013989 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 +000013990 ac_cv_prog_ac_ct_AR="ar"
13991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13992 break 2
13993 fi
13994done
13995done
Reid Spencera773bd52006-08-04 18:18:08 +000013996IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013997
John Criswell47fdd832003-07-14 16:52:07 +000013998fi
13999fi
14000ac_ct_AR=$ac_cv_prog_ac_ct_AR
14001if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014002 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14003echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014004else
Reid Spencera773bd52006-08-04 18:18:08 +000014005 { echo "$as_me:$LINENO: result: no" >&5
14006echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014007fi
14008
Reid Spencera773bd52006-08-04 18:18:08 +000014009 if test "x$ac_ct_AR" = x; then
14010 AR="false"
14011 else
14012 case $cross_compiling:$ac_tool_warned in
14013yes:)
14014{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14015whose name does not start with the host triplet. If you think this
14016configuration is useful to you, please write to autoconf@gnu.org." >&5
14017echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14018whose name does not start with the host triplet. If you think this
14019configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14020ac_tool_warned=yes ;;
14021esac
14022 AR=$ac_ct_AR
14023 fi
John Criswell47fdd832003-07-14 16:52:07 +000014024else
14025 AR="$ac_cv_prog_AR"
14026fi
14027
John Criswell7a73b802003-06-30 21:59:07 +000014028if test -n "$ac_tool_prefix"; then
14029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14030set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014033if test "${ac_cv_prog_RANLIB+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 if test -n "$RANLIB"; then
14037 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14038else
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014045 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 +000014046 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14049 fi
14050done
14051done
Reid Spencera773bd52006-08-04 18:18:08 +000014052IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014053
14054fi
14055fi
14056RANLIB=$ac_cv_prog_RANLIB
14057if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14059echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014060else
Reid Spencera773bd52006-08-04 18:18:08 +000014061 { echo "$as_me:$LINENO: result: no" >&5
14062echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014063fi
14064
Reid Spencera773bd52006-08-04 18:18:08 +000014065
John Criswell7a73b802003-06-30 21:59:07 +000014066fi
14067if test -z "$ac_cv_prog_RANLIB"; then
14068 ac_ct_RANLIB=$RANLIB
14069 # Extract the first word of "ranlib", so it can be a program name with args.
14070set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014073if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075else
14076 if test -n "$ac_ct_RANLIB"; then
14077 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14078else
14079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14080for as_dir in $PATH
14081do
14082 IFS=$as_save_IFS
14083 test -z "$as_dir" && as_dir=.
14084 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014085 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 +000014086 ac_cv_prog_ac_ct_RANLIB="ranlib"
14087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14088 break 2
14089 fi
14090done
14091done
Reid Spencera773bd52006-08-04 18:18:08 +000014092IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014093
John Criswell7a73b802003-06-30 21:59:07 +000014094fi
14095fi
14096ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14097if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14099echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014100else
Reid Spencera773bd52006-08-04 18:18:08 +000014101 { echo "$as_me:$LINENO: result: no" >&5
14102echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014103fi
14104
Reid Spencera773bd52006-08-04 18:18:08 +000014105 if test "x$ac_ct_RANLIB" = x; then
14106 RANLIB=":"
14107 else
14108 case $cross_compiling:$ac_tool_warned in
14109yes:)
14110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14111whose name does not start with the host triplet. If you think this
14112configuration is useful to you, please write to autoconf@gnu.org." >&5
14113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14114whose name does not start with the host triplet. If you think this
14115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14116ac_tool_warned=yes ;;
14117esac
14118 RANLIB=$ac_ct_RANLIB
14119 fi
John Criswell7a73b802003-06-30 21:59:07 +000014120else
14121 RANLIB="$ac_cv_prog_RANLIB"
14122fi
14123
14124if test -n "$ac_tool_prefix"; then
14125 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14126set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014129if test "${ac_cv_prog_STRIP+set}" = set; then
14130 echo $ECHO_N "(cached) $ECHO_C" >&6
14131else
14132 if test -n "$STRIP"; then
14133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14134else
14135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14136for as_dir in $PATH
14137do
14138 IFS=$as_save_IFS
14139 test -z "$as_dir" && as_dir=.
14140 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014141 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 +000014142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14144 break 2
14145 fi
14146done
14147done
Reid Spencera773bd52006-08-04 18:18:08 +000014148IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014149
14150fi
14151fi
14152STRIP=$ac_cv_prog_STRIP
14153if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014154 { echo "$as_me:$LINENO: result: $STRIP" >&5
14155echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014156else
Reid Spencera773bd52006-08-04 18:18:08 +000014157 { echo "$as_me:$LINENO: result: no" >&5
14158echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014159fi
14160
Reid Spencera773bd52006-08-04 18:18:08 +000014161
John Criswell7a73b802003-06-30 21:59:07 +000014162fi
14163if test -z "$ac_cv_prog_STRIP"; then
14164 ac_ct_STRIP=$STRIP
14165 # Extract the first word of "strip", so it can be a program name with args.
14166set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014169if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14171else
14172 if test -n "$ac_ct_STRIP"; then
14173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14174else
14175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14176for as_dir in $PATH
14177do
14178 IFS=$as_save_IFS
14179 test -z "$as_dir" && as_dir=.
14180 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014181 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 +000014182 ac_cv_prog_ac_ct_STRIP="strip"
14183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14184 break 2
14185 fi
14186done
14187done
Reid Spencera773bd52006-08-04 18:18:08 +000014188IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014189
John Criswell7a73b802003-06-30 21:59:07 +000014190fi
14191fi
14192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14193if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014194 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14195echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014196else
Reid Spencera773bd52006-08-04 18:18:08 +000014197 { echo "$as_me:$LINENO: result: no" >&5
14198echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014199fi
14200
Reid Spencera773bd52006-08-04 18:18:08 +000014201 if test "x$ac_ct_STRIP" = x; then
14202 STRIP=":"
14203 else
14204 case $cross_compiling:$ac_tool_warned in
14205yes:)
14206{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14207whose name does not start with the host triplet. If you think this
14208configuration is useful to you, please write to autoconf@gnu.org." >&5
14209echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14210whose name does not start with the host triplet. If you think this
14211configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14212ac_tool_warned=yes ;;
14213esac
14214 STRIP=$ac_ct_STRIP
14215 fi
John Criswell7a73b802003-06-30 21:59:07 +000014216else
14217 STRIP="$ac_cv_prog_STRIP"
14218fi
14219
14220
John Criswell7a73b802003-06-30 21:59:07 +000014221old_CC="$CC"
14222old_CFLAGS="$CFLAGS"
14223
14224# Set sane defaults for various variables
14225test -z "$AR" && AR=ar
14226test -z "$AR_FLAGS" && AR_FLAGS=cru
14227test -z "$AS" && AS=as
14228test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014229test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014230test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014231test -z "$DLLTOOL" && DLLTOOL=dlltool
14232test -z "$LD" && LD=ld
14233test -z "$LN_S" && LN_S="ln -s"
14234test -z "$MAGIC_CMD" && MAGIC_CMD=file
14235test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014236test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014237test -z "$OBJDUMP" && OBJDUMP=objdump
14238test -z "$RANLIB" && RANLIB=:
14239test -z "$STRIP" && STRIP=:
14240test -z "$ac_objext" && ac_objext=o
14241
John Criswell7a73b802003-06-30 21:59:07 +000014242# Determine commands to create old-style static archives.
14243old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14244old_postinstall_cmds='chmod 644 $oldlib'
14245old_postuninstall_cmds=
14246
14247if test -n "$RANLIB"; then
14248 case $host_os in
14249 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014250 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014251 ;;
14252 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014253 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014254 ;;
14255 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014256 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014257fi
14258
Reid Spencera773bd52006-08-04 18:18:08 +000014259for cc_temp in $compiler""; do
14260 case $cc_temp in
14261 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14262 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14263 \-*) ;;
14264 *) break;;
14265 esac
14266done
14267cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14268
Reid Spencer2706f8c2004-09-19 23:53:36 +000014269
John Criswell47fdd832003-07-14 16:52:07 +000014270# Only perform the check for file, if the check method requires it
14271case $deplibs_check_method in
14272file_magic*)
14273 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014274 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14275echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014276if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014278else
John Criswell47fdd832003-07-14 16:52:07 +000014279 case $MAGIC_CMD in
14280[\\/*] | ?:[\\/]*)
14281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14282 ;;
14283*)
14284 lt_save_MAGIC_CMD="$MAGIC_CMD"
14285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14287 for ac_dir in $ac_dummy; do
14288 IFS="$lt_save_ifs"
14289 test -z "$ac_dir" && ac_dir=.
14290 if test -f $ac_dir/${ac_tool_prefix}file; then
14291 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14292 if test -n "$file_magic_test_file"; then
14293 case $deplibs_check_method in
14294 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14298 $EGREP "$file_magic_regex" > /dev/null; then
14299 :
14300 else
14301 cat <<EOF 1>&2
14302
14303*** Warning: the command libtool uses to detect shared libraries,
14304*** $file_magic_cmd, produces output that libtool cannot recognize.
14305*** The result is that libtool may fail to recognize shared libraries
14306*** as such. This will affect the creation of libtool libraries that
14307*** depend on shared libraries, but programs linked with such libtool
14308*** libraries will work regardless of this problem. Nevertheless, you
14309*** may want to report the problem to your system manager and/or to
14310*** bug-libtool@gnu.org
14311
14312EOF
14313 fi ;;
14314 esac
14315 fi
14316 break
14317 fi
14318 done
14319 IFS="$lt_save_ifs"
14320 MAGIC_CMD="$lt_save_MAGIC_CMD"
14321 ;;
14322esac
John Criswell7a73b802003-06-30 21:59:07 +000014323fi
John Criswell7a73b802003-06-30 21:59:07 +000014324
John Criswell47fdd832003-07-14 16:52:07 +000014325MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14326if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014327 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14328echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014329else
Reid Spencera773bd52006-08-04 18:18:08 +000014330 { echo "$as_me:$LINENO: result: no" >&5
14331echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014332fi
John Criswell7a73b802003-06-30 21:59:07 +000014333
John Criswell47fdd832003-07-14 16:52:07 +000014334if test -z "$lt_cv_path_MAGIC_CMD"; then
14335 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014336 { echo "$as_me:$LINENO: checking for file" >&5
14337echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014338if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 case $MAGIC_CMD in
14342[\\/*] | ?:[\\/]*)
14343 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14344 ;;
14345*)
14346 lt_save_MAGIC_CMD="$MAGIC_CMD"
14347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14348 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14349 for ac_dir in $ac_dummy; do
14350 IFS="$lt_save_ifs"
14351 test -z "$ac_dir" && ac_dir=.
14352 if test -f $ac_dir/file; then
14353 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14354 if test -n "$file_magic_test_file"; then
14355 case $deplibs_check_method in
14356 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014357 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14359 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14360 $EGREP "$file_magic_regex" > /dev/null; then
14361 :
14362 else
14363 cat <<EOF 1>&2
14364
14365*** Warning: the command libtool uses to detect shared libraries,
14366*** $file_magic_cmd, produces output that libtool cannot recognize.
14367*** The result is that libtool may fail to recognize shared libraries
14368*** as such. This will affect the creation of libtool libraries that
14369*** depend on shared libraries, but programs linked with such libtool
14370*** libraries will work regardless of this problem. Nevertheless, you
14371*** may want to report the problem to your system manager and/or to
14372*** bug-libtool@gnu.org
14373
14374EOF
14375 fi ;;
14376 esac
14377 fi
14378 break
14379 fi
14380 done
14381 IFS="$lt_save_ifs"
14382 MAGIC_CMD="$lt_save_MAGIC_CMD"
14383 ;;
14384esac
14385fi
14386
14387MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14388if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014389 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14390echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014391else
Reid Spencera773bd52006-08-04 18:18:08 +000014392 { echo "$as_me:$LINENO: result: no" >&5
14393echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014394fi
14395
14396 else
14397 MAGIC_CMD=:
14398 fi
14399fi
14400
14401 fi
14402 ;;
14403esac
14404
Reid Spencer17795972004-11-18 09:47:37 +000014405enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014406enable_win32_dll=no
14407
Reid Spencera773bd52006-08-04 18:18:08 +000014408# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014409if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014410 enableval=$enable_libtool_lock;
14411fi
John Criswell47fdd832003-07-14 16:52:07 +000014412
John Criswell47fdd832003-07-14 16:52:07 +000014413test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14414
John Criswell7a73b802003-06-30 21:59:07 +000014415
Reid Spencera773bd52006-08-04 18:18:08 +000014416# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014417if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014418 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014419else
14420 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014421fi
14422
John Criswell7a73b802003-06-30 21:59:07 +000014423test -z "$pic_mode" && pic_mode=default
14424
John Criswell47fdd832003-07-14 16:52:07 +000014425# Use C for the default configuration in the libtool script
14426tagname=
14427lt_save_CC="$CC"
14428ac_ext=c
14429ac_cpp='$CPP $CPPFLAGS'
14430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14432ac_compiler_gnu=$ac_cv_c_compiler_gnu
14433
14434
14435# Source file extension for C test sources.
14436ac_ext=c
14437
14438# Object file extension for compiled C test sources.
14439objext=o
14440objext=$objext
14441
14442# Code to be used in simple compile tests
14443lt_simple_compile_test_code="int some_variable = 0;\n"
14444
14445# Code to be used in simple link tests
14446lt_simple_link_test_code='int main(){return(0);}\n'
14447
14448
14449# If no C compiler was specified, use CC.
14450LTCC=${LTCC-"$CC"}
14451
Reid Spencera773bd52006-08-04 18:18:08 +000014452# If no C compiler flags were specified, use CFLAGS.
14453LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14454
John Criswell47fdd832003-07-14 16:52:07 +000014455# Allow CC to be a program name with arguments.
14456compiler=$CC
14457
14458
Reid Spencera773bd52006-08-04 18:18:08 +000014459# save warnings/boilerplate of simple test code
14460ac_outfile=conftest.$ac_objext
14461printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14462eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14463_lt_compiler_boilerplate=`cat conftest.err`
14464$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014465
Reid Spencera773bd52006-08-04 18:18:08 +000014466ac_outfile=conftest.$ac_objext
14467printf "$lt_simple_link_test_code" >conftest.$ac_ext
14468eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14469_lt_linker_boilerplate=`cat conftest.err`
14470$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014471
14472
John Criswell47fdd832003-07-14 16:52:07 +000014473
14474lt_prog_compiler_no_builtin_flag=
14475
14476if test "$GCC" = yes; then
14477 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14478
Reid Spencer2706f8c2004-09-19 23:53:36 +000014479
Reid Spencera773bd52006-08-04 18:18:08 +000014480{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14481echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014482if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 lt_cv_prog_compiler_rtti_exceptions=no
14486 ac_outfile=conftest.$ac_objext
14487 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14488 lt_compiler_flag="-fno-rtti -fno-exceptions"
14489 # Insert the option either (1) after the last *FLAGS variable, or
14490 # (2) before a word containing "conftest.", or (3) at the end.
14491 # Note that $ac_compile itself does not contain backslashes and begins
14492 # with a dollar sign (not a hyphen), so the echo should work correctly.
14493 # The option is referenced via a variable to avoid confusing sed.
14494 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14497 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000014498 (eval echo "\"\$as_me:14498: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014499 (eval "$lt_compile" 2>conftest.err)
14500 ac_status=$?
14501 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000014502 echo "$as_me:14502: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014503 if (exit $ac_status) && test -s "$ac_outfile"; then
14504 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014505 # So say no if there are warnings other than the usual output.
14506 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14507 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14508 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014509 lt_cv_prog_compiler_rtti_exceptions=yes
14510 fi
14511 fi
14512 $rm conftest*
14513
14514fi
Reid Spencera773bd52006-08-04 18:18:08 +000014515{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14516echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014517
14518if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14519 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14520else
14521 :
14522fi
14523
14524fi
14525
14526lt_prog_compiler_wl=
14527lt_prog_compiler_pic=
14528lt_prog_compiler_static=
14529
Reid Spencera773bd52006-08-04 18:18:08 +000014530{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14531echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014532
14533 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014534 lt_prog_compiler_wl='-Wl,'
14535 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014536
14537 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014538 aix*)
14539 # All AIX code is PIC.
14540 if test "$host_cpu" = ia64; then
14541 # AIX 5 now supports IA64 processor
14542 lt_prog_compiler_static='-Bstatic'
14543 fi
John Criswell7a73b802003-06-30 21:59:07 +000014544 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014545
John Criswell7a73b802003-06-30 21:59:07 +000014546 amigaos*)
14547 # FIXME: we need at least 68020 code to build shared libraries, but
14548 # adding the `-m68020' flag to GCC prevents building anything better,
14549 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014550 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014551 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014552
14553 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014554 # PIC is the default for these OSes.
14555 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014556
14557 mingw* | pw32* | os2*)
14558 # This hack is so that the source file can tell whether it is being
14559 # built for inclusion in a dll (and should export symbols for example).
14560 lt_prog_compiler_pic='-DDLL_EXPORT'
14561 ;;
14562
John Criswell7a73b802003-06-30 21:59:07 +000014563 darwin* | rhapsody*)
14564 # PIC is the default on this platform
14565 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014566 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014567 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014568
Reid Spencera773bd52006-08-04 18:18:08 +000014569 interix3*)
14570 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14571 # Instead, we relocate shared libraries at runtime.
14572 ;;
14573
John Criswell47fdd832003-07-14 16:52:07 +000014574 msdosdjgpp*)
14575 # Just because we use GCC doesn't mean we suddenly get shared libraries
14576 # on systems that don't support them.
14577 lt_prog_compiler_can_build_shared=no
14578 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014579 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014580
John Criswell7a73b802003-06-30 21:59:07 +000014581 sysv4*MP*)
14582 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014583 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014584 fi
14585 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014586
14587 hpux*)
14588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14589 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014590 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014591 hppa*64*|ia64*)
14592 # +Z the default
14593 ;;
14594 *)
14595 lt_prog_compiler_pic='-fPIC'
14596 ;;
14597 esac
14598 ;;
14599
John Criswell7a73b802003-06-30 21:59:07 +000014600 *)
John Criswell47fdd832003-07-14 16:52:07 +000014601 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014602 ;;
14603 esac
14604 else
John Criswell47fdd832003-07-14 16:52:07 +000014605 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014606 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014607 aix*)
14608 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014609 if test "$host_cpu" = ia64; then
14610 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014611 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014612 else
John Criswell47fdd832003-07-14 16:52:07 +000014613 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014614 fi
14615 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014616 darwin*)
14617 # PIC is the default on this platform
14618 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014619 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014620 xlc*)
14621 lt_prog_compiler_pic='-qnocommon'
14622 lt_prog_compiler_wl='-Wl,'
14623 ;;
14624 esac
14625 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014626
John Criswell47fdd832003-07-14 16:52:07 +000014627 mingw* | pw32* | os2*)
14628 # This hack is so that the source file can tell whether it is being
14629 # built for inclusion in a dll (and should export symbols for example).
14630 lt_prog_compiler_pic='-DDLL_EXPORT'
14631 ;;
14632
John Criswell7a73b802003-06-30 21:59:07 +000014633 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014634 lt_prog_compiler_wl='-Wl,'
14635 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14636 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014637 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014638 hppa*64*|ia64*)
14639 # +Z the default
14640 ;;
14641 *)
14642 lt_prog_compiler_pic='+Z'
14643 ;;
14644 esac
14645 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14646 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014647 ;;
14648
John Criswell47fdd832003-07-14 16:52:07 +000014649 irix5* | irix6* | nonstopux*)
14650 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014651 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014652 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014653 ;;
14654
14655 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014656 lt_prog_compiler_pic='-KPIC'
14657 lt_prog_compiler_static='-Bstatic'
14658 ;;
14659
14660 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014661 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014662 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014663 lt_prog_compiler_wl='-Wl,'
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-static'
14666 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014667 pgcc* | pgf77* | pgf90* | pgf95*)
14668 # Portland Group compilers (*not* the Pentium gcc compiler,
14669 # which looks to be a dead project)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='-fpic'
14672 lt_prog_compiler_static='-Bstatic'
14673 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014674 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014675 lt_prog_compiler_wl='-Wl,'
14676 # All Alpha code is PIC.
14677 lt_prog_compiler_static='-non_shared'
14678 ;;
14679 esac
John Criswell7a73b802003-06-30 21:59:07 +000014680 ;;
14681
14682 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014683 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014684 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014685 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014686 ;;
14687
John Criswell7a73b802003-06-30 21:59:07 +000014688 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_pic='-KPIC'
14690 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014691 case $cc_basename in
14692 f77* | f90* | f95*)
14693 lt_prog_compiler_wl='-Qoption ld ';;
14694 *)
14695 lt_prog_compiler_wl='-Wl,';;
14696 esac
John Criswell7a73b802003-06-30 21:59:07 +000014697 ;;
14698
14699 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014700 lt_prog_compiler_wl='-Qoption ld '
14701 lt_prog_compiler_pic='-PIC'
14702 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014703 ;;
14704
Reid Spencera773bd52006-08-04 18:18:08 +000014705 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014706 lt_prog_compiler_wl='-Wl,'
14707 lt_prog_compiler_pic='-KPIC'
14708 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014709 ;;
14710
14711 sysv4*MP*)
14712 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014713 lt_prog_compiler_pic='-Kconform_pic'
14714 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014715 fi
14716 ;;
14717
Reid Spencera773bd52006-08-04 18:18:08 +000014718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14719 lt_prog_compiler_wl='-Wl,'
14720 lt_prog_compiler_pic='-KPIC'
14721 lt_prog_compiler_static='-Bstatic'
14722 ;;
14723
14724 unicos*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_can_build_shared=no
14727 ;;
14728
John Criswell47fdd832003-07-14 16:52:07 +000014729 uts4*)
14730 lt_prog_compiler_pic='-pic'
14731 lt_prog_compiler_static='-Bstatic'
14732 ;;
14733
John Criswell7a73b802003-06-30 21:59:07 +000014734 *)
John Criswell47fdd832003-07-14 16:52:07 +000014735 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014736 ;;
14737 esac
14738 fi
14739
Reid Spencera773bd52006-08-04 18:18:08 +000014740{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14741echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014742
John Criswell47fdd832003-07-14 16:52:07 +000014743#
14744# Check to make sure the PIC flag actually works.
14745#
14746if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014747
Reid Spencera773bd52006-08-04 18:18:08 +000014748{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014750if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014751 echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
John Criswell47fdd832003-07-14 16:52:07 +000014753 lt_prog_compiler_pic_works=no
14754 ac_outfile=conftest.$ac_objext
14755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14756 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14757 # Insert the option either (1) after the last *FLAGS variable, or
14758 # (2) before a word containing "conftest.", or (3) at the end.
14759 # Note that $ac_compile itself does not contain backslashes and begins
14760 # with a dollar sign (not a hyphen), so the echo should work correctly.
14761 # The option is referenced via a variable to avoid confusing sed.
14762 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14765 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000014766 (eval echo "\"\$as_me:14766: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014767 (eval "$lt_compile" 2>conftest.err)
14768 ac_status=$?
14769 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000014770 echo "$as_me:14770: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014771 if (exit $ac_status) && test -s "$ac_outfile"; then
14772 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014773 # So say no if there are warnings other than the usual output.
14774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014777 lt_prog_compiler_pic_works=yes
14778 fi
14779 fi
14780 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014781
John Criswell47fdd832003-07-14 16:52:07 +000014782fi
Reid Spencera773bd52006-08-04 18:18:08 +000014783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14784echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014785
John Criswell47fdd832003-07-14 16:52:07 +000014786if test x"$lt_prog_compiler_pic_works" = xyes; then
14787 case $lt_prog_compiler_pic in
14788 "" | " "*) ;;
14789 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14790 esac
John Criswell7a73b802003-06-30 21:59:07 +000014791else
John Criswell47fdd832003-07-14 16:52:07 +000014792 lt_prog_compiler_pic=
14793 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014794fi
14795
John Criswell7a73b802003-06-30 21:59:07 +000014796fi
Reid Spencera773bd52006-08-04 18:18:08 +000014797case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014798 # For platforms which do not support PIC, -DPIC is meaningless:
14799 *djgpp*)
14800 lt_prog_compiler_pic=
14801 ;;
14802 *)
14803 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14804 ;;
14805esac
John Criswell7a73b802003-06-30 21:59:07 +000014806
Reid Spencera773bd52006-08-04 18:18:08 +000014807#
14808# Check to make sure the static flag actually works.
14809#
14810wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14811{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14812echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14813if test "${lt_prog_compiler_static_works+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14815else
14816 lt_prog_compiler_static_works=no
14817 save_LDFLAGS="$LDFLAGS"
14818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14821 # The linker can only warn and ignore the option if not recognized
14822 # So say no if there are warnings
14823 if test -s conftest.err; then
14824 # Append any errors to the config.log.
14825 cat conftest.err 1>&5
14826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14828 if diff conftest.exp conftest.er2 >/dev/null; then
14829 lt_prog_compiler_static_works=yes
14830 fi
14831 else
14832 lt_prog_compiler_static_works=yes
14833 fi
14834 fi
14835 $rm conftest*
14836 LDFLAGS="$save_LDFLAGS"
14837
14838fi
14839{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14840echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14841
14842if test x"$lt_prog_compiler_static_works" = xyes; then
14843 :
14844else
14845 lt_prog_compiler_static=
14846fi
14847
14848
14849{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014851if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853else
John Criswell47fdd832003-07-14 16:52:07 +000014854 lt_cv_prog_compiler_c_o=no
14855 $rm -r conftest 2>/dev/null
14856 mkdir conftest
14857 cd conftest
14858 mkdir out
14859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014860
John Criswell47fdd832003-07-14 16:52:07 +000014861 lt_compiler_flag="-o out/conftest2.$ac_objext"
14862 # Insert the option either (1) after the last *FLAGS variable, or
14863 # (2) before a word containing "conftest.", or (3) at the end.
14864 # Note that $ac_compile itself does not contain backslashes and begins
14865 # with a dollar sign (not a hyphen), so the echo should work correctly.
14866 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14869 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000014870 (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014871 (eval "$lt_compile" 2>out/conftest.err)
14872 ac_status=$?
14873 cat out/conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000014874 echo "$as_me:14874: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14876 then
14877 # The compiler can only warn and ignore the option if not recognized
14878 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014882 lt_cv_prog_compiler_c_o=yes
14883 fi
14884 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014885 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014886 $rm conftest*
14887 # SGI C++ compiler will create directory out/ii_files/ for
14888 # template instantiation
14889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14890 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014891 cd ..
14892 rmdir conftest
14893 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014894
14895fi
Reid Spencera773bd52006-08-04 18:18:08 +000014896{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14897echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014898
John Criswell7a73b802003-06-30 21:59:07 +000014899
John Criswell7a73b802003-06-30 21:59:07 +000014900hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014901if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014902 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014905 hard_links=yes
14906 $rm conftest*
14907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14908 touch conftest.a
14909 ln conftest.a conftest.b 2>&5 || hard_links=no
14910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014911 { echo "$as_me:$LINENO: result: $hard_links" >&5
14912echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014913 if test "$hard_links" = no; then
14914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14916 need_locks=warn
14917 fi
14918else
14919 need_locks=no
14920fi
John Criswell7a73b802003-06-30 21:59:07 +000014921
Reid Spencera773bd52006-08-04 18:18:08 +000014922{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014924
14925 runpath_var=
14926 allow_undefined_flag=
14927 enable_shared_with_static_runtimes=no
14928 archive_cmds=
14929 archive_expsym_cmds=
14930 old_archive_From_new_cmds=
14931 old_archive_from_expsyms_cmds=
14932 export_dynamic_flag_spec=
14933 whole_archive_flag_spec=
14934 thread_safe_flag_spec=
14935 hardcode_libdir_flag_spec=
14936 hardcode_libdir_flag_spec_ld=
14937 hardcode_libdir_separator=
14938 hardcode_direct=no
14939 hardcode_minus_L=no
14940 hardcode_shlibpath_var=unsupported
14941 link_all_deplibs=unknown
14942 hardcode_automatic=no
14943 module_cmds=
14944 module_expsym_cmds=
14945 always_export_symbols=no
14946 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14947 # include_expsyms should be a list of space-separated symbols to be *always*
14948 # included in the symbol list
14949 include_expsyms=
14950 # exclude_expsyms can be an extended regexp of symbols to exclude
14951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14953 # as well as any symbol that contains `d'.
14954 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14956 # platforms (ab)use it in PIC code, but their linkers get confused if
14957 # the symbol is explicitly referenced. Since portable code cannot
14958 # rely on this symbol name, it's probably fine to never include it in
14959 # preloaded symbol tables.
14960 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014961 # Just being paranoid about ensuring that cc_basename is set.
14962 for cc_temp in $compiler""; do
14963 case $cc_temp in
14964 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14965 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14966 \-*) ;;
14967 *) break;;
14968 esac
14969done
14970cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014971
14972 case $host_os in
14973 cygwin* | mingw* | pw32*)
14974 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14975 # When not using gcc, we currently assume that we are using
14976 # Microsoft Visual C++.
14977 if test "$GCC" != yes; then
14978 with_gnu_ld=no
14979 fi
14980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014981 interix*)
14982 # we just hope/assume this is gcc and not c89 (= MSVC++)
14983 with_gnu_ld=yes
14984 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014985 openbsd*)
14986 with_gnu_ld=no
14987 ;;
14988 esac
14989
14990 ld_shlibs=yes
14991 if test "$with_gnu_ld" = yes; then
14992 # If archive_cmds runs LD, not CC, wlarc should be empty
14993 wlarc='${wl}'
14994
Reid Spencera773bd52006-08-04 18:18:08 +000014995 # Set some defaults for GNU ld with shared library support. These
14996 # are reset later if shared libraries are not supported. Putting them
14997 # here allows them to be overridden if necessary.
14998 runpath_var=LD_RUN_PATH
14999 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15000 export_dynamic_flag_spec='${wl}--export-dynamic'
15001 # ancient GNU ld didn't support --whole-archive et. al.
15002 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15003 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15004 else
15005 whole_archive_flag_spec=
15006 fi
15007 supports_anon_versioning=no
15008 case `$LD -v 2>/dev/null` in
15009 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15012 *\ 2.11.*) ;; # other 2.11 versions
15013 *) supports_anon_versioning=yes ;;
15014 esac
15015
John Criswell47fdd832003-07-14 16:52:07 +000015016 # See if GNU ld supports shared libraries.
15017 case $host_os in
15018 aix3* | aix4* | aix5*)
15019 # On AIX/PPC, the GNU linker is very broken
15020 if test "$host_cpu" != ia64; then
15021 ld_shlibs=no
15022 cat <<EOF 1>&2
15023
15024*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15025*** to be unable to reliably create shared libraries on AIX.
15026*** Therefore, libtool is disabling shared libraries support. If you
15027*** really care for shared libraries, you may want to modify your PATH
15028*** so that a non-GNU linker is found, and then restart.
15029
15030EOF
15031 fi
15032 ;;
15033
15034 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015035 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 +000015036 hardcode_libdir_flag_spec='-L$libdir'
15037 hardcode_minus_L=yes
15038
15039 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15040 # that the semantics of dynamic libraries on AmigaOS, at least up
15041 # to version 4, is to share data among multiple programs linked
15042 # with the same dynamic library. Since this doesn't match the
15043 # behavior of shared libraries on other platforms, we can't use
15044 # them.
15045 ld_shlibs=no
15046 ;;
15047
15048 beos*)
15049 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15050 allow_undefined_flag=unsupported
15051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15052 # support --undefined. This deserves some investigation. FIXME
15053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15054 else
15055 ld_shlibs=no
15056 fi
15057 ;;
15058
15059 cygwin* | mingw* | pw32*)
15060 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15061 # as there is no search path for DLLs.
15062 hardcode_libdir_flag_spec='-L$libdir'
15063 allow_undefined_flag=unsupported
15064 always_export_symbols=no
15065 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015066 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 +000015067
15068 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015069 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 +000015070 # If the export-symbols file already is a .def file (1st line
15071 # is EXPORTS), use it as is; otherwise, prepend...
15072 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15073 cp $export_symbols $output_objdir/$soname.def;
15074 else
15075 echo EXPORTS > $output_objdir/$soname.def;
15076 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015077 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015078 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15079 else
15080 ld_shlibs=no
15081 fi
15082 ;;
15083
15084 interix3*)
15085 hardcode_direct=no
15086 hardcode_shlibpath_var=no
15087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15088 export_dynamic_flag_spec='${wl}-E'
15089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15090 # Instead, shared libraries are loaded at an image base (0x10000000 by
15091 # default) and relocated if they conflict, which is a slow very memory
15092 # consuming and fragmenting process. To avoid this, we pick a random,
15093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15096 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'
15097 ;;
15098
15099 linux*)
15100 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15101 tmp_addflag=
15102 case $cc_basename,$host_cpu in
15103 pgcc*) # Portland Group C compiler
15104 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'
15105 tmp_addflag=' $pic_flag'
15106 ;;
15107 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15108 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'
15109 tmp_addflag=' $pic_flag -Mnomain' ;;
15110 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15111 tmp_addflag=' -i_dynamic' ;;
15112 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15113 tmp_addflag=' -i_dynamic -nofor_main' ;;
15114 ifc* | ifort*) # Intel Fortran compiler
15115 tmp_addflag=' -nofor_main' ;;
15116 esac
15117 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118
15119 if test $supports_anon_versioning = yes; then
15120 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15122 $echo "local: *; };" >> $output_objdir/$libname.ver~
15123 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15124 fi
John Criswell47fdd832003-07-14 16:52:07 +000015125 else
15126 ld_shlibs=no
15127 fi
15128 ;;
15129
15130 netbsd*)
15131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15132 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15133 wlarc=
15134 else
15135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15137 fi
15138 ;;
15139
Reid Spencera773bd52006-08-04 18:18:08 +000015140 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015141 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15142 ld_shlibs=no
15143 cat <<EOF 1>&2
15144
15145*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15146*** create shared libraries on Solaris systems. Therefore, libtool
15147*** is disabling shared libraries support. We urge you to upgrade GNU
15148*** binutils to release 2.9.1 or newer. Another option is to modify
15149*** your PATH or compiler configuration so that the native linker is
15150*** used, and then restart.
15151
15152EOF
15153 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15156 else
15157 ld_shlibs=no
15158 fi
15159 ;;
15160
Reid Spencera773bd52006-08-04 18:18:08 +000015161 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15162 case `$LD -v 2>&1` in
15163 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15164 ld_shlibs=no
15165 cat <<_LT_EOF 1>&2
15166
15167*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15168*** reliably create shared libraries on SCO systems. Therefore, libtool
15169*** is disabling shared libraries support. We urge you to upgrade GNU
15170*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15171*** your PATH or compiler configuration so that the native linker is
15172*** used, and then restart.
15173
15174_LT_EOF
15175 ;;
15176 *)
15177 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15178 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15181 else
15182 ld_shlibs=no
15183 fi
15184 ;;
15185 esac
15186 ;;
15187
John Criswell47fdd832003-07-14 16:52:07 +000015188 sunos4*)
15189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15190 wlarc=
15191 hardcode_direct=yes
15192 hardcode_shlibpath_var=no
15193 ;;
15194
15195 *)
15196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15199 else
15200 ld_shlibs=no
15201 fi
15202 ;;
15203 esac
15204
Reid Spencera773bd52006-08-04 18:18:08 +000015205 if test "$ld_shlibs" = no; then
15206 runpath_var=
15207 hardcode_libdir_flag_spec=
15208 export_dynamic_flag_spec=
15209 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015210 fi
15211 else
15212 # PORTME fill in a description of your system's linker (not GNU ld)
15213 case $host_os in
15214 aix3*)
15215 allow_undefined_flag=unsupported
15216 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015217 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 +000015218 # Note: this linker hardcodes the directories in LIBPATH if there
15219 # are no directories specified by -L.
15220 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015222 # Neither direct hardcoding nor static linking is supported with a
15223 # broken collect2.
15224 hardcode_direct=unsupported
15225 fi
15226 ;;
15227
15228 aix4* | aix5*)
15229 if test "$host_cpu" = ia64; then
15230 # On IA64, the linker does run time linking by default, so we don't
15231 # have to do anything special.
15232 aix_use_runtimelinking=no
15233 exp_sym_flag='-Bexport'
15234 no_entry_flag=""
15235 else
15236 # If we're using GNU nm, then we don't want the "-C" option.
15237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15238 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15239 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'
15240 else
15241 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'
15242 fi
15243 aix_use_runtimelinking=no
15244
15245 # Test if we are trying to use run time linking or normal
15246 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15247 # need to do runtime linking.
15248 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15249 for ld_flag in $LDFLAGS; do
15250 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15251 aix_use_runtimelinking=yes
15252 break
15253 fi
15254 done
Reid Spencera773bd52006-08-04 18:18:08 +000015255 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015256 esac
15257
15258 exp_sym_flag='-bexport'
15259 no_entry_flag='-bnoentry'
15260 fi
15261
15262 # When large executables or shared objects are built, AIX ld can
15263 # have problems creating the table of contents. If linking a library
15264 # or program results in "error TOC overflow" add -mminimal-toc to
15265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15267
15268 archive_cmds=''
15269 hardcode_direct=yes
15270 hardcode_libdir_separator=':'
15271 link_all_deplibs=yes
15272
15273 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015274 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015275 # We only want to do this on AIX 4.2 and lower, the check
15276 # below for broken collect2 doesn't work under 4.3+
15277 collect2name=`${CC} -print-prog-name=collect2`
15278 if test -f "$collect2name" && \
15279 strings "$collect2name" | grep resolve_lib_name >/dev/null
15280 then
15281 # We have reworked collect2
15282 hardcode_direct=yes
15283 else
15284 # We have old collect2
15285 hardcode_direct=unsupported
15286 # It fails to find uninstalled libraries when the uninstalled
15287 # path is not listed in the libpath. Setting hardcode_minus_L
15288 # to unsupported forces relinking
15289 hardcode_minus_L=yes
15290 hardcode_libdir_flag_spec='-L$libdir'
15291 hardcode_libdir_separator=
15292 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015293 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015294 esac
15295 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015296 if test "$aix_use_runtimelinking" = yes; then
15297 shared_flag="$shared_flag "'${wl}-G'
15298 fi
John Criswell47fdd832003-07-14 16:52:07 +000015299 else
15300 # not using gcc
15301 if test "$host_cpu" = ia64; then
15302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15303 # chokes on -Wl,-G. The following line is correct:
15304 shared_flag='-G'
15305 else
Reid Spencera773bd52006-08-04 18:18:08 +000015306 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015307 shared_flag='${wl}-G'
15308 else
15309 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015310 fi
John Criswell47fdd832003-07-14 16:52:07 +000015311 fi
15312 fi
15313
15314 # It seems that -bexpall does not export symbols beginning with
15315 # underscore (_), so it is better to generate a list of symbols to export.
15316 always_export_symbols=yes
15317 if test "$aix_use_runtimelinking" = yes; then
15318 # Warning - without using the other runtime loading flags (-brtl),
15319 # -berok will link without error, but may produce a broken library.
15320 allow_undefined_flag='-berok'
15321 # Determine the default libpath from the value encoded in an empty executable.
15322 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015323/* confdefs.h. */
15324_ACEOF
15325cat confdefs.h >>conftest.$ac_ext
15326cat >>conftest.$ac_ext <<_ACEOF
15327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015328
John Criswell7a73b802003-06-30 21:59:07 +000015329int
15330main ()
15331{
John Criswell47fdd832003-07-14 16:52:07 +000015332
John Criswell7a73b802003-06-30 21:59:07 +000015333 ;
15334 return 0;
15335}
15336_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015337rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015338if { (ac_try="$ac_link"
15339case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342esac
15343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015350 (exit $ac_status); } &&
15351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15352 { (case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15355esac
15356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_try") 2>&5
15358 ac_status=$?
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); }; } &&
15361 { ac_try='test -s conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15365esac
15366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015371
John Criswell47fdd832003-07-14 16:52:07 +000015372aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15373}'`
15374# Check for a 64-bit object if we didn't find anything.
15375if 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; }
15376}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015377else
15378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015379sed 's/^/| /' conftest.$ac_ext >&5
15380
Reid Spencera773bd52006-08-04 18:18:08 +000015381
John Criswell7a73b802003-06-30 21:59:07 +000015382fi
Reid Spencera773bd52006-08-04 18:18:08 +000015383
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015384rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015385 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015386if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015387
John Criswell47fdd832003-07-14 16:52:07 +000015388 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015389 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 +000015390 else
15391 if test "$host_cpu" = ia64; then
15392 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15393 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015394 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 +000015395 else
15396 # Determine the default libpath from the value encoded in an empty executable.
15397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015398/* confdefs.h. */
15399_ACEOF
15400cat confdefs.h >>conftest.$ac_ext
15401cat >>conftest.$ac_ext <<_ACEOF
15402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015403
John Criswell47fdd832003-07-14 16:52:07 +000015404int
15405main ()
15406{
John Criswell7a73b802003-06-30 21:59:07 +000015407
John Criswell47fdd832003-07-14 16:52:07 +000015408 ;
15409 return 0;
15410}
15411_ACEOF
15412rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015413if { (ac_try="$ac_link"
15414case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15417esac
15418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015421 grep -v '^ *+' conftest.er1 >conftest.err
15422 rm -f conftest.er1
15423 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015425 (exit $ac_status); } &&
15426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15427 { (case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_try") 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15440esac
15441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15442 (eval "$ac_try") 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015446
John Criswell47fdd832003-07-14 16:52:07 +000015447aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15448}'`
15449# Check for a 64-bit object if we didn't find anything.
15450if 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; }
15451}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015452else
John Criswell47fdd832003-07-14 16:52:07 +000015453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015454sed 's/^/| /' conftest.$ac_ext >&5
15455
Reid Spencera773bd52006-08-04 18:18:08 +000015456
John Criswell47fdd832003-07-14 16:52:07 +000015457fi
Reid Spencera773bd52006-08-04 18:18:08 +000015458
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015459rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015460 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015461if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015462
John Criswell47fdd832003-07-14 16:52:07 +000015463 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 # Warning - without using the other run time loading flags,
15465 # -berok will link without error, but may produce a broken library.
15466 no_undefined_flag=' ${wl}-bernotok'
15467 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015468 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015469 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015470 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015471 # This is similar to how AIX traditionally builds its shared libraries.
15472 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 +000015473 fi
15474 fi
John Criswell7a73b802003-06-30 21:59:07 +000015475 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015476
15477 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015478 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 +000015479 hardcode_libdir_flag_spec='-L$libdir'
15480 hardcode_minus_L=yes
15481 # see comment about different semantics on the GNU ld section
15482 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015483 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015484
Reid Spencer2706f8c2004-09-19 23:53:36 +000015485 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015486 export_dynamic_flag_spec=-rdynamic
15487 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015488
John Criswell47fdd832003-07-14 16:52:07 +000015489 cygwin* | mingw* | pw32*)
15490 # When not using gcc, we currently assume that we are using
15491 # Microsoft Visual C++.
15492 # hardcode_libdir_flag_spec is actually meaningless, as there is
15493 # no search path for DLLs.
15494 hardcode_libdir_flag_spec=' '
15495 allow_undefined_flag=unsupported
15496 # Tell ltmain to make .lib files, not .a files.
15497 libext=lib
15498 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015499 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015500 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015501 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015502 # The linker will automatically build a .lib file if we build a DLL.
15503 old_archive_From_new_cmds='true'
15504 # FIXME: Should let the user specify the lib program.
15505 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15506 fix_srcfile_path='`cygpath -w "$srcfile"`'
15507 enable_shared_with_static_runtimes=yes
15508 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015509
John Criswell47fdd832003-07-14 16:52:07 +000015510 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015511 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015512 rhapsody* | darwin1.[012])
15513 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15514 ;;
15515 *) # Darwin 1.3 on
15516 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15517 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15518 else
15519 case ${MACOSX_DEPLOYMENT_TARGET} in
15520 10.[012])
15521 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15522 ;;
15523 10.*)
15524 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15525 ;;
15526 esac
15527 fi
15528 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015529 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015531 hardcode_direct=no
15532 hardcode_automatic=yes
15533 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015534 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015535 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015536 if test "$GCC" = yes ; then
15537 output_verbose_link_cmd='echo'
15538 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15539 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015540 # 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 +000015541 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}'
15542 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 +000015543 else
Reid Spencera773bd52006-08-04 18:18:08 +000015544 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015545 xlc*)
15546 output_verbose_link_cmd='echo'
15547 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15548 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015549 # 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 +000015550 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}'
15551 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 +000015552 ;;
15553 *)
15554 ld_shlibs=no
15555 ;;
15556 esac
John Criswell7a73b802003-06-30 21:59:07 +000015557 fi
John Criswell47fdd832003-07-14 16:52:07 +000015558 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015559
John Criswell47fdd832003-07-14 16:52:07 +000015560 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015562 hardcode_libdir_flag_spec='-L$libdir'
15563 hardcode_shlibpath_var=no
15564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015565
John Criswell47fdd832003-07-14 16:52:07 +000015566 freebsd1*)
15567 ld_shlibs=no
15568 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015569
John Criswell47fdd832003-07-14 16:52:07 +000015570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15571 # support. Future versions do this automatically, but an explicit c++rt0.o
15572 # does not break anything, and helps significantly (at the cost of a little
15573 # extra space).
15574 freebsd2.2*)
15575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15576 hardcode_libdir_flag_spec='-R$libdir'
15577 hardcode_direct=yes
15578 hardcode_shlibpath_var=no
15579 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015580
John Criswell47fdd832003-07-14 16:52:07 +000015581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15582 freebsd2*)
15583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15584 hardcode_direct=yes
15585 hardcode_minus_L=yes
15586 hardcode_shlibpath_var=no
15587 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015588
John Criswell47fdd832003-07-14 16:52:07 +000015589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015590 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015591 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15592 hardcode_libdir_flag_spec='-R$libdir'
15593 hardcode_direct=yes
15594 hardcode_shlibpath_var=no
15595 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015596
John Criswell47fdd832003-07-14 16:52:07 +000015597 hpux9*)
15598 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015599 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 +000015600 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015601 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 +000015602 fi
15603 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15604 hardcode_libdir_separator=:
15605 hardcode_direct=yes
15606
15607 # hardcode_minus_L: Not really in the search PATH,
15608 # but as the default location of the library.
15609 hardcode_minus_L=yes
15610 export_dynamic_flag_spec='${wl}-E'
15611 ;;
15612
Reid Spencera773bd52006-08-04 18:18:08 +000015613 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015614 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015615 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15616 else
15617 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15618 fi
15619 if test "$with_gnu_ld" = no; then
15620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15621 hardcode_libdir_separator=:
15622
15623 hardcode_direct=yes
15624 export_dynamic_flag_spec='${wl}-E'
15625
15626 # hardcode_minus_L: Not really in the search PATH,
15627 # but as the default location of the library.
15628 hardcode_minus_L=yes
15629 fi
15630 ;;
15631
15632 hpux11*)
15633 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15634 case $host_cpu in
15635 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015636 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015638 ia64*)
15639 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015641 *)
15642 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15643 ;;
15644 esac
15645 else
Reid Spencera773bd52006-08-04 18:18:08 +000015646 case $host_cpu in
15647 hppa*64*)
15648 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15649 ;;
15650 ia64*)
15651 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015652 ;;
15653 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015654 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 +000015655 ;;
15656 esac
15657 fi
15658 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015661
Reid Spencera773bd52006-08-04 18:18:08 +000015662 case $host_cpu in
15663 hppa*64*|ia64*)
15664 hardcode_libdir_flag_spec_ld='+b $libdir'
15665 hardcode_direct=no
15666 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015667 ;;
15668 *)
John Criswell47fdd832003-07-14 16:52:07 +000015669 hardcode_direct=yes
15670 export_dynamic_flag_spec='${wl}-E'
15671
15672 # hardcode_minus_L: Not really in the search PATH,
15673 # but as the default location of the library.
15674 hardcode_minus_L=yes
15675 ;;
15676 esac
15677 fi
15678 ;;
15679
15680 irix5* | irix6* | nonstopux*)
15681 if test "$GCC" = yes; then
15682 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'
15683 else
15684 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'
15685 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15686 fi
15687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15688 hardcode_libdir_separator=:
15689 link_all_deplibs=yes
15690 ;;
15691
15692 netbsd*)
15693 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15695 else
15696 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15697 fi
15698 hardcode_libdir_flag_spec='-R$libdir'
15699 hardcode_direct=yes
15700 hardcode_shlibpath_var=no
15701 ;;
15702
15703 newsos6)
15704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15705 hardcode_direct=yes
15706 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15707 hardcode_libdir_separator=:
15708 hardcode_shlibpath_var=no
15709 ;;
15710
15711 openbsd*)
15712 hardcode_direct=yes
15713 hardcode_shlibpath_var=no
15714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15715 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015716 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 +000015717 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15718 export_dynamic_flag_spec='${wl}-E'
15719 else
15720 case $host_os in
15721 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15723 hardcode_libdir_flag_spec='-R$libdir'
15724 ;;
15725 *)
15726 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15728 ;;
15729 esac
15730 fi
15731 ;;
15732
15733 os2*)
15734 hardcode_libdir_flag_spec='-L$libdir'
15735 hardcode_minus_L=yes
15736 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015737 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 +000015738 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15739 ;;
15740
15741 osf3*)
15742 if test "$GCC" = yes; then
15743 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15744 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'
15745 else
15746 allow_undefined_flag=' -expect_unresolved \*'
15747 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'
15748 fi
15749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15750 hardcode_libdir_separator=:
15751 ;;
15752
15753 osf4* | osf5*) # as osf3* with the addition of -msym flag
15754 if test "$GCC" = yes; then
15755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15756 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'
15757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15758 else
15759 allow_undefined_flag=' -expect_unresolved \*'
15760 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 +000015761 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 +000015762 $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 +000015763
John Criswell47fdd832003-07-14 16:52:07 +000015764 # Both c and cxx compiler support -rpath directly
15765 hardcode_libdir_flag_spec='-rpath $libdir'
15766 fi
15767 hardcode_libdir_separator=:
15768 ;;
15769
John Criswell47fdd832003-07-14 16:52:07 +000015770 solaris*)
15771 no_undefined_flag=' -z text'
15772 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015773 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776 $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 +000015777 else
Reid Spencera773bd52006-08-04 18:18:08 +000015778 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015779 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015780 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15781 $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 +000015782 fi
15783 hardcode_libdir_flag_spec='-R$libdir'
15784 hardcode_shlibpath_var=no
15785 case $host_os in
15786 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015787 *)
15788 # The compiler driver will combine linker options so we
15789 # cannot just pass the convience library names through
15790 # without $wl, iff we do not link with $LD.
15791 # Luckily, gcc supports the same syntax we need for Sun Studio.
15792 # Supported since Solaris 2.6 (maybe 2.5.1?)
15793 case $wlarc in
15794 '')
15795 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15796 *)
15797 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' ;;
15798 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015799 esac
15800 link_all_deplibs=yes
15801 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015802
John Criswell47fdd832003-07-14 16:52:07 +000015803 sunos4*)
15804 if test "x$host_vendor" = xsequent; then
15805 # Use $CC to link under sequent, because it throws in some extra .o
15806 # files that make .init and .fini sections work.
15807 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15808 else
15809 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15810 fi
15811 hardcode_libdir_flag_spec='-L$libdir'
15812 hardcode_direct=yes
15813 hardcode_minus_L=yes
15814 hardcode_shlibpath_var=no
15815 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015816
John Criswell47fdd832003-07-14 16:52:07 +000015817 sysv4)
15818 case $host_vendor in
15819 sni)
15820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15821 hardcode_direct=yes # is this really true???
15822 ;;
15823 siemens)
15824 ## LD is ld it makes a PLAMLIB
15825 ## CC just makes a GrossModule.
15826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15827 reload_cmds='$CC -r -o $output$reload_objs'
15828 hardcode_direct=no
15829 ;;
15830 motorola)
15831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15832 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15833 ;;
15834 esac
15835 runpath_var='LD_RUN_PATH'
15836 hardcode_shlibpath_var=no
15837 ;;
15838
15839 sysv4.3*)
15840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15841 hardcode_shlibpath_var=no
15842 export_dynamic_flag_spec='-Bexport'
15843 ;;
15844
15845 sysv4*MP*)
15846 if test -d /usr/nec; then
15847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15848 hardcode_shlibpath_var=no
15849 runpath_var=LD_RUN_PATH
15850 hardcode_runpath_var=yes
15851 ld_shlibs=yes
15852 fi
15853 ;;
15854
Reid Spencera773bd52006-08-04 18:18:08 +000015855 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15856 no_undefined_flag='${wl}-z,text'
15857 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015858 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015859 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015860
John Criswell47fdd832003-07-14 16:52:07 +000015861 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015862 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 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 +000015864 else
Reid Spencera773bd52006-08-04 18:18:08 +000015865 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 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 +000015867 fi
John Criswell47fdd832003-07-14 16:52:07 +000015868 ;;
15869
Reid Spencera773bd52006-08-04 18:18:08 +000015870 sysv5* | sco3.2v5* | sco5v6*)
15871 # Note: We can NOT use -z defs as we might desire, because we do not
15872 # link with -lc, and that would cause any symbols used from libc to
15873 # always be unresolved, which means just about no library would
15874 # ever link correctly. If we're not using GNU ld we use -z text
15875 # though, which does catch some bad symbols but isn't as heavy-handed
15876 # as -z defs.
15877 no_undefined_flag='${wl}-z,text'
15878 allow_undefined_flag='${wl}-z,nodefs'
15879 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015880 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015881 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15882 hardcode_libdir_separator=':'
15883 link_all_deplibs=yes
15884 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015885 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015886
15887 if test "$GCC" = yes; then
15888 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15889 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15890 else
15891 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15893 fi
John Criswell47fdd832003-07-14 16:52:07 +000015894 ;;
15895
15896 uts4*)
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_libdir_flag_spec='-L$libdir'
15899 hardcode_shlibpath_var=no
15900 ;;
15901
15902 *)
15903 ld_shlibs=no
15904 ;;
15905 esac
15906 fi
15907
Reid Spencera773bd52006-08-04 18:18:08 +000015908{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15909echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015910test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015911
John Criswell47fdd832003-07-14 16:52:07 +000015912#
15913# Do we need to explicitly link libc?
15914#
15915case "x$archive_cmds_need_lc" in
15916x|xyes)
15917 # Assume -lc should be added
15918 archive_cmds_need_lc=yes
15919
15920 if test "$enable_shared" = yes && test "$GCC" = yes; then
15921 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015922 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015923 # FIXME: we may have to deal with multi-command sequences.
15924 ;;
15925 '$CC '*)
15926 # Test whether the compiler implicitly links with -lc since on some
15927 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15928 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015929 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15930echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015931 $rm conftest*
15932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15933
15934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15935 (eval $ac_compile) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); } 2>conftest.err; then
15939 soname=conftest
15940 lib=conftest
15941 libobjs=conftest.$ac_objext
15942 deplibs=
15943 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015944 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015945 compiler_flags=-v
15946 linker_flags=-v
15947 verstring=
15948 output_objdir=.
15949 libname=conftest
15950 lt_save_allow_undefined_flag=$allow_undefined_flag
15951 allow_undefined_flag=
15952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15954 ac_status=$?
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }
15957 then
15958 archive_cmds_need_lc=no
15959 else
15960 archive_cmds_need_lc=yes
15961 fi
15962 allow_undefined_flag=$lt_save_allow_undefined_flag
15963 else
15964 cat conftest.err 1>&5
15965 fi
15966 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015967 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15968echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015969 ;;
15970 esac
15971 fi
15972 ;;
15973esac
15974
Reid Spencera773bd52006-08-04 18:18:08 +000015975{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15976echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015977library_names_spec=
15978libname_spec='lib$name'
15979soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015980shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015981postinstall_cmds=
15982postuninstall_cmds=
15983finish_cmds=
15984finish_eval=
15985shlibpath_var=
15986shlibpath_overrides_runpath=unknown
15987version_type=none
15988dynamic_linker="$host_os ld.so"
15989sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015990if test "$GCC" = yes; then
15991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15993 # if the path contains ";" then we assume it to be the separator
15994 # otherwise default to the standard path separator (i.e. ":") - it is
15995 # assumed that no part of a normal pathname contains ";" but that should
15996 # okay in the real world where ";" in dirpaths is itself problematic.
15997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15998 else
15999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16000 fi
16001else
16002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16003fi
16004need_lib_prefix=unknown
16005hardcode_into_libs=no
16006
16007# when you set need_version to no, make sure it does not cause -set_version
16008# flags to be left without arguments
16009need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016010
16011case $host_os in
16012aix3*)
16013 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016015 shlibpath_var=LIBPATH
16016
John Criswell47fdd832003-07-14 16:52:07 +000016017 # AIX 3 has no versioning support, so we append a major version to the name.
16018 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016019 ;;
16020
16021aix4* | aix5*)
16022 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016023 need_lib_prefix=no
16024 need_version=no
16025 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016026 if test "$host_cpu" = ia64; then
16027 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016029 shlibpath_var=LD_LIBRARY_PATH
16030 else
16031 # With GCC up to 2.95.x, collect2 would create an import file
16032 # for dependence libraries. The import file would start with
16033 # the line `#! .'. This would cause the generated library to
16034 # depend on `.', always an invalid library. This was fixed in
16035 # development snapshots of GCC prior to 3.0.
16036 case $host_os in
16037 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16039 echo ' yes '
16040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16041 :
16042 else
16043 can_build_shared=no
16044 fi
16045 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016046 esac
John Criswell47fdd832003-07-14 16:52:07 +000016047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16048 # soname into executable. Probably we can add versioning support to
16049 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016050 if test "$aix_use_runtimelinking" = yes; then
16051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16052 # instead of lib<name>.a to let people know that these are not
16053 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016055 else
16056 # We preserve .a as extension for shared libraries through AIX4.2
16057 # and later when we are not doing run time linking.
16058 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016059 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016060 fi
16061 shlibpath_var=LIBPATH
16062 fi
16063 ;;
16064
16065amigaos*)
16066 library_names_spec='$libname.ixlibrary $libname.a'
16067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016068 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 +000016069 ;;
16070
16071beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016072 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016073 dynamic_linker="$host_os ld.so"
16074 shlibpath_var=LIBRARY_PATH
16075 ;;
16076
Reid Spencer2706f8c2004-09-19 23:53:36 +000016077bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016078 version_type=linux
16079 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16083 shlibpath_var=LD_LIBRARY_PATH
16084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016086 # the default ld.so.conf also contains /usr/contrib/lib and
16087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16088 # libtool to hard-code these into programs
16089 ;;
16090
16091cygwin* | mingw* | pw32*)
16092 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016093 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016094 need_version=no
16095 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016096
John Criswell7a73b802003-06-30 21:59:07 +000016097 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016098 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016099 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016101 postinstall_cmds='base_file=`basename \${file}`~
16102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16103 dldir=$destdir/`dirname \$dlpath`~
16104 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016105 $install_prog $dir/$dlname \$dldir/$dlname~
16106 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16108 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016109 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016110 shlibpath_overrides_runpath=yes
16111
16112 case $host_os in
16113 cygwin*)
16114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16115 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 +000016116 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016117 ;;
16118 mingw*)
16119 # MinGW DLLs use traditional 'lib' prefix
16120 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16121 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16122 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16123 # It is most probably a Windows format PATH printed by
16124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16125 # path with ; separators, and with drive letters. We can handle the
16126 # drive letters (cygwin fileutils understands them), so leave them,
16127 # especially as we might pass files found there to a mingw objdump,
16128 # which wouldn't understand a cygwinified path. Ahh.
16129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16130 else
16131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16132 fi
16133 ;;
16134 pw32*)
16135 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016136 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 +000016137 ;;
16138 esac
John Criswell7a73b802003-06-30 21:59:07 +000016139 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016140
John Criswell7a73b802003-06-30 21:59:07 +000016141 *)
John Criswell47fdd832003-07-14 16:52:07 +000016142 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016143 ;;
16144 esac
16145 dynamic_linker='Win32 ld.exe'
16146 # FIXME: first we should search . and the directory the executable is in
16147 shlibpath_var=PATH
16148 ;;
16149
16150darwin* | rhapsody*)
16151 dynamic_linker="$host_os dyld"
16152 version_type=darwin
16153 need_lib_prefix=no
16154 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016156 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016157 shlibpath_overrides_runpath=yes
16158 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016159 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016161 if test "$GCC" = yes; then
16162 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"`
16163 else
16164 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016165 fi
16166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16167 ;;
16168
16169dgux*)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016176 ;;
16177
16178freebsd1*)
16179 dynamic_linker=no
16180 ;;
16181
Reid Spencer2706f8c2004-09-19 23:53:36 +000016182kfreebsd*-gnu)
16183 version_type=linux
16184 need_lib_prefix=no
16185 need_version=no
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16187 soname_spec='${libname}${release}${shared_ext}$major'
16188 shlibpath_var=LD_LIBRARY_PATH
16189 shlibpath_overrides_runpath=no
16190 hardcode_into_libs=yes
16191 dynamic_linker='GNU ld.so'
16192 ;;
16193
Reid Spencera773bd52006-08-04 18:18:08 +000016194freebsd* | dragonfly*)
16195 # DragonFly does not have aout. When/if they implement a new
16196 # versioning mechanism, adjust this.
16197 if test -x /usr/bin/objformat; then
16198 objformat=`/usr/bin/objformat`
16199 else
16200 case $host_os in
16201 freebsd[123]*) objformat=aout ;;
16202 *) objformat=elf ;;
16203 esac
16204 fi
John Criswell7a73b802003-06-30 21:59:07 +000016205 version_type=freebsd-$objformat
16206 case $version_type in
16207 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016209 need_version=no
16210 need_lib_prefix=no
16211 ;;
16212 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016214 need_version=yes
16215 ;;
16216 esac
16217 shlibpath_var=LD_LIBRARY_PATH
16218 case $host_os in
16219 freebsd2*)
16220 shlibpath_overrides_runpath=yes
16221 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016222 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016223 shlibpath_overrides_runpath=yes
16224 hardcode_into_libs=yes
16225 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016226 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16227 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016228 shlibpath_overrides_runpath=no
16229 hardcode_into_libs=yes
16230 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016231 freebsd*) # from 4.6 on
16232 shlibpath_overrides_runpath=yes
16233 hardcode_into_libs=yes
16234 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016235 esac
16236 ;;
16237
16238gnu*)
16239 version_type=linux
16240 need_lib_prefix=no
16241 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016244 shlibpath_var=LD_LIBRARY_PATH
16245 hardcode_into_libs=yes
16246 ;;
16247
16248hpux9* | hpux10* | hpux11*)
16249 # Give a soname corresponding to the major version so that dld.sl refuses to
16250 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016251 version_type=sunos
16252 need_lib_prefix=no
16253 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016254 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016255 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016256 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.so"
16259 shlibpath_var=LD_LIBRARY_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 if test "X$HPUX_IA64_MODE" = X32; then
16264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16265 else
16266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16267 fi
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16269 ;;
16270 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016271 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016272 hardcode_into_libs=yes
16273 dynamic_linker="$host_os dld.sl"
16274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16280 ;;
16281 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016282 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016283 dynamic_linker="$host_os dld.sl"
16284 shlibpath_var=SHLIB_PATH
16285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 ;;
16289 esac
John Criswell7a73b802003-06-30 21:59:07 +000016290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16291 postinstall_cmds='chmod 555 $lib'
16292 ;;
16293
Reid Spencera773bd52006-08-04 18:18:08 +000016294interix3*)
16295 version_type=linux
16296 need_lib_prefix=no
16297 need_version=no
16298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16299 soname_spec='${libname}${release}${shared_ext}$major'
16300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=no
16303 hardcode_into_libs=yes
16304 ;;
16305
John Criswell47fdd832003-07-14 16:52:07 +000016306irix5* | irix6* | nonstopux*)
16307 case $host_os in
16308 nonstopux*) version_type=nonstopux ;;
16309 *)
16310 if test "$lt_cv_prog_gnu_ld" = yes; then
16311 version_type=linux
16312 else
16313 version_type=irix
16314 fi ;;
16315 esac
John Criswell7a73b802003-06-30 21:59:07 +000016316 need_lib_prefix=no
16317 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016318 soname_spec='${libname}${release}${shared_ext}$major'
16319 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 +000016320 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016321 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016322 libsuff= shlibsuff=
16323 ;;
16324 *)
16325 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16327 libsuff= shlibsuff= libmagic=32-bit;;
16328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16329 libsuff=32 shlibsuff=N32 libmagic=N32;;
16330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016332 *) libsuff= shlibsuff= libmagic=never-match;;
16333 esac
16334 ;;
16335 esac
16336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16337 shlibpath_overrides_runpath=no
16338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016340 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016341 ;;
16342
16343# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016344linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016345 dynamic_linker=no
16346 ;;
16347
16348# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016349linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016350 version_type=linux
16351 need_lib_prefix=no
16352 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 shlibpath_overrides_runpath=no
16358 # This implies no fast_install, which is unacceptable.
16359 # Some rework will be needed to allow for fast_install
16360 # before this can be enabled.
16361 hardcode_into_libs=yes
16362
Reid Spencer2706f8c2004-09-19 23:53:36 +000016363 # Append ld.so.conf contents to the search path
16364 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016365 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 +000016366 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16367 fi
16368
John Criswell7a73b802003-06-30 21:59:07 +000016369 # We used to test for /lib/ld.so.1 and disable shared libraries on
16370 # powerpc, because MkLinux only supported shared libraries with the
16371 # GNU dynamic linker. Since this was broken with cross compilers,
16372 # most powerpc-linux boxes support dynamic linking these days and
16373 # people can always --disable-shared, the test was removed, and we
16374 # assume the GNU/Linux dynamic linker is in use.
16375 dynamic_linker='GNU/Linux ld.so'
16376 ;;
16377
Reid Spencer2706f8c2004-09-19 23:53:36 +000016378knetbsd*-gnu)
16379 version_type=linux
16380 need_lib_prefix=no
16381 need_version=no
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 shlibpath_var=LD_LIBRARY_PATH
16385 shlibpath_overrides_runpath=no
16386 hardcode_into_libs=yes
16387 dynamic_linker='GNU ld.so'
16388 ;;
16389
John Criswell7a73b802003-06-30 21:59:07 +000016390netbsd*)
16391 version_type=sunos
16392 need_lib_prefix=no
16393 need_version=no
16394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16397 dynamic_linker='NetBSD (a.out) ld.so'
16398 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016400 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016401 dynamic_linker='NetBSD ld.elf_so'
16402 fi
16403 shlibpath_var=LD_LIBRARY_PATH
16404 shlibpath_overrides_runpath=yes
16405 hardcode_into_libs=yes
16406 ;;
16407
16408newsos6)
16409 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 ;;
16414
Reid Spencer2706f8c2004-09-19 23:53:36 +000016415nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016416 version_type=linux
16417 need_lib_prefix=no
16418 need_version=no
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016421 shlibpath_var=LD_LIBRARY_PATH
16422 shlibpath_overrides_runpath=yes
16423 ;;
16424
16425openbsd*)
16426 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016427 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016428 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430 case $host_os in
16431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432 *) need_version=no ;;
16433 esac
John Criswell47fdd832003-07-14 16:52:07 +000016434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016437 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 +000016438 case $host_os in
16439 openbsd2.[89] | openbsd2.[89].*)
16440 shlibpath_overrides_runpath=no
16441 ;;
16442 *)
16443 shlibpath_overrides_runpath=yes
16444 ;;
16445 esac
John Criswell7a73b802003-06-30 21:59:07 +000016446 else
16447 shlibpath_overrides_runpath=yes
16448 fi
John Criswell7a73b802003-06-30 21:59:07 +000016449 ;;
16450
16451os2*)
16452 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016453 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016454 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016455 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016456 dynamic_linker='OS/2 ld.exe'
16457 shlibpath_var=LIBPATH
16458 ;;
16459
16460osf3* | osf4* | osf5*)
16461 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016462 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016463 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016464 soname_spec='${libname}${release}${shared_ext}$major'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016466 shlibpath_var=LD_LIBRARY_PATH
16467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16469 ;;
16470
John Criswell7a73b802003-06-30 21:59:07 +000016471solaris*)
16472 version_type=linux
16473 need_lib_prefix=no
16474 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016477 shlibpath_var=LD_LIBRARY_PATH
16478 shlibpath_overrides_runpath=yes
16479 hardcode_into_libs=yes
16480 # ldd complains unless libraries are executable
16481 postinstall_cmds='chmod +x $lib'
16482 ;;
16483
16484sunos4*)
16485 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016487 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 shlibpath_overrides_runpath=yes
16490 if test "$with_gnu_ld" = yes; then
16491 need_lib_prefix=no
16492 fi
16493 need_version=yes
16494 ;;
16495
Reid Spencera773bd52006-08-04 18:18:08 +000016496sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016497 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016500 shlibpath_var=LD_LIBRARY_PATH
16501 case $host_vendor in
16502 sni)
16503 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016504 need_lib_prefix=no
16505 export_dynamic_flag_spec='${wl}-Blargedynsym'
16506 runpath_var=LD_RUN_PATH
16507 ;;
16508 siemens)
16509 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016510 ;;
16511 motorola)
16512 need_lib_prefix=no
16513 need_version=no
16514 shlibpath_overrides_runpath=no
16515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16516 ;;
16517 esac
16518 ;;
16519
John Criswell7a73b802003-06-30 21:59:07 +000016520sysv4*MP*)
16521 if test -d /usr/nec ;then
16522 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016523 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16524 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016525 shlibpath_var=LD_LIBRARY_PATH
16526 fi
16527 ;;
16528
Reid Spencera773bd52006-08-04 18:18:08 +000016529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16530 version_type=freebsd-elf
16531 need_lib_prefix=no
16532 need_version=no
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16534 soname_spec='${libname}${release}${shared_ext}$major'
16535 shlibpath_var=LD_LIBRARY_PATH
16536 hardcode_into_libs=yes
16537 if test "$with_gnu_ld" = yes; then
16538 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16539 shlibpath_overrides_runpath=no
16540 else
16541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16542 shlibpath_overrides_runpath=yes
16543 case $host_os in
16544 sco3.2v5*)
16545 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16546 ;;
16547 esac
16548 fi
16549 sys_lib_dlsearch_path_spec='/usr/lib'
16550 ;;
16551
John Criswell47fdd832003-07-14 16:52:07 +000016552uts4*)
16553 version_type=linux
16554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 shlibpath_var=LD_LIBRARY_PATH
16557 ;;
16558
John Criswell7a73b802003-06-30 21:59:07 +000016559*)
16560 dynamic_linker=no
16561 ;;
16562esac
Reid Spencera773bd52006-08-04 18:18:08 +000016563{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16564echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016565test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016566
Reid Spencera773bd52006-08-04 18:18:08 +000016567variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16568if test "$GCC" = yes; then
16569 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16570fi
16571
16572{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16573echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016574hardcode_action=
16575if test -n "$hardcode_libdir_flag_spec" || \
16576 test -n "$runpath_var" || \
16577 test "X$hardcode_automatic" = "Xyes" ; then
16578
16579 # We can hardcode non-existant directories.
16580 if test "$hardcode_direct" != no &&
16581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16582 # have to relink, otherwise we might link with an installed library
16583 # when we should be linking with a yet-to-be-installed one
16584 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16585 test "$hardcode_minus_L" != no; then
16586 # Linking always hardcodes the temporary library directory.
16587 hardcode_action=relink
16588 else
16589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16590 hardcode_action=immediate
16591 fi
16592else
16593 # We cannot hardcode anything, or else we can only hardcode existing
16594 # directories.
16595 hardcode_action=unsupported
16596fi
Reid Spencera773bd52006-08-04 18:18:08 +000016597{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16598echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016599
16600if test "$hardcode_action" = relink; then
16601 # Fast installation is not supported
16602 enable_fast_install=no
16603elif test "$shlibpath_overrides_runpath" = yes ||
16604 test "$enable_shared" = no; then
16605 # Fast installation is not necessary
16606 enable_fast_install=needless
16607fi
16608
16609striplib=
16610old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016611{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16612echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016613if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16614 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16615 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016616 { echo "$as_me:$LINENO: result: yes" >&5
16617echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016618else
16619# FIXME - insert some real tests, host_os isn't really good enough
16620 case $host_os in
16621 darwin*)
16622 if test -n "$STRIP" ; then
16623 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016624 { echo "$as_me:$LINENO: result: yes" >&5
16625echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626 else
Reid Spencera773bd52006-08-04 18:18:08 +000016627 { echo "$as_me:$LINENO: result: no" >&5
16628echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629fi
16630 ;;
16631 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016632 { echo "$as_me:$LINENO: result: no" >&5
16633echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016634 ;;
16635 esac
16636fi
16637
John Criswell7a73b802003-06-30 21:59:07 +000016638if test "x$enable_dlopen" != xyes; then
16639 enable_dlopen=unknown
16640 enable_dlopen_self=unknown
16641 enable_dlopen_self_static=unknown
16642else
16643 lt_cv_dlopen=no
16644 lt_cv_dlopen_libs=
16645
16646 case $host_os in
16647 beos*)
16648 lt_cv_dlopen="load_add_on"
16649 lt_cv_dlopen_libs=
16650 lt_cv_dlopen_self=yes
16651 ;;
16652
John Criswell47fdd832003-07-14 16:52:07 +000016653 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016654 lt_cv_dlopen="LoadLibrary"
16655 lt_cv_dlopen_libs=
16656 ;;
16657
John Criswell47fdd832003-07-14 16:52:07 +000016658 cygwin*)
16659 lt_cv_dlopen="dlopen"
16660 lt_cv_dlopen_libs=
16661 ;;
16662
16663 darwin*)
16664 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016665 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16666echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016667if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16668 echo $ECHO_N "(cached) $ECHO_C" >&6
16669else
16670 ac_check_lib_save_LIBS=$LIBS
16671LIBS="-ldl $LIBS"
16672cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016673/* confdefs.h. */
16674_ACEOF
16675cat confdefs.h >>conftest.$ac_ext
16676cat >>conftest.$ac_ext <<_ACEOF
16677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016678
Reid Spencera773bd52006-08-04 18:18:08 +000016679/* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016682#ifdef __cplusplus
16683extern "C"
16684#endif
John Criswell47fdd832003-07-14 16:52:07 +000016685char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016686int
16687main ()
16688{
Reid Spencera773bd52006-08-04 18:18:08 +000016689return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016690 ;
16691 return 0;
16692}
16693_ACEOF
16694rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016695if { (ac_try="$ac_link"
16696case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016702 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016707 (exit $ac_status); } &&
16708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709 { (case "(($ac_try" in
16710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711 *) ac_try_echo=$ac_try;;
16712esac
16713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714 (eval "$ac_try") 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; } &&
16718 { ac_try='test -s conftest$ac_exeext'
16719 { (case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16722esac
16723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724 (eval "$ac_try") 2>&5
16725 ac_status=$?
16726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016728 ac_cv_lib_dl_dlopen=yes
16729else
16730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016731sed 's/^/| /' conftest.$ac_ext >&5
16732
Reid Spencera773bd52006-08-04 18:18:08 +000016733 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016734fi
Reid Spencera773bd52006-08-04 18:18:08 +000016735
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016736rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016737 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016738LIBS=$ac_check_lib_save_LIBS
16739fi
Reid Spencera773bd52006-08-04 18:18:08 +000016740{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16741echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016742if test $ac_cv_lib_dl_dlopen = yes; then
16743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16744else
16745
16746 lt_cv_dlopen="dyld"
16747 lt_cv_dlopen_libs=
16748 lt_cv_dlopen_self=yes
16749
16750fi
16751
16752 ;;
16753
John Criswell7a73b802003-06-30 21:59:07 +000016754 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016755 { echo "$as_me:$LINENO: checking for shl_load" >&5
16756echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016757if test "${ac_cv_func_shl_load+set}" = set; then
16758 echo $ECHO_N "(cached) $ECHO_C" >&6
16759else
16760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016761/* confdefs.h. */
16762_ACEOF
16763cat confdefs.h >>conftest.$ac_ext
16764cat >>conftest.$ac_ext <<_ACEOF
16765/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016766/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16768#define shl_load innocuous_shl_load
16769
John Criswell7a73b802003-06-30 21:59:07 +000016770/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016771 which can conflict with char shl_load (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016774
John Criswell0c38eaf2003-09-10 15:17:25 +000016775#ifdef __STDC__
16776# include <limits.h>
16777#else
16778# include <assert.h>
16779#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016780
16781#undef shl_load
16782
Reid Spencera773bd52006-08-04 18:18:08 +000016783/* Override any GCC internal prototype to avoid an error.
16784 Use char because int might match the return type of a GCC
16785 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016786#ifdef __cplusplus
16787extern "C"
16788#endif
John Criswell7a73b802003-06-30 21:59:07 +000016789char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016790/* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016793#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016794choke me
John Criswell7a73b802003-06-30 21:59:07 +000016795#endif
16796
John Criswell0c38eaf2003-09-10 15:17:25 +000016797int
16798main ()
16799{
Reid Spencera773bd52006-08-04 18:18:08 +000016800return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016801 ;
16802 return 0;
16803}
16804_ACEOF
16805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016806if { (ac_try="$ac_link"
16807case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 grep -v '^ *+' conftest.er1 >conftest.err
16815 rm -f conftest.er1
16816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016818 (exit $ac_status); } &&
16819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; } &&
16829 { ac_try='test -s conftest$ac_exeext'
16830 { (case "(($ac_try" in
16831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16832 *) ac_try_echo=$ac_try;;
16833esac
16834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16835 (eval "$ac_try") 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016839 ac_cv_func_shl_load=yes
16840else
16841 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016842sed 's/^/| /' conftest.$ac_ext >&5
16843
Reid Spencera773bd52006-08-04 18:18:08 +000016844 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016845fi
Reid Spencera773bd52006-08-04 18:18:08 +000016846
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016848 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016849fi
Reid Spencera773bd52006-08-04 18:18:08 +000016850{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16851echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016852if test $ac_cv_func_shl_load = yes; then
16853 lt_cv_dlopen="shl_load"
16854else
Reid Spencera773bd52006-08-04 18:18:08 +000016855 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16856echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016857if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16859else
16860 ac_check_lib_save_LIBS=$LIBS
16861LIBS="-ldld $LIBS"
16862cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016863/* confdefs.h. */
16864_ACEOF
16865cat confdefs.h >>conftest.$ac_ext
16866cat >>conftest.$ac_ext <<_ACEOF
16867/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016868
Reid Spencera773bd52006-08-04 18:18:08 +000016869/* Override any GCC internal prototype to avoid an error.
16870 Use char because int might match the return type of a GCC
16871 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016872#ifdef __cplusplus
16873extern "C"
16874#endif
John Criswell7a73b802003-06-30 21:59:07 +000016875char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016876int
16877main ()
16878{
Reid Spencera773bd52006-08-04 18:18:08 +000016879return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016885if { (ac_try="$ac_link"
16886case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016892 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016897 (exit $ac_status); } &&
16898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016918 ac_cv_lib_dld_shl_load=yes
16919else
16920 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016921sed 's/^/| /' conftest.$ac_ext >&5
16922
Reid Spencera773bd52006-08-04 18:18:08 +000016923 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016924fi
Reid Spencera773bd52006-08-04 18:18:08 +000016925
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016926rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016927 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016928LIBS=$ac_check_lib_save_LIBS
16929fi
Reid Spencera773bd52006-08-04 18:18:08 +000016930{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16931echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016932if test $ac_cv_lib_dld_shl_load = yes; then
16933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16934else
Reid Spencera773bd52006-08-04 18:18:08 +000016935 { echo "$as_me:$LINENO: checking for dlopen" >&5
16936echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016937if test "${ac_cv_func_dlopen+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016946/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16948#define dlopen innocuous_dlopen
16949
John Criswell7a73b802003-06-30 21:59:07 +000016950/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016951 which can conflict with char dlopen (); below.
16952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16953 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016954
John Criswell0c38eaf2003-09-10 15:17:25 +000016955#ifdef __STDC__
16956# include <limits.h>
16957#else
16958# include <assert.h>
16959#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016960
16961#undef dlopen
16962
Reid Spencera773bd52006-08-04 18:18:08 +000016963/* Override any GCC internal prototype to avoid an error.
16964 Use char because int might match the return type of a GCC
16965 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016966#ifdef __cplusplus
16967extern "C"
16968#endif
John Criswell7a73b802003-06-30 21:59:07 +000016969char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016970/* The GNU C library defines this for functions which it implements
16971 to always fail with ENOSYS. Some functions are actually named
16972 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016973#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016974choke me
John Criswell7a73b802003-06-30 21:59:07 +000016975#endif
16976
John Criswell0c38eaf2003-09-10 15:17:25 +000016977int
16978main ()
16979{
Reid Spencera773bd52006-08-04 18:18:08 +000016980return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016981 ;
16982 return 0;
16983}
16984_ACEOF
16985rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016986if { (ac_try="$ac_link"
16987case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest$ac_exeext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17013esac
17014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17016 ac_status=$?
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017019 ac_cv_func_dlopen=yes
17020else
17021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017022sed 's/^/| /' conftest.$ac_ext >&5
17023
Reid Spencera773bd52006-08-04 18:18:08 +000017024 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017025fi
Reid Spencera773bd52006-08-04 18:18:08 +000017026
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017027rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017028 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017029fi
Reid Spencera773bd52006-08-04 18:18:08 +000017030{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17031echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017032if test $ac_cv_func_dlopen = yes; then
17033 lt_cv_dlopen="dlopen"
17034else
Reid Spencera773bd52006-08-04 18:18:08 +000017035 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17036echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017037if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 ac_check_lib_save_LIBS=$LIBS
17041LIBS="-ldl $LIBS"
17042cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017043/* confdefs.h. */
17044_ACEOF
17045cat confdefs.h >>conftest.$ac_ext
17046cat >>conftest.$ac_ext <<_ACEOF
17047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017048
Reid Spencera773bd52006-08-04 18:18:08 +000017049/* Override any GCC internal prototype to avoid an error.
17050 Use char because int might match the return type of a GCC
17051 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017052#ifdef __cplusplus
17053extern "C"
17054#endif
John Criswell7a73b802003-06-30 21:59:07 +000017055char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017056int
17057main ()
17058{
Reid Spencera773bd52006-08-04 18:18:08 +000017059return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017060 ;
17061 return 0;
17062}
17063_ACEOF
17064rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017065if { (ac_try="$ac_link"
17066case "(($ac_try" in
17067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068 *) ac_try_echo=$ac_try;;
17069esac
17070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079 { (case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
17083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084 (eval "$ac_try") 2>&5
17085 ac_status=$?
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; } &&
17088 { ac_try='test -s conftest$ac_exeext'
17089 { (case "(($ac_try" in
17090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091 *) ac_try_echo=$ac_try;;
17092esac
17093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094 (eval "$ac_try") 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017098 ac_cv_lib_dl_dlopen=yes
17099else
17100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017101sed 's/^/| /' conftest.$ac_ext >&5
17102
Reid Spencera773bd52006-08-04 18:18:08 +000017103 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017104fi
Reid Spencera773bd52006-08-04 18:18:08 +000017105
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017106rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017107 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017108LIBS=$ac_check_lib_save_LIBS
17109fi
Reid Spencera773bd52006-08-04 18:18:08 +000017110{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017112if test $ac_cv_lib_dl_dlopen = yes; then
17113 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17114else
Reid Spencera773bd52006-08-04 18:18:08 +000017115 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17116echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017117if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119else
17120 ac_check_lib_save_LIBS=$LIBS
17121LIBS="-lsvld $LIBS"
17122cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017128
Reid Spencera773bd52006-08-04 18:18:08 +000017129/* Override any GCC internal prototype to avoid an error.
17130 Use char because int might match the return type of a GCC
17131 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017132#ifdef __cplusplus
17133extern "C"
17134#endif
John Criswell7a73b802003-06-30 21:59:07 +000017135char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017136int
17137main ()
17138{
Reid Spencera773bd52006-08-04 18:18:08 +000017139return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017140 ;
17141 return 0;
17142}
17143_ACEOF
17144rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017145if { (ac_try="$ac_link"
17146case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17149esac
17150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017153 grep -v '^ *+' conftest.er1 >conftest.err
17154 rm -f conftest.er1
17155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017157 (exit $ac_status); } &&
17158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162esac
17163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; } &&
17168 { ac_try='test -s conftest$ac_exeext'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017178 ac_cv_lib_svld_dlopen=yes
17179else
17180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017181sed 's/^/| /' conftest.$ac_ext >&5
17182
Reid Spencera773bd52006-08-04 18:18:08 +000017183 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017184fi
Reid Spencera773bd52006-08-04 18:18:08 +000017185
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017186rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017187 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017188LIBS=$ac_check_lib_save_LIBS
17189fi
Reid Spencera773bd52006-08-04 18:18:08 +000017190{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17191echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017192if test $ac_cv_lib_svld_dlopen = yes; then
17193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17194else
Reid Spencera773bd52006-08-04 18:18:08 +000017195 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17196echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017197if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17199else
17200 ac_check_lib_save_LIBS=$LIBS
17201LIBS="-ldld $LIBS"
17202cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017203/* confdefs.h. */
17204_ACEOF
17205cat confdefs.h >>conftest.$ac_ext
17206cat >>conftest.$ac_ext <<_ACEOF
17207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017208
Reid Spencera773bd52006-08-04 18:18:08 +000017209/* Override any GCC internal prototype to avoid an error.
17210 Use char because int might match the return type of a GCC
17211 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017212#ifdef __cplusplus
17213extern "C"
17214#endif
John Criswell7a73b802003-06-30 21:59:07 +000017215char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017216int
17217main ()
17218{
Reid Spencera773bd52006-08-04 18:18:08 +000017219return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017220 ;
17221 return 0;
17222}
17223_ACEOF
17224rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017225if { (ac_try="$ac_link"
17226case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17229esac
17230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017233 grep -v '^ *+' conftest.er1 >conftest.err
17234 rm -f conftest.er1
17235 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17248 { ac_try='test -s conftest$ac_exeext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17252esac
17253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017258 ac_cv_lib_dld_dld_link=yes
17259else
17260 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017261sed 's/^/| /' conftest.$ac_ext >&5
17262
Reid Spencera773bd52006-08-04 18:18:08 +000017263 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017264fi
Reid Spencera773bd52006-08-04 18:18:08 +000017265
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017266rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017267 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017268LIBS=$ac_check_lib_save_LIBS
17269fi
Reid Spencera773bd52006-08-04 18:18:08 +000017270{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17271echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017272if test $ac_cv_lib_dld_dld_link = yes; then
17273 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17274fi
17275
17276
17277fi
17278
17279
17280fi
17281
17282
17283fi
17284
17285
17286fi
17287
17288
17289fi
17290
17291 ;;
17292 esac
17293
17294 if test "x$lt_cv_dlopen" != xno; then
17295 enable_dlopen=yes
17296 else
17297 enable_dlopen=no
17298 fi
17299
17300 case $lt_cv_dlopen in
17301 dlopen)
17302 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017303 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017304
17305 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017306 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017307
17308 save_LIBS="$LIBS"
17309 LIBS="$lt_cv_dlopen_libs $LIBS"
17310
Reid Spencera773bd52006-08-04 18:18:08 +000017311 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17312echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017313if test "${lt_cv_dlopen_self+set}" = set; then
17314 echo $ECHO_N "(cached) $ECHO_C" >&6
17315else
17316 if test "$cross_compiling" = yes; then :
17317 lt_cv_dlopen_self=cross
17318else
John Criswell47fdd832003-07-14 16:52:07 +000017319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017320 lt_status=$lt_dlunknown
17321 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb138812009-03-12 03:34:33 +000017322#line 17322 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017323#include "confdefs.h"
17324
17325#if HAVE_DLFCN_H
17326#include <dlfcn.h>
17327#endif
17328
17329#include <stdio.h>
17330
17331#ifdef RTLD_GLOBAL
17332# define LT_DLGLOBAL RTLD_GLOBAL
17333#else
17334# ifdef DL_GLOBAL
17335# define LT_DLGLOBAL DL_GLOBAL
17336# else
17337# define LT_DLGLOBAL 0
17338# endif
17339#endif
17340
17341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17342 find out it does not work in some platform. */
17343#ifndef LT_DLLAZY_OR_NOW
17344# ifdef RTLD_LAZY
17345# define LT_DLLAZY_OR_NOW RTLD_LAZY
17346# else
17347# ifdef DL_LAZY
17348# define LT_DLLAZY_OR_NOW DL_LAZY
17349# else
17350# ifdef RTLD_NOW
17351# define LT_DLLAZY_OR_NOW RTLD_NOW
17352# else
17353# ifdef DL_NOW
17354# define LT_DLLAZY_OR_NOW DL_NOW
17355# else
17356# define LT_DLLAZY_OR_NOW 0
17357# endif
17358# endif
17359# endif
17360# endif
17361#endif
17362
17363#ifdef __cplusplus
17364extern "C" void exit (int);
17365#endif
17366
17367void fnord() { int i=42;}
17368int main ()
17369{
17370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17371 int status = $lt_dlunknown;
17372
17373 if (self)
17374 {
17375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17376 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17377 /* dlclose (self); */
17378 }
Reid Spencera773bd52006-08-04 18:18:08 +000017379 else
17380 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017381
17382 exit (status);
17383}
17384EOF
17385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17386 (eval $ac_link) 2>&5
17387 ac_status=$?
17388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017390 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017391 lt_status=$?
17392 case x$lt_status in
17393 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17394 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017395 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017396 esac
17397 else :
17398 # compilation failed
17399 lt_cv_dlopen_self=no
17400 fi
17401fi
17402rm -fr conftest*
17403
17404
17405fi
Reid Spencera773bd52006-08-04 18:18:08 +000017406{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17407echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017408
17409 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017410 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17411 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17412echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017413if test "${lt_cv_dlopen_self_static+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415else
17416 if test "$cross_compiling" = yes; then :
17417 lt_cv_dlopen_self_static=cross
17418else
John Criswell47fdd832003-07-14 16:52:07 +000017419 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017420 lt_status=$lt_dlunknown
17421 cat > conftest.$ac_ext <<EOF
Nick Lewyckyfb138812009-03-12 03:34:33 +000017422#line 17422 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017423#include "confdefs.h"
17424
17425#if HAVE_DLFCN_H
17426#include <dlfcn.h>
17427#endif
17428
17429#include <stdio.h>
17430
17431#ifdef RTLD_GLOBAL
17432# define LT_DLGLOBAL RTLD_GLOBAL
17433#else
17434# ifdef DL_GLOBAL
17435# define LT_DLGLOBAL DL_GLOBAL
17436# else
17437# define LT_DLGLOBAL 0
17438# endif
17439#endif
17440
17441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17442 find out it does not work in some platform. */
17443#ifndef LT_DLLAZY_OR_NOW
17444# ifdef RTLD_LAZY
17445# define LT_DLLAZY_OR_NOW RTLD_LAZY
17446# else
17447# ifdef DL_LAZY
17448# define LT_DLLAZY_OR_NOW DL_LAZY
17449# else
17450# ifdef RTLD_NOW
17451# define LT_DLLAZY_OR_NOW RTLD_NOW
17452# else
17453# ifdef DL_NOW
17454# define LT_DLLAZY_OR_NOW DL_NOW
17455# else
17456# define LT_DLLAZY_OR_NOW 0
17457# endif
17458# endif
17459# endif
17460# endif
17461#endif
17462
17463#ifdef __cplusplus
17464extern "C" void exit (int);
17465#endif
17466
17467void fnord() { int i=42;}
17468int main ()
17469{
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17472
17473 if (self)
17474 {
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17478 }
Reid Spencera773bd52006-08-04 18:18:08 +000017479 else
17480 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017481
17482 exit (status);
17483}
17484EOF
17485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17486 (eval $ac_link) 2>&5
17487 ac_status=$?
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017490 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017491 lt_status=$?
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017496 esac
17497 else :
17498 # compilation failed
17499 lt_cv_dlopen_self_static=no
17500 fi
17501fi
17502rm -fr conftest*
17503
17504
17505fi
Reid Spencera773bd52006-08-04 18:18:08 +000017506{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17507echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017508 fi
17509
17510 CPPFLAGS="$save_CPPFLAGS"
17511 LDFLAGS="$save_LDFLAGS"
17512 LIBS="$save_LIBS"
17513 ;;
17514 esac
17515
17516 case $lt_cv_dlopen_self in
17517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518 *) enable_dlopen_self=unknown ;;
17519 esac
17520
17521 case $lt_cv_dlopen_self_static in
17522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523 *) enable_dlopen_self_static=unknown ;;
17524 esac
17525fi
17526
17527
Reid Spencera773bd52006-08-04 18:18:08 +000017528# Report which library types will actually be built
17529{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17530echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17531{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17532echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017533
Reid Spencera773bd52006-08-04 18:18:08 +000017534{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17535echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017536test "$can_build_shared" = "no" && enable_shared=no
17537
17538# On AIX, shared libraries and static libraries use the same namespace, and
17539# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017540case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017541aix3*)
17542 test "$enable_shared" = yes && enable_static=no
17543 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017544 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017545 postinstall_cmds='$RANLIB $lib'
17546 fi
17547 ;;
17548
Reid Spencer2706f8c2004-09-19 23:53:36 +000017549aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017550 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17551 test "$enable_shared" = yes && enable_static=no
17552 fi
John Criswell7a73b802003-06-30 21:59:07 +000017553 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017554esac
Reid Spencera773bd52006-08-04 18:18:08 +000017555{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17556echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017557
Reid Spencera773bd52006-08-04 18:18:08 +000017558{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17559echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017560# Make sure either enable_shared or enable_static is yes.
17561test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017562{ echo "$as_me:$LINENO: result: $enable_static" >&5
17563echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017564
17565# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017566# libtool distribution, otherwise you forgot to ship ltmain.sh
17567# with your package, and you will get complaints that there are
17568# no rules to generate ltmain.sh.
17569if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017570 # See if we are running on zsh, and set the options which allow our commands through
17571 # without removal of \ escapes.
17572 if test -n "${ZSH_VERSION+set}" ; then
17573 setopt NO_GLOB_SUBST
17574 fi
John Criswell7a73b802003-06-30 21:59:07 +000017575 # Now quote all the things that may contain metacharacters while being
17576 # careful not to overquote the AC_SUBSTed values. We take copies of the
17577 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017578 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 +000017579 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017580 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17581 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17582 deplibs_check_method reload_flag reload_cmds need_locks \
17583 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17584 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017585 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017586 old_postinstall_cmds old_postuninstall_cmds \
17587 compiler \
17588 CC \
17589 LD \
17590 lt_prog_compiler_wl \
17591 lt_prog_compiler_pic \
17592 lt_prog_compiler_static \
17593 lt_prog_compiler_no_builtin_flag \
17594 export_dynamic_flag_spec \
17595 thread_safe_flag_spec \
17596 whole_archive_flag_spec \
17597 enable_shared_with_static_runtimes \
17598 old_archive_cmds \
17599 old_archive_from_new_cmds \
17600 predep_objects \
17601 postdep_objects \
17602 predeps \
17603 postdeps \
17604 compiler_lib_search_path \
17605 archive_cmds \
17606 archive_expsym_cmds \
17607 postinstall_cmds \
17608 postuninstall_cmds \
17609 old_archive_from_expsyms_cmds \
17610 allow_undefined_flag \
17611 no_undefined_flag \
17612 export_symbols_cmds \
17613 hardcode_libdir_flag_spec \
17614 hardcode_libdir_flag_spec_ld \
17615 hardcode_libdir_separator \
17616 hardcode_automatic \
17617 module_cmds \
17618 module_expsym_cmds \
17619 lt_cv_prog_compiler_c_o \
17620 exclude_expsyms \
17621 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017622
17623 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017624 old_archive_cmds | \
17625 old_archive_from_new_cmds | \
17626 archive_cmds | \
17627 archive_expsym_cmds | \
17628 module_cmds | \
17629 module_expsym_cmds | \
17630 old_archive_from_expsyms_cmds | \
17631 export_symbols_cmds | \
17632 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017633 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017634 old_postinstall_cmds | old_postuninstall_cmds | \
17635 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017636 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017637 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 +000017638 ;;
17639 *)
17640 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17641 ;;
17642 esac
17643 done
17644
John Criswell47fdd832003-07-14 16:52:07 +000017645 case $lt_echo in
17646 *'\$0 --fallback-echo"')
17647 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17648 ;;
17649 esac
17650
17651cfgfile="${ofile}T"
17652 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17653 $rm -f "$cfgfile"
17654 { echo "$as_me:$LINENO: creating $ofile" >&5
17655echo "$as_me: creating $ofile" >&6;}
17656
17657 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017658#! $SHELL
17659
John Criswell47fdd832003-07-14 16:52:07 +000017660# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017661# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17662# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17663#
John Criswell47fdd832003-07-14 16:52:07 +000017664# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17665# Free Software Foundation, Inc.
17666#
17667# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017668# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17669#
17670# This program is free software; you can redistribute it and/or modify
17671# it under the terms of the GNU General Public License as published by
17672# the Free Software Foundation; either version 2 of the License, or
17673# (at your option) any later version.
17674#
17675# This program is distributed in the hope that it will be useful, but
17676# WITHOUT ANY WARRANTY; without even the implied warranty of
17677# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17678# General Public License for more details.
17679#
17680# You should have received a copy of the GNU General Public License
17681# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017682# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017683#
17684# As a special exception to the GNU General Public License, if you
17685# distribute this file as part of a program that contains a
17686# configuration script generated by Autoconf, you may include it under
17687# the same distribution terms that you use for the rest of that program.
17688
John Criswell47fdd832003-07-14 16:52:07 +000017689# A sed program that does not truncate output.
17690SED=$lt_SED
17691
John Criswell7a73b802003-06-30 21:59:07 +000017692# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017693Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017694
17695# The HP-UX ksh and POSIX shell print the target directory to stdout
17696# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017698
John Criswell47fdd832003-07-14 16:52:07 +000017699# The names of the tagged configurations supported by this script.
17700available_tags=
17701
John Criswell7a73b802003-06-30 21:59:07 +000017702# ### BEGIN LIBTOOL CONFIG
17703
17704# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17705
17706# Shell to use when invoking shell scripts.
17707SHELL=$lt_SHELL
17708
17709# Whether or not to build shared libraries.
17710build_libtool_libs=$enable_shared
17711
17712# Whether or not to build static libraries.
17713build_old_libs=$enable_static
17714
17715# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017716build_libtool_need_lc=$archive_cmds_need_lc
17717
17718# Whether or not to disallow shared libs when runtime libs are static
17719allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017720
17721# Whether or not to optimize for fast installation.
17722fast_install=$enable_fast_install
17723
17724# The host system.
17725host_alias=$host_alias
17726host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017727host_os=$host_os
17728
17729# The build system.
17730build_alias=$build_alias
17731build=$build
17732build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017733
17734# An echo program that does not interpret backslashes.
17735echo=$lt_echo
17736
17737# The archiver.
17738AR=$lt_AR
17739AR_FLAGS=$lt_AR_FLAGS
17740
John Criswell47fdd832003-07-14 16:52:07 +000017741# A C compiler.
17742LTCC=$lt_LTCC
17743
Reid Spencera773bd52006-08-04 18:18:08 +000017744# LTCC compiler flags.
17745LTCFLAGS=$lt_LTCFLAGS
17746
John Criswell47fdd832003-07-14 16:52:07 +000017747# A language-specific compiler.
17748CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017749
17750# Is the compiler the GNU C compiler?
17751with_gcc=$GCC
17752
John Criswell47fdd832003-07-14 16:52:07 +000017753# An ERE matcher.
17754EGREP=$lt_EGREP
17755
John Criswell7a73b802003-06-30 21:59:07 +000017756# The linker used to build libraries.
17757LD=$lt_LD
17758
17759# Whether we need hard or soft links.
17760LN_S=$lt_LN_S
17761
17762# A BSD-compatible nm program.
17763NM=$lt_NM
17764
17765# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017766STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017767
17768# Used to examine libraries when file_magic_cmd begins "file"
17769MAGIC_CMD=$MAGIC_CMD
17770
17771# Used on cygwin: DLL creation program.
17772DLLTOOL="$DLLTOOL"
17773
17774# Used on cygwin: object dumper.
17775OBJDUMP="$OBJDUMP"
17776
17777# Used on cygwin: assembler.
17778AS="$AS"
17779
17780# The name of the directory that contains temporary libtool files.
17781objdir=$objdir
17782
17783# How to create reloadable object files.
17784reload_flag=$lt_reload_flag
17785reload_cmds=$lt_reload_cmds
17786
17787# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017788wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017789
17790# Object file suffix (normally "o").
17791objext="$ac_objext"
17792
17793# Old archive suffix (normally "a").
17794libext="$libext"
17795
John Criswell47fdd832003-07-14 16:52:07 +000017796# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017797shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017798
John Criswell7a73b802003-06-30 21:59:07 +000017799# Executable file suffix (normally "").
17800exeext="$exeext"
17801
17802# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017803pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017804pic_mode=$pic_mode
17805
John Criswell47fdd832003-07-14 16:52:07 +000017806# What is the maximum length of a command?
17807max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017808
John Criswell47fdd832003-07-14 16:52:07 +000017809# Does compiler simultaneously support -c and -o options?
17810compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017811
Reid Spencera773bd52006-08-04 18:18:08 +000017812# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017813need_locks=$lt_need_locks
17814
17815# Do we need the lib prefix for modules?
17816need_lib_prefix=$need_lib_prefix
17817
17818# Do we need a version for libraries?
17819need_version=$need_version
17820
17821# Whether dlopen is supported.
17822dlopen_support=$enable_dlopen
17823
17824# Whether dlopen of programs is supported.
17825dlopen_self=$enable_dlopen_self
17826
17827# Whether dlopen of statically linked programs is supported.
17828dlopen_self_static=$enable_dlopen_self_static
17829
17830# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017831link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017832
17833# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017834no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017835
17836# Compiler flag to allow reflexive dlopens.
17837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17838
17839# Compiler flag to generate shared objects directly from archives.
17840whole_archive_flag_spec=$lt_whole_archive_flag_spec
17841
17842# Compiler flag to generate thread-safe objects.
17843thread_safe_flag_spec=$lt_thread_safe_flag_spec
17844
17845# Library versioning type.
17846version_type=$version_type
17847
17848# Format of library name prefix.
17849libname_spec=$lt_libname_spec
17850
17851# List of archive names. First name is the real one, the rest are links.
17852# The last name is the one that the linker finds with -lNAME.
17853library_names_spec=$lt_library_names_spec
17854
17855# The coded name of the library, if different from the real name.
17856soname_spec=$lt_soname_spec
17857
17858# Commands used to build and install an old-style archive.
17859RANLIB=$lt_RANLIB
17860old_archive_cmds=$lt_old_archive_cmds
17861old_postinstall_cmds=$lt_old_postinstall_cmds
17862old_postuninstall_cmds=$lt_old_postuninstall_cmds
17863
17864# Create an old-style archive from a shared archive.
17865old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17866
17867# Create a temporary old-style archive to link instead of a shared archive.
17868old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17869
17870# Commands used to build and install a shared archive.
17871archive_cmds=$lt_archive_cmds
17872archive_expsym_cmds=$lt_archive_expsym_cmds
17873postinstall_cmds=$lt_postinstall_cmds
17874postuninstall_cmds=$lt_postuninstall_cmds
17875
John Criswell47fdd832003-07-14 16:52:07 +000017876# Commands used to build a loadable module (assumed same as above if empty)
17877module_cmds=$lt_module_cmds
17878module_expsym_cmds=$lt_module_expsym_cmds
17879
John Criswell7a73b802003-06-30 21:59:07 +000017880# Commands to strip libraries.
17881old_striplib=$lt_old_striplib
17882striplib=$lt_striplib
17883
John Criswell47fdd832003-07-14 16:52:07 +000017884# Dependencies to place before the objects being linked to create a
17885# shared library.
17886predep_objects=$lt_predep_objects
17887
17888# Dependencies to place after the objects being linked to create a
17889# shared library.
17890postdep_objects=$lt_postdep_objects
17891
17892# Dependencies to place before the objects being linked to create a
17893# shared library.
17894predeps=$lt_predeps
17895
17896# Dependencies to place after the objects being linked to create a
17897# shared library.
17898postdeps=$lt_postdeps
17899
17900# The library search path used internally by the compiler when linking
17901# a shared library.
17902compiler_lib_search_path=$lt_compiler_lib_search_path
17903
John Criswell7a73b802003-06-30 21:59:07 +000017904# Method to check whether dependent libraries are shared objects.
17905deplibs_check_method=$lt_deplibs_check_method
17906
17907# Command to use when deplibs_check_method == file_magic.
17908file_magic_cmd=$lt_file_magic_cmd
17909
17910# Flag that allows shared libraries with undefined symbols to be built.
17911allow_undefined_flag=$lt_allow_undefined_flag
17912
17913# Flag that forces no undefined symbols.
17914no_undefined_flag=$lt_no_undefined_flag
17915
17916# Commands used to finish a libtool library installation in a directory.
17917finish_cmds=$lt_finish_cmds
17918
17919# Same as above, but a single script fragment to be evaled but not shown.
17920finish_eval=$lt_finish_eval
17921
17922# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017923global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017924
17925# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017926global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017927
17928# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017929global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017930
17931# This is the shared library runtime path variable.
17932runpath_var=$runpath_var
17933
17934# This is the shared library path variable.
17935shlibpath_var=$shlibpath_var
17936
17937# Is shlibpath searched before the hard-coded library search path?
17938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17939
17940# How to hardcode a shared library path into an executable.
17941hardcode_action=$hardcode_action
17942
17943# Whether we should hardcode library paths into libraries.
17944hardcode_into_libs=$hardcode_into_libs
17945
17946# Flag to hardcode \$libdir into a binary during linking.
17947# This must work even if \$libdir does not exist.
17948hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17949
John Criswell47fdd832003-07-14 16:52:07 +000017950# If ld is used when linking, flag to hardcode \$libdir into
17951# a binary during linking. This must work even if \$libdir does
17952# not exist.
17953hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17954
John Criswell7a73b802003-06-30 21:59:07 +000017955# Whether we need a single -rpath flag with a separated argument.
17956hardcode_libdir_separator=$lt_hardcode_libdir_separator
17957
John Criswell47fdd832003-07-14 16:52:07 +000017958# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017959# resulting binary.
17960hardcode_direct=$hardcode_direct
17961
17962# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963# resulting binary.
17964hardcode_minus_L=$hardcode_minus_L
17965
17966# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967# the resulting binary.
17968hardcode_shlibpath_var=$hardcode_shlibpath_var
17969
John Criswell47fdd832003-07-14 16:52:07 +000017970# Set to yes if building a shared library automatically hardcodes DIR into the library
17971# and all subsequent libraries and executables linked against it.
17972hardcode_automatic=$hardcode_automatic
17973
John Criswell7a73b802003-06-30 21:59:07 +000017974# Variables whose values should be saved in libtool wrapper scripts and
17975# restored at relink time.
17976variables_saved_for_relink="$variables_saved_for_relink"
17977
17978# Whether libtool must link a program against all its dependency libraries.
17979link_all_deplibs=$link_all_deplibs
17980
17981# Compile-time system search path for libraries
17982sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984# Run-time system search path for libraries
17985sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987# Fix the shell variable \$srcfile for the compiler.
17988fix_srcfile_path="$fix_srcfile_path"
17989
17990# Set to yes if exported symbols are required.
17991always_export_symbols=$always_export_symbols
17992
17993# The commands to list exported symbols.
17994export_symbols_cmds=$lt_export_symbols_cmds
17995
17996# The commands to extract the exported symbol list from a shared archive.
17997extract_expsyms_cmds=$lt_extract_expsyms_cmds
17998
17999# Symbols that should not be listed in the preloaded symbols.
18000exclude_expsyms=$lt_exclude_expsyms
18001
18002# Symbols that must always be exported.
18003include_expsyms=$lt_include_expsyms
18004
18005# ### END LIBTOOL CONFIG
18006
18007__EOF__
18008
John Criswell47fdd832003-07-14 16:52:07 +000018009
John Criswell7a73b802003-06-30 21:59:07 +000018010 case $host_os in
18011 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018012 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018013
18014# AIX sometimes has problems with the GCC collect2 program. For some
18015# reason, if we set the COLLECT_NAMES environment variable, the problems
18016# vanish in a puff of smoke.
18017if test "X${COLLECT_NAMES+set}" != Xset; then
18018 COLLECT_NAMES=
18019 export COLLECT_NAMES
18020fi
18021EOF
18022 ;;
18023 esac
18024
John Criswell7a73b802003-06-30 21:59:07 +000018025 # We use sed instead of cat because bash on DJGPP gets confused if
18026 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18027 # text mode, it properly converts lines to CR/LF. This bash problem
18028 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018029 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018030
John Criswell47fdd832003-07-14 16:52:07 +000018031 mv -f "$cfgfile" "$ofile" || \
18032 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018033 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018034
18035else
18036 # If there is no Makefile yet, we rely on a make rule to execute
18037 # `config.status --recheck' to rerun these tests and create the
18038 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018039 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18040 if test -f "$ltmain_in"; then
18041 test -f Makefile && make "$ltmain"
18042 fi
John Criswell7a73b802003-06-30 21:59:07 +000018043fi
John Criswell7a73b802003-06-30 21:59:07 +000018044
18045
John Criswell47fdd832003-07-14 16:52:07 +000018046ac_ext=c
18047ac_cpp='$CPP $CPPFLAGS'
18048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18050ac_compiler_gnu=$ac_cv_c_compiler_gnu
18051
18052CC="$lt_save_CC"
18053
18054
Reid Spencera773bd52006-08-04 18:18:08 +000018055# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018056if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018057 withval=$with_tags; tagnames="$withval"
18058fi
18059
John Criswell47fdd832003-07-14 16:52:07 +000018060
18061if test -f "$ltmain" && test -n "$tagnames"; then
18062 if test ! -f "${ofile}"; then
18063 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18064echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18065 fi
18066
18067 if test -z "$LTCC"; then
18068 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18069 if test -z "$LTCC"; then
18070 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18071echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18072 else
18073 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18074echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18075 fi
18076 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018077 if test -z "$LTCFLAGS"; then
18078 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18079 fi
John Criswell47fdd832003-07-14 16:52:07 +000018080
18081 # Extract list of available tagged configurations in $ofile.
18082 # Note that this assumes the entire list is on one line.
18083 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18084
18085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18086 for tagname in $tagnames; do
18087 IFS="$lt_save_ifs"
18088 # Check whether tagname contains only valid characters
18089 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18090 "") ;;
18091 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18092echo "$as_me: error: invalid tag name: $tagname" >&2;}
18093 { (exit 1); exit 1; }; }
18094 ;;
18095 esac
18096
18097 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18098 then
18099 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18100echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18101 { (exit 1); exit 1; }; }
18102 fi
18103
18104 # Update the list of available tags.
18105 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018106 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018107
18108 case $tagname in
18109 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018110 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18111 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18112 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018113 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018114ac_cpp='$CXXCPP $CPPFLAGS'
18115ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18116ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18117ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18118
18119
18120
18121
18122archive_cmds_need_lc_CXX=no
18123allow_undefined_flag_CXX=
18124always_export_symbols_CXX=no
18125archive_expsym_cmds_CXX=
18126export_dynamic_flag_spec_CXX=
18127hardcode_direct_CXX=no
18128hardcode_libdir_flag_spec_CXX=
18129hardcode_libdir_flag_spec_ld_CXX=
18130hardcode_libdir_separator_CXX=
18131hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018132hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018133hardcode_automatic_CXX=no
18134module_cmds_CXX=
18135module_expsym_cmds_CXX=
18136link_all_deplibs_CXX=unknown
18137old_archive_cmds_CXX=$old_archive_cmds
18138no_undefined_flag_CXX=
18139whole_archive_flag_spec_CXX=
18140enable_shared_with_static_runtimes_CXX=no
18141
18142# Dependencies to place before and after the object being linked:
18143predep_objects_CXX=
18144postdep_objects_CXX=
18145predeps_CXX=
18146postdeps_CXX=
18147compiler_lib_search_path_CXX=
18148
18149# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018150ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018151
18152# Object file extension for compiled C++ test sources.
18153objext=o
18154objext_CXX=$objext
18155
18156# Code to be used in simple compile tests
18157lt_simple_compile_test_code="int some_variable = 0;\n"
18158
18159# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018160lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018161
18162# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18163
18164# If no C compiler was specified, use CC.
18165LTCC=${LTCC-"$CC"}
18166
Reid Spencera773bd52006-08-04 18:18:08 +000018167# If no C compiler flags were specified, use CFLAGS.
18168LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18169
John Criswell47fdd832003-07-14 16:52:07 +000018170# Allow CC to be a program name with arguments.
18171compiler=$CC
18172
18173
Reid Spencera773bd52006-08-04 18:18:08 +000018174# save warnings/boilerplate of simple test code
18175ac_outfile=conftest.$ac_objext
18176printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18178_lt_compiler_boilerplate=`cat conftest.err`
18179$rm conftest*
18180
18181ac_outfile=conftest.$ac_objext
18182printf "$lt_simple_link_test_code" >conftest.$ac_ext
18183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18184_lt_linker_boilerplate=`cat conftest.err`
18185$rm conftest*
18186
18187
John Criswell47fdd832003-07-14 16:52:07 +000018188# Allow CC to be a program name with arguments.
18189lt_save_CC=$CC
18190lt_save_LD=$LD
18191lt_save_GCC=$GCC
18192GCC=$GXX
18193lt_save_with_gnu_ld=$with_gnu_ld
18194lt_save_path_LD=$lt_cv_path_LD
18195if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18196 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18197else
Reid Spencera773bd52006-08-04 18:18:08 +000018198 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018199fi
18200if test -n "${lt_cv_path_LDCXX+set}"; then
18201 lt_cv_path_LD=$lt_cv_path_LDCXX
18202else
Reid Spencera773bd52006-08-04 18:18:08 +000018203 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018204fi
18205test -z "${LDCXX+set}" || LD=$LDCXX
18206CC=${CXX-"c++"}
18207compiler=$CC
18208compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018209for cc_temp in $compiler""; do
18210 case $cc_temp in
18211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18213 \-*) ;;
18214 *) break;;
18215 esac
18216done
18217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18218
John Criswell47fdd832003-07-14 16:52:07 +000018219
18220# We don't want -fno-exception wen compiling C++ code, so set the
18221# no_builtin_flag separately
18222if test "$GXX" = yes; then
18223 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18224else
18225 lt_prog_compiler_no_builtin_flag_CXX=
18226fi
18227
18228if test "$GXX" = yes; then
18229 # Set up default GNU C++ configuration
18230
18231
Reid Spencera773bd52006-08-04 18:18:08 +000018232# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018233if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018235else
18236 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018237fi
18238
John Criswell47fdd832003-07-14 16:52:07 +000018239ac_prog=ld
18240if test "$GCC" = yes; then
18241 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018242 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18243echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018244 case $host in
18245 *-*-mingw*)
18246 # gcc leaves a trailing carriage return which upsets mingw
18247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18248 *)
18249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18250 esac
18251 case $ac_prog in
18252 # Accept absolute paths.
18253 [\\/]* | ?:[\\/]*)
18254 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018255 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018256 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18257 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18258 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18259 done
18260 test -z "$LD" && LD="$ac_prog"
18261 ;;
18262 "")
18263 # If it fails, then pretend we aren't using GCC.
18264 ac_prog=ld
18265 ;;
18266 *)
18267 # If it is relative, then search for the first ld in PATH.
18268 with_gnu_ld=unknown
18269 ;;
18270 esac
18271elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018272 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18273echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018274else
Reid Spencera773bd52006-08-04 18:18:08 +000018275 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18276echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018277fi
18278if test "${lt_cv_path_LD+set}" = set; then
18279 echo $ECHO_N "(cached) $ECHO_C" >&6
18280else
18281 if test -z "$LD"; then
18282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18283 for ac_dir in $PATH; do
18284 IFS="$lt_save_ifs"
18285 test -z "$ac_dir" && ac_dir=.
18286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18287 lt_cv_path_LD="$ac_dir/$ac_prog"
18288 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018289 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018290 # Break only if it was the GNU/non-GNU ld that we prefer.
18291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18292 *GNU* | *'with BFD'*)
18293 test "$with_gnu_ld" != no && break
18294 ;;
18295 *)
18296 test "$with_gnu_ld" != yes && break
18297 ;;
18298 esac
18299 fi
18300 done
18301 IFS="$lt_save_ifs"
18302else
18303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18304fi
18305fi
18306
18307LD="$lt_cv_path_LD"
18308if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018309 { echo "$as_me:$LINENO: result: $LD" >&5
18310echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018311else
Reid Spencera773bd52006-08-04 18:18:08 +000018312 { echo "$as_me:$LINENO: result: no" >&5
18313echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018314fi
18315test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18316echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18317 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018318{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18319echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018320if test "${lt_cv_prog_gnu_ld+set}" = set; then
18321 echo $ECHO_N "(cached) $ECHO_C" >&6
18322else
Reid Spencera773bd52006-08-04 18:18:08 +000018323 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018324case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018325*GNU* | *'with BFD'*)
18326 lt_cv_prog_gnu_ld=yes
18327 ;;
18328*)
18329 lt_cv_prog_gnu_ld=no
18330 ;;
18331esac
18332fi
Reid Spencera773bd52006-08-04 18:18:08 +000018333{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18334echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018335with_gnu_ld=$lt_cv_prog_gnu_ld
18336
18337
18338
18339 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18340 # archiving commands below assume that GNU ld is being used.
18341 if test "$with_gnu_ld" = yes; then
18342 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18343 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'
18344
18345 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18346 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18347
18348 # If archive_cmds runs LD, not CC, wlarc should be empty
18349 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18350 # investigate it a little bit more. (MM)
18351 wlarc='${wl}'
18352
18353 # ancient GNU ld didn't support --whole-archive et. al.
18354 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18355 grep 'no-whole-archive' > /dev/null; then
18356 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18357 else
18358 whole_archive_flag_spec_CXX=
18359 fi
18360 else
18361 with_gnu_ld=no
18362 wlarc=
18363
18364 # A generic and very simple default shared library creation
18365 # command for GNU C++ for the case where it uses the native
18366 # linker, instead of GNU ld. If possible, this setting should
18367 # overridden to take advantage of the native linker features on
18368 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018369 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018370 fi
18371
18372 # Commands to make compiler produce verbose output that lists
18373 # what "hidden" libraries, object files and flags are used when
18374 # linking a shared library.
18375 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18376
18377else
18378 GXX=no
18379 with_gnu_ld=no
18380 wlarc=
18381fi
18382
18383# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018384{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18385echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018386ld_shlibs_CXX=yes
18387case $host_os in
18388 aix3*)
18389 # FIXME: insert proper C++ library support
18390 ld_shlibs_CXX=no
18391 ;;
18392 aix4* | aix5*)
18393 if test "$host_cpu" = ia64; then
18394 # On IA64, the linker does run time linking by default, so we don't
18395 # have to do anything special.
18396 aix_use_runtimelinking=no
18397 exp_sym_flag='-Bexport'
18398 no_entry_flag=""
18399 else
18400 aix_use_runtimelinking=no
18401
18402 # Test if we are trying to use run time linking or normal
18403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18404 # need to do runtime linking.
18405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18406 for ld_flag in $LDFLAGS; do
18407 case $ld_flag in
18408 *-brtl*)
18409 aix_use_runtimelinking=yes
18410 break
18411 ;;
18412 esac
18413 done
Reid Spencera773bd52006-08-04 18:18:08 +000018414 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018415 esac
18416
18417 exp_sym_flag='-bexport'
18418 no_entry_flag='-bnoentry'
18419 fi
18420
18421 # When large executables or shared objects are built, AIX ld can
18422 # have problems creating the table of contents. If linking a library
18423 # or program results in "error TOC overflow" add -mminimal-toc to
18424 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18425 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18426
18427 archive_cmds_CXX=''
18428 hardcode_direct_CXX=yes
18429 hardcode_libdir_separator_CXX=':'
18430 link_all_deplibs_CXX=yes
18431
18432 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018433 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018434 # We only want to do this on AIX 4.2 and lower, the check
18435 # below for broken collect2 doesn't work under 4.3+
18436 collect2name=`${CC} -print-prog-name=collect2`
18437 if test -f "$collect2name" && \
18438 strings "$collect2name" | grep resolve_lib_name >/dev/null
18439 then
18440 # We have reworked collect2
18441 hardcode_direct_CXX=yes
18442 else
18443 # We have old collect2
18444 hardcode_direct_CXX=unsupported
18445 # It fails to find uninstalled libraries when the uninstalled
18446 # path is not listed in the libpath. Setting hardcode_minus_L
18447 # to unsupported forces relinking
18448 hardcode_minus_L_CXX=yes
18449 hardcode_libdir_flag_spec_CXX='-L$libdir'
18450 hardcode_libdir_separator_CXX=
18451 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018452 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018453 esac
18454 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018455 if test "$aix_use_runtimelinking" = yes; then
18456 shared_flag="$shared_flag "'${wl}-G'
18457 fi
John Criswell47fdd832003-07-14 16:52:07 +000018458 else
18459 # not using gcc
18460 if test "$host_cpu" = ia64; then
18461 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18462 # chokes on -Wl,-G. The following line is correct:
18463 shared_flag='-G'
18464 else
18465 if test "$aix_use_runtimelinking" = yes; then
18466 shared_flag='${wl}-G'
18467 else
18468 shared_flag='${wl}-bM:SRE'
18469 fi
18470 fi
18471 fi
18472
18473 # It seems that -bexpall does not export symbols beginning with
18474 # underscore (_), so it is better to generate a list of symbols to export.
18475 always_export_symbols_CXX=yes
18476 if test "$aix_use_runtimelinking" = yes; then
18477 # Warning - without using the other runtime loading flags (-brtl),
18478 # -berok will link without error, but may produce a broken library.
18479 allow_undefined_flag_CXX='-berok'
18480 # Determine the default libpath from the value encoded in an empty executable.
18481 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018482/* confdefs.h. */
18483_ACEOF
18484cat confdefs.h >>conftest.$ac_ext
18485cat >>conftest.$ac_ext <<_ACEOF
18486/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018487
John Criswell47fdd832003-07-14 16:52:07 +000018488int
18489main ()
18490{
18491
18492 ;
18493 return 0;
18494}
18495_ACEOF
18496rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018497if { (ac_try="$ac_link"
18498case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018505 grep -v '^ *+' conftest.er1 >conftest.err
18506 rm -f conftest.er1
18507 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018509 (exit $ac_status); } &&
18510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18511 { (case "(($ac_try" in
18512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513 *) ac_try_echo=$ac_try;;
18514esac
18515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516 (eval "$ac_try") 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest$ac_exeext'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18524esac
18525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018530
18531aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18532}'`
18533# Check for a 64-bit object if we didn't find anything.
18534if 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; }
18535}'`; fi
18536else
18537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018538sed 's/^/| /' conftest.$ac_ext >&5
18539
Reid Spencera773bd52006-08-04 18:18:08 +000018540
John Criswell47fdd832003-07-14 16:52:07 +000018541fi
Reid Spencera773bd52006-08-04 18:18:08 +000018542
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018543rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018544 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018545if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18546
18547 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18548
Reid Spencera773bd52006-08-04 18:18:08 +000018549 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 +000018550 else
18551 if test "$host_cpu" = ia64; then
18552 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18553 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018554 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 +000018555 else
18556 # Determine the default libpath from the value encoded in an empty executable.
18557 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018558/* confdefs.h. */
18559_ACEOF
18560cat confdefs.h >>conftest.$ac_ext
18561cat >>conftest.$ac_ext <<_ACEOF
18562/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018563
John Criswell47fdd832003-07-14 16:52:07 +000018564int
18565main ()
18566{
18567
18568 ;
18569 return 0;
18570}
18571_ACEOF
18572rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018573if { (ac_try="$ac_link"
18574case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18577esac
18578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018581 grep -v '^ *+' conftest.er1 >conftest.err
18582 rm -f conftest.er1
18583 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018585 (exit $ac_status); } &&
18586 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18587 { (case "(($ac_try" in
18588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18589 *) ac_try_echo=$ac_try;;
18590esac
18591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18592 (eval "$ac_try") 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; } &&
18596 { ac_try='test -s conftest$ac_exeext'
18597 { (case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18600esac
18601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_try") 2>&5
18603 ac_status=$?
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018606
18607aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18608}'`
18609# Check for a 64-bit object if we didn't find anything.
18610if 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; }
18611}'`; fi
18612else
18613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018614sed 's/^/| /' conftest.$ac_ext >&5
18615
Reid Spencera773bd52006-08-04 18:18:08 +000018616
John Criswell47fdd832003-07-14 16:52:07 +000018617fi
Reid Spencera773bd52006-08-04 18:18:08 +000018618
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018619rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018620 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18622
18623 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18624 # Warning - without using the other run time loading flags,
18625 # -berok will link without error, but may produce a broken library.
18626 no_undefined_flag_CXX=' ${wl}-bernotok'
18627 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018628 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018629 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018630 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018631 # This is similar to how AIX traditionally builds its shared libraries.
18632 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 +000018633 fi
18634 fi
18635 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018636
18637 beos*)
18638 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18639 allow_undefined_flag_CXX=unsupported
18640 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18641 # support --undefined. This deserves some investigation. FIXME
18642 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18643 else
18644 ld_shlibs_CXX=no
18645 fi
18646 ;;
18647
John Criswell47fdd832003-07-14 16:52:07 +000018648 chorus*)
18649 case $cc_basename in
18650 *)
18651 # FIXME: insert proper C++ library support
18652 ld_shlibs_CXX=no
18653 ;;
18654 esac
18655 ;;
18656
18657 cygwin* | mingw* | pw32*)
18658 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18659 # as there is no search path for DLLs.
18660 hardcode_libdir_flag_spec_CXX='-L$libdir'
18661 allow_undefined_flag_CXX=unsupported
18662 always_export_symbols_CXX=no
18663 enable_shared_with_static_runtimes_CXX=yes
18664
18665 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018666 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 +000018667 # If the export-symbols file already is a .def file (1st line
18668 # is EXPORTS), use it as is; otherwise, prepend...
18669 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18670 cp $export_symbols $output_objdir/$soname.def;
18671 else
18672 echo EXPORTS > $output_objdir/$soname.def;
18673 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018674 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018675 $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 +000018676 else
18677 ld_shlibs_CXX=no
18678 fi
18679 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018680 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018681 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018682 rhapsody* | darwin1.[012])
18683 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18684 ;;
18685 *) # Darwin 1.3 on
18686 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18687 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18688 else
18689 case ${MACOSX_DEPLOYMENT_TARGET} in
18690 10.[012])
18691 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18692 ;;
18693 10.*)
18694 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18695 ;;
18696 esac
18697 fi
18698 ;;
18699 esac
18700 archive_cmds_need_lc_CXX=no
18701 hardcode_direct_CXX=no
18702 hardcode_automatic_CXX=yes
18703 hardcode_shlibpath_var_CXX=unsupported
18704 whole_archive_flag_spec_CXX=''
18705 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018706
Reid Spencer2706f8c2004-09-19 23:53:36 +000018707 if test "$GXX" = yes ; then
18708 lt_int_apple_cc_single_mod=no
18709 output_verbose_link_cmd='echo'
18710 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18711 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018712 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018713 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018714 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 +000018715 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018716 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 +000018717 fi
18718 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018719 # 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 +000018720 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018721 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 +000018722 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018723 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 +000018724 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018725 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 +000018726 else
Reid Spencera773bd52006-08-04 18:18:08 +000018727 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018728 xlc*)
18729 output_verbose_link_cmd='echo'
18730 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'
18731 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018732 # 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 +000018733 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}'
18734 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 +000018735 ;;
18736 *)
18737 ld_shlibs_CXX=no
18738 ;;
18739 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018740 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018741 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018742
18743 dgux*)
18744 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018745 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018749 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018750 # Green Hills C++ Compiler
18751 # FIXME: insert proper C++ library support
18752 ld_shlibs_CXX=no
18753 ;;
18754 *)
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 ;;
18758 esac
18759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018760 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018761 # C++ shared libraries reported to be fairly broken before switch to ELF
18762 ld_shlibs_CXX=no
18763 ;;
18764 freebsd-elf*)
18765 archive_cmds_need_lc_CXX=no
18766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018767 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18769 # conventions
18770 ld_shlibs_CXX=yes
18771 ;;
18772 gnu*)
18773 ;;
18774 hpux9*)
18775 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18776 hardcode_libdir_separator_CXX=:
18777 export_dynamic_flag_spec_CXX='${wl}-E'
18778 hardcode_direct_CXX=yes
18779 hardcode_minus_L_CXX=yes # Not in the search PATH,
18780 # but as the default
18781 # location of the library.
18782
18783 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018784 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018785 # FIXME: insert proper C++ library support
18786 ld_shlibs_CXX=no
18787 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018788 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018789 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 +000018790 # Commands to make compiler produce verbose output that lists
18791 # what "hidden" libraries, object files and flags are used when
18792 # linking a shared library.
18793 #
18794 # There doesn't appear to be a way to prevent this compiler from
18795 # explicitly linking system object files so we need to strip them
18796 # from the output so that they don't get included in the library
18797 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018798 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 +000018799 ;;
18800 *)
18801 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018802 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 +000018803 else
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18806 fi
18807 ;;
18808 esac
18809 ;;
18810 hpux10*|hpux11*)
18811 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018812 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18813 hardcode_libdir_separator_CXX=:
18814
18815 case $host_cpu in
18816 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018817 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018818 ;;
18819 *)
John Criswell47fdd832003-07-14 16:52:07 +000018820 export_dynamic_flag_spec_CXX='${wl}-E'
18821 ;;
18822 esac
18823 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018824 case $host_cpu in
18825 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018826 hardcode_direct_CXX=no
18827 hardcode_shlibpath_var_CXX=no
18828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018829 *)
18830 hardcode_direct_CXX=yes
18831 hardcode_minus_L_CXX=yes # Not in the search PATH,
18832 # but as the default
18833 # location of the library.
18834 ;;
18835 esac
18836
18837 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018838 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018842 aCC*)
18843 case $host_cpu in
18844 hppa*64*)
18845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846 ;;
18847 ia64*)
18848 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 +000018849 ;;
18850 *)
18851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18852 ;;
18853 esac
18854 # Commands to make compiler produce verbose output that lists
18855 # what "hidden" libraries, object files and flags are used when
18856 # linking a shared library.
18857 #
18858 # There doesn't appear to be a way to prevent this compiler from
18859 # explicitly linking system object files so we need to strip them
18860 # from the output so that they don't get included in the library
18861 # dependencies.
18862 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'
18863 ;;
18864 *)
18865 if test "$GXX" = yes; then
18866 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018867 case $host_cpu in
18868 hppa*64*)
18869 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18870 ;;
18871 ia64*)
18872 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 +000018873 ;;
18874 *)
18875 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'
18876 ;;
18877 esac
18878 fi
18879 else
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 fi
18883 ;;
18884 esac
18885 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018886 interix3*)
18887 hardcode_direct_CXX=no
18888 hardcode_shlibpath_var_CXX=no
18889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18890 export_dynamic_flag_spec_CXX='${wl}-E'
18891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18892 # Instead, shared libraries are loaded at an image base (0x10000000 by
18893 # default) and relocated if they conflict, which is a slow very memory
18894 # consuming and fragmenting process. To avoid this, we pick a random,
18895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18897 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'
18898 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'
18899 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018900 irix5* | irix6*)
18901 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018902 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018903 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018904 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 +000018905
18906 # Archives containing C++ object files must be created using
18907 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18908 # necessary to make sure instantiated templates are included
18909 # in the archive.
18910 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18911 ;;
18912 *)
18913 if test "$GXX" = yes; then
18914 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018915 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 +000018916 else
18917 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'
18918 fi
18919 fi
18920 link_all_deplibs_CXX=yes
18921 ;;
18922 esac
18923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18924 hardcode_libdir_separator_CXX=:
18925 ;;
18926 linux*)
18927 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018928 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018929 # Kuck and Associates, Inc. (KAI) C++ Compiler
18930
18931 # KCC will only create a shared library if the output file
18932 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18933 # to its proper name (with version) after linking.
18934 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'
18935 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'
18936 # Commands to make compiler produce verbose output that lists
18937 # what "hidden" libraries, object files and flags are used when
18938 # linking a shared library.
18939 #
18940 # There doesn't appear to be a way to prevent this compiler from
18941 # explicitly linking system object files so we need to strip them
18942 # from the output so that they don't get included in the library
18943 # dependencies.
18944 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'
18945
18946 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18947 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18948
18949 # Archives containing C++ object files must be created using
18950 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18951 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18952 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018953 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018954 # Intel C++
18955 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018956 # version 8.0 and above of icpc choke on multiply defined symbols
18957 # if we add $predep_objects and $postdep_objects, however 7.1 and
18958 # earlier do not add the objects themselves.
18959 case `$CC -V 2>&1` in
18960 *"Version 7."*)
18961 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18962 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'
18963 ;;
18964 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018965 tmp_idyn=
18966 case $host_cpu in
18967 ia64*) tmp_idyn=' -i_dynamic';;
18968 esac
18969 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18970 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 +000018971 ;;
18972 esac
John Criswell47fdd832003-07-14 16:52:07 +000018973 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018974 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18976 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18977 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018978 pgCC*)
18979 # Portland Group C++ compiler
18980 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18981 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'
18982
18983 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18985 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'
18986 ;;
18987 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018988 # Compaq C++
18989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18990 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'
18991
18992 runpath_var=LD_RUN_PATH
18993 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18994 hardcode_libdir_separator_CXX=:
18995
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 #
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
19004 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'
19005 ;;
19006 esac
19007 ;;
19008 lynxos*)
19009 # FIXME: insert proper C++ library support
19010 ld_shlibs_CXX=no
19011 ;;
19012 m88k*)
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
19016 mvs*)
19017 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019018 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019019 # FIXME: insert proper C++ library support
19020 ld_shlibs_CXX=no
19021 ;;
19022 *)
19023 # FIXME: insert proper C++ library support
19024 ld_shlibs_CXX=no
19025 ;;
19026 esac
19027 ;;
19028 netbsd*)
19029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19030 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19031 wlarc=
19032 hardcode_libdir_flag_spec_CXX='-R$libdir'
19033 hardcode_direct_CXX=yes
19034 hardcode_shlibpath_var_CXX=no
19035 fi
19036 # Workaround some broken pre-1.5 toolchains
19037 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19038 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019039 openbsd2*)
19040 # C++ shared libraries are fairly broken
19041 ld_shlibs_CXX=no
19042 ;;
19043 openbsd*)
19044 hardcode_direct_CXX=yes
19045 hardcode_shlibpath_var_CXX=no
19046 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19047 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19048 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19049 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19050 export_dynamic_flag_spec_CXX='${wl}-E'
19051 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19052 fi
19053 output_verbose_link_cmd='echo'
19054 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019055 osf3*)
19056 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019057 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019058 # Kuck and Associates, Inc. (KAI) C++ Compiler
19059
19060 # KCC will only create a shared library if the output file
19061 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19062 # to its proper name (with version) after linking.
19063 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'
19064
19065 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19066 hardcode_libdir_separator_CXX=:
19067
19068 # Archives containing C++ object files must be created using
19069 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19070 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19071
19072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019073 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019074 # Rational C++ 2.4.1
19075 # FIXME: insert proper C++ library support
19076 ld_shlibs_CXX=no
19077 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019078 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019079 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019080 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 +000019081
19082 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19083 hardcode_libdir_separator_CXX=:
19084
19085 # Commands to make compiler produce verbose output that lists
19086 # what "hidden" libraries, object files and flags are used when
19087 # linking a shared library.
19088 #
19089 # There doesn't appear to be a way to prevent this compiler from
19090 # explicitly linking system object files so we need to strip them
19091 # from the output so that they don't get included in the library
19092 # dependencies.
19093 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'
19094 ;;
19095 *)
19096 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19097 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019098 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 +000019099
19100 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19101 hardcode_libdir_separator_CXX=:
19102
19103 # Commands to make compiler produce verbose output that lists
19104 # what "hidden" libraries, object files and flags are used when
19105 # linking a shared library.
19106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19107
19108 else
19109 # FIXME: insert proper C++ library support
19110 ld_shlibs_CXX=no
19111 fi
19112 ;;
19113 esac
19114 ;;
19115 osf4* | osf5*)
19116 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019117 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019118 # Kuck and Associates, Inc. (KAI) C++ Compiler
19119
19120 # KCC will only create a shared library if the output file
19121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19122 # to its proper name (with version) after linking.
19123 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'
19124
19125 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19126 hardcode_libdir_separator_CXX=:
19127
19128 # Archives containing C++ object files must be created using
19129 # the KAI C++ compiler.
19130 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019132 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019133 # Rational C++ 2.4.1
19134 # FIXME: insert proper C++ library support
19135 ld_shlibs_CXX=no
19136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019137 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019138 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019139 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 +000019140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19141 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019142 $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 +000019143 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019144
19145 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19146 hardcode_libdir_separator_CXX=:
19147
19148 # Commands to make compiler produce verbose output that lists
19149 # what "hidden" libraries, object files and flags are used when
19150 # linking a shared library.
19151 #
19152 # There doesn't appear to be a way to prevent this compiler from
19153 # explicitly linking system object files so we need to strip them
19154 # from the output so that they don't get included in the library
19155 # dependencies.
19156 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'
19157 ;;
19158 *)
19159 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19160 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019161 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 +000019162
19163 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19164 hardcode_libdir_separator_CXX=:
19165
19166 # Commands to make compiler produce verbose output that lists
19167 # what "hidden" libraries, object files and flags are used when
19168 # linking a shared library.
19169 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19170
19171 else
19172 # FIXME: insert proper C++ library support
19173 ld_shlibs_CXX=no
19174 fi
19175 ;;
19176 esac
19177 ;;
19178 psos*)
19179 # FIXME: insert proper C++ library support
19180 ld_shlibs_CXX=no
19181 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019182 sunos4*)
19183 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019184 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019185 # Sun C++ 4.x
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019189 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019190 # Lucid
19191 # FIXME: insert proper C++ library support
19192 ld_shlibs_CXX=no
19193 ;;
19194 *)
19195 # FIXME: insert proper C++ library support
19196 ld_shlibs_CXX=no
19197 ;;
19198 esac
19199 ;;
19200 solaris*)
19201 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019202 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019203 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019204 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019205 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019206 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 +000019207 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 +000019208 $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 +000019209
19210 hardcode_libdir_flag_spec_CXX='-R$libdir'
19211 hardcode_shlibpath_var_CXX=no
19212 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019213 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019214 *)
19215 # The C++ compiler is used as linker so we must use $wl
19216 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019217 # linker. We must also pass each convience library through
19218 # to the system linker between allextract/defaultextract.
19219 # The C++ compiler will combine linker options so we
19220 # cannot just pass the convience library names through
19221 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019222 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019223 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 +000019224 ;;
19225 esac
19226 link_all_deplibs_CXX=yes
19227
Reid Spencera773bd52006-08-04 18:18:08 +000019228 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019229
19230 # Archives containing C++ object files must be created using
19231 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19232 # necessary to make sure instantiated templates are included
19233 # in the archive.
19234 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019236 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019237 # Green Hills C++ Compiler
19238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19239
19240 # The C++ compiler must be used to create the archive.
19241 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19242 ;;
19243 *)
19244 # GNU C++ compiler with Solaris linker
19245 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19246 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19247 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019248 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 +000019249 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19250 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19251
John Criswell47fdd832003-07-14 16:52:07 +000019252 # Commands to make compiler produce verbose output that lists
19253 # what "hidden" libraries, object files and flags are used when
19254 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019255 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019256 else
19257 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19258 # platform.
19259 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 +000019260 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19261 $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 +000019262
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
19266 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19267 fi
19268
19269 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19270 fi
19271 ;;
19272 esac
19273 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019274 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19275 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019276 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019277 hardcode_shlibpath_var_CXX=no
19278 runpath_var='LD_RUN_PATH'
19279
19280 case $cc_basename in
19281 CC*)
19282 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19284 ;;
19285 *)
19286 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19287 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19288 ;;
19289 esac
19290 ;;
19291 sysv5* | sco3.2v5* | sco5v6*)
19292 # Note: We can NOT use -z defs as we might desire, because we do not
19293 # link with -lc, and that would cause any symbols used from libc to
19294 # always be unresolved, which means just about no library would
19295 # ever link correctly. If we're not using GNU ld we use -z text
19296 # though, which does catch some bad symbols but isn't as heavy-handed
19297 # as -z defs.
19298 # For security reasons, it is highly recommended that you always
19299 # use absolute paths for naming shared libraries, and exclude the
19300 # DT_RUNPATH tag from executables and libraries. But doing so
19301 # requires that you compile everything twice, which is a pain.
19302 # So that behaviour is only enabled if SCOABSPATH is set to a
19303 # non-empty value in the environment. Most likely only useful for
19304 # creating official distributions of packages.
19305 # This is a hack until libtool officially supports absolute path
19306 # names for shared libraries.
19307 no_undefined_flag_CXX='${wl}-z,text'
19308 allow_undefined_flag_CXX='${wl}-z,nodefs'
19309 archive_cmds_need_lc_CXX=no
19310 hardcode_shlibpath_var_CXX=no
19311 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19312 hardcode_libdir_separator_CXX=':'
19313 link_all_deplibs_CXX=yes
19314 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19315 runpath_var='LD_RUN_PATH'
19316
19317 case $cc_basename in
19318 CC*)
19319 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19321 ;;
19322 *)
19323 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19324 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19325 ;;
19326 esac
John Criswell47fdd832003-07-14 16:52:07 +000019327 ;;
19328 tandem*)
19329 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019330 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019331 # NonStop-UX NCC 3.20
19332 # FIXME: insert proper C++ library support
19333 ld_shlibs_CXX=no
19334 ;;
19335 *)
19336 # FIXME: insert proper C++ library support
19337 ld_shlibs_CXX=no
19338 ;;
19339 esac
19340 ;;
19341 vxworks*)
19342 # FIXME: insert proper C++ library support
19343 ld_shlibs_CXX=no
19344 ;;
19345 *)
19346 # FIXME: insert proper C++ library support
19347 ld_shlibs_CXX=no
19348 ;;
19349esac
Reid Spencera773bd52006-08-04 18:18:08 +000019350{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19351echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019352test "$ld_shlibs_CXX" = no && can_build_shared=no
19353
19354GCC_CXX="$GXX"
19355LD_CXX="$LD"
19356
John Criswell47fdd832003-07-14 16:52:07 +000019357
19358cat > conftest.$ac_ext <<EOF
19359class Foo
19360{
19361public:
19362 Foo (void) { a = 0; }
19363private:
19364 int a;
19365};
19366EOF
19367
19368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; then
19373 # Parse the compiler output and extract the necessary
19374 # objects, libraries and library flags.
19375
19376 # Sentinel used to keep track of whether or not we are before
19377 # the conftest object file.
19378 pre_test_object_deps_done=no
19379
19380 # The `*' in the case matches for architectures that use `case' in
19381 # $output_verbose_cmd can trigger glob expansion during the loop
19382 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019383 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019384
19385 for p in `eval $output_verbose_link_cmd`; do
19386 case $p in
19387
19388 -L* | -R* | -l*)
19389 # Some compilers place space between "-{L,R}" and the path.
19390 # Remove the space.
19391 if test $p = "-L" \
19392 || test $p = "-R"; then
19393 prev=$p
19394 continue
19395 else
19396 prev=
19397 fi
19398
19399 if test "$pre_test_object_deps_done" = no; then
19400 case $p in
19401 -L* | -R*)
19402 # Internal compiler library paths should come after those
19403 # provided the user. The postdeps already come after the
19404 # user supplied libs so there is no need to process them.
19405 if test -z "$compiler_lib_search_path_CXX"; then
19406 compiler_lib_search_path_CXX="${prev}${p}"
19407 else
19408 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19409 fi
19410 ;;
19411 # The "-l" case would never come before the object being
19412 # linked, so don't bother handling this case.
19413 esac
19414 else
19415 if test -z "$postdeps_CXX"; then
19416 postdeps_CXX="${prev}${p}"
19417 else
19418 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19419 fi
19420 fi
19421 ;;
19422
19423 *.$objext)
19424 # This assumes that the test object file only shows up
19425 # once in the compiler output.
19426 if test "$p" = "conftest.$objext"; then
19427 pre_test_object_deps_done=yes
19428 continue
19429 fi
19430
19431 if test "$pre_test_object_deps_done" = no; then
19432 if test -z "$predep_objects_CXX"; then
19433 predep_objects_CXX="$p"
19434 else
19435 predep_objects_CXX="$predep_objects_CXX $p"
19436 fi
19437 else
19438 if test -z "$postdep_objects_CXX"; then
19439 postdep_objects_CXX="$p"
19440 else
19441 postdep_objects_CXX="$postdep_objects_CXX $p"
19442 fi
19443 fi
19444 ;;
19445
19446 *) ;; # Ignore the rest.
19447
19448 esac
19449 done
19450
19451 # Clean up.
19452 rm -f a.out a.exe
19453else
19454 echo "libtool.m4: error: problem compiling CXX test program"
19455fi
19456
19457$rm -f confest.$objext
19458
Reid Spencera773bd52006-08-04 18:18:08 +000019459# PORTME: override above test on systems where it is broken
19460case $host_os in
19461interix3*)
19462 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19463 # hack all around it, let's just trust "g++" to DTRT.
19464 predep_objects_CXX=
19465 postdep_objects_CXX=
19466 postdeps_CXX=
19467 ;;
19468
19469solaris*)
19470 case $cc_basename in
19471 CC*)
19472 # Adding this requires a known-good setup of shared libraries for
19473 # Sun compiler versions before 5.6, else PIC objects from an old
19474 # archive will be linked into the output, leading to subtle bugs.
19475 postdeps_CXX='-lCstd -lCrun'
19476 ;;
19477 esac
19478 ;;
19479esac
19480
19481
John Criswell47fdd832003-07-14 16:52:07 +000019482case " $postdeps_CXX " in
19483*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19484esac
19485
19486lt_prog_compiler_wl_CXX=
19487lt_prog_compiler_pic_CXX=
19488lt_prog_compiler_static_CXX=
19489
Reid Spencera773bd52006-08-04 18:18:08 +000019490{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19491echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019492
19493 # C++ specific cases for pic, static, wl, etc.
19494 if test "$GXX" = yes; then
19495 lt_prog_compiler_wl_CXX='-Wl,'
19496 lt_prog_compiler_static_CXX='-static'
19497
19498 case $host_os in
19499 aix*)
19500 # All AIX code is PIC.
19501 if test "$host_cpu" = ia64; then
19502 # AIX 5 now supports IA64 processor
19503 lt_prog_compiler_static_CXX='-Bstatic'
19504 fi
19505 ;;
19506 amigaos*)
19507 # FIXME: we need at least 68020 code to build shared libraries, but
19508 # adding the `-m68020' flag to GCC prevents building anything better,
19509 # like `-m68040'.
19510 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19511 ;;
19512 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19513 # PIC is the default for these OSes.
19514 ;;
19515 mingw* | os2* | pw32*)
19516 # This hack is so that the source file can tell whether it is being
19517 # built for inclusion in a dll (and should export symbols for example).
19518 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19519 ;;
19520 darwin* | rhapsody*)
19521 # PIC is the default on this platform
19522 # Common symbols not allowed in MH_DYLIB files
19523 lt_prog_compiler_pic_CXX='-fno-common'
19524 ;;
19525 *djgpp*)
19526 # DJGPP does not support shared libraries at all
19527 lt_prog_compiler_pic_CXX=
19528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019529 interix3*)
19530 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19531 # Instead, we relocate shared libraries at runtime.
19532 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019533 sysv4*MP*)
19534 if test -d /usr/nec; then
19535 lt_prog_compiler_pic_CXX=-Kconform_pic
19536 fi
19537 ;;
19538 hpux*)
19539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19540 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019541 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019542 hppa*64*|ia64*)
19543 ;;
19544 *)
19545 lt_prog_compiler_pic_CXX='-fPIC'
19546 ;;
19547 esac
19548 ;;
19549 *)
19550 lt_prog_compiler_pic_CXX='-fPIC'
19551 ;;
19552 esac
19553 else
19554 case $host_os in
19555 aix4* | aix5*)
19556 # All AIX code is PIC.
19557 if test "$host_cpu" = ia64; then
19558 # AIX 5 now supports IA64 processor
19559 lt_prog_compiler_static_CXX='-Bstatic'
19560 else
19561 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19562 fi
19563 ;;
19564 chorus*)
19565 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019566 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019567 # Green Hills C++ Compiler
19568 # _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"
19569 ;;
19570 esac
19571 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572 darwin*)
19573 # PIC is the default on this platform
19574 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019575 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019576 xlc*)
19577 lt_prog_compiler_pic_CXX='-qnocommon'
19578 lt_prog_compiler_wl_CXX='-Wl,'
19579 ;;
19580 esac
19581 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019582 dgux*)
19583 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019584 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019585 lt_prog_compiler_pic_CXX='-KPIC'
19586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019587 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019588 # Green Hills C++ Compiler
19589 lt_prog_compiler_pic_CXX='-pic'
19590 ;;
19591 *)
19592 ;;
19593 esac
19594 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019595 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019596 # FreeBSD uses GNU C++
19597 ;;
19598 hpux9* | hpux10* | hpux11*)
19599 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019600 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019601 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019602 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019603 if test "$host_cpu" != ia64; then
19604 lt_prog_compiler_pic_CXX='+Z'
19605 fi
19606 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019607 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019608 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019609 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19610 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019611 hppa*64*|ia64*)
19612 # +Z the default
19613 ;;
19614 *)
19615 lt_prog_compiler_pic_CXX='+Z'
19616 ;;
19617 esac
19618 ;;
19619 *)
19620 ;;
19621 esac
19622 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019623 interix*)
19624 # This is c89, which is MS Visual C++ (no shared libs)
19625 # Anyone wants to do a port?
19626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019627 irix5* | irix6* | nonstopux*)
19628 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019629 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019630 lt_prog_compiler_wl_CXX='-Wl,'
19631 lt_prog_compiler_static_CXX='-non_shared'
19632 # CC pic flag -KPIC is the default.
19633 ;;
19634 *)
19635 ;;
19636 esac
19637 ;;
19638 linux*)
19639 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019640 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019641 # KAI C++ Compiler
19642 lt_prog_compiler_wl_CXX='--backend -Wl,'
19643 lt_prog_compiler_pic_CXX='-fPIC'
19644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019645 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019646 # Intel C++
19647 lt_prog_compiler_wl_CXX='-Wl,'
19648 lt_prog_compiler_pic_CXX='-KPIC'
19649 lt_prog_compiler_static_CXX='-static'
19650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019651 pgCC*)
19652 # Portland Group C++ compiler.
19653 lt_prog_compiler_wl_CXX='-Wl,'
19654 lt_prog_compiler_pic_CXX='-fpic'
19655 lt_prog_compiler_static_CXX='-Bstatic'
19656 ;;
19657 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019658 # Compaq C++
19659 # Make sure the PIC flag is empty. It appears that all Alpha
19660 # Linux and Compaq Tru64 Unix objects are PIC.
19661 lt_prog_compiler_pic_CXX=
19662 lt_prog_compiler_static_CXX='-non_shared'
19663 ;;
19664 *)
19665 ;;
19666 esac
19667 ;;
19668 lynxos*)
19669 ;;
19670 m88k*)
19671 ;;
19672 mvs*)
19673 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019674 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019675 lt_prog_compiler_pic_CXX='-W c,exportall'
19676 ;;
19677 *)
19678 ;;
19679 esac
19680 ;;
19681 netbsd*)
19682 ;;
19683 osf3* | osf4* | osf5*)
19684 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019685 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019686 lt_prog_compiler_wl_CXX='--backend -Wl,'
19687 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019688 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019689 # Rational C++ 2.4.1
19690 lt_prog_compiler_pic_CXX='-pic'
19691 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019692 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019693 # Digital/Compaq C++
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 # Make sure the PIC flag is empty. It appears that all Alpha
19696 # Linux and Compaq Tru64 Unix objects are PIC.
19697 lt_prog_compiler_pic_CXX=
19698 lt_prog_compiler_static_CXX='-non_shared'
19699 ;;
19700 *)
19701 ;;
19702 esac
19703 ;;
19704 psos*)
19705 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019706 solaris*)
19707 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019708 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019709 # Sun C++ 4.2, 5.x and Centerline C++
19710 lt_prog_compiler_pic_CXX='-KPIC'
19711 lt_prog_compiler_static_CXX='-Bstatic'
19712 lt_prog_compiler_wl_CXX='-Qoption ld '
19713 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019714 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019715 # Green Hills C++ Compiler
19716 lt_prog_compiler_pic_CXX='-PIC'
19717 ;;
19718 *)
19719 ;;
19720 esac
19721 ;;
19722 sunos4*)
19723 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019724 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019725 # Sun C++ 4.x
19726 lt_prog_compiler_pic_CXX='-pic'
19727 lt_prog_compiler_static_CXX='-Bstatic'
19728 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019729 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019730 # Lucid
19731 lt_prog_compiler_pic_CXX='-pic'
19732 ;;
19733 *)
19734 ;;
19735 esac
19736 ;;
19737 tandem*)
19738 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019739 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019740 # NonStop-UX NCC 3.20
19741 lt_prog_compiler_pic_CXX='-KPIC'
19742 ;;
19743 *)
19744 ;;
19745 esac
19746 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019747 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19748 case $cc_basename in
19749 CC*)
19750 lt_prog_compiler_wl_CXX='-Wl,'
19751 lt_prog_compiler_pic_CXX='-KPIC'
19752 lt_prog_compiler_static_CXX='-Bstatic'
19753 ;;
19754 esac
John Criswell47fdd832003-07-14 16:52:07 +000019755 ;;
19756 vxworks*)
19757 ;;
19758 *)
19759 lt_prog_compiler_can_build_shared_CXX=no
19760 ;;
19761 esac
19762 fi
19763
Reid Spencera773bd52006-08-04 18:18:08 +000019764{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19765echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019766
19767#
19768# Check to make sure the PIC flag actually works.
19769#
19770if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019771
Reid Spencera773bd52006-08-04 18:18:08 +000019772{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19773echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019774if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776else
19777 lt_prog_compiler_pic_works_CXX=no
19778 ac_outfile=conftest.$ac_objext
19779 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19780 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19781 # Insert the option either (1) after the last *FLAGS variable, or
19782 # (2) before a word containing "conftest.", or (3) at the end.
19783 # Note that $ac_compile itself does not contain backslashes and begins
19784 # with a dollar sign (not a hyphen), so the echo should work correctly.
19785 # The option is referenced via a variable to avoid confusing sed.
19786 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19789 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000019790 (eval echo "\"\$as_me:19790: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019791 (eval "$lt_compile" 2>conftest.err)
19792 ac_status=$?
19793 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000019794 echo "$as_me:19794: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019795 if (exit $ac_status) && test -s "$ac_outfile"; then
19796 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019797 # So say no if there are warnings other than the usual output.
19798 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19799 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19800 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019801 lt_prog_compiler_pic_works_CXX=yes
19802 fi
19803 fi
19804 $rm conftest*
19805
19806fi
Reid Spencera773bd52006-08-04 18:18:08 +000019807{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19808echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019809
19810if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19811 case $lt_prog_compiler_pic_CXX in
19812 "" | " "*) ;;
19813 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19814 esac
19815else
19816 lt_prog_compiler_pic_CXX=
19817 lt_prog_compiler_can_build_shared_CXX=no
19818fi
19819
19820fi
Reid Spencera773bd52006-08-04 18:18:08 +000019821case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019822 # For platforms which do not support PIC, -DPIC is meaningless:
19823 *djgpp*)
19824 lt_prog_compiler_pic_CXX=
19825 ;;
19826 *)
19827 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19828 ;;
19829esac
19830
Reid Spencera773bd52006-08-04 18:18:08 +000019831#
19832# Check to make sure the static flag actually works.
19833#
19834wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19835{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19836echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19837if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19838 echo $ECHO_N "(cached) $ECHO_C" >&6
19839else
19840 lt_prog_compiler_static_works_CXX=no
19841 save_LDFLAGS="$LDFLAGS"
19842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19843 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19845 # The linker can only warn and ignore the option if not recognized
19846 # So say no if there are warnings
19847 if test -s conftest.err; then
19848 # Append any errors to the config.log.
19849 cat conftest.err 1>&5
19850 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19852 if diff conftest.exp conftest.er2 >/dev/null; then
19853 lt_prog_compiler_static_works_CXX=yes
19854 fi
19855 else
19856 lt_prog_compiler_static_works_CXX=yes
19857 fi
19858 fi
19859 $rm conftest*
19860 LDFLAGS="$save_LDFLAGS"
19861
19862fi
19863{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19864echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19865
19866if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19867 :
19868else
19869 lt_prog_compiler_static_CXX=
19870fi
19871
19872
19873{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19874echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019875if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877else
19878 lt_cv_prog_compiler_c_o_CXX=no
19879 $rm -r conftest 2>/dev/null
19880 mkdir conftest
19881 cd conftest
19882 mkdir out
19883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19884
John Criswell47fdd832003-07-14 16:52:07 +000019885 lt_compiler_flag="-o out/conftest2.$ac_objext"
19886 # Insert the option either (1) after the last *FLAGS variable, or
19887 # (2) before a word containing "conftest.", or (3) at the end.
19888 # Note that $ac_compile itself does not contain backslashes and begins
19889 # with a dollar sign (not a hyphen), so the echo should work correctly.
19890 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19893 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000019894 (eval echo "\"\$as_me:19894: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019895 (eval "$lt_compile" 2>out/conftest.err)
19896 ac_status=$?
19897 cat out/conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000019898 echo "$as_me:19898: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19900 then
19901 # The compiler can only warn and ignore the option if not recognized
19902 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019906 lt_cv_prog_compiler_c_o_CXX=yes
19907 fi
19908 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019909 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019910 $rm conftest*
19911 # SGI C++ compiler will create directory out/ii_files/ for
19912 # template instantiation
19913 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19914 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019915 cd ..
19916 rmdir conftest
19917 $rm conftest*
19918
19919fi
Reid Spencera773bd52006-08-04 18:18:08 +000019920{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19921echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019922
19923
19924hard_links="nottested"
19925if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19926 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019927 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19928echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019929 hard_links=yes
19930 $rm conftest*
19931 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19932 touch conftest.a
19933 ln conftest.a conftest.b 2>&5 || hard_links=no
19934 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019935 { echo "$as_me:$LINENO: result: $hard_links" >&5
19936echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019937 if test "$hard_links" = no; then
19938 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19939echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19940 need_locks=warn
19941 fi
19942else
19943 need_locks=no
19944fi
19945
Reid Spencera773bd52006-08-04 18:18:08 +000019946{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19947echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019948
19949 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19950 case $host_os in
19951 aix4* | aix5*)
19952 # If we're using GNU nm, then we don't want the "-C" option.
19953 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19954 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19955 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'
19956 else
19957 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'
19958 fi
19959 ;;
19960 pw32*)
19961 export_symbols_cmds_CXX="$ltdll_cmds"
19962 ;;
19963 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019964 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 +000019965 ;;
19966 *)
19967 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19968 ;;
19969 esac
19970
Reid Spencera773bd52006-08-04 18:18:08 +000019971{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19972echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019973test "$ld_shlibs_CXX" = no && can_build_shared=no
19974
John Criswell47fdd832003-07-14 16:52:07 +000019975#
19976# Do we need to explicitly link libc?
19977#
19978case "x$archive_cmds_need_lc_CXX" in
19979x|xyes)
19980 # Assume -lc should be added
19981 archive_cmds_need_lc_CXX=yes
19982
19983 if test "$enable_shared" = yes && test "$GCC" = yes; then
19984 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019985 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019986 # FIXME: we may have to deal with multi-command sequences.
19987 ;;
19988 '$CC '*)
19989 # Test whether the compiler implicitly links with -lc since on some
19990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19991 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19993echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019994 $rm conftest*
19995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19996
19997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>&5
19999 ac_status=$?
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } 2>conftest.err; then
20002 soname=conftest
20003 lib=conftest
20004 libobjs=conftest.$ac_objext
20005 deplibs=
20006 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020007 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020008 compiler_flags=-v
20009 linker_flags=-v
20010 verstring=
20011 output_objdir=.
20012 libname=conftest
20013 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20014 allow_undefined_flag_CXX=
20015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20016 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }
20020 then
20021 archive_cmds_need_lc_CXX=no
20022 else
20023 archive_cmds_need_lc_CXX=yes
20024 fi
20025 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20026 else
20027 cat conftest.err 1>&5
20028 fi
20029 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020030 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20031echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020032 ;;
20033 esac
20034 fi
20035 ;;
20036esac
20037
Reid Spencera773bd52006-08-04 18:18:08 +000020038{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20039echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020040library_names_spec=
20041libname_spec='lib$name'
20042soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020043shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020044postinstall_cmds=
20045postuninstall_cmds=
20046finish_cmds=
20047finish_eval=
20048shlibpath_var=
20049shlibpath_overrides_runpath=unknown
20050version_type=none
20051dynamic_linker="$host_os ld.so"
20052sys_lib_dlsearch_path_spec="/lib /usr/lib"
20053if test "$GCC" = yes; then
20054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20056 # if the path contains ";" then we assume it to be the separator
20057 # otherwise default to the standard path separator (i.e. ":") - it is
20058 # assumed that no part of a normal pathname contains ";" but that should
20059 # okay in the real world where ";" in dirpaths is itself problematic.
20060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20061 else
20062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20063 fi
20064else
20065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20066fi
20067need_lib_prefix=unknown
20068hardcode_into_libs=no
20069
20070# when you set need_version to no, make sure it does not cause -set_version
20071# flags to be left without arguments
20072need_version=unknown
20073
20074case $host_os in
20075aix3*)
20076 version_type=linux
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20078 shlibpath_var=LIBPATH
20079
20080 # AIX 3 has no versioning support, so we append a major version to the name.
20081 soname_spec='${libname}${release}${shared_ext}$major'
20082 ;;
20083
20084aix4* | aix5*)
20085 version_type=linux
20086 need_lib_prefix=no
20087 need_version=no
20088 hardcode_into_libs=yes
20089 if test "$host_cpu" = ia64; then
20090 # AIX 5 supports IA64
20091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20092 shlibpath_var=LD_LIBRARY_PATH
20093 else
20094 # With GCC up to 2.95.x, collect2 would create an import file
20095 # for dependence libraries. The import file would start with
20096 # the line `#! .'. This would cause the generated library to
20097 # depend on `.', always an invalid library. This was fixed in
20098 # development snapshots of GCC prior to 3.0.
20099 case $host_os in
20100 aix4 | aix4.[01] | aix4.[01].*)
20101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20102 echo ' yes '
20103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20104 :
20105 else
20106 can_build_shared=no
20107 fi
20108 ;;
20109 esac
20110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20111 # soname into executable. Probably we can add versioning support to
20112 # collect2, so additional links can be useful in future.
20113 if test "$aix_use_runtimelinking" = yes; then
20114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20115 # instead of lib<name>.a to let people know that these are not
20116 # typical AIX shared libraries.
20117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20118 else
20119 # We preserve .a as extension for shared libraries through AIX4.2
20120 # and later when we are not doing run time linking.
20121 library_names_spec='${libname}${release}.a $libname.a'
20122 soname_spec='${libname}${release}${shared_ext}$major'
20123 fi
20124 shlibpath_var=LIBPATH
20125 fi
20126 ;;
20127
20128amigaos*)
20129 library_names_spec='$libname.ixlibrary $libname.a'
20130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020131 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 +000020132 ;;
20133
20134beos*)
20135 library_names_spec='${libname}${shared_ext}'
20136 dynamic_linker="$host_os ld.so"
20137 shlibpath_var=LIBRARY_PATH
20138 ;;
20139
Reid Spencer2706f8c2004-09-19 23:53:36 +000020140bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020141 version_type=linux
20142 need_version=no
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20144 soname_spec='${libname}${release}${shared_ext}$major'
20145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20146 shlibpath_var=LD_LIBRARY_PATH
20147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20149 # the default ld.so.conf also contains /usr/contrib/lib and
20150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20151 # libtool to hard-code these into programs
20152 ;;
20153
20154cygwin* | mingw* | pw32*)
20155 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020156 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020157 need_version=no
20158 need_lib_prefix=no
20159
20160 case $GCC,$host_os in
20161 yes,cygwin* | yes,mingw* | yes,pw32*)
20162 library_names_spec='$libname.dll.a'
20163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020164 postinstall_cmds='base_file=`basename \${file}`~
20165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20166 dldir=$destdir/`dirname \$dlpath`~
20167 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020168 $install_prog $dir/$dlname \$dldir/$dlname~
20169 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20171 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020172 $rm \$dlpath'
20173 shlibpath_overrides_runpath=yes
20174
20175 case $host_os in
20176 cygwin*)
20177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20178 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 +000020179 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020180 ;;
20181 mingw*)
20182 # MinGW DLLs use traditional 'lib' prefix
20183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20185 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20186 # It is most probably a Windows format PATH printed by
20187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20188 # path with ; separators, and with drive letters. We can handle the
20189 # drive letters (cygwin fileutils understands them), so leave them,
20190 # especially as we might pass files found there to a mingw objdump,
20191 # which wouldn't understand a cygwinified path. Ahh.
20192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20193 else
20194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20195 fi
20196 ;;
20197 pw32*)
20198 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020199 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 +000020200 ;;
20201 esac
20202 ;;
20203
20204 *)
20205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20206 ;;
20207 esac
20208 dynamic_linker='Win32 ld.exe'
20209 # FIXME: first we should search . and the directory the executable is in
20210 shlibpath_var=PATH
20211 ;;
20212
20213darwin* | rhapsody*)
20214 dynamic_linker="$host_os dyld"
20215 version_type=darwin
20216 need_lib_prefix=no
20217 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020218 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020219 soname_spec='${libname}${release}${major}$shared_ext'
20220 shlibpath_overrides_runpath=yes
20221 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020222 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020223 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020224 if test "$GCC" = yes; then
20225 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"`
20226 else
20227 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020228 fi
20229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20230 ;;
20231
20232dgux*)
20233 version_type=linux
20234 need_lib_prefix=no
20235 need_version=no
20236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20237 soname_spec='${libname}${release}${shared_ext}$major'
20238 shlibpath_var=LD_LIBRARY_PATH
20239 ;;
20240
20241freebsd1*)
20242 dynamic_linker=no
20243 ;;
20244
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245kfreebsd*-gnu)
20246 version_type=linux
20247 need_lib_prefix=no
20248 need_version=no
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 shlibpath_var=LD_LIBRARY_PATH
20252 shlibpath_overrides_runpath=no
20253 hardcode_into_libs=yes
20254 dynamic_linker='GNU ld.so'
20255 ;;
20256
Reid Spencera773bd52006-08-04 18:18:08 +000020257freebsd* | dragonfly*)
20258 # DragonFly does not have aout. When/if they implement a new
20259 # versioning mechanism, adjust this.
20260 if test -x /usr/bin/objformat; then
20261 objformat=`/usr/bin/objformat`
20262 else
20263 case $host_os in
20264 freebsd[123]*) objformat=aout ;;
20265 *) objformat=elf ;;
20266 esac
20267 fi
John Criswell47fdd832003-07-14 16:52:07 +000020268 version_type=freebsd-$objformat
20269 case $version_type in
20270 freebsd-elf*)
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20272 need_version=no
20273 need_lib_prefix=no
20274 ;;
20275 freebsd-*)
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20277 need_version=yes
20278 ;;
20279 esac
20280 shlibpath_var=LD_LIBRARY_PATH
20281 case $host_os in
20282 freebsd2*)
20283 shlibpath_overrides_runpath=yes
20284 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020285 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020286 shlibpath_overrides_runpath=yes
20287 hardcode_into_libs=yes
20288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020289 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20290 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020291 shlibpath_overrides_runpath=no
20292 hardcode_into_libs=yes
20293 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020294 freebsd*) # from 4.6 on
20295 shlibpath_overrides_runpath=yes
20296 hardcode_into_libs=yes
20297 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020298 esac
20299 ;;
20300
20301gnu*)
20302 version_type=linux
20303 need_lib_prefix=no
20304 need_version=no
20305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20306 soname_spec='${libname}${release}${shared_ext}$major'
20307 shlibpath_var=LD_LIBRARY_PATH
20308 hardcode_into_libs=yes
20309 ;;
20310
20311hpux9* | hpux10* | hpux11*)
20312 # Give a soname corresponding to the major version so that dld.sl refuses to
20313 # link against other versions.
20314 version_type=sunos
20315 need_lib_prefix=no
20316 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020317 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020318 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020319 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020320 hardcode_into_libs=yes
20321 dynamic_linker="$host_os dld.so"
20322 shlibpath_var=LD_LIBRARY_PATH
20323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 if test "X$HPUX_IA64_MODE" = X32; then
20327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20328 else
20329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20330 fi
20331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20332 ;;
20333 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020335 hardcode_into_libs=yes
20336 dynamic_linker="$host_os dld.sl"
20337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20340 soname_spec='${libname}${release}${shared_ext}$major'
20341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20343 ;;
20344 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020345 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020346 dynamic_linker="$host_os dld.sl"
20347 shlibpath_var=SHLIB_PATH
20348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 soname_spec='${libname}${release}${shared_ext}$major'
20351 ;;
20352 esac
20353 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20354 postinstall_cmds='chmod 555 $lib'
20355 ;;
20356
Reid Spencera773bd52006-08-04 18:18:08 +000020357interix3*)
20358 version_type=linux
20359 need_lib_prefix=no
20360 need_version=no
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20362 soname_spec='${libname}${release}${shared_ext}$major'
20363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20364 shlibpath_var=LD_LIBRARY_PATH
20365 shlibpath_overrides_runpath=no
20366 hardcode_into_libs=yes
20367 ;;
20368
John Criswell47fdd832003-07-14 16:52:07 +000020369irix5* | irix6* | nonstopux*)
20370 case $host_os in
20371 nonstopux*) version_type=nonstopux ;;
20372 *)
20373 if test "$lt_cv_prog_gnu_ld" = yes; then
20374 version_type=linux
20375 else
20376 version_type=irix
20377 fi ;;
20378 esac
20379 need_lib_prefix=no
20380 need_version=no
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20383 case $host_os in
20384 irix5* | nonstopux*)
20385 libsuff= shlibsuff=
20386 ;;
20387 *)
20388 case $LD in # libtool.m4 will add one of these switches to LD
20389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20390 libsuff= shlibsuff= libmagic=32-bit;;
20391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20392 libsuff=32 shlibsuff=N32 libmagic=N32;;
20393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20395 *) libsuff= shlibsuff= libmagic=never-match;;
20396 esac
20397 ;;
20398 esac
20399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20400 shlibpath_overrides_runpath=no
20401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20403 hardcode_into_libs=yes
20404 ;;
20405
20406# No shared lib support for Linux oldld, aout, or coff.
20407linux*oldld* | linux*aout* | linux*coff*)
20408 dynamic_linker=no
20409 ;;
20410
20411# This must be Linux ELF.
20412linux*)
20413 version_type=linux
20414 need_lib_prefix=no
20415 need_version=no
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20419 shlibpath_var=LD_LIBRARY_PATH
20420 shlibpath_overrides_runpath=no
20421 # This implies no fast_install, which is unacceptable.
20422 # Some rework will be needed to allow for fast_install
20423 # before this can be enabled.
20424 hardcode_into_libs=yes
20425
Reid Spencer2706f8c2004-09-19 23:53:36 +000020426 # Append ld.so.conf contents to the search path
20427 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020428 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 +000020429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20430 fi
20431
John Criswell47fdd832003-07-14 16:52:07 +000020432 # We used to test for /lib/ld.so.1 and disable shared libraries on
20433 # powerpc, because MkLinux only supported shared libraries with the
20434 # GNU dynamic linker. Since this was broken with cross compilers,
20435 # most powerpc-linux boxes support dynamic linking these days and
20436 # people can always --disable-shared, the test was removed, and we
20437 # assume the GNU/Linux dynamic linker is in use.
20438 dynamic_linker='GNU/Linux ld.so'
20439 ;;
20440
Reid Spencer2706f8c2004-09-19 23:53:36 +000020441knetbsd*-gnu)
20442 version_type=linux
20443 need_lib_prefix=no
20444 need_version=no
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20446 soname_spec='${libname}${release}${shared_ext}$major'
20447 shlibpath_var=LD_LIBRARY_PATH
20448 shlibpath_overrides_runpath=no
20449 hardcode_into_libs=yes
20450 dynamic_linker='GNU ld.so'
20451 ;;
20452
John Criswell47fdd832003-07-14 16:52:07 +000020453netbsd*)
20454 version_type=sunos
20455 need_lib_prefix=no
20456 need_version=no
20457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20460 dynamic_linker='NetBSD (a.out) ld.so'
20461 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020463 soname_spec='${libname}${release}${shared_ext}$major'
20464 dynamic_linker='NetBSD ld.elf_so'
20465 fi
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20468 hardcode_into_libs=yes
20469 ;;
20470
20471newsos6)
20472 version_type=linux
20473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=yes
20476 ;;
20477
Reid Spencer2706f8c2004-09-19 23:53:36 +000020478nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020479 version_type=linux
20480 need_lib_prefix=no
20481 need_version=no
20482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20483 soname_spec='${libname}${release}${shared_ext}$major'
20484 shlibpath_var=LD_LIBRARY_PATH
20485 shlibpath_overrides_runpath=yes
20486 ;;
20487
20488openbsd*)
20489 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020490 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020491 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020492 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20493 case $host_os in
20494 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20495 *) need_version=no ;;
20496 esac
John Criswell47fdd832003-07-14 16:52:07 +000020497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20501 case $host_os in
20502 openbsd2.[89] | openbsd2.[89].*)
20503 shlibpath_overrides_runpath=no
20504 ;;
20505 *)
20506 shlibpath_overrides_runpath=yes
20507 ;;
20508 esac
20509 else
20510 shlibpath_overrides_runpath=yes
20511 fi
20512 ;;
20513
20514os2*)
20515 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020516 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020517 need_lib_prefix=no
20518 library_names_spec='$libname${shared_ext} $libname.a'
20519 dynamic_linker='OS/2 ld.exe'
20520 shlibpath_var=LIBPATH
20521 ;;
20522
20523osf3* | osf4* | osf5*)
20524 version_type=osf
20525 need_lib_prefix=no
20526 need_version=no
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20532 ;;
20533
John Criswell47fdd832003-07-14 16:52:07 +000020534solaris*)
20535 version_type=linux
20536 need_lib_prefix=no
20537 need_version=no
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 shlibpath_overrides_runpath=yes
20542 hardcode_into_libs=yes
20543 # ldd complains unless libraries are executable
20544 postinstall_cmds='chmod +x $lib'
20545 ;;
20546
20547sunos4*)
20548 version_type=sunos
20549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20550 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20551 shlibpath_var=LD_LIBRARY_PATH
20552 shlibpath_overrides_runpath=yes
20553 if test "$with_gnu_ld" = yes; then
20554 need_lib_prefix=no
20555 fi
20556 need_version=yes
20557 ;;
20558
Reid Spencera773bd52006-08-04 18:18:08 +000020559sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020560 version_type=linux
20561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562 soname_spec='${libname}${release}${shared_ext}$major'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 case $host_vendor in
20565 sni)
20566 shlibpath_overrides_runpath=no
20567 need_lib_prefix=no
20568 export_dynamic_flag_spec='${wl}-Blargedynsym'
20569 runpath_var=LD_RUN_PATH
20570 ;;
20571 siemens)
20572 need_lib_prefix=no
20573 ;;
20574 motorola)
20575 need_lib_prefix=no
20576 need_version=no
20577 shlibpath_overrides_runpath=no
20578 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20579 ;;
20580 esac
20581 ;;
20582
20583sysv4*MP*)
20584 if test -d /usr/nec ;then
20585 version_type=linux
20586 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20587 soname_spec='$libname${shared_ext}.$major'
20588 shlibpath_var=LD_LIBRARY_PATH
20589 fi
20590 ;;
20591
Reid Spencera773bd52006-08-04 18:18:08 +000020592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20593 version_type=freebsd-elf
20594 need_lib_prefix=no
20595 need_version=no
20596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20597 soname_spec='${libname}${release}${shared_ext}$major'
20598 shlibpath_var=LD_LIBRARY_PATH
20599 hardcode_into_libs=yes
20600 if test "$with_gnu_ld" = yes; then
20601 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20602 shlibpath_overrides_runpath=no
20603 else
20604 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20605 shlibpath_overrides_runpath=yes
20606 case $host_os in
20607 sco3.2v5*)
20608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20609 ;;
20610 esac
20611 fi
20612 sys_lib_dlsearch_path_spec='/usr/lib'
20613 ;;
20614
John Criswell47fdd832003-07-14 16:52:07 +000020615uts4*)
20616 version_type=linux
20617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618 soname_spec='${libname}${release}${shared_ext}$major'
20619 shlibpath_var=LD_LIBRARY_PATH
20620 ;;
20621
20622*)
20623 dynamic_linker=no
20624 ;;
20625esac
Reid Spencera773bd52006-08-04 18:18:08 +000020626{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20627echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020628test "$dynamic_linker" = no && can_build_shared=no
20629
Reid Spencera773bd52006-08-04 18:18:08 +000020630variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20631if test "$GCC" = yes; then
20632 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20633fi
20634
20635{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20636echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020637hardcode_action_CXX=
20638if test -n "$hardcode_libdir_flag_spec_CXX" || \
20639 test -n "$runpath_var_CXX" || \
20640 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20641
20642 # We can hardcode non-existant directories.
20643 if test "$hardcode_direct_CXX" != no &&
20644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20645 # have to relink, otherwise we might link with an installed library
20646 # when we should be linking with a yet-to-be-installed one
20647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20648 test "$hardcode_minus_L_CXX" != no; then
20649 # Linking always hardcodes the temporary library directory.
20650 hardcode_action_CXX=relink
20651 else
20652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20653 hardcode_action_CXX=immediate
20654 fi
20655else
20656 # We cannot hardcode anything, or else we can only hardcode existing
20657 # directories.
20658 hardcode_action_CXX=unsupported
20659fi
Reid Spencera773bd52006-08-04 18:18:08 +000020660{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20661echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020662
20663if test "$hardcode_action_CXX" = relink; then
20664 # Fast installation is not supported
20665 enable_fast_install=no
20666elif test "$shlibpath_overrides_runpath" = yes ||
20667 test "$enable_shared" = no; then
20668 # Fast installation is not necessary
20669 enable_fast_install=needless
20670fi
20671
John Criswell47fdd832003-07-14 16:52:07 +000020672
20673# The else clause should only fire when bootstrapping the
20674# libtool distribution, otherwise you forgot to ship ltmain.sh
20675# with your package, and you will get complaints that there are
20676# no rules to generate ltmain.sh.
20677if test -f "$ltmain"; then
20678 # See if we are running on zsh, and set the options which allow our commands through
20679 # without removal of \ escapes.
20680 if test -n "${ZSH_VERSION+set}" ; then
20681 setopt NO_GLOB_SUBST
20682 fi
20683 # Now quote all the things that may contain metacharacters while being
20684 # careful not to overquote the AC_SUBSTed values. We take copies of the
20685 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020686 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 +000020687 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020688 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20689 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20690 deplibs_check_method reload_flag reload_cmds need_locks \
20691 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20692 lt_cv_sys_global_symbol_to_c_name_address \
20693 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20694 old_postinstall_cmds old_postuninstall_cmds \
20695 compiler_CXX \
20696 CC_CXX \
20697 LD_CXX \
20698 lt_prog_compiler_wl_CXX \
20699 lt_prog_compiler_pic_CXX \
20700 lt_prog_compiler_static_CXX \
20701 lt_prog_compiler_no_builtin_flag_CXX \
20702 export_dynamic_flag_spec_CXX \
20703 thread_safe_flag_spec_CXX \
20704 whole_archive_flag_spec_CXX \
20705 enable_shared_with_static_runtimes_CXX \
20706 old_archive_cmds_CXX \
20707 old_archive_from_new_cmds_CXX \
20708 predep_objects_CXX \
20709 postdep_objects_CXX \
20710 predeps_CXX \
20711 postdeps_CXX \
20712 compiler_lib_search_path_CXX \
20713 archive_cmds_CXX \
20714 archive_expsym_cmds_CXX \
20715 postinstall_cmds_CXX \
20716 postuninstall_cmds_CXX \
20717 old_archive_from_expsyms_cmds_CXX \
20718 allow_undefined_flag_CXX \
20719 no_undefined_flag_CXX \
20720 export_symbols_cmds_CXX \
20721 hardcode_libdir_flag_spec_CXX \
20722 hardcode_libdir_flag_spec_ld_CXX \
20723 hardcode_libdir_separator_CXX \
20724 hardcode_automatic_CXX \
20725 module_cmds_CXX \
20726 module_expsym_cmds_CXX \
20727 lt_cv_prog_compiler_c_o_CXX \
20728 exclude_expsyms_CXX \
20729 include_expsyms_CXX; do
20730
20731 case $var in
20732 old_archive_cmds_CXX | \
20733 old_archive_from_new_cmds_CXX | \
20734 archive_cmds_CXX | \
20735 archive_expsym_cmds_CXX | \
20736 module_cmds_CXX | \
20737 module_expsym_cmds_CXX | \
20738 old_archive_from_expsyms_cmds_CXX | \
20739 export_symbols_cmds_CXX | \
20740 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20741 postinstall_cmds | postuninstall_cmds | \
20742 old_postinstall_cmds | old_postuninstall_cmds | \
20743 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20744 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020745 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 +000020746 ;;
20747 *)
20748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20749 ;;
20750 esac
20751 done
20752
20753 case $lt_echo in
20754 *'\$0 --fallback-echo"')
20755 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20756 ;;
20757 esac
20758
20759cfgfile="$ofile"
20760
20761 cat <<__EOF__ >> "$cfgfile"
20762# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20763
20764# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20765
20766# Shell to use when invoking shell scripts.
20767SHELL=$lt_SHELL
20768
20769# Whether or not to build shared libraries.
20770build_libtool_libs=$enable_shared
20771
20772# Whether or not to build static libraries.
20773build_old_libs=$enable_static
20774
20775# Whether or not to add -lc for building shared libraries.
20776build_libtool_need_lc=$archive_cmds_need_lc_CXX
20777
20778# Whether or not to disallow shared libs when runtime libs are static
20779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20780
20781# Whether or not to optimize for fast installation.
20782fast_install=$enable_fast_install
20783
20784# The host system.
20785host_alias=$host_alias
20786host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020787host_os=$host_os
20788
20789# The build system.
20790build_alias=$build_alias
20791build=$build
20792build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020793
20794# An echo program that does not interpret backslashes.
20795echo=$lt_echo
20796
20797# The archiver.
20798AR=$lt_AR
20799AR_FLAGS=$lt_AR_FLAGS
20800
20801# A C compiler.
20802LTCC=$lt_LTCC
20803
Reid Spencera773bd52006-08-04 18:18:08 +000020804# LTCC compiler flags.
20805LTCFLAGS=$lt_LTCFLAGS
20806
John Criswell47fdd832003-07-14 16:52:07 +000020807# A language-specific compiler.
20808CC=$lt_compiler_CXX
20809
20810# Is the compiler the GNU C compiler?
20811with_gcc=$GCC_CXX
20812
20813# An ERE matcher.
20814EGREP=$lt_EGREP
20815
20816# The linker used to build libraries.
20817LD=$lt_LD_CXX
20818
20819# Whether we need hard or soft links.
20820LN_S=$lt_LN_S
20821
20822# A BSD-compatible nm program.
20823NM=$lt_NM
20824
20825# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020826STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020827
20828# Used to examine libraries when file_magic_cmd begins "file"
20829MAGIC_CMD=$MAGIC_CMD
20830
20831# Used on cygwin: DLL creation program.
20832DLLTOOL="$DLLTOOL"
20833
20834# Used on cygwin: object dumper.
20835OBJDUMP="$OBJDUMP"
20836
20837# Used on cygwin: assembler.
20838AS="$AS"
20839
20840# The name of the directory that contains temporary libtool files.
20841objdir=$objdir
20842
20843# How to create reloadable object files.
20844reload_flag=$lt_reload_flag
20845reload_cmds=$lt_reload_cmds
20846
20847# How to pass a linker flag through the compiler.
20848wl=$lt_lt_prog_compiler_wl_CXX
20849
20850# Object file suffix (normally "o").
20851objext="$ac_objext"
20852
20853# Old archive suffix (normally "a").
20854libext="$libext"
20855
20856# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020857shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020858
20859# Executable file suffix (normally "").
20860exeext="$exeext"
20861
20862# Additional compiler flags for building library objects.
20863pic_flag=$lt_lt_prog_compiler_pic_CXX
20864pic_mode=$pic_mode
20865
20866# What is the maximum length of a command?
20867max_cmd_len=$lt_cv_sys_max_cmd_len
20868
20869# Does compiler simultaneously support -c and -o options?
20870compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20871
Reid Spencera773bd52006-08-04 18:18:08 +000020872# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020873need_locks=$lt_need_locks
20874
20875# Do we need the lib prefix for modules?
20876need_lib_prefix=$need_lib_prefix
20877
20878# Do we need a version for libraries?
20879need_version=$need_version
20880
20881# Whether dlopen is supported.
20882dlopen_support=$enable_dlopen
20883
20884# Whether dlopen of programs is supported.
20885dlopen_self=$enable_dlopen_self
20886
20887# Whether dlopen of statically linked programs is supported.
20888dlopen_self_static=$enable_dlopen_self_static
20889
20890# Compiler flag to prevent dynamic linking.
20891link_static_flag=$lt_lt_prog_compiler_static_CXX
20892
20893# Compiler flag to turn off builtin functions.
20894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20895
20896# Compiler flag to allow reflexive dlopens.
20897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20898
20899# Compiler flag to generate shared objects directly from archives.
20900whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20901
20902# Compiler flag to generate thread-safe objects.
20903thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20904
20905# Library versioning type.
20906version_type=$version_type
20907
20908# Format of library name prefix.
20909libname_spec=$lt_libname_spec
20910
20911# List of archive names. First name is the real one, the rest are links.
20912# The last name is the one that the linker finds with -lNAME.
20913library_names_spec=$lt_library_names_spec
20914
20915# The coded name of the library, if different from the real name.
20916soname_spec=$lt_soname_spec
20917
20918# Commands used to build and install an old-style archive.
20919RANLIB=$lt_RANLIB
20920old_archive_cmds=$lt_old_archive_cmds_CXX
20921old_postinstall_cmds=$lt_old_postinstall_cmds
20922old_postuninstall_cmds=$lt_old_postuninstall_cmds
20923
20924# Create an old-style archive from a shared archive.
20925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20926
20927# Create a temporary old-style archive to link instead of a shared archive.
20928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20929
20930# Commands used to build and install a shared archive.
20931archive_cmds=$lt_archive_cmds_CXX
20932archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20933postinstall_cmds=$lt_postinstall_cmds
20934postuninstall_cmds=$lt_postuninstall_cmds
20935
20936# Commands used to build a loadable module (assumed same as above if empty)
20937module_cmds=$lt_module_cmds_CXX
20938module_expsym_cmds=$lt_module_expsym_cmds_CXX
20939
20940# Commands to strip libraries.
20941old_striplib=$lt_old_striplib
20942striplib=$lt_striplib
20943
20944# Dependencies to place before the objects being linked to create a
20945# shared library.
20946predep_objects=$lt_predep_objects_CXX
20947
20948# Dependencies to place after the objects being linked to create a
20949# shared library.
20950postdep_objects=$lt_postdep_objects_CXX
20951
20952# Dependencies to place before the objects being linked to create a
20953# shared library.
20954predeps=$lt_predeps_CXX
20955
20956# Dependencies to place after the objects being linked to create a
20957# shared library.
20958postdeps=$lt_postdeps_CXX
20959
20960# The library search path used internally by the compiler when linking
20961# a shared library.
20962compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20963
20964# Method to check whether dependent libraries are shared objects.
20965deplibs_check_method=$lt_deplibs_check_method
20966
20967# Command to use when deplibs_check_method == file_magic.
20968file_magic_cmd=$lt_file_magic_cmd
20969
20970# Flag that allows shared libraries with undefined symbols to be built.
20971allow_undefined_flag=$lt_allow_undefined_flag_CXX
20972
20973# Flag that forces no undefined symbols.
20974no_undefined_flag=$lt_no_undefined_flag_CXX
20975
20976# Commands used to finish a libtool library installation in a directory.
20977finish_cmds=$lt_finish_cmds
20978
20979# Same as above, but a single script fragment to be evaled but not shown.
20980finish_eval=$lt_finish_eval
20981
20982# Take the output of nm and produce a listing of raw symbols and C names.
20983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20984
20985# Transform the output of nm in a proper C declaration
20986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20987
20988# Transform the output of nm in a C name address pair
20989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20990
20991# This is the shared library runtime path variable.
20992runpath_var=$runpath_var
20993
20994# This is the shared library path variable.
20995shlibpath_var=$shlibpath_var
20996
20997# Is shlibpath searched before the hard-coded library search path?
20998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20999
21000# How to hardcode a shared library path into an executable.
21001hardcode_action=$hardcode_action_CXX
21002
21003# Whether we should hardcode library paths into libraries.
21004hardcode_into_libs=$hardcode_into_libs
21005
21006# Flag to hardcode \$libdir into a binary during linking.
21007# This must work even if \$libdir does not exist.
21008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21009
21010# If ld is used when linking, flag to hardcode \$libdir into
21011# a binary during linking. This must work even if \$libdir does
21012# not exist.
21013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21014
21015# Whether we need a single -rpath flag with a separated argument.
21016hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21017
21018# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21019# resulting binary.
21020hardcode_direct=$hardcode_direct_CXX
21021
21022# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21023# resulting binary.
21024hardcode_minus_L=$hardcode_minus_L_CXX
21025
21026# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21027# the resulting binary.
21028hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21029
21030# Set to yes if building a shared library automatically hardcodes DIR into the library
21031# and all subsequent libraries and executables linked against it.
21032hardcode_automatic=$hardcode_automatic_CXX
21033
21034# Variables whose values should be saved in libtool wrapper scripts and
21035# restored at relink time.
21036variables_saved_for_relink="$variables_saved_for_relink"
21037
21038# Whether libtool must link a program against all its dependency libraries.
21039link_all_deplibs=$link_all_deplibs_CXX
21040
21041# Compile-time system search path for libraries
21042sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21043
21044# Run-time system search path for libraries
21045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21046
21047# Fix the shell variable \$srcfile for the compiler.
21048fix_srcfile_path="$fix_srcfile_path_CXX"
21049
21050# Set to yes if exported symbols are required.
21051always_export_symbols=$always_export_symbols_CXX
21052
21053# The commands to list exported symbols.
21054export_symbols_cmds=$lt_export_symbols_cmds_CXX
21055
21056# The commands to extract the exported symbol list from a shared archive.
21057extract_expsyms_cmds=$lt_extract_expsyms_cmds
21058
21059# Symbols that should not be listed in the preloaded symbols.
21060exclude_expsyms=$lt_exclude_expsyms_CXX
21061
21062# Symbols that must always be exported.
21063include_expsyms=$lt_include_expsyms_CXX
21064
21065# ### END LIBTOOL TAG CONFIG: $tagname
21066
21067__EOF__
21068
21069
21070else
21071 # If there is no Makefile yet, we rely on a make rule to execute
21072 # `config.status --recheck' to rerun these tests and create the
21073 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021074 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21075 if test -f "$ltmain_in"; then
21076 test -f Makefile && make "$ltmain"
21077 fi
John Criswell47fdd832003-07-14 16:52:07 +000021078fi
21079
21080
21081ac_ext=c
21082ac_cpp='$CPP $CPPFLAGS'
21083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085ac_compiler_gnu=$ac_cv_c_compiler_gnu
21086
21087CC=$lt_save_CC
21088LDCXX=$LD
21089LD=$lt_save_LD
21090GCC=$lt_save_GCC
21091with_gnu_ldcxx=$with_gnu_ld
21092with_gnu_ld=$lt_save_with_gnu_ld
21093lt_cv_path_LDCXX=$lt_cv_path_LD
21094lt_cv_path_LD=$lt_save_path_LD
21095lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21096lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21097
21098 else
21099 tagname=""
21100 fi
21101 ;;
21102
21103 F77)
21104 if test -n "$F77" && test "X$F77" != "Xno"; then
21105
21106ac_ext=f
21107ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21108ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21110
21111
21112archive_cmds_need_lc_F77=no
21113allow_undefined_flag_F77=
21114always_export_symbols_F77=no
21115archive_expsym_cmds_F77=
21116export_dynamic_flag_spec_F77=
21117hardcode_direct_F77=no
21118hardcode_libdir_flag_spec_F77=
21119hardcode_libdir_flag_spec_ld_F77=
21120hardcode_libdir_separator_F77=
21121hardcode_minus_L_F77=no
21122hardcode_automatic_F77=no
21123module_cmds_F77=
21124module_expsym_cmds_F77=
21125link_all_deplibs_F77=unknown
21126old_archive_cmds_F77=$old_archive_cmds
21127no_undefined_flag_F77=
21128whole_archive_flag_spec_F77=
21129enable_shared_with_static_runtimes_F77=no
21130
21131# Source file extension for f77 test sources.
21132ac_ext=f
21133
21134# Object file extension for compiled f77 test sources.
21135objext=o
21136objext_F77=$objext
21137
21138# Code to be used in simple compile tests
21139lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21140
21141# Code to be used in simple link tests
21142lt_simple_link_test_code=" program t\n end\n"
21143
21144# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21145
21146# If no C compiler was specified, use CC.
21147LTCC=${LTCC-"$CC"}
21148
Reid Spencera773bd52006-08-04 18:18:08 +000021149# If no C compiler flags were specified, use CFLAGS.
21150LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21151
John Criswell47fdd832003-07-14 16:52:07 +000021152# Allow CC to be a program name with arguments.
21153compiler=$CC
21154
21155
Reid Spencera773bd52006-08-04 18:18:08 +000021156# save warnings/boilerplate of simple test code
21157ac_outfile=conftest.$ac_objext
21158printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21159eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21160_lt_compiler_boilerplate=`cat conftest.err`
21161$rm conftest*
21162
21163ac_outfile=conftest.$ac_objext
21164printf "$lt_simple_link_test_code" >conftest.$ac_ext
21165eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21166_lt_linker_boilerplate=`cat conftest.err`
21167$rm conftest*
21168
21169
John Criswell47fdd832003-07-14 16:52:07 +000021170# Allow CC to be a program name with arguments.
21171lt_save_CC="$CC"
21172CC=${F77-"f77"}
21173compiler=$CC
21174compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021175for cc_temp in $compiler""; do
21176 case $cc_temp in
21177 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21178 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21179 \-*) ;;
21180 *) break;;
21181 esac
21182done
21183cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021184
John Criswell47fdd832003-07-14 16:52:07 +000021185
Reid Spencera773bd52006-08-04 18:18:08 +000021186{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21187echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21188{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21189echo "${ECHO_T}$can_build_shared" >&6; }
21190
21191{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21192echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021193test "$can_build_shared" = "no" && enable_shared=no
21194
21195# On AIX, shared libraries and static libraries use the same namespace, and
21196# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021197case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021198aix3*)
21199 test "$enable_shared" = yes && enable_static=no
21200 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021201 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021202 postinstall_cmds='$RANLIB $lib'
21203 fi
21204 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021205aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021206 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21207 test "$enable_shared" = yes && enable_static=no
21208 fi
John Criswell47fdd832003-07-14 16:52:07 +000021209 ;;
21210esac
Reid Spencera773bd52006-08-04 18:18:08 +000021211{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21212echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021213
Reid Spencera773bd52006-08-04 18:18:08 +000021214{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21215echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021216# Make sure either enable_shared or enable_static is yes.
21217test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021218{ echo "$as_me:$LINENO: result: $enable_static" >&5
21219echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021220
21221GCC_F77="$G77"
21222LD_F77="$LD"
21223
21224lt_prog_compiler_wl_F77=
21225lt_prog_compiler_pic_F77=
21226lt_prog_compiler_static_F77=
21227
Reid Spencera773bd52006-08-04 18:18:08 +000021228{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21229echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021230
21231 if test "$GCC" = yes; then
21232 lt_prog_compiler_wl_F77='-Wl,'
21233 lt_prog_compiler_static_F77='-static'
21234
21235 case $host_os in
21236 aix*)
21237 # All AIX code is PIC.
21238 if test "$host_cpu" = ia64; then
21239 # AIX 5 now supports IA64 processor
21240 lt_prog_compiler_static_F77='-Bstatic'
21241 fi
21242 ;;
21243
21244 amigaos*)
21245 # FIXME: we need at least 68020 code to build shared libraries, but
21246 # adding the `-m68020' flag to GCC prevents building anything better,
21247 # like `-m68040'.
21248 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21249 ;;
21250
21251 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21252 # PIC is the default for these OSes.
21253 ;;
21254
21255 mingw* | pw32* | os2*)
21256 # This hack is so that the source file can tell whether it is being
21257 # built for inclusion in a dll (and should export symbols for example).
21258 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21259 ;;
21260
21261 darwin* | rhapsody*)
21262 # PIC is the default on this platform
21263 # Common symbols not allowed in MH_DYLIB files
21264 lt_prog_compiler_pic_F77='-fno-common'
21265 ;;
21266
Reid Spencera773bd52006-08-04 18:18:08 +000021267 interix3*)
21268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21269 # Instead, we relocate shared libraries at runtime.
21270 ;;
21271
John Criswell47fdd832003-07-14 16:52:07 +000021272 msdosdjgpp*)
21273 # Just because we use GCC doesn't mean we suddenly get shared libraries
21274 # on systems that don't support them.
21275 lt_prog_compiler_can_build_shared_F77=no
21276 enable_shared=no
21277 ;;
21278
21279 sysv4*MP*)
21280 if test -d /usr/nec; then
21281 lt_prog_compiler_pic_F77=-Kconform_pic
21282 fi
21283 ;;
21284
21285 hpux*)
21286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21287 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021288 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021289 hppa*64*|ia64*)
21290 # +Z the default
21291 ;;
21292 *)
21293 lt_prog_compiler_pic_F77='-fPIC'
21294 ;;
21295 esac
21296 ;;
21297
21298 *)
21299 lt_prog_compiler_pic_F77='-fPIC'
21300 ;;
21301 esac
21302 else
21303 # PORTME Check for flag to pass linker flags through the system compiler.
21304 case $host_os in
21305 aix*)
21306 lt_prog_compiler_wl_F77='-Wl,'
21307 if test "$host_cpu" = ia64; then
21308 # AIX 5 now supports IA64 processor
21309 lt_prog_compiler_static_F77='-Bstatic'
21310 else
21311 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21312 fi
21313 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314 darwin*)
21315 # PIC is the default on this platform
21316 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021317 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021318 xlc*)
21319 lt_prog_compiler_pic_F77='-qnocommon'
21320 lt_prog_compiler_wl_F77='-Wl,'
21321 ;;
21322 esac
21323 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021324
21325 mingw* | pw32* | os2*)
21326 # This hack is so that the source file can tell whether it is being
21327 # built for inclusion in a dll (and should export symbols for example).
21328 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21329 ;;
21330
21331 hpux9* | hpux10* | hpux11*)
21332 lt_prog_compiler_wl_F77='-Wl,'
21333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21334 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021335 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021336 hppa*64*|ia64*)
21337 # +Z the default
21338 ;;
21339 *)
21340 lt_prog_compiler_pic_F77='+Z'
21341 ;;
21342 esac
21343 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21344 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21345 ;;
21346
21347 irix5* | irix6* | nonstopux*)
21348 lt_prog_compiler_wl_F77='-Wl,'
21349 # PIC (with -KPIC) is the default.
21350 lt_prog_compiler_static_F77='-non_shared'
21351 ;;
21352
21353 newsos6)
21354 lt_prog_compiler_pic_F77='-KPIC'
21355 lt_prog_compiler_static_F77='-Bstatic'
21356 ;;
21357
21358 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021359 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021360 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021361 lt_prog_compiler_wl_F77='-Wl,'
21362 lt_prog_compiler_pic_F77='-KPIC'
21363 lt_prog_compiler_static_F77='-static'
21364 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021365 pgcc* | pgf77* | pgf90* | pgf95*)
21366 # Portland Group compilers (*not* the Pentium gcc compiler,
21367 # which looks to be a dead project)
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 lt_prog_compiler_pic_F77='-fpic'
21370 lt_prog_compiler_static_F77='-Bstatic'
21371 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021372 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021373 lt_prog_compiler_wl_F77='-Wl,'
21374 # All Alpha code is PIC.
21375 lt_prog_compiler_static_F77='-non_shared'
21376 ;;
21377 esac
21378 ;;
21379
21380 osf3* | osf4* | osf5*)
21381 lt_prog_compiler_wl_F77='-Wl,'
21382 # All OSF/1 code is PIC.
21383 lt_prog_compiler_static_F77='-non_shared'
21384 ;;
21385
John Criswell47fdd832003-07-14 16:52:07 +000021386 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021387 lt_prog_compiler_pic_F77='-KPIC'
21388 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021389 case $cc_basename in
21390 f77* | f90* | f95*)
21391 lt_prog_compiler_wl_F77='-Qoption ld ';;
21392 *)
21393 lt_prog_compiler_wl_F77='-Wl,';;
21394 esac
John Criswell47fdd832003-07-14 16:52:07 +000021395 ;;
21396
21397 sunos4*)
21398 lt_prog_compiler_wl_F77='-Qoption ld '
21399 lt_prog_compiler_pic_F77='-PIC'
21400 lt_prog_compiler_static_F77='-Bstatic'
21401 ;;
21402
Reid Spencera773bd52006-08-04 18:18:08 +000021403 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021404 lt_prog_compiler_wl_F77='-Wl,'
21405 lt_prog_compiler_pic_F77='-KPIC'
21406 lt_prog_compiler_static_F77='-Bstatic'
21407 ;;
21408
21409 sysv4*MP*)
21410 if test -d /usr/nec ;then
21411 lt_prog_compiler_pic_F77='-Kconform_pic'
21412 lt_prog_compiler_static_F77='-Bstatic'
21413 fi
21414 ;;
21415
Reid Spencera773bd52006-08-04 18:18:08 +000021416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21417 lt_prog_compiler_wl_F77='-Wl,'
21418 lt_prog_compiler_pic_F77='-KPIC'
21419 lt_prog_compiler_static_F77='-Bstatic'
21420 ;;
21421
21422 unicos*)
21423 lt_prog_compiler_wl_F77='-Wl,'
21424 lt_prog_compiler_can_build_shared_F77=no
21425 ;;
21426
John Criswell47fdd832003-07-14 16:52:07 +000021427 uts4*)
21428 lt_prog_compiler_pic_F77='-pic'
21429 lt_prog_compiler_static_F77='-Bstatic'
21430 ;;
21431
21432 *)
21433 lt_prog_compiler_can_build_shared_F77=no
21434 ;;
21435 esac
21436 fi
21437
Reid Spencera773bd52006-08-04 18:18:08 +000021438{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21439echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021440
21441#
21442# Check to make sure the PIC flag actually works.
21443#
21444if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021445
Reid Spencera773bd52006-08-04 18:18:08 +000021446{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21447echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021448if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450else
21451 lt_prog_compiler_pic_works_F77=no
21452 ac_outfile=conftest.$ac_objext
21453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21454 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21455 # Insert the option either (1) after the last *FLAGS variable, or
21456 # (2) before a word containing "conftest.", or (3) at the end.
21457 # Note that $ac_compile itself does not contain backslashes and begins
21458 # with a dollar sign (not a hyphen), so the echo should work correctly.
21459 # The option is referenced via a variable to avoid confusing sed.
21460 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21463 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000021464 (eval echo "\"\$as_me:21464: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021465 (eval "$lt_compile" 2>conftest.err)
21466 ac_status=$?
21467 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000021468 echo "$as_me:21468: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021469 if (exit $ac_status) && test -s "$ac_outfile"; then
21470 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021471 # So say no if there are warnings other than the usual output.
21472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021475 lt_prog_compiler_pic_works_F77=yes
21476 fi
21477 fi
21478 $rm conftest*
21479
21480fi
Reid Spencera773bd52006-08-04 18:18:08 +000021481{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21482echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021483
21484if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21485 case $lt_prog_compiler_pic_F77 in
21486 "" | " "*) ;;
21487 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21488 esac
21489else
21490 lt_prog_compiler_pic_F77=
21491 lt_prog_compiler_can_build_shared_F77=no
21492fi
21493
21494fi
Reid Spencera773bd52006-08-04 18:18:08 +000021495case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021496 # For platforms which do not support PIC, -DPIC is meaningless:
21497 *djgpp*)
21498 lt_prog_compiler_pic_F77=
21499 ;;
21500 *)
21501 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21502 ;;
21503esac
21504
Reid Spencera773bd52006-08-04 18:18:08 +000021505#
21506# Check to make sure the static flag actually works.
21507#
21508wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21509{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21510echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21511if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21512 echo $ECHO_N "(cached) $ECHO_C" >&6
21513else
21514 lt_prog_compiler_static_works_F77=no
21515 save_LDFLAGS="$LDFLAGS"
21516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21517 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21519 # The linker can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 if test -s conftest.err; then
21522 # Append any errors to the config.log.
21523 cat conftest.err 1>&5
21524 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21526 if diff conftest.exp conftest.er2 >/dev/null; then
21527 lt_prog_compiler_static_works_F77=yes
21528 fi
21529 else
21530 lt_prog_compiler_static_works_F77=yes
21531 fi
21532 fi
21533 $rm conftest*
21534 LDFLAGS="$save_LDFLAGS"
21535
21536fi
21537{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21538echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21539
21540if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21541 :
21542else
21543 lt_prog_compiler_static_F77=
21544fi
21545
21546
21547{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21548echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021549if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21550 echo $ECHO_N "(cached) $ECHO_C" >&6
21551else
21552 lt_cv_prog_compiler_c_o_F77=no
21553 $rm -r conftest 2>/dev/null
21554 mkdir conftest
21555 cd conftest
21556 mkdir out
21557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21558
John Criswell47fdd832003-07-14 16:52:07 +000021559 lt_compiler_flag="-o out/conftest2.$ac_objext"
21560 # Insert the option either (1) after the last *FLAGS variable, or
21561 # (2) before a word containing "conftest.", or (3) at the end.
21562 # Note that $ac_compile itself does not contain backslashes and begins
21563 # with a dollar sign (not a hyphen), so the echo should work correctly.
21564 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21567 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000021568 (eval echo "\"\$as_me:21568: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021569 (eval "$lt_compile" 2>out/conftest.err)
21570 ac_status=$?
21571 cat out/conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000021572 echo "$as_me:21572: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21574 then
21575 # The compiler can only warn and ignore the option if not recognized
21576 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021580 lt_cv_prog_compiler_c_o_F77=yes
21581 fi
21582 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021583 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021584 $rm conftest*
21585 # SGI C++ compiler will create directory out/ii_files/ for
21586 # template instantiation
21587 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21588 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021589 cd ..
21590 rmdir conftest
21591 $rm conftest*
21592
21593fi
Reid Spencera773bd52006-08-04 18:18:08 +000021594{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21595echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021596
21597
21598hard_links="nottested"
21599if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21600 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21602echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021603 hard_links=yes
21604 $rm conftest*
21605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21606 touch conftest.a
21607 ln conftest.a conftest.b 2>&5 || hard_links=no
21608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021609 { echo "$as_me:$LINENO: result: $hard_links" >&5
21610echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021611 if test "$hard_links" = no; then
21612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21613echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21614 need_locks=warn
21615 fi
21616else
21617 need_locks=no
21618fi
21619
Reid Spencera773bd52006-08-04 18:18:08 +000021620{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21621echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021622
21623 runpath_var=
21624 allow_undefined_flag_F77=
21625 enable_shared_with_static_runtimes_F77=no
21626 archive_cmds_F77=
21627 archive_expsym_cmds_F77=
21628 old_archive_From_new_cmds_F77=
21629 old_archive_from_expsyms_cmds_F77=
21630 export_dynamic_flag_spec_F77=
21631 whole_archive_flag_spec_F77=
21632 thread_safe_flag_spec_F77=
21633 hardcode_libdir_flag_spec_F77=
21634 hardcode_libdir_flag_spec_ld_F77=
21635 hardcode_libdir_separator_F77=
21636 hardcode_direct_F77=no
21637 hardcode_minus_L_F77=no
21638 hardcode_shlibpath_var_F77=unsupported
21639 link_all_deplibs_F77=unknown
21640 hardcode_automatic_F77=no
21641 module_cmds_F77=
21642 module_expsym_cmds_F77=
21643 always_export_symbols_F77=no
21644 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21645 # include_expsyms should be a list of space-separated symbols to be *always*
21646 # included in the symbol list
21647 include_expsyms_F77=
21648 # exclude_expsyms can be an extended regexp of symbols to exclude
21649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21651 # as well as any symbol that contains `d'.
21652 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21654 # platforms (ab)use it in PIC code, but their linkers get confused if
21655 # the symbol is explicitly referenced. Since portable code cannot
21656 # rely on this symbol name, it's probably fine to never include it in
21657 # preloaded symbol tables.
21658 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021659 # Just being paranoid about ensuring that cc_basename is set.
21660 for cc_temp in $compiler""; do
21661 case $cc_temp in
21662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21664 \-*) ;;
21665 *) break;;
21666 esac
21667done
21668cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021669
21670 case $host_os in
21671 cygwin* | mingw* | pw32*)
21672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21673 # When not using gcc, we currently assume that we are using
21674 # Microsoft Visual C++.
21675 if test "$GCC" != yes; then
21676 with_gnu_ld=no
21677 fi
21678 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021679 interix*)
21680 # we just hope/assume this is gcc and not c89 (= MSVC++)
21681 with_gnu_ld=yes
21682 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021683 openbsd*)
21684 with_gnu_ld=no
21685 ;;
21686 esac
21687
21688 ld_shlibs_F77=yes
21689 if test "$with_gnu_ld" = yes; then
21690 # If archive_cmds runs LD, not CC, wlarc should be empty
21691 wlarc='${wl}'
21692
Reid Spencera773bd52006-08-04 18:18:08 +000021693 # Set some defaults for GNU ld with shared library support. These
21694 # are reset later if shared libraries are not supported. Putting them
21695 # here allows them to be overridden if necessary.
21696 runpath_var=LD_RUN_PATH
21697 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21698 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21699 # ancient GNU ld didn't support --whole-archive et. al.
21700 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21701 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21702 else
21703 whole_archive_flag_spec_F77=
21704 fi
21705 supports_anon_versioning=no
21706 case `$LD -v 2>/dev/null` in
21707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21710 *\ 2.11.*) ;; # other 2.11 versions
21711 *) supports_anon_versioning=yes ;;
21712 esac
21713
John Criswell47fdd832003-07-14 16:52:07 +000021714 # See if GNU ld supports shared libraries.
21715 case $host_os in
21716 aix3* | aix4* | aix5*)
21717 # On AIX/PPC, the GNU linker is very broken
21718 if test "$host_cpu" != ia64; then
21719 ld_shlibs_F77=no
21720 cat <<EOF 1>&2
21721
21722*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21723*** to be unable to reliably create shared libraries on AIX.
21724*** Therefore, libtool is disabling shared libraries support. If you
21725*** really care for shared libraries, you may want to modify your PATH
21726*** so that a non-GNU linker is found, and then restart.
21727
21728EOF
21729 fi
21730 ;;
21731
21732 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021733 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 +000021734 hardcode_libdir_flag_spec_F77='-L$libdir'
21735 hardcode_minus_L_F77=yes
21736
21737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21738 # that the semantics of dynamic libraries on AmigaOS, at least up
21739 # to version 4, is to share data among multiple programs linked
21740 # with the same dynamic library. Since this doesn't match the
21741 # behavior of shared libraries on other platforms, we can't use
21742 # them.
21743 ld_shlibs_F77=no
21744 ;;
21745
21746 beos*)
21747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21748 allow_undefined_flag_F77=unsupported
21749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21750 # support --undefined. This deserves some investigation. FIXME
21751 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21752 else
21753 ld_shlibs_F77=no
21754 fi
21755 ;;
21756
21757 cygwin* | mingw* | pw32*)
21758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21759 # as there is no search path for DLLs.
21760 hardcode_libdir_flag_spec_F77='-L$libdir'
21761 allow_undefined_flag_F77=unsupported
21762 always_export_symbols_F77=no
21763 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021764 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 +000021765
21766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021767 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 +000021768 # If the export-symbols file already is a .def file (1st line
21769 # is EXPORTS), use it as is; otherwise, prepend...
21770 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21771 cp $export_symbols $output_objdir/$soname.def;
21772 else
21773 echo EXPORTS > $output_objdir/$soname.def;
21774 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021775 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021776 $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 +000021777 else
Reid Spencera773bd52006-08-04 18:18:08 +000021778 ld_shlibs_F77=no
21779 fi
21780 ;;
21781
21782 interix3*)
21783 hardcode_direct_F77=no
21784 hardcode_shlibpath_var_F77=no
21785 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21786 export_dynamic_flag_spec_F77='${wl}-E'
21787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21788 # Instead, shared libraries are loaded at an image base (0x10000000 by
21789 # default) and relocated if they conflict, which is a slow very memory
21790 # consuming and fragmenting process. To avoid this, we pick a random,
21791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21793 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'
21794 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'
21795 ;;
21796
21797 linux*)
21798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21799 tmp_addflag=
21800 case $cc_basename,$host_cpu in
21801 pgcc*) # Portland Group C compiler
21802 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'
21803 tmp_addflag=' $pic_flag'
21804 ;;
21805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21806 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'
21807 tmp_addflag=' $pic_flag -Mnomain' ;;
21808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21809 tmp_addflag=' -i_dynamic' ;;
21810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21811 tmp_addflag=' -i_dynamic -nofor_main' ;;
21812 ifc* | ifort*) # Intel Fortran compiler
21813 tmp_addflag=' -nofor_main' ;;
21814 esac
21815 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21816
21817 if test $supports_anon_versioning = yes; then
21818 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21820 $echo "local: *; };" >> $output_objdir/$libname.ver~
21821 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21822 fi
21823 else
21824 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021825 fi
21826 ;;
21827
21828 netbsd*)
21829 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21830 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21831 wlarc=
21832 else
21833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21834 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21835 fi
21836 ;;
21837
Reid Spencera773bd52006-08-04 18:18:08 +000021838 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021839 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21840 ld_shlibs_F77=no
21841 cat <<EOF 1>&2
21842
21843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21844*** create shared libraries on Solaris systems. Therefore, libtool
21845*** is disabling shared libraries support. We urge you to upgrade GNU
21846*** binutils to release 2.9.1 or newer. Another option is to modify
21847*** your PATH or compiler configuration so that the native linker is
21848*** used, and then restart.
21849
21850EOF
21851 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21853 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21854 else
21855 ld_shlibs_F77=no
21856 fi
21857 ;;
21858
Reid Spencera773bd52006-08-04 18:18:08 +000021859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21860 case `$LD -v 2>&1` in
21861 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21862 ld_shlibs_F77=no
21863 cat <<_LT_EOF 1>&2
21864
21865*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21866*** reliably create shared libraries on SCO systems. Therefore, libtool
21867*** is disabling shared libraries support. We urge you to upgrade GNU
21868*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21869*** your PATH or compiler configuration so that the native linker is
21870*** used, and then restart.
21871
21872_LT_EOF
21873 ;;
21874 *)
21875 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21876 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21877 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21878 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21879 else
21880 ld_shlibs_F77=no
21881 fi
21882 ;;
21883 esac
21884 ;;
21885
John Criswell47fdd832003-07-14 16:52:07 +000021886 sunos4*)
21887 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21888 wlarc=
21889 hardcode_direct_F77=yes
21890 hardcode_shlibpath_var_F77=no
21891 ;;
21892
21893 *)
21894 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21897 else
21898 ld_shlibs_F77=no
21899 fi
21900 ;;
21901 esac
21902
Reid Spencera773bd52006-08-04 18:18:08 +000021903 if test "$ld_shlibs_F77" = no; then
21904 runpath_var=
21905 hardcode_libdir_flag_spec_F77=
21906 export_dynamic_flag_spec_F77=
21907 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021908 fi
21909 else
21910 # PORTME fill in a description of your system's linker (not GNU ld)
21911 case $host_os in
21912 aix3*)
21913 allow_undefined_flag_F77=unsupported
21914 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021915 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 +000021916 # Note: this linker hardcodes the directories in LIBPATH if there
21917 # are no directories specified by -L.
21918 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021919 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021920 # Neither direct hardcoding nor static linking is supported with a
21921 # broken collect2.
21922 hardcode_direct_F77=unsupported
21923 fi
21924 ;;
21925
21926 aix4* | aix5*)
21927 if test "$host_cpu" = ia64; then
21928 # On IA64, the linker does run time linking by default, so we don't
21929 # have to do anything special.
21930 aix_use_runtimelinking=no
21931 exp_sym_flag='-Bexport'
21932 no_entry_flag=""
21933 else
21934 # If we're using GNU nm, then we don't want the "-C" option.
21935 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21936 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21937 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'
21938 else
21939 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'
21940 fi
21941 aix_use_runtimelinking=no
21942
21943 # Test if we are trying to use run time linking or normal
21944 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21945 # need to do runtime linking.
21946 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21947 for ld_flag in $LDFLAGS; do
21948 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21949 aix_use_runtimelinking=yes
21950 break
21951 fi
21952 done
Reid Spencera773bd52006-08-04 18:18:08 +000021953 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021954 esac
21955
21956 exp_sym_flag='-bexport'
21957 no_entry_flag='-bnoentry'
21958 fi
21959
21960 # When large executables or shared objects are built, AIX ld can
21961 # have problems creating the table of contents. If linking a library
21962 # or program results in "error TOC overflow" add -mminimal-toc to
21963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21965
21966 archive_cmds_F77=''
21967 hardcode_direct_F77=yes
21968 hardcode_libdir_separator_F77=':'
21969 link_all_deplibs_F77=yes
21970
21971 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021972 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021973 # We only want to do this on AIX 4.2 and lower, the check
21974 # below for broken collect2 doesn't work under 4.3+
21975 collect2name=`${CC} -print-prog-name=collect2`
21976 if test -f "$collect2name" && \
21977 strings "$collect2name" | grep resolve_lib_name >/dev/null
21978 then
21979 # We have reworked collect2
21980 hardcode_direct_F77=yes
21981 else
21982 # We have old collect2
21983 hardcode_direct_F77=unsupported
21984 # It fails to find uninstalled libraries when the uninstalled
21985 # path is not listed in the libpath. Setting hardcode_minus_L
21986 # to unsupported forces relinking
21987 hardcode_minus_L_F77=yes
21988 hardcode_libdir_flag_spec_F77='-L$libdir'
21989 hardcode_libdir_separator_F77=
21990 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021992 esac
21993 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021994 if test "$aix_use_runtimelinking" = yes; then
21995 shared_flag="$shared_flag "'${wl}-G'
21996 fi
John Criswell47fdd832003-07-14 16:52:07 +000021997 else
21998 # not using gcc
21999 if test "$host_cpu" = ia64; then
22000 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22001 # chokes on -Wl,-G. The following line is correct:
22002 shared_flag='-G'
22003 else
Reid Spencera773bd52006-08-04 18:18:08 +000022004 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022005 shared_flag='${wl}-G'
22006 else
22007 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022008 fi
John Criswell47fdd832003-07-14 16:52:07 +000022009 fi
22010 fi
22011
22012 # It seems that -bexpall does not export symbols beginning with
22013 # underscore (_), so it is better to generate a list of symbols to export.
22014 always_export_symbols_F77=yes
22015 if test "$aix_use_runtimelinking" = yes; then
22016 # Warning - without using the other runtime loading flags (-brtl),
22017 # -berok will link without error, but may produce a broken library.
22018 allow_undefined_flag_F77='-berok'
22019 # Determine the default libpath from the value encoded in an empty executable.
22020 cat >conftest.$ac_ext <<_ACEOF
22021 program main
22022
22023 end
22024_ACEOF
22025rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022026if { (ac_try="$ac_link"
22027case "(($ac_try" in
22028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029 *) ac_try_echo=$ac_try;;
22030esac
22031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022034 grep -v '^ *+' conftest.er1 >conftest.err
22035 rm -f conftest.er1
22036 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022038 (exit $ac_status); } &&
22039 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22040 { (case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043esac
22044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_try") 2>&5
22046 ac_status=$?
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest$ac_exeext'
22050 { (case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22053esac
22054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_try") 2>&5
22056 ac_status=$?
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022059
22060aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22061}'`
22062# Check for a 64-bit object if we didn't find anything.
22063if 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; }
22064}'`; fi
22065else
22066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022067sed 's/^/| /' conftest.$ac_ext >&5
22068
Reid Spencera773bd52006-08-04 18:18:08 +000022069
John Criswell47fdd832003-07-14 16:52:07 +000022070fi
Reid Spencera773bd52006-08-04 18:18:08 +000022071
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022072rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022073 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022074if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22075
22076 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022077 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 +000022078 else
22079 if test "$host_cpu" = ia64; then
22080 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22081 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022082 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 +000022083 else
22084 # Determine the default libpath from the value encoded in an empty executable.
22085 cat >conftest.$ac_ext <<_ACEOF
22086 program main
22087
22088 end
22089_ACEOF
22090rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022091if { (ac_try="$ac_link"
22092case "(($ac_try" in
22093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22094 *) ac_try_echo=$ac_try;;
22095esac
22096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22097 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022099 grep -v '^ *+' conftest.er1 >conftest.err
22100 rm -f conftest.er1
22101 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022103 (exit $ac_status); } &&
22104 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22105 { (case "(($ac_try" in
22106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22107 *) ac_try_echo=$ac_try;;
22108esac
22109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22110 (eval "$ac_try") 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest$ac_exeext'
22115 { (case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22118esac
22119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_try") 2>&5
22121 ac_status=$?
22122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22123 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022124
22125aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22126}'`
22127# Check for a 64-bit object if we didn't find anything.
22128if 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; }
22129}'`; fi
22130else
22131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022132sed 's/^/| /' conftest.$ac_ext >&5
22133
Reid Spencera773bd52006-08-04 18:18:08 +000022134
John Criswell47fdd832003-07-14 16:52:07 +000022135fi
Reid Spencera773bd52006-08-04 18:18:08 +000022136
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022137rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022138 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022139if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22140
22141 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22142 # Warning - without using the other run time loading flags,
22143 # -berok will link without error, but may produce a broken library.
22144 no_undefined_flag_F77=' ${wl}-bernotok'
22145 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022146 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022147 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022148 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022149 # This is similar to how AIX traditionally builds its shared libraries.
22150 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 +000022151 fi
22152 fi
22153 ;;
22154
22155 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022156 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 +000022157 hardcode_libdir_flag_spec_F77='-L$libdir'
22158 hardcode_minus_L_F77=yes
22159 # see comment about different semantics on the GNU ld section
22160 ld_shlibs_F77=no
22161 ;;
22162
Reid Spencer2706f8c2004-09-19 23:53:36 +000022163 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022164 export_dynamic_flag_spec_F77=-rdynamic
22165 ;;
22166
22167 cygwin* | mingw* | pw32*)
22168 # When not using gcc, we currently assume that we are using
22169 # Microsoft Visual C++.
22170 # hardcode_libdir_flag_spec is actually meaningless, as there is
22171 # no search path for DLLs.
22172 hardcode_libdir_flag_spec_F77=' '
22173 allow_undefined_flag_F77=unsupported
22174 # Tell ltmain to make .lib files, not .a files.
22175 libext=lib
22176 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022177 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022178 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022179 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 +000022180 # The linker will automatically build a .lib file if we build a DLL.
22181 old_archive_From_new_cmds_F77='true'
22182 # FIXME: Should let the user specify the lib program.
22183 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022184 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022185 enable_shared_with_static_runtimes_F77=yes
22186 ;;
22187
22188 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022189 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022190 rhapsody* | darwin1.[012])
22191 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22192 ;;
22193 *) # Darwin 1.3 on
22194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22195 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22196 else
22197 case ${MACOSX_DEPLOYMENT_TARGET} in
22198 10.[012])
22199 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22200 ;;
22201 10.*)
22202 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22203 ;;
22204 esac
22205 fi
22206 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022207 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022208 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022209 hardcode_direct_F77=no
22210 hardcode_automatic_F77=yes
22211 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022212 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022213 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022214 if test "$GCC" = yes ; then
22215 output_verbose_link_cmd='echo'
22216 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22217 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022218 # 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 +000022219 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}'
22220 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 +000022221 else
Reid Spencera773bd52006-08-04 18:18:08 +000022222 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022223 xlc*)
22224 output_verbose_link_cmd='echo'
22225 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22226 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022227 # 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 +000022228 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}'
22229 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 +000022230 ;;
22231 *)
22232 ld_shlibs_F77=no
22233 ;;
22234 esac
John Criswell47fdd832003-07-14 16:52:07 +000022235 fi
22236 ;;
22237
22238 dgux*)
22239 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22240 hardcode_libdir_flag_spec_F77='-L$libdir'
22241 hardcode_shlibpath_var_F77=no
22242 ;;
22243
22244 freebsd1*)
22245 ld_shlibs_F77=no
22246 ;;
22247
22248 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22249 # support. Future versions do this automatically, but an explicit c++rt0.o
22250 # does not break anything, and helps significantly (at the cost of a little
22251 # extra space).
22252 freebsd2.2*)
22253 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22254 hardcode_libdir_flag_spec_F77='-R$libdir'
22255 hardcode_direct_F77=yes
22256 hardcode_shlibpath_var_F77=no
22257 ;;
22258
22259 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22260 freebsd2*)
22261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22262 hardcode_direct_F77=yes
22263 hardcode_minus_L_F77=yes
22264 hardcode_shlibpath_var_F77=no
22265 ;;
22266
22267 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022268 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022269 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22270 hardcode_libdir_flag_spec_F77='-R$libdir'
22271 hardcode_direct_F77=yes
22272 hardcode_shlibpath_var_F77=no
22273 ;;
22274
22275 hpux9*)
22276 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022277 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 +000022278 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022279 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 +000022280 fi
22281 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22282 hardcode_libdir_separator_F77=:
22283 hardcode_direct_F77=yes
22284
22285 # hardcode_minus_L: Not really in the search PATH,
22286 # but as the default location of the library.
22287 hardcode_minus_L_F77=yes
22288 export_dynamic_flag_spec_F77='${wl}-E'
22289 ;;
22290
Reid Spencera773bd52006-08-04 18:18:08 +000022291 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022293 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22294 else
22295 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22296 fi
22297 if test "$with_gnu_ld" = no; then
22298 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22299 hardcode_libdir_separator_F77=:
22300
22301 hardcode_direct_F77=yes
22302 export_dynamic_flag_spec_F77='${wl}-E'
22303
22304 # hardcode_minus_L: Not really in the search PATH,
22305 # but as the default location of the library.
22306 hardcode_minus_L_F77=yes
22307 fi
22308 ;;
22309
22310 hpux11*)
22311 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22312 case $host_cpu in
22313 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022314 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022316 ia64*)
22317 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022319 *)
22320 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22321 ;;
22322 esac
22323 else
Reid Spencera773bd52006-08-04 18:18:08 +000022324 case $host_cpu in
22325 hppa*64*)
22326 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22327 ;;
22328 ia64*)
22329 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022330 ;;
22331 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022332 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 +000022333 ;;
22334 esac
22335 fi
22336 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022337 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22338 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022339
Reid Spencera773bd52006-08-04 18:18:08 +000022340 case $host_cpu in
22341 hppa*64*|ia64*)
22342 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22343 hardcode_direct_F77=no
22344 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022345 ;;
22346 *)
John Criswell47fdd832003-07-14 16:52:07 +000022347 hardcode_direct_F77=yes
22348 export_dynamic_flag_spec_F77='${wl}-E'
22349
22350 # hardcode_minus_L: Not really in the search PATH,
22351 # but as the default location of the library.
22352 hardcode_minus_L_F77=yes
22353 ;;
22354 esac
22355 fi
22356 ;;
22357
22358 irix5* | irix6* | nonstopux*)
22359 if test "$GCC" = yes; then
22360 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'
22361 else
22362 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'
22363 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22364 fi
22365 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22366 hardcode_libdir_separator_F77=:
22367 link_all_deplibs_F77=yes
22368 ;;
22369
22370 netbsd*)
22371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22372 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22373 else
22374 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22375 fi
22376 hardcode_libdir_flag_spec_F77='-R$libdir'
22377 hardcode_direct_F77=yes
22378 hardcode_shlibpath_var_F77=no
22379 ;;
22380
22381 newsos6)
22382 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22383 hardcode_direct_F77=yes
22384 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22385 hardcode_libdir_separator_F77=:
22386 hardcode_shlibpath_var_F77=no
22387 ;;
22388
22389 openbsd*)
22390 hardcode_direct_F77=yes
22391 hardcode_shlibpath_var_F77=no
22392 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22393 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022394 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 +000022395 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22396 export_dynamic_flag_spec_F77='${wl}-E'
22397 else
22398 case $host_os in
22399 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22400 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_F77='-R$libdir'
22402 ;;
22403 *)
22404 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22405 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22406 ;;
22407 esac
22408 fi
22409 ;;
22410
22411 os2*)
22412 hardcode_libdir_flag_spec_F77='-L$libdir'
22413 hardcode_minus_L_F77=yes
22414 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022415 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 +000022416 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22417 ;;
22418
22419 osf3*)
22420 if test "$GCC" = yes; then
22421 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22422 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'
22423 else
22424 allow_undefined_flag_F77=' -expect_unresolved \*'
22425 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'
22426 fi
22427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22428 hardcode_libdir_separator_F77=:
22429 ;;
22430
22431 osf4* | osf5*) # as osf3* with the addition of -msym flag
22432 if test "$GCC" = yes; then
22433 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22434 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'
22435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22436 else
22437 allow_undefined_flag_F77=' -expect_unresolved \*'
22438 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 +000022439 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 +000022440 $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 +000022441
John Criswell47fdd832003-07-14 16:52:07 +000022442 # Both c and cxx compiler support -rpath directly
22443 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22444 fi
22445 hardcode_libdir_separator_F77=:
22446 ;;
22447
John Criswell47fdd832003-07-14 16:52:07 +000022448 solaris*)
22449 no_undefined_flag_F77=' -z text'
22450 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022451 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022452 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454 $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 +000022455 else
Reid Spencera773bd52006-08-04 18:18:08 +000022456 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022457 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022458 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22459 $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 +000022460 fi
22461 hardcode_libdir_flag_spec_F77='-R$libdir'
22462 hardcode_shlibpath_var_F77=no
22463 case $host_os in
22464 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022465 *)
22466 # The compiler driver will combine linker options so we
22467 # cannot just pass the convience library names through
22468 # without $wl, iff we do not link with $LD.
22469 # Luckily, gcc supports the same syntax we need for Sun Studio.
22470 # Supported since Solaris 2.6 (maybe 2.5.1?)
22471 case $wlarc in
22472 '')
22473 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22474 *)
22475 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' ;;
22476 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022477 esac
22478 link_all_deplibs_F77=yes
22479 ;;
22480
22481 sunos4*)
22482 if test "x$host_vendor" = xsequent; then
22483 # Use $CC to link under sequent, because it throws in some extra .o
22484 # files that make .init and .fini sections work.
22485 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22486 else
22487 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22488 fi
22489 hardcode_libdir_flag_spec_F77='-L$libdir'
22490 hardcode_direct_F77=yes
22491 hardcode_minus_L_F77=yes
22492 hardcode_shlibpath_var_F77=no
22493 ;;
22494
22495 sysv4)
22496 case $host_vendor in
22497 sni)
22498 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22499 hardcode_direct_F77=yes # is this really true???
22500 ;;
22501 siemens)
22502 ## LD is ld it makes a PLAMLIB
22503 ## CC just makes a GrossModule.
22504 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22505 reload_cmds_F77='$CC -r -o $output$reload_objs'
22506 hardcode_direct_F77=no
22507 ;;
22508 motorola)
22509 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22510 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22511 ;;
22512 esac
22513 runpath_var='LD_RUN_PATH'
22514 hardcode_shlibpath_var_F77=no
22515 ;;
22516
22517 sysv4.3*)
22518 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22519 hardcode_shlibpath_var_F77=no
22520 export_dynamic_flag_spec_F77='-Bexport'
22521 ;;
22522
22523 sysv4*MP*)
22524 if test -d /usr/nec; then
22525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22526 hardcode_shlibpath_var_F77=no
22527 runpath_var=LD_RUN_PATH
22528 hardcode_runpath_var=yes
22529 ld_shlibs_F77=yes
22530 fi
22531 ;;
22532
Reid Spencera773bd52006-08-04 18:18:08 +000022533 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22534 no_undefined_flag_F77='${wl}-z,text'
22535 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022536 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022537 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022538
John Criswell47fdd832003-07-14 16:52:07 +000022539 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022540 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22541 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 +000022542 else
Reid Spencera773bd52006-08-04 18:18:08 +000022543 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 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 +000022545 fi
John Criswell47fdd832003-07-14 16:52:07 +000022546 ;;
22547
Reid Spencera773bd52006-08-04 18:18:08 +000022548 sysv5* | sco3.2v5* | sco5v6*)
22549 # Note: We can NOT use -z defs as we might desire, because we do not
22550 # link with -lc, and that would cause any symbols used from libc to
22551 # always be unresolved, which means just about no library would
22552 # ever link correctly. If we're not using GNU ld we use -z text
22553 # though, which does catch some bad symbols but isn't as heavy-handed
22554 # as -z defs.
22555 no_undefined_flag_F77='${wl}-z,text'
22556 allow_undefined_flag_F77='${wl}-z,nodefs'
22557 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022558 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022559 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22560 hardcode_libdir_separator_F77=':'
22561 link_all_deplibs_F77=yes
22562 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022563 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022564
22565 if test "$GCC" = yes; then
22566 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22567 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22568 else
22569 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22570 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22571 fi
John Criswell47fdd832003-07-14 16:52:07 +000022572 ;;
22573
22574 uts4*)
22575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22576 hardcode_libdir_flag_spec_F77='-L$libdir'
22577 hardcode_shlibpath_var_F77=no
22578 ;;
22579
22580 *)
22581 ld_shlibs_F77=no
22582 ;;
22583 esac
22584 fi
22585
Reid Spencera773bd52006-08-04 18:18:08 +000022586{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22587echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022588test "$ld_shlibs_F77" = no && can_build_shared=no
22589
John Criswell47fdd832003-07-14 16:52:07 +000022590#
22591# Do we need to explicitly link libc?
22592#
22593case "x$archive_cmds_need_lc_F77" in
22594x|xyes)
22595 # Assume -lc should be added
22596 archive_cmds_need_lc_F77=yes
22597
22598 if test "$enable_shared" = yes && test "$GCC" = yes; then
22599 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022601 # FIXME: we may have to deal with multi-command sequences.
22602 ;;
22603 '$CC '*)
22604 # Test whether the compiler implicitly links with -lc since on some
22605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22606 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022607 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22608echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022609 $rm conftest*
22610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22611
22612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } 2>conftest.err; then
22617 soname=conftest
22618 lib=conftest
22619 libobjs=conftest.$ac_objext
22620 deplibs=
22621 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022622 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022623 compiler_flags=-v
22624 linker_flags=-v
22625 verstring=
22626 output_objdir=.
22627 libname=conftest
22628 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22629 allow_undefined_flag_F77=
22630 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22631 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22632 ac_status=$?
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); }
22635 then
22636 archive_cmds_need_lc_F77=no
22637 else
22638 archive_cmds_need_lc_F77=yes
22639 fi
22640 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22641 else
22642 cat conftest.err 1>&5
22643 fi
22644 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022645 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22646echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022647 ;;
22648 esac
22649 fi
22650 ;;
22651esac
22652
Reid Spencera773bd52006-08-04 18:18:08 +000022653{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22654echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022655library_names_spec=
22656libname_spec='lib$name'
22657soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022658shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022659postinstall_cmds=
22660postuninstall_cmds=
22661finish_cmds=
22662finish_eval=
22663shlibpath_var=
22664shlibpath_overrides_runpath=unknown
22665version_type=none
22666dynamic_linker="$host_os ld.so"
22667sys_lib_dlsearch_path_spec="/lib /usr/lib"
22668if test "$GCC" = yes; then
22669 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22670 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22671 # if the path contains ";" then we assume it to be the separator
22672 # otherwise default to the standard path separator (i.e. ":") - it is
22673 # assumed that no part of a normal pathname contains ";" but that should
22674 # okay in the real world where ";" in dirpaths is itself problematic.
22675 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22676 else
22677 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22678 fi
22679else
22680 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22681fi
22682need_lib_prefix=unknown
22683hardcode_into_libs=no
22684
22685# when you set need_version to no, make sure it does not cause -set_version
22686# flags to be left without arguments
22687need_version=unknown
22688
22689case $host_os in
22690aix3*)
22691 version_type=linux
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22693 shlibpath_var=LIBPATH
22694
22695 # AIX 3 has no versioning support, so we append a major version to the name.
22696 soname_spec='${libname}${release}${shared_ext}$major'
22697 ;;
22698
22699aix4* | aix5*)
22700 version_type=linux
22701 need_lib_prefix=no
22702 need_version=no
22703 hardcode_into_libs=yes
22704 if test "$host_cpu" = ia64; then
22705 # AIX 5 supports IA64
22706 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 else
22709 # With GCC up to 2.95.x, collect2 would create an import file
22710 # for dependence libraries. The import file would start with
22711 # the line `#! .'. This would cause the generated library to
22712 # depend on `.', always an invalid library. This was fixed in
22713 # development snapshots of GCC prior to 3.0.
22714 case $host_os in
22715 aix4 | aix4.[01] | aix4.[01].*)
22716 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22717 echo ' yes '
22718 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22719 :
22720 else
22721 can_build_shared=no
22722 fi
22723 ;;
22724 esac
22725 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22726 # soname into executable. Probably we can add versioning support to
22727 # collect2, so additional links can be useful in future.
22728 if test "$aix_use_runtimelinking" = yes; then
22729 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22730 # instead of lib<name>.a to let people know that these are not
22731 # typical AIX shared libraries.
22732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22733 else
22734 # We preserve .a as extension for shared libraries through AIX4.2
22735 # and later when we are not doing run time linking.
22736 library_names_spec='${libname}${release}.a $libname.a'
22737 soname_spec='${libname}${release}${shared_ext}$major'
22738 fi
22739 shlibpath_var=LIBPATH
22740 fi
22741 ;;
22742
22743amigaos*)
22744 library_names_spec='$libname.ixlibrary $libname.a'
22745 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022746 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 +000022747 ;;
22748
22749beos*)
22750 library_names_spec='${libname}${shared_ext}'
22751 dynamic_linker="$host_os ld.so"
22752 shlibpath_var=LIBRARY_PATH
22753 ;;
22754
Reid Spencer2706f8c2004-09-19 23:53:36 +000022755bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022756 version_type=linux
22757 need_version=no
22758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22759 soname_spec='${libname}${release}${shared_ext}$major'
22760 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22761 shlibpath_var=LD_LIBRARY_PATH
22762 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22763 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22764 # the default ld.so.conf also contains /usr/contrib/lib and
22765 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22766 # libtool to hard-code these into programs
22767 ;;
22768
22769cygwin* | mingw* | pw32*)
22770 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022771 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022772 need_version=no
22773 need_lib_prefix=no
22774
22775 case $GCC,$host_os in
22776 yes,cygwin* | yes,mingw* | yes,pw32*)
22777 library_names_spec='$libname.dll.a'
22778 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022779 postinstall_cmds='base_file=`basename \${file}`~
22780 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22781 dldir=$destdir/`dirname \$dlpath`~
22782 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022783 $install_prog $dir/$dlname \$dldir/$dlname~
22784 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022785 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22786 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022787 $rm \$dlpath'
22788 shlibpath_overrides_runpath=yes
22789
22790 case $host_os in
22791 cygwin*)
22792 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22793 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 +000022794 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022795 ;;
22796 mingw*)
22797 # MinGW DLLs use traditional 'lib' prefix
22798 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22800 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22801 # It is most probably a Windows format PATH printed by
22802 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22803 # path with ; separators, and with drive letters. We can handle the
22804 # drive letters (cygwin fileutils understands them), so leave them,
22805 # especially as we might pass files found there to a mingw objdump,
22806 # which wouldn't understand a cygwinified path. Ahh.
22807 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22808 else
22809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22810 fi
22811 ;;
22812 pw32*)
22813 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022814 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 +000022815 ;;
22816 esac
22817 ;;
22818
22819 *)
22820 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22821 ;;
22822 esac
22823 dynamic_linker='Win32 ld.exe'
22824 # FIXME: first we should search . and the directory the executable is in
22825 shlibpath_var=PATH
22826 ;;
22827
22828darwin* | rhapsody*)
22829 dynamic_linker="$host_os dyld"
22830 version_type=darwin
22831 need_lib_prefix=no
22832 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022833 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022834 soname_spec='${libname}${release}${major}$shared_ext'
22835 shlibpath_overrides_runpath=yes
22836 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022837 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022838 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022839 if test "$GCC" = yes; then
22840 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"`
22841 else
22842 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022843 fi
22844 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22845 ;;
22846
22847dgux*)
22848 version_type=linux
22849 need_lib_prefix=no
22850 need_version=no
22851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22852 soname_spec='${libname}${release}${shared_ext}$major'
22853 shlibpath_var=LD_LIBRARY_PATH
22854 ;;
22855
22856freebsd1*)
22857 dynamic_linker=no
22858 ;;
22859
Reid Spencer2706f8c2004-09-19 23:53:36 +000022860kfreebsd*-gnu)
22861 version_type=linux
22862 need_lib_prefix=no
22863 need_version=no
22864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22865 soname_spec='${libname}${release}${shared_ext}$major'
22866 shlibpath_var=LD_LIBRARY_PATH
22867 shlibpath_overrides_runpath=no
22868 hardcode_into_libs=yes
22869 dynamic_linker='GNU ld.so'
22870 ;;
22871
Reid Spencera773bd52006-08-04 18:18:08 +000022872freebsd* | dragonfly*)
22873 # DragonFly does not have aout. When/if they implement a new
22874 # versioning mechanism, adjust this.
22875 if test -x /usr/bin/objformat; then
22876 objformat=`/usr/bin/objformat`
22877 else
22878 case $host_os in
22879 freebsd[123]*) objformat=aout ;;
22880 *) objformat=elf ;;
22881 esac
22882 fi
John Criswell47fdd832003-07-14 16:52:07 +000022883 version_type=freebsd-$objformat
22884 case $version_type in
22885 freebsd-elf*)
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22887 need_version=no
22888 need_lib_prefix=no
22889 ;;
22890 freebsd-*)
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22892 need_version=yes
22893 ;;
22894 esac
22895 shlibpath_var=LD_LIBRARY_PATH
22896 case $host_os in
22897 freebsd2*)
22898 shlibpath_overrides_runpath=yes
22899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022900 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022901 shlibpath_overrides_runpath=yes
22902 hardcode_into_libs=yes
22903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022904 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22905 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022906 shlibpath_overrides_runpath=no
22907 hardcode_into_libs=yes
22908 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022909 freebsd*) # from 4.6 on
22910 shlibpath_overrides_runpath=yes
22911 hardcode_into_libs=yes
22912 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022913 esac
22914 ;;
22915
22916gnu*)
22917 version_type=linux
22918 need_lib_prefix=no
22919 need_version=no
22920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22921 soname_spec='${libname}${release}${shared_ext}$major'
22922 shlibpath_var=LD_LIBRARY_PATH
22923 hardcode_into_libs=yes
22924 ;;
22925
22926hpux9* | hpux10* | hpux11*)
22927 # Give a soname corresponding to the major version so that dld.sl refuses to
22928 # link against other versions.
22929 version_type=sunos
22930 need_lib_prefix=no
22931 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022932 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022933 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022934 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022935 hardcode_into_libs=yes
22936 dynamic_linker="$host_os dld.so"
22937 shlibpath_var=LD_LIBRARY_PATH
22938 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22940 soname_spec='${libname}${release}${shared_ext}$major'
22941 if test "X$HPUX_IA64_MODE" = X32; then
22942 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22943 else
22944 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22945 fi
22946 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22947 ;;
22948 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022949 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022950 hardcode_into_libs=yes
22951 dynamic_linker="$host_os dld.sl"
22952 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22953 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22955 soname_spec='${libname}${release}${shared_ext}$major'
22956 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22958 ;;
22959 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022960 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022961 dynamic_linker="$host_os dld.sl"
22962 shlibpath_var=SHLIB_PATH
22963 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22965 soname_spec='${libname}${release}${shared_ext}$major'
22966 ;;
22967 esac
22968 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22969 postinstall_cmds='chmod 555 $lib'
22970 ;;
22971
Reid Spencera773bd52006-08-04 18:18:08 +000022972interix3*)
22973 version_type=linux
22974 need_lib_prefix=no
22975 need_version=no
22976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22977 soname_spec='${libname}${release}${shared_ext}$major'
22978 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22979 shlibpath_var=LD_LIBRARY_PATH
22980 shlibpath_overrides_runpath=no
22981 hardcode_into_libs=yes
22982 ;;
22983
John Criswell47fdd832003-07-14 16:52:07 +000022984irix5* | irix6* | nonstopux*)
22985 case $host_os in
22986 nonstopux*) version_type=nonstopux ;;
22987 *)
22988 if test "$lt_cv_prog_gnu_ld" = yes; then
22989 version_type=linux
22990 else
22991 version_type=irix
22992 fi ;;
22993 esac
22994 need_lib_prefix=no
22995 need_version=no
22996 soname_spec='${libname}${release}${shared_ext}$major'
22997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22998 case $host_os in
22999 irix5* | nonstopux*)
23000 libsuff= shlibsuff=
23001 ;;
23002 *)
23003 case $LD in # libtool.m4 will add one of these switches to LD
23004 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23005 libsuff= shlibsuff= libmagic=32-bit;;
23006 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23007 libsuff=32 shlibsuff=N32 libmagic=N32;;
23008 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23009 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23010 *) libsuff= shlibsuff= libmagic=never-match;;
23011 esac
23012 ;;
23013 esac
23014 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23015 shlibpath_overrides_runpath=no
23016 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23017 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23018 hardcode_into_libs=yes
23019 ;;
23020
23021# No shared lib support for Linux oldld, aout, or coff.
23022linux*oldld* | linux*aout* | linux*coff*)
23023 dynamic_linker=no
23024 ;;
23025
23026# This must be Linux ELF.
23027linux*)
23028 version_type=linux
23029 need_lib_prefix=no
23030 need_version=no
23031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23032 soname_spec='${libname}${release}${shared_ext}$major'
23033 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23034 shlibpath_var=LD_LIBRARY_PATH
23035 shlibpath_overrides_runpath=no
23036 # This implies no fast_install, which is unacceptable.
23037 # Some rework will be needed to allow for fast_install
23038 # before this can be enabled.
23039 hardcode_into_libs=yes
23040
Reid Spencer2706f8c2004-09-19 23:53:36 +000023041 # Append ld.so.conf contents to the search path
23042 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023043 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 +000023044 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23045 fi
23046
John Criswell47fdd832003-07-14 16:52:07 +000023047 # We used to test for /lib/ld.so.1 and disable shared libraries on
23048 # powerpc, because MkLinux only supported shared libraries with the
23049 # GNU dynamic linker. Since this was broken with cross compilers,
23050 # most powerpc-linux boxes support dynamic linking these days and
23051 # people can always --disable-shared, the test was removed, and we
23052 # assume the GNU/Linux dynamic linker is in use.
23053 dynamic_linker='GNU/Linux ld.so'
23054 ;;
23055
Reid Spencer2706f8c2004-09-19 23:53:36 +000023056knetbsd*-gnu)
23057 version_type=linux
23058 need_lib_prefix=no
23059 need_version=no
23060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23061 soname_spec='${libname}${release}${shared_ext}$major'
23062 shlibpath_var=LD_LIBRARY_PATH
23063 shlibpath_overrides_runpath=no
23064 hardcode_into_libs=yes
23065 dynamic_linker='GNU ld.so'
23066 ;;
23067
John Criswell47fdd832003-07-14 16:52:07 +000023068netbsd*)
23069 version_type=sunos
23070 need_lib_prefix=no
23071 need_version=no
23072 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23075 dynamic_linker='NetBSD (a.out) ld.so'
23076 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023078 soname_spec='${libname}${release}${shared_ext}$major'
23079 dynamic_linker='NetBSD ld.elf_so'
23080 fi
23081 shlibpath_var=LD_LIBRARY_PATH
23082 shlibpath_overrides_runpath=yes
23083 hardcode_into_libs=yes
23084 ;;
23085
23086newsos6)
23087 version_type=linux
23088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 shlibpath_overrides_runpath=yes
23091 ;;
23092
Reid Spencer2706f8c2004-09-19 23:53:36 +000023093nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023094 version_type=linux
23095 need_lib_prefix=no
23096 need_version=no
23097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23098 soname_spec='${libname}${release}${shared_ext}$major'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 shlibpath_overrides_runpath=yes
23101 ;;
23102
23103openbsd*)
23104 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023105 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023106 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023107 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23108 case $host_os in
23109 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23110 *) need_version=no ;;
23111 esac
John Criswell47fdd832003-07-14 16:52:07 +000023112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23113 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23116 case $host_os in
23117 openbsd2.[89] | openbsd2.[89].*)
23118 shlibpath_overrides_runpath=no
23119 ;;
23120 *)
23121 shlibpath_overrides_runpath=yes
23122 ;;
23123 esac
23124 else
23125 shlibpath_overrides_runpath=yes
23126 fi
23127 ;;
23128
23129os2*)
23130 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023131 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023132 need_lib_prefix=no
23133 library_names_spec='$libname${shared_ext} $libname.a'
23134 dynamic_linker='OS/2 ld.exe'
23135 shlibpath_var=LIBPATH
23136 ;;
23137
23138osf3* | osf4* | osf5*)
23139 version_type=osf
23140 need_lib_prefix=no
23141 need_version=no
23142 soname_spec='${libname}${release}${shared_ext}$major'
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 shlibpath_var=LD_LIBRARY_PATH
23145 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23146 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23147 ;;
23148
John Criswell47fdd832003-07-14 16:52:07 +000023149solaris*)
23150 version_type=linux
23151 need_lib_prefix=no
23152 need_version=no
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 shlibpath_var=LD_LIBRARY_PATH
23156 shlibpath_overrides_runpath=yes
23157 hardcode_into_libs=yes
23158 # ldd complains unless libraries are executable
23159 postinstall_cmds='chmod +x $lib'
23160 ;;
23161
23162sunos4*)
23163 version_type=sunos
23164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23165 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23166 shlibpath_var=LD_LIBRARY_PATH
23167 shlibpath_overrides_runpath=yes
23168 if test "$with_gnu_ld" = yes; then
23169 need_lib_prefix=no
23170 fi
23171 need_version=yes
23172 ;;
23173
Reid Spencera773bd52006-08-04 18:18:08 +000023174sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023175 version_type=linux
23176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23177 soname_spec='${libname}${release}${shared_ext}$major'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 case $host_vendor in
23180 sni)
23181 shlibpath_overrides_runpath=no
23182 need_lib_prefix=no
23183 export_dynamic_flag_spec='${wl}-Blargedynsym'
23184 runpath_var=LD_RUN_PATH
23185 ;;
23186 siemens)
23187 need_lib_prefix=no
23188 ;;
23189 motorola)
23190 need_lib_prefix=no
23191 need_version=no
23192 shlibpath_overrides_runpath=no
23193 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23194 ;;
23195 esac
23196 ;;
23197
23198sysv4*MP*)
23199 if test -d /usr/nec ;then
23200 version_type=linux
23201 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23202 soname_spec='$libname${shared_ext}.$major'
23203 shlibpath_var=LD_LIBRARY_PATH
23204 fi
23205 ;;
23206
Reid Spencera773bd52006-08-04 18:18:08 +000023207sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23208 version_type=freebsd-elf
23209 need_lib_prefix=no
23210 need_version=no
23211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23212 soname_spec='${libname}${release}${shared_ext}$major'
23213 shlibpath_var=LD_LIBRARY_PATH
23214 hardcode_into_libs=yes
23215 if test "$with_gnu_ld" = yes; then
23216 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23217 shlibpath_overrides_runpath=no
23218 else
23219 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23220 shlibpath_overrides_runpath=yes
23221 case $host_os in
23222 sco3.2v5*)
23223 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23224 ;;
23225 esac
23226 fi
23227 sys_lib_dlsearch_path_spec='/usr/lib'
23228 ;;
23229
John Criswell47fdd832003-07-14 16:52:07 +000023230uts4*)
23231 version_type=linux
23232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23233 soname_spec='${libname}${release}${shared_ext}$major'
23234 shlibpath_var=LD_LIBRARY_PATH
23235 ;;
23236
23237*)
23238 dynamic_linker=no
23239 ;;
23240esac
Reid Spencera773bd52006-08-04 18:18:08 +000023241{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23242echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023243test "$dynamic_linker" = no && can_build_shared=no
23244
Reid Spencera773bd52006-08-04 18:18:08 +000023245variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23246if test "$GCC" = yes; then
23247 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23248fi
23249
23250{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23251echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023252hardcode_action_F77=
23253if test -n "$hardcode_libdir_flag_spec_F77" || \
23254 test -n "$runpath_var_F77" || \
23255 test "X$hardcode_automatic_F77" = "Xyes" ; then
23256
23257 # We can hardcode non-existant directories.
23258 if test "$hardcode_direct_F77" != no &&
23259 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23260 # have to relink, otherwise we might link with an installed library
23261 # when we should be linking with a yet-to-be-installed one
23262 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23263 test "$hardcode_minus_L_F77" != no; then
23264 # Linking always hardcodes the temporary library directory.
23265 hardcode_action_F77=relink
23266 else
23267 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23268 hardcode_action_F77=immediate
23269 fi
23270else
23271 # We cannot hardcode anything, or else we can only hardcode existing
23272 # directories.
23273 hardcode_action_F77=unsupported
23274fi
Reid Spencera773bd52006-08-04 18:18:08 +000023275{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23276echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023277
23278if test "$hardcode_action_F77" = relink; then
23279 # Fast installation is not supported
23280 enable_fast_install=no
23281elif test "$shlibpath_overrides_runpath" = yes ||
23282 test "$enable_shared" = no; then
23283 # Fast installation is not necessary
23284 enable_fast_install=needless
23285fi
23286
John Criswell47fdd832003-07-14 16:52:07 +000023287
23288# The else clause should only fire when bootstrapping the
23289# libtool distribution, otherwise you forgot to ship ltmain.sh
23290# with your package, and you will get complaints that there are
23291# no rules to generate ltmain.sh.
23292if test -f "$ltmain"; then
23293 # See if we are running on zsh, and set the options which allow our commands through
23294 # without removal of \ escapes.
23295 if test -n "${ZSH_VERSION+set}" ; then
23296 setopt NO_GLOB_SUBST
23297 fi
23298 # Now quote all the things that may contain metacharacters while being
23299 # careful not to overquote the AC_SUBSTed values. We take copies of the
23300 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023301 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 +000023302 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23305 deplibs_check_method reload_flag reload_cmds need_locks \
23306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23307 lt_cv_sys_global_symbol_to_c_name_address \
23308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23309 old_postinstall_cmds old_postuninstall_cmds \
23310 compiler_F77 \
23311 CC_F77 \
23312 LD_F77 \
23313 lt_prog_compiler_wl_F77 \
23314 lt_prog_compiler_pic_F77 \
23315 lt_prog_compiler_static_F77 \
23316 lt_prog_compiler_no_builtin_flag_F77 \
23317 export_dynamic_flag_spec_F77 \
23318 thread_safe_flag_spec_F77 \
23319 whole_archive_flag_spec_F77 \
23320 enable_shared_with_static_runtimes_F77 \
23321 old_archive_cmds_F77 \
23322 old_archive_from_new_cmds_F77 \
23323 predep_objects_F77 \
23324 postdep_objects_F77 \
23325 predeps_F77 \
23326 postdeps_F77 \
23327 compiler_lib_search_path_F77 \
23328 archive_cmds_F77 \
23329 archive_expsym_cmds_F77 \
23330 postinstall_cmds_F77 \
23331 postuninstall_cmds_F77 \
23332 old_archive_from_expsyms_cmds_F77 \
23333 allow_undefined_flag_F77 \
23334 no_undefined_flag_F77 \
23335 export_symbols_cmds_F77 \
23336 hardcode_libdir_flag_spec_F77 \
23337 hardcode_libdir_flag_spec_ld_F77 \
23338 hardcode_libdir_separator_F77 \
23339 hardcode_automatic_F77 \
23340 module_cmds_F77 \
23341 module_expsym_cmds_F77 \
23342 lt_cv_prog_compiler_c_o_F77 \
23343 exclude_expsyms_F77 \
23344 include_expsyms_F77; do
23345
23346 case $var in
23347 old_archive_cmds_F77 | \
23348 old_archive_from_new_cmds_F77 | \
23349 archive_cmds_F77 | \
23350 archive_expsym_cmds_F77 | \
23351 module_cmds_F77 | \
23352 module_expsym_cmds_F77 | \
23353 old_archive_from_expsyms_cmds_F77 | \
23354 export_symbols_cmds_F77 | \
23355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23356 postinstall_cmds | postuninstall_cmds | \
23357 old_postinstall_cmds | old_postuninstall_cmds | \
23358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23359 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023360 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 +000023361 ;;
23362 *)
23363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23364 ;;
23365 esac
23366 done
23367
23368 case $lt_echo in
23369 *'\$0 --fallback-echo"')
23370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23371 ;;
23372 esac
23373
23374cfgfile="$ofile"
23375
23376 cat <<__EOF__ >> "$cfgfile"
23377# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23378
23379# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23380
23381# Shell to use when invoking shell scripts.
23382SHELL=$lt_SHELL
23383
23384# Whether or not to build shared libraries.
23385build_libtool_libs=$enable_shared
23386
23387# Whether or not to build static libraries.
23388build_old_libs=$enable_static
23389
23390# Whether or not to add -lc for building shared libraries.
23391build_libtool_need_lc=$archive_cmds_need_lc_F77
23392
23393# Whether or not to disallow shared libs when runtime libs are static
23394allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23395
23396# Whether or not to optimize for fast installation.
23397fast_install=$enable_fast_install
23398
23399# The host system.
23400host_alias=$host_alias
23401host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023402host_os=$host_os
23403
23404# The build system.
23405build_alias=$build_alias
23406build=$build
23407build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023408
23409# An echo program that does not interpret backslashes.
23410echo=$lt_echo
23411
23412# The archiver.
23413AR=$lt_AR
23414AR_FLAGS=$lt_AR_FLAGS
23415
23416# A C compiler.
23417LTCC=$lt_LTCC
23418
Reid Spencera773bd52006-08-04 18:18:08 +000023419# LTCC compiler flags.
23420LTCFLAGS=$lt_LTCFLAGS
23421
John Criswell47fdd832003-07-14 16:52:07 +000023422# A language-specific compiler.
23423CC=$lt_compiler_F77
23424
23425# Is the compiler the GNU C compiler?
23426with_gcc=$GCC_F77
23427
23428# An ERE matcher.
23429EGREP=$lt_EGREP
23430
23431# The linker used to build libraries.
23432LD=$lt_LD_F77
23433
23434# Whether we need hard or soft links.
23435LN_S=$lt_LN_S
23436
23437# A BSD-compatible nm program.
23438NM=$lt_NM
23439
23440# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023441STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023442
23443# Used to examine libraries when file_magic_cmd begins "file"
23444MAGIC_CMD=$MAGIC_CMD
23445
23446# Used on cygwin: DLL creation program.
23447DLLTOOL="$DLLTOOL"
23448
23449# Used on cygwin: object dumper.
23450OBJDUMP="$OBJDUMP"
23451
23452# Used on cygwin: assembler.
23453AS="$AS"
23454
23455# The name of the directory that contains temporary libtool files.
23456objdir=$objdir
23457
23458# How to create reloadable object files.
23459reload_flag=$lt_reload_flag
23460reload_cmds=$lt_reload_cmds
23461
23462# How to pass a linker flag through the compiler.
23463wl=$lt_lt_prog_compiler_wl_F77
23464
23465# Object file suffix (normally "o").
23466objext="$ac_objext"
23467
23468# Old archive suffix (normally "a").
23469libext="$libext"
23470
23471# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023472shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023473
23474# Executable file suffix (normally "").
23475exeext="$exeext"
23476
23477# Additional compiler flags for building library objects.
23478pic_flag=$lt_lt_prog_compiler_pic_F77
23479pic_mode=$pic_mode
23480
23481# What is the maximum length of a command?
23482max_cmd_len=$lt_cv_sys_max_cmd_len
23483
23484# Does compiler simultaneously support -c and -o options?
23485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23486
Reid Spencera773bd52006-08-04 18:18:08 +000023487# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023488need_locks=$lt_need_locks
23489
23490# Do we need the lib prefix for modules?
23491need_lib_prefix=$need_lib_prefix
23492
23493# Do we need a version for libraries?
23494need_version=$need_version
23495
23496# Whether dlopen is supported.
23497dlopen_support=$enable_dlopen
23498
23499# Whether dlopen of programs is supported.
23500dlopen_self=$enable_dlopen_self
23501
23502# Whether dlopen of statically linked programs is supported.
23503dlopen_self_static=$enable_dlopen_self_static
23504
23505# Compiler flag to prevent dynamic linking.
23506link_static_flag=$lt_lt_prog_compiler_static_F77
23507
23508# Compiler flag to turn off builtin functions.
23509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23510
23511# Compiler flag to allow reflexive dlopens.
23512export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23513
23514# Compiler flag to generate shared objects directly from archives.
23515whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23516
23517# Compiler flag to generate thread-safe objects.
23518thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23519
23520# Library versioning type.
23521version_type=$version_type
23522
23523# Format of library name prefix.
23524libname_spec=$lt_libname_spec
23525
23526# List of archive names. First name is the real one, the rest are links.
23527# The last name is the one that the linker finds with -lNAME.
23528library_names_spec=$lt_library_names_spec
23529
23530# The coded name of the library, if different from the real name.
23531soname_spec=$lt_soname_spec
23532
23533# Commands used to build and install an old-style archive.
23534RANLIB=$lt_RANLIB
23535old_archive_cmds=$lt_old_archive_cmds_F77
23536old_postinstall_cmds=$lt_old_postinstall_cmds
23537old_postuninstall_cmds=$lt_old_postuninstall_cmds
23538
23539# Create an old-style archive from a shared archive.
23540old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23541
23542# Create a temporary old-style archive to link instead of a shared archive.
23543old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23544
23545# Commands used to build and install a shared archive.
23546archive_cmds=$lt_archive_cmds_F77
23547archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23548postinstall_cmds=$lt_postinstall_cmds
23549postuninstall_cmds=$lt_postuninstall_cmds
23550
23551# Commands used to build a loadable module (assumed same as above if empty)
23552module_cmds=$lt_module_cmds_F77
23553module_expsym_cmds=$lt_module_expsym_cmds_F77
23554
23555# Commands to strip libraries.
23556old_striplib=$lt_old_striplib
23557striplib=$lt_striplib
23558
23559# Dependencies to place before the objects being linked to create a
23560# shared library.
23561predep_objects=$lt_predep_objects_F77
23562
23563# Dependencies to place after the objects being linked to create a
23564# shared library.
23565postdep_objects=$lt_postdep_objects_F77
23566
23567# Dependencies to place before the objects being linked to create a
23568# shared library.
23569predeps=$lt_predeps_F77
23570
23571# Dependencies to place after the objects being linked to create a
23572# shared library.
23573postdeps=$lt_postdeps_F77
23574
23575# The library search path used internally by the compiler when linking
23576# a shared library.
23577compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23578
23579# Method to check whether dependent libraries are shared objects.
23580deplibs_check_method=$lt_deplibs_check_method
23581
23582# Command to use when deplibs_check_method == file_magic.
23583file_magic_cmd=$lt_file_magic_cmd
23584
23585# Flag that allows shared libraries with undefined symbols to be built.
23586allow_undefined_flag=$lt_allow_undefined_flag_F77
23587
23588# Flag that forces no undefined symbols.
23589no_undefined_flag=$lt_no_undefined_flag_F77
23590
23591# Commands used to finish a libtool library installation in a directory.
23592finish_cmds=$lt_finish_cmds
23593
23594# Same as above, but a single script fragment to be evaled but not shown.
23595finish_eval=$lt_finish_eval
23596
23597# Take the output of nm and produce a listing of raw symbols and C names.
23598global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23599
23600# Transform the output of nm in a proper C declaration
23601global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23602
23603# Transform the output of nm in a C name address pair
23604global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23605
23606# This is the shared library runtime path variable.
23607runpath_var=$runpath_var
23608
23609# This is the shared library path variable.
23610shlibpath_var=$shlibpath_var
23611
23612# Is shlibpath searched before the hard-coded library search path?
23613shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23614
23615# How to hardcode a shared library path into an executable.
23616hardcode_action=$hardcode_action_F77
23617
23618# Whether we should hardcode library paths into libraries.
23619hardcode_into_libs=$hardcode_into_libs
23620
23621# Flag to hardcode \$libdir into a binary during linking.
23622# This must work even if \$libdir does not exist.
23623hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23624
23625# If ld is used when linking, flag to hardcode \$libdir into
23626# a binary during linking. This must work even if \$libdir does
23627# not exist.
23628hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23629
23630# Whether we need a single -rpath flag with a separated argument.
23631hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23632
23633# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23634# resulting binary.
23635hardcode_direct=$hardcode_direct_F77
23636
23637# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23638# resulting binary.
23639hardcode_minus_L=$hardcode_minus_L_F77
23640
23641# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23642# the resulting binary.
23643hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23644
23645# Set to yes if building a shared library automatically hardcodes DIR into the library
23646# and all subsequent libraries and executables linked against it.
23647hardcode_automatic=$hardcode_automatic_F77
23648
23649# Variables whose values should be saved in libtool wrapper scripts and
23650# restored at relink time.
23651variables_saved_for_relink="$variables_saved_for_relink"
23652
23653# Whether libtool must link a program against all its dependency libraries.
23654link_all_deplibs=$link_all_deplibs_F77
23655
23656# Compile-time system search path for libraries
23657sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23658
23659# Run-time system search path for libraries
23660sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23661
23662# Fix the shell variable \$srcfile for the compiler.
23663fix_srcfile_path="$fix_srcfile_path_F77"
23664
23665# Set to yes if exported symbols are required.
23666always_export_symbols=$always_export_symbols_F77
23667
23668# The commands to list exported symbols.
23669export_symbols_cmds=$lt_export_symbols_cmds_F77
23670
23671# The commands to extract the exported symbol list from a shared archive.
23672extract_expsyms_cmds=$lt_extract_expsyms_cmds
23673
23674# Symbols that should not be listed in the preloaded symbols.
23675exclude_expsyms=$lt_exclude_expsyms_F77
23676
23677# Symbols that must always be exported.
23678include_expsyms=$lt_include_expsyms_F77
23679
23680# ### END LIBTOOL TAG CONFIG: $tagname
23681
23682__EOF__
23683
23684
23685else
23686 # If there is no Makefile yet, we rely on a make rule to execute
23687 # `config.status --recheck' to rerun these tests and create the
23688 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023689 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23690 if test -f "$ltmain_in"; then
23691 test -f Makefile && make "$ltmain"
23692 fi
John Criswell47fdd832003-07-14 16:52:07 +000023693fi
23694
23695
23696ac_ext=c
23697ac_cpp='$CPP $CPPFLAGS'
23698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23700ac_compiler_gnu=$ac_cv_c_compiler_gnu
23701
23702CC="$lt_save_CC"
23703
23704 else
23705 tagname=""
23706 fi
23707 ;;
23708
23709 GCJ)
23710 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023711 ac_ext=c
23712ac_cpp='$CPP $CPPFLAGS'
23713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23715ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023716
23717
23718# Source file extension for Java test sources.
23719ac_ext=java
23720
23721# Object file extension for compiled Java test sources.
23722objext=o
23723objext_GCJ=$objext
23724
23725# Code to be used in simple compile tests
23726lt_simple_compile_test_code="class foo {}\n"
23727
23728# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023729lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023730
23731# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23732
23733# If no C compiler was specified, use CC.
23734LTCC=${LTCC-"$CC"}
23735
Reid Spencera773bd52006-08-04 18:18:08 +000023736# If no C compiler flags were specified, use CFLAGS.
23737LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23738
John Criswell47fdd832003-07-14 16:52:07 +000023739# Allow CC to be a program name with arguments.
23740compiler=$CC
23741
23742
Reid Spencera773bd52006-08-04 18:18:08 +000023743# save warnings/boilerplate of simple test code
23744ac_outfile=conftest.$ac_objext
23745printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23747_lt_compiler_boilerplate=`cat conftest.err`
23748$rm conftest*
23749
23750ac_outfile=conftest.$ac_objext
23751printf "$lt_simple_link_test_code" >conftest.$ac_ext
23752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23753_lt_linker_boilerplate=`cat conftest.err`
23754$rm conftest*
23755
23756
John Criswell47fdd832003-07-14 16:52:07 +000023757# Allow CC to be a program name with arguments.
23758lt_save_CC="$CC"
23759CC=${GCJ-"gcj"}
23760compiler=$CC
23761compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023762for cc_temp in $compiler""; do
23763 case $cc_temp in
23764 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23765 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23766 \-*) ;;
23767 *) break;;
23768 esac
23769done
23770cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23771
John Criswell47fdd832003-07-14 16:52:07 +000023772
23773# GCJ did not exist at the time GCC didn't implicitly link libc in.
23774archive_cmds_need_lc_GCJ=no
23775
Reid Spencera773bd52006-08-04 18:18:08 +000023776old_archive_cmds_GCJ=$old_archive_cmds
23777
John Criswell47fdd832003-07-14 16:52:07 +000023778
23779lt_prog_compiler_no_builtin_flag_GCJ=
23780
23781if test "$GCC" = yes; then
23782 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23783
Reid Spencer2706f8c2004-09-19 23:53:36 +000023784
Reid Spencera773bd52006-08-04 18:18:08 +000023785{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23786echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023787if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23788 echo $ECHO_N "(cached) $ECHO_C" >&6
23789else
23790 lt_cv_prog_compiler_rtti_exceptions=no
23791 ac_outfile=conftest.$ac_objext
23792 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23793 lt_compiler_flag="-fno-rtti -fno-exceptions"
23794 # Insert the option either (1) after the last *FLAGS variable, or
23795 # (2) before a word containing "conftest.", or (3) at the end.
23796 # Note that $ac_compile itself does not contain backslashes and begins
23797 # with a dollar sign (not a hyphen), so the echo should work correctly.
23798 # The option is referenced via a variable to avoid confusing sed.
23799 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23802 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000023803 (eval echo "\"\$as_me:23803: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023804 (eval "$lt_compile" 2>conftest.err)
23805 ac_status=$?
23806 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000023807 echo "$as_me:23807: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023808 if (exit $ac_status) && test -s "$ac_outfile"; then
23809 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023810 # So say no if there are warnings other than the usual output.
23811 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023814 lt_cv_prog_compiler_rtti_exceptions=yes
23815 fi
23816 fi
23817 $rm conftest*
23818
23819fi
Reid Spencera773bd52006-08-04 18:18:08 +000023820{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23821echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023822
23823if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23824 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23825else
23826 :
23827fi
23828
23829fi
23830
23831lt_prog_compiler_wl_GCJ=
23832lt_prog_compiler_pic_GCJ=
23833lt_prog_compiler_static_GCJ=
23834
Reid Spencera773bd52006-08-04 18:18:08 +000023835{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023837
23838 if test "$GCC" = yes; then
23839 lt_prog_compiler_wl_GCJ='-Wl,'
23840 lt_prog_compiler_static_GCJ='-static'
23841
23842 case $host_os in
23843 aix*)
23844 # All AIX code is PIC.
23845 if test "$host_cpu" = ia64; then
23846 # AIX 5 now supports IA64 processor
23847 lt_prog_compiler_static_GCJ='-Bstatic'
23848 fi
23849 ;;
23850
23851 amigaos*)
23852 # FIXME: we need at least 68020 code to build shared libraries, but
23853 # adding the `-m68020' flag to GCC prevents building anything better,
23854 # like `-m68040'.
23855 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23856 ;;
23857
23858 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23859 # PIC is the default for these OSes.
23860 ;;
23861
23862 mingw* | pw32* | os2*)
23863 # This hack is so that the source file can tell whether it is being
23864 # built for inclusion in a dll (and should export symbols for example).
23865 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23866 ;;
23867
23868 darwin* | rhapsody*)
23869 # PIC is the default on this platform
23870 # Common symbols not allowed in MH_DYLIB files
23871 lt_prog_compiler_pic_GCJ='-fno-common'
23872 ;;
23873
Reid Spencera773bd52006-08-04 18:18:08 +000023874 interix3*)
23875 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23876 # Instead, we relocate shared libraries at runtime.
23877 ;;
23878
John Criswell47fdd832003-07-14 16:52:07 +000023879 msdosdjgpp*)
23880 # Just because we use GCC doesn't mean we suddenly get shared libraries
23881 # on systems that don't support them.
23882 lt_prog_compiler_can_build_shared_GCJ=no
23883 enable_shared=no
23884 ;;
23885
23886 sysv4*MP*)
23887 if test -d /usr/nec; then
23888 lt_prog_compiler_pic_GCJ=-Kconform_pic
23889 fi
23890 ;;
23891
23892 hpux*)
23893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23894 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023895 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023896 hppa*64*|ia64*)
23897 # +Z the default
23898 ;;
23899 *)
23900 lt_prog_compiler_pic_GCJ='-fPIC'
23901 ;;
23902 esac
23903 ;;
23904
23905 *)
23906 lt_prog_compiler_pic_GCJ='-fPIC'
23907 ;;
23908 esac
23909 else
23910 # PORTME Check for flag to pass linker flags through the system compiler.
23911 case $host_os in
23912 aix*)
23913 lt_prog_compiler_wl_GCJ='-Wl,'
23914 if test "$host_cpu" = ia64; then
23915 # AIX 5 now supports IA64 processor
23916 lt_prog_compiler_static_GCJ='-Bstatic'
23917 else
23918 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23919 fi
23920 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023921 darwin*)
23922 # PIC is the default on this platform
23923 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023924 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023925 xlc*)
23926 lt_prog_compiler_pic_GCJ='-qnocommon'
23927 lt_prog_compiler_wl_GCJ='-Wl,'
23928 ;;
23929 esac
23930 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023931
23932 mingw* | pw32* | os2*)
23933 # This hack is so that the source file can tell whether it is being
23934 # built for inclusion in a dll (and should export symbols for example).
23935 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23936 ;;
23937
23938 hpux9* | hpux10* | hpux11*)
23939 lt_prog_compiler_wl_GCJ='-Wl,'
23940 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23941 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023942 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023943 hppa*64*|ia64*)
23944 # +Z the default
23945 ;;
23946 *)
23947 lt_prog_compiler_pic_GCJ='+Z'
23948 ;;
23949 esac
23950 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23951 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23952 ;;
23953
23954 irix5* | irix6* | nonstopux*)
23955 lt_prog_compiler_wl_GCJ='-Wl,'
23956 # PIC (with -KPIC) is the default.
23957 lt_prog_compiler_static_GCJ='-non_shared'
23958 ;;
23959
23960 newsos6)
23961 lt_prog_compiler_pic_GCJ='-KPIC'
23962 lt_prog_compiler_static_GCJ='-Bstatic'
23963 ;;
23964
23965 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023966 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023967 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023968 lt_prog_compiler_wl_GCJ='-Wl,'
23969 lt_prog_compiler_pic_GCJ='-KPIC'
23970 lt_prog_compiler_static_GCJ='-static'
23971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023972 pgcc* | pgf77* | pgf90* | pgf95*)
23973 # Portland Group compilers (*not* the Pentium gcc compiler,
23974 # which looks to be a dead project)
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 lt_prog_compiler_pic_GCJ='-fpic'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23978 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023979 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023980 lt_prog_compiler_wl_GCJ='-Wl,'
23981 # All Alpha code is PIC.
23982 lt_prog_compiler_static_GCJ='-non_shared'
23983 ;;
23984 esac
23985 ;;
23986
23987 osf3* | osf4* | osf5*)
23988 lt_prog_compiler_wl_GCJ='-Wl,'
23989 # All OSF/1 code is PIC.
23990 lt_prog_compiler_static_GCJ='-non_shared'
23991 ;;
23992
John Criswell47fdd832003-07-14 16:52:07 +000023993 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023994 lt_prog_compiler_pic_GCJ='-KPIC'
23995 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023996 case $cc_basename in
23997 f77* | f90* | f95*)
23998 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23999 *)
24000 lt_prog_compiler_wl_GCJ='-Wl,';;
24001 esac
John Criswell47fdd832003-07-14 16:52:07 +000024002 ;;
24003
24004 sunos4*)
24005 lt_prog_compiler_wl_GCJ='-Qoption ld '
24006 lt_prog_compiler_pic_GCJ='-PIC'
24007 lt_prog_compiler_static_GCJ='-Bstatic'
24008 ;;
24009
Reid Spencera773bd52006-08-04 18:18:08 +000024010 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024011 lt_prog_compiler_wl_GCJ='-Wl,'
24012 lt_prog_compiler_pic_GCJ='-KPIC'
24013 lt_prog_compiler_static_GCJ='-Bstatic'
24014 ;;
24015
24016 sysv4*MP*)
24017 if test -d /usr/nec ;then
24018 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24019 lt_prog_compiler_static_GCJ='-Bstatic'
24020 fi
24021 ;;
24022
Reid Spencera773bd52006-08-04 18:18:08 +000024023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24024 lt_prog_compiler_wl_GCJ='-Wl,'
24025 lt_prog_compiler_pic_GCJ='-KPIC'
24026 lt_prog_compiler_static_GCJ='-Bstatic'
24027 ;;
24028
24029 unicos*)
24030 lt_prog_compiler_wl_GCJ='-Wl,'
24031 lt_prog_compiler_can_build_shared_GCJ=no
24032 ;;
24033
John Criswell47fdd832003-07-14 16:52:07 +000024034 uts4*)
24035 lt_prog_compiler_pic_GCJ='-pic'
24036 lt_prog_compiler_static_GCJ='-Bstatic'
24037 ;;
24038
24039 *)
24040 lt_prog_compiler_can_build_shared_GCJ=no
24041 ;;
24042 esac
24043 fi
24044
Reid Spencera773bd52006-08-04 18:18:08 +000024045{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24046echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024047
24048#
24049# Check to make sure the PIC flag actually works.
24050#
24051if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024052
Reid Spencera773bd52006-08-04 18:18:08 +000024053{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24054echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024055if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24056 echo $ECHO_N "(cached) $ECHO_C" >&6
24057else
24058 lt_prog_compiler_pic_works_GCJ=no
24059 ac_outfile=conftest.$ac_objext
24060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24061 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24062 # Insert the option either (1) after the last *FLAGS variable, or
24063 # (2) before a word containing "conftest.", or (3) at the end.
24064 # Note that $ac_compile itself does not contain backslashes and begins
24065 # with a dollar sign (not a hyphen), so the echo should work correctly.
24066 # The option is referenced via a variable to avoid confusing sed.
24067 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24070 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000024071 (eval echo "\"\$as_me:24071: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024072 (eval "$lt_compile" 2>conftest.err)
24073 ac_status=$?
24074 cat conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000024075 echo "$as_me:24075: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024076 if (exit $ac_status) && test -s "$ac_outfile"; then
24077 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024078 # So say no if there are warnings other than the usual output.
24079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024082 lt_prog_compiler_pic_works_GCJ=yes
24083 fi
24084 fi
24085 $rm conftest*
24086
24087fi
Reid Spencera773bd52006-08-04 18:18:08 +000024088{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24089echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024090
24091if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24092 case $lt_prog_compiler_pic_GCJ in
24093 "" | " "*) ;;
24094 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24095 esac
24096else
24097 lt_prog_compiler_pic_GCJ=
24098 lt_prog_compiler_can_build_shared_GCJ=no
24099fi
24100
24101fi
Reid Spencera773bd52006-08-04 18:18:08 +000024102case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024103 # For platforms which do not support PIC, -DPIC is meaningless:
24104 *djgpp*)
24105 lt_prog_compiler_pic_GCJ=
24106 ;;
24107 *)
24108 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24109 ;;
24110esac
24111
Reid Spencera773bd52006-08-04 18:18:08 +000024112#
24113# Check to make sure the static flag actually works.
24114#
24115wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24116{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24117echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24118if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24120else
24121 lt_prog_compiler_static_works_GCJ=no
24122 save_LDFLAGS="$LDFLAGS"
24123 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24124 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24125 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24126 # The linker can only warn and ignore the option if not recognized
24127 # So say no if there are warnings
24128 if test -s conftest.err; then
24129 # Append any errors to the config.log.
24130 cat conftest.err 1>&5
24131 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24133 if diff conftest.exp conftest.er2 >/dev/null; then
24134 lt_prog_compiler_static_works_GCJ=yes
24135 fi
24136 else
24137 lt_prog_compiler_static_works_GCJ=yes
24138 fi
24139 fi
24140 $rm conftest*
24141 LDFLAGS="$save_LDFLAGS"
24142
24143fi
24144{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24145echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24146
24147if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24148 :
24149else
24150 lt_prog_compiler_static_GCJ=
24151fi
24152
24153
24154{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24155echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024156if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24157 echo $ECHO_N "(cached) $ECHO_C" >&6
24158else
24159 lt_cv_prog_compiler_c_o_GCJ=no
24160 $rm -r conftest 2>/dev/null
24161 mkdir conftest
24162 cd conftest
24163 mkdir out
24164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24165
John Criswell47fdd832003-07-14 16:52:07 +000024166 lt_compiler_flag="-o out/conftest2.$ac_objext"
24167 # Insert the option either (1) after the last *FLAGS variable, or
24168 # (2) before a word containing "conftest.", or (3) at the end.
24169 # Note that $ac_compile itself does not contain backslashes and begins
24170 # with a dollar sign (not a hyphen), so the echo should work correctly.
24171 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24174 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckyfb138812009-03-12 03:34:33 +000024175 (eval echo "\"\$as_me:24175: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024176 (eval "$lt_compile" 2>out/conftest.err)
24177 ac_status=$?
24178 cat out/conftest.err >&5
Nick Lewyckyfb138812009-03-12 03:34:33 +000024179 echo "$as_me:24179: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024180 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24181 then
24182 # The compiler can only warn and ignore the option if not recognized
24183 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024184 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24185 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24186 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024187 lt_cv_prog_compiler_c_o_GCJ=yes
24188 fi
24189 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024190 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024191 $rm conftest*
24192 # SGI C++ compiler will create directory out/ii_files/ for
24193 # template instantiation
24194 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24195 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024196 cd ..
24197 rmdir conftest
24198 $rm conftest*
24199
24200fi
Reid Spencera773bd52006-08-04 18:18:08 +000024201{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24202echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024203
24204
24205hard_links="nottested"
24206if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24207 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024208 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24209echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024210 hard_links=yes
24211 $rm conftest*
24212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24213 touch conftest.a
24214 ln conftest.a conftest.b 2>&5 || hard_links=no
24215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024216 { echo "$as_me:$LINENO: result: $hard_links" >&5
24217echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024218 if test "$hard_links" = no; then
24219 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24220echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24221 need_locks=warn
24222 fi
24223else
24224 need_locks=no
24225fi
24226
Reid Spencera773bd52006-08-04 18:18:08 +000024227{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24228echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024229
24230 runpath_var=
24231 allow_undefined_flag_GCJ=
24232 enable_shared_with_static_runtimes_GCJ=no
24233 archive_cmds_GCJ=
24234 archive_expsym_cmds_GCJ=
24235 old_archive_From_new_cmds_GCJ=
24236 old_archive_from_expsyms_cmds_GCJ=
24237 export_dynamic_flag_spec_GCJ=
24238 whole_archive_flag_spec_GCJ=
24239 thread_safe_flag_spec_GCJ=
24240 hardcode_libdir_flag_spec_GCJ=
24241 hardcode_libdir_flag_spec_ld_GCJ=
24242 hardcode_libdir_separator_GCJ=
24243 hardcode_direct_GCJ=no
24244 hardcode_minus_L_GCJ=no
24245 hardcode_shlibpath_var_GCJ=unsupported
24246 link_all_deplibs_GCJ=unknown
24247 hardcode_automatic_GCJ=no
24248 module_cmds_GCJ=
24249 module_expsym_cmds_GCJ=
24250 always_export_symbols_GCJ=no
24251 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24252 # include_expsyms should be a list of space-separated symbols to be *always*
24253 # included in the symbol list
24254 include_expsyms_GCJ=
24255 # exclude_expsyms can be an extended regexp of symbols to exclude
24256 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24257 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24258 # as well as any symbol that contains `d'.
24259 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24260 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24261 # platforms (ab)use it in PIC code, but their linkers get confused if
24262 # the symbol is explicitly referenced. Since portable code cannot
24263 # rely on this symbol name, it's probably fine to never include it in
24264 # preloaded symbol tables.
24265 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024266 # Just being paranoid about ensuring that cc_basename is set.
24267 for cc_temp in $compiler""; do
24268 case $cc_temp in
24269 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24270 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24271 \-*) ;;
24272 *) break;;
24273 esac
24274done
24275cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024276
24277 case $host_os in
24278 cygwin* | mingw* | pw32*)
24279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24280 # When not using gcc, we currently assume that we are using
24281 # Microsoft Visual C++.
24282 if test "$GCC" != yes; then
24283 with_gnu_ld=no
24284 fi
24285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024286 interix*)
24287 # we just hope/assume this is gcc and not c89 (= MSVC++)
24288 with_gnu_ld=yes
24289 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024290 openbsd*)
24291 with_gnu_ld=no
24292 ;;
24293 esac
24294
24295 ld_shlibs_GCJ=yes
24296 if test "$with_gnu_ld" = yes; then
24297 # If archive_cmds runs LD, not CC, wlarc should be empty
24298 wlarc='${wl}'
24299
Reid Spencera773bd52006-08-04 18:18:08 +000024300 # Set some defaults for GNU ld with shared library support. These
24301 # are reset later if shared libraries are not supported. Putting them
24302 # here allows them to be overridden if necessary.
24303 runpath_var=LD_RUN_PATH
24304 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24305 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24306 # ancient GNU ld didn't support --whole-archive et. al.
24307 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24308 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24309 else
24310 whole_archive_flag_spec_GCJ=
24311 fi
24312 supports_anon_versioning=no
24313 case `$LD -v 2>/dev/null` in
24314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24317 *\ 2.11.*) ;; # other 2.11 versions
24318 *) supports_anon_versioning=yes ;;
24319 esac
24320
John Criswell47fdd832003-07-14 16:52:07 +000024321 # See if GNU ld supports shared libraries.
24322 case $host_os in
24323 aix3* | aix4* | aix5*)
24324 # On AIX/PPC, the GNU linker is very broken
24325 if test "$host_cpu" != ia64; then
24326 ld_shlibs_GCJ=no
24327 cat <<EOF 1>&2
24328
24329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24330*** to be unable to reliably create shared libraries on AIX.
24331*** Therefore, libtool is disabling shared libraries support. If you
24332*** really care for shared libraries, you may want to modify your PATH
24333*** so that a non-GNU linker is found, and then restart.
24334
24335EOF
24336 fi
24337 ;;
24338
24339 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024340 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 +000024341 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24342 hardcode_minus_L_GCJ=yes
24343
24344 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24345 # that the semantics of dynamic libraries on AmigaOS, at least up
24346 # to version 4, is to share data among multiple programs linked
24347 # with the same dynamic library. Since this doesn't match the
24348 # behavior of shared libraries on other platforms, we can't use
24349 # them.
24350 ld_shlibs_GCJ=no
24351 ;;
24352
24353 beos*)
24354 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24355 allow_undefined_flag_GCJ=unsupported
24356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24357 # support --undefined. This deserves some investigation. FIXME
24358 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24359 else
24360 ld_shlibs_GCJ=no
24361 fi
24362 ;;
24363
24364 cygwin* | mingw* | pw32*)
24365 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24366 # as there is no search path for DLLs.
24367 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24368 allow_undefined_flag_GCJ=unsupported
24369 always_export_symbols_GCJ=no
24370 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024371 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 +000024372
24373 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024374 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 +000024375 # If the export-symbols file already is a .def file (1st line
24376 # is EXPORTS), use it as is; otherwise, prepend...
24377 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24378 cp $export_symbols $output_objdir/$soname.def;
24379 else
24380 echo EXPORTS > $output_objdir/$soname.def;
24381 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024382 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024383 $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 +000024384 else
Reid Spencera773bd52006-08-04 18:18:08 +000024385 ld_shlibs_GCJ=no
24386 fi
24387 ;;
24388
24389 interix3*)
24390 hardcode_direct_GCJ=no
24391 hardcode_shlibpath_var_GCJ=no
24392 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24393 export_dynamic_flag_spec_GCJ='${wl}-E'
24394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24395 # Instead, shared libraries are loaded at an image base (0x10000000 by
24396 # default) and relocated if they conflict, which is a slow very memory
24397 # consuming and fragmenting process. To avoid this, we pick a random,
24398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24400 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'
24401 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'
24402 ;;
24403
24404 linux*)
24405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24406 tmp_addflag=
24407 case $cc_basename,$host_cpu in
24408 pgcc*) # Portland Group C compiler
24409 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'
24410 tmp_addflag=' $pic_flag'
24411 ;;
24412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24413 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'
24414 tmp_addflag=' $pic_flag -Mnomain' ;;
24415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24416 tmp_addflag=' -i_dynamic' ;;
24417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24418 tmp_addflag=' -i_dynamic -nofor_main' ;;
24419 ifc* | ifort*) # Intel Fortran compiler
24420 tmp_addflag=' -nofor_main' ;;
24421 esac
24422 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24423
24424 if test $supports_anon_versioning = yes; then
24425 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24426 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24427 $echo "local: *; };" >> $output_objdir/$libname.ver~
24428 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24429 fi
24430 else
24431 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024432 fi
24433 ;;
24434
24435 netbsd*)
24436 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24437 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24438 wlarc=
24439 else
24440 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24441 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24442 fi
24443 ;;
24444
Reid Spencera773bd52006-08-04 18:18:08 +000024445 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024446 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24447 ld_shlibs_GCJ=no
24448 cat <<EOF 1>&2
24449
24450*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24451*** create shared libraries on Solaris systems. Therefore, libtool
24452*** is disabling shared libraries support. We urge you to upgrade GNU
24453*** binutils to release 2.9.1 or newer. Another option is to modify
24454*** your PATH or compiler configuration so that the native linker is
24455*** used, and then restart.
24456
24457EOF
24458 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24460 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24461 else
24462 ld_shlibs_GCJ=no
24463 fi
24464 ;;
24465
Reid Spencera773bd52006-08-04 18:18:08 +000024466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24467 case `$LD -v 2>&1` in
24468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24469 ld_shlibs_GCJ=no
24470 cat <<_LT_EOF 1>&2
24471
24472*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24473*** reliably create shared libraries on SCO systems. Therefore, libtool
24474*** is disabling shared libraries support. We urge you to upgrade GNU
24475*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24476*** your PATH or compiler configuration so that the native linker is
24477*** used, and then restart.
24478
24479_LT_EOF
24480 ;;
24481 *)
24482 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24483 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24484 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24485 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24486 else
24487 ld_shlibs_GCJ=no
24488 fi
24489 ;;
24490 esac
24491 ;;
24492
John Criswell47fdd832003-07-14 16:52:07 +000024493 sunos4*)
24494 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24495 wlarc=
24496 hardcode_direct_GCJ=yes
24497 hardcode_shlibpath_var_GCJ=no
24498 ;;
24499
24500 *)
24501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24502 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24503 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24504 else
24505 ld_shlibs_GCJ=no
24506 fi
24507 ;;
24508 esac
24509
Reid Spencera773bd52006-08-04 18:18:08 +000024510 if test "$ld_shlibs_GCJ" = no; then
24511 runpath_var=
24512 hardcode_libdir_flag_spec_GCJ=
24513 export_dynamic_flag_spec_GCJ=
24514 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024515 fi
24516 else
24517 # PORTME fill in a description of your system's linker (not GNU ld)
24518 case $host_os in
24519 aix3*)
24520 allow_undefined_flag_GCJ=unsupported
24521 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024522 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 +000024523 # Note: this linker hardcodes the directories in LIBPATH if there
24524 # are no directories specified by -L.
24525 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024526 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024527 # Neither direct hardcoding nor static linking is supported with a
24528 # broken collect2.
24529 hardcode_direct_GCJ=unsupported
24530 fi
24531 ;;
24532
24533 aix4* | aix5*)
24534 if test "$host_cpu" = ia64; then
24535 # On IA64, the linker does run time linking by default, so we don't
24536 # have to do anything special.
24537 aix_use_runtimelinking=no
24538 exp_sym_flag='-Bexport'
24539 no_entry_flag=""
24540 else
24541 # If we're using GNU nm, then we don't want the "-C" option.
24542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24544 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'
24545 else
24546 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'
24547 fi
24548 aix_use_runtimelinking=no
24549
24550 # Test if we are trying to use run time linking or normal
24551 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24552 # need to do runtime linking.
24553 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24554 for ld_flag in $LDFLAGS; do
24555 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24556 aix_use_runtimelinking=yes
24557 break
24558 fi
24559 done
Reid Spencera773bd52006-08-04 18:18:08 +000024560 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024561 esac
24562
24563 exp_sym_flag='-bexport'
24564 no_entry_flag='-bnoentry'
24565 fi
24566
24567 # When large executables or shared objects are built, AIX ld can
24568 # have problems creating the table of contents. If linking a library
24569 # or program results in "error TOC overflow" add -mminimal-toc to
24570 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24571 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24572
24573 archive_cmds_GCJ=''
24574 hardcode_direct_GCJ=yes
24575 hardcode_libdir_separator_GCJ=':'
24576 link_all_deplibs_GCJ=yes
24577
24578 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024579 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024580 # We only want to do this on AIX 4.2 and lower, the check
24581 # below for broken collect2 doesn't work under 4.3+
24582 collect2name=`${CC} -print-prog-name=collect2`
24583 if test -f "$collect2name" && \
24584 strings "$collect2name" | grep resolve_lib_name >/dev/null
24585 then
24586 # We have reworked collect2
24587 hardcode_direct_GCJ=yes
24588 else
24589 # We have old collect2
24590 hardcode_direct_GCJ=unsupported
24591 # It fails to find uninstalled libraries when the uninstalled
24592 # path is not listed in the libpath. Setting hardcode_minus_L
24593 # to unsupported forces relinking
24594 hardcode_minus_L_GCJ=yes
24595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24596 hardcode_libdir_separator_GCJ=
24597 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024599 esac
24600 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024601 if test "$aix_use_runtimelinking" = yes; then
24602 shared_flag="$shared_flag "'${wl}-G'
24603 fi
John Criswell47fdd832003-07-14 16:52:07 +000024604 else
24605 # not using gcc
24606 if test "$host_cpu" = ia64; then
24607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24608 # chokes on -Wl,-G. The following line is correct:
24609 shared_flag='-G'
24610 else
Reid Spencera773bd52006-08-04 18:18:08 +000024611 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024612 shared_flag='${wl}-G'
24613 else
24614 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024615 fi
John Criswell47fdd832003-07-14 16:52:07 +000024616 fi
24617 fi
24618
24619 # It seems that -bexpall does not export symbols beginning with
24620 # underscore (_), so it is better to generate a list of symbols to export.
24621 always_export_symbols_GCJ=yes
24622 if test "$aix_use_runtimelinking" = yes; then
24623 # Warning - without using the other runtime loading flags (-brtl),
24624 # -berok will link without error, but may produce a broken library.
24625 allow_undefined_flag_GCJ='-berok'
24626 # Determine the default libpath from the value encoded in an empty executable.
24627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024628/* confdefs.h. */
24629_ACEOF
24630cat confdefs.h >>conftest.$ac_ext
24631cat >>conftest.$ac_ext <<_ACEOF
24632/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024633
John Criswell47fdd832003-07-14 16:52:07 +000024634int
24635main ()
24636{
24637
24638 ;
24639 return 0;
24640}
24641_ACEOF
24642rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024643if { (ac_try="$ac_link"
24644case "(($ac_try" in
24645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24646 *) ac_try_echo=$ac_try;;
24647esac
24648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24649 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024651 grep -v '^ *+' conftest.er1 >conftest.err
24652 rm -f conftest.er1
24653 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024655 (exit $ac_status); } &&
24656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24657 { (case "(($ac_try" in
24658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24659 *) ac_try_echo=$ac_try;;
24660esac
24661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24662 (eval "$ac_try") 2>&5
24663 ac_status=$?
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); }; } &&
24666 { ac_try='test -s conftest$ac_exeext'
24667 { (case "(($ac_try" in
24668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24669 *) ac_try_echo=$ac_try;;
24670esac
24671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24672 (eval "$ac_try") 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024676
24677aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24678}'`
24679# Check for a 64-bit object if we didn't find anything.
24680if 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; }
24681}'`; fi
24682else
24683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024684sed 's/^/| /' conftest.$ac_ext >&5
24685
Reid Spencera773bd52006-08-04 18:18:08 +000024686
John Criswell47fdd832003-07-14 16:52:07 +000024687fi
Reid Spencera773bd52006-08-04 18:18:08 +000024688
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024689rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024690 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024691if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24692
24693 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024694 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 +000024695 else
24696 if test "$host_cpu" = ia64; then
24697 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24698 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024699 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 +000024700 else
24701 # Determine the default libpath from the value encoded in an empty executable.
24702 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024708
John Criswell47fdd832003-07-14 16:52:07 +000024709int
24710main ()
24711{
24712
24713 ;
24714 return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024718if { (ac_try="$ac_link"
24719case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24722esac
24723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024725 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024726 grep -v '^ *+' conftest.er1 >conftest.err
24727 rm -f conftest.er1
24728 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024730 (exit $ac_status); } &&
24731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24732 { (case "(($ac_try" in
24733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24734 *) ac_try_echo=$ac_try;;
24735esac
24736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24737 (eval "$ac_try") 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; } &&
24741 { ac_try='test -s conftest$ac_exeext'
24742 { (case "(($ac_try" in
24743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24744 *) ac_try_echo=$ac_try;;
24745esac
24746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24747 (eval "$ac_try") 2>&5
24748 ac_status=$?
24749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024751
24752aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24753}'`
24754# Check for a 64-bit object if we didn't find anything.
24755if 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; }
24756}'`; fi
24757else
24758 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024759sed 's/^/| /' conftest.$ac_ext >&5
24760
Reid Spencera773bd52006-08-04 18:18:08 +000024761
John Criswell47fdd832003-07-14 16:52:07 +000024762fi
Reid Spencera773bd52006-08-04 18:18:08 +000024763
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024764rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024765 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24767
24768 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24769 # Warning - without using the other run time loading flags,
24770 # -berok will link without error, but may produce a broken library.
24771 no_undefined_flag_GCJ=' ${wl}-bernotok'
24772 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024773 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024774 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024775 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024776 # This is similar to how AIX traditionally builds its shared libraries.
24777 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 +000024778 fi
24779 fi
24780 ;;
24781
24782 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024783 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 +000024784 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24785 hardcode_minus_L_GCJ=yes
24786 # see comment about different semantics on the GNU ld section
24787 ld_shlibs_GCJ=no
24788 ;;
24789
Reid Spencer2706f8c2004-09-19 23:53:36 +000024790 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024791 export_dynamic_flag_spec_GCJ=-rdynamic
24792 ;;
24793
24794 cygwin* | mingw* | pw32*)
24795 # When not using gcc, we currently assume that we are using
24796 # Microsoft Visual C++.
24797 # hardcode_libdir_flag_spec is actually meaningless, as there is
24798 # no search path for DLLs.
24799 hardcode_libdir_flag_spec_GCJ=' '
24800 allow_undefined_flag_GCJ=unsupported
24801 # Tell ltmain to make .lib files, not .a files.
24802 libext=lib
24803 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024804 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024805 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024806 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 +000024807 # The linker will automatically build a .lib file if we build a DLL.
24808 old_archive_From_new_cmds_GCJ='true'
24809 # FIXME: Should let the user specify the lib program.
24810 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024811 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024812 enable_shared_with_static_runtimes_GCJ=yes
24813 ;;
24814
24815 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024816 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024817 rhapsody* | darwin1.[012])
24818 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24819 ;;
24820 *) # Darwin 1.3 on
24821 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24822 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24823 else
24824 case ${MACOSX_DEPLOYMENT_TARGET} in
24825 10.[012])
24826 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24827 ;;
24828 10.*)
24829 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24830 ;;
24831 esac
24832 fi
24833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024834 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024835 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024836 hardcode_direct_GCJ=no
24837 hardcode_automatic_GCJ=yes
24838 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024839 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024840 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024841 if test "$GCC" = yes ; then
24842 output_verbose_link_cmd='echo'
24843 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24844 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024845 # 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 +000024846 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}'
24847 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 +000024848 else
Reid Spencera773bd52006-08-04 18:18:08 +000024849 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024850 xlc*)
24851 output_verbose_link_cmd='echo'
24852 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24853 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024854 # 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 +000024855 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}'
24856 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 +000024857 ;;
24858 *)
24859 ld_shlibs_GCJ=no
24860 ;;
24861 esac
John Criswell47fdd832003-07-14 16:52:07 +000024862 fi
24863 ;;
24864
24865 dgux*)
24866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24868 hardcode_shlibpath_var_GCJ=no
24869 ;;
24870
24871 freebsd1*)
24872 ld_shlibs_GCJ=no
24873 ;;
24874
24875 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24876 # support. Future versions do this automatically, but an explicit c++rt0.o
24877 # does not break anything, and helps significantly (at the cost of a little
24878 # extra space).
24879 freebsd2.2*)
24880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24881 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24882 hardcode_direct_GCJ=yes
24883 hardcode_shlibpath_var_GCJ=no
24884 ;;
24885
24886 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24887 freebsd2*)
24888 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24889 hardcode_direct_GCJ=yes
24890 hardcode_minus_L_GCJ=yes
24891 hardcode_shlibpath_var_GCJ=no
24892 ;;
24893
24894 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024895 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024896 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24897 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24898 hardcode_direct_GCJ=yes
24899 hardcode_shlibpath_var_GCJ=no
24900 ;;
24901
24902 hpux9*)
24903 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024904 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 +000024905 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024906 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 +000024907 fi
24908 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24909 hardcode_libdir_separator_GCJ=:
24910 hardcode_direct_GCJ=yes
24911
24912 # hardcode_minus_L: Not really in the search PATH,
24913 # but as the default location of the library.
24914 hardcode_minus_L_GCJ=yes
24915 export_dynamic_flag_spec_GCJ='${wl}-E'
24916 ;;
24917
Reid Spencera773bd52006-08-04 18:18:08 +000024918 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024919 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024920 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24921 else
24922 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24923 fi
24924 if test "$with_gnu_ld" = no; then
24925 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24926 hardcode_libdir_separator_GCJ=:
24927
24928 hardcode_direct_GCJ=yes
24929 export_dynamic_flag_spec_GCJ='${wl}-E'
24930
24931 # hardcode_minus_L: Not really in the search PATH,
24932 # but as the default location of the library.
24933 hardcode_minus_L_GCJ=yes
24934 fi
24935 ;;
24936
24937 hpux11*)
24938 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24939 case $host_cpu in
24940 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024941 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024943 ia64*)
24944 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024946 *)
24947 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24948 ;;
24949 esac
24950 else
Reid Spencera773bd52006-08-04 18:18:08 +000024951 case $host_cpu in
24952 hppa*64*)
24953 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24954 ;;
24955 ia64*)
24956 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024957 ;;
24958 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024959 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 +000024960 ;;
24961 esac
24962 fi
24963 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024964 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24965 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024966
Reid Spencera773bd52006-08-04 18:18:08 +000024967 case $host_cpu in
24968 hppa*64*|ia64*)
24969 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24970 hardcode_direct_GCJ=no
24971 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024972 ;;
24973 *)
John Criswell47fdd832003-07-14 16:52:07 +000024974 hardcode_direct_GCJ=yes
24975 export_dynamic_flag_spec_GCJ='${wl}-E'
24976
24977 # hardcode_minus_L: Not really in the search PATH,
24978 # but as the default location of the library.
24979 hardcode_minus_L_GCJ=yes
24980 ;;
24981 esac
24982 fi
24983 ;;
24984
24985 irix5* | irix6* | nonstopux*)
24986 if test "$GCC" = yes; then
24987 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'
24988 else
24989 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'
24990 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24991 fi
24992 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24993 hardcode_libdir_separator_GCJ=:
24994 link_all_deplibs_GCJ=yes
24995 ;;
24996
24997 netbsd*)
24998 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24999 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25000 else
25001 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25002 fi
25003 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25004 hardcode_direct_GCJ=yes
25005 hardcode_shlibpath_var_GCJ=no
25006 ;;
25007
25008 newsos6)
25009 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25010 hardcode_direct_GCJ=yes
25011 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25012 hardcode_libdir_separator_GCJ=:
25013 hardcode_shlibpath_var_GCJ=no
25014 ;;
25015
25016 openbsd*)
25017 hardcode_direct_GCJ=yes
25018 hardcode_shlibpath_var_GCJ=no
25019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25020 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025021 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 +000025022 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25023 export_dynamic_flag_spec_GCJ='${wl}-E'
25024 else
25025 case $host_os in
25026 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25027 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25028 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25029 ;;
25030 *)
25031 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25032 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25033 ;;
25034 esac
25035 fi
25036 ;;
25037
25038 os2*)
25039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25040 hardcode_minus_L_GCJ=yes
25041 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025042 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 +000025043 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25044 ;;
25045
25046 osf3*)
25047 if test "$GCC" = yes; then
25048 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25049 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'
25050 else
25051 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25052 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'
25053 fi
25054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25055 hardcode_libdir_separator_GCJ=:
25056 ;;
25057
25058 osf4* | osf5*) # as osf3* with the addition of -msym flag
25059 if test "$GCC" = yes; then
25060 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25061 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'
25062 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25063 else
25064 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25065 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 +000025066 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 +000025067 $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 +000025068
John Criswell47fdd832003-07-14 16:52:07 +000025069 # Both c and cxx compiler support -rpath directly
25070 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25071 fi
25072 hardcode_libdir_separator_GCJ=:
25073 ;;
25074
John Criswell47fdd832003-07-14 16:52:07 +000025075 solaris*)
25076 no_undefined_flag_GCJ=' -z text'
25077 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025078 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025079 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081 $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 +000025082 else
Reid Spencera773bd52006-08-04 18:18:08 +000025083 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025084 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025085 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25086 $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 +000025087 fi
25088 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25089 hardcode_shlibpath_var_GCJ=no
25090 case $host_os in
25091 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025092 *)
25093 # The compiler driver will combine linker options so we
25094 # cannot just pass the convience library names through
25095 # without $wl, iff we do not link with $LD.
25096 # Luckily, gcc supports the same syntax we need for Sun Studio.
25097 # Supported since Solaris 2.6 (maybe 2.5.1?)
25098 case $wlarc in
25099 '')
25100 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25101 *)
25102 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' ;;
25103 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025104 esac
25105 link_all_deplibs_GCJ=yes
25106 ;;
25107
25108 sunos4*)
25109 if test "x$host_vendor" = xsequent; then
25110 # Use $CC to link under sequent, because it throws in some extra .o
25111 # files that make .init and .fini sections work.
25112 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25113 else
25114 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25115 fi
25116 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25117 hardcode_direct_GCJ=yes
25118 hardcode_minus_L_GCJ=yes
25119 hardcode_shlibpath_var_GCJ=no
25120 ;;
25121
25122 sysv4)
25123 case $host_vendor in
25124 sni)
25125 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25126 hardcode_direct_GCJ=yes # is this really true???
25127 ;;
25128 siemens)
25129 ## LD is ld it makes a PLAMLIB
25130 ## CC just makes a GrossModule.
25131 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25132 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25133 hardcode_direct_GCJ=no
25134 ;;
25135 motorola)
25136 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25137 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25138 ;;
25139 esac
25140 runpath_var='LD_RUN_PATH'
25141 hardcode_shlibpath_var_GCJ=no
25142 ;;
25143
25144 sysv4.3*)
25145 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25146 hardcode_shlibpath_var_GCJ=no
25147 export_dynamic_flag_spec_GCJ='-Bexport'
25148 ;;
25149
25150 sysv4*MP*)
25151 if test -d /usr/nec; then
25152 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25153 hardcode_shlibpath_var_GCJ=no
25154 runpath_var=LD_RUN_PATH
25155 hardcode_runpath_var=yes
25156 ld_shlibs_GCJ=yes
25157 fi
25158 ;;
25159
Reid Spencera773bd52006-08-04 18:18:08 +000025160 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25161 no_undefined_flag_GCJ='${wl}-z,text'
25162 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025163 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025164 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025165
John Criswell47fdd832003-07-14 16:52:07 +000025166 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025167 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25168 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 +000025169 else
Reid Spencera773bd52006-08-04 18:18:08 +000025170 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 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 +000025172 fi
John Criswell47fdd832003-07-14 16:52:07 +000025173 ;;
25174
Reid Spencera773bd52006-08-04 18:18:08 +000025175 sysv5* | sco3.2v5* | sco5v6*)
25176 # Note: We can NOT use -z defs as we might desire, because we do not
25177 # link with -lc, and that would cause any symbols used from libc to
25178 # always be unresolved, which means just about no library would
25179 # ever link correctly. If we're not using GNU ld we use -z text
25180 # though, which does catch some bad symbols but isn't as heavy-handed
25181 # as -z defs.
25182 no_undefined_flag_GCJ='${wl}-z,text'
25183 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25184 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025185 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025186 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25187 hardcode_libdir_separator_GCJ=':'
25188 link_all_deplibs_GCJ=yes
25189 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025190 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025191
25192 if test "$GCC" = yes; then
25193 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25194 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25195 else
25196 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25197 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25198 fi
John Criswell47fdd832003-07-14 16:52:07 +000025199 ;;
25200
25201 uts4*)
25202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25204 hardcode_shlibpath_var_GCJ=no
25205 ;;
25206
25207 *)
25208 ld_shlibs_GCJ=no
25209 ;;
25210 esac
25211 fi
25212
Reid Spencera773bd52006-08-04 18:18:08 +000025213{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25214echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025215test "$ld_shlibs_GCJ" = no && can_build_shared=no
25216
John Criswell47fdd832003-07-14 16:52:07 +000025217#
25218# Do we need to explicitly link libc?
25219#
25220case "x$archive_cmds_need_lc_GCJ" in
25221x|xyes)
25222 # Assume -lc should be added
25223 archive_cmds_need_lc_GCJ=yes
25224
25225 if test "$enable_shared" = yes && test "$GCC" = yes; then
25226 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025228 # FIXME: we may have to deal with multi-command sequences.
25229 ;;
25230 '$CC '*)
25231 # Test whether the compiler implicitly links with -lc since on some
25232 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25233 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025234 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25235echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025236 $rm conftest*
25237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25238
25239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25240 (eval $ac_compile) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); } 2>conftest.err; then
25244 soname=conftest
25245 lib=conftest
25246 libobjs=conftest.$ac_objext
25247 deplibs=
25248 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025249 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025250 compiler_flags=-v
25251 linker_flags=-v
25252 verstring=
25253 output_objdir=.
25254 libname=conftest
25255 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25256 allow_undefined_flag_GCJ=
25257 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25258 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25259 ac_status=$?
25260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }
25262 then
25263 archive_cmds_need_lc_GCJ=no
25264 else
25265 archive_cmds_need_lc_GCJ=yes
25266 fi
25267 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25268 else
25269 cat conftest.err 1>&5
25270 fi
25271 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025272 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25273echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025274 ;;
25275 esac
25276 fi
25277 ;;
25278esac
25279
Reid Spencera773bd52006-08-04 18:18:08 +000025280{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25281echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025282library_names_spec=
25283libname_spec='lib$name'
25284soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025285shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025286postinstall_cmds=
25287postuninstall_cmds=
25288finish_cmds=
25289finish_eval=
25290shlibpath_var=
25291shlibpath_overrides_runpath=unknown
25292version_type=none
25293dynamic_linker="$host_os ld.so"
25294sys_lib_dlsearch_path_spec="/lib /usr/lib"
25295if test "$GCC" = yes; then
25296 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25297 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25298 # if the path contains ";" then we assume it to be the separator
25299 # otherwise default to the standard path separator (i.e. ":") - it is
25300 # assumed that no part of a normal pathname contains ";" but that should
25301 # okay in the real world where ";" in dirpaths is itself problematic.
25302 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25303 else
25304 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25305 fi
25306else
25307 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25308fi
25309need_lib_prefix=unknown
25310hardcode_into_libs=no
25311
25312# when you set need_version to no, make sure it does not cause -set_version
25313# flags to be left without arguments
25314need_version=unknown
25315
25316case $host_os in
25317aix3*)
25318 version_type=linux
25319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25320 shlibpath_var=LIBPATH
25321
25322 # AIX 3 has no versioning support, so we append a major version to the name.
25323 soname_spec='${libname}${release}${shared_ext}$major'
25324 ;;
25325
25326aix4* | aix5*)
25327 version_type=linux
25328 need_lib_prefix=no
25329 need_version=no
25330 hardcode_into_libs=yes
25331 if test "$host_cpu" = ia64; then
25332 # AIX 5 supports IA64
25333 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25334 shlibpath_var=LD_LIBRARY_PATH
25335 else
25336 # With GCC up to 2.95.x, collect2 would create an import file
25337 # for dependence libraries. The import file would start with
25338 # the line `#! .'. This would cause the generated library to
25339 # depend on `.', always an invalid library. This was fixed in
25340 # development snapshots of GCC prior to 3.0.
25341 case $host_os in
25342 aix4 | aix4.[01] | aix4.[01].*)
25343 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25344 echo ' yes '
25345 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25346 :
25347 else
25348 can_build_shared=no
25349 fi
25350 ;;
25351 esac
25352 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25353 # soname into executable. Probably we can add versioning support to
25354 # collect2, so additional links can be useful in future.
25355 if test "$aix_use_runtimelinking" = yes; then
25356 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25357 # instead of lib<name>.a to let people know that these are not
25358 # typical AIX shared libraries.
25359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25360 else
25361 # We preserve .a as extension for shared libraries through AIX4.2
25362 # and later when we are not doing run time linking.
25363 library_names_spec='${libname}${release}.a $libname.a'
25364 soname_spec='${libname}${release}${shared_ext}$major'
25365 fi
25366 shlibpath_var=LIBPATH
25367 fi
25368 ;;
25369
25370amigaos*)
25371 library_names_spec='$libname.ixlibrary $libname.a'
25372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025373 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 +000025374 ;;
25375
25376beos*)
25377 library_names_spec='${libname}${shared_ext}'
25378 dynamic_linker="$host_os ld.so"
25379 shlibpath_var=LIBRARY_PATH
25380 ;;
25381
Reid Spencer2706f8c2004-09-19 23:53:36 +000025382bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025383 version_type=linux
25384 need_version=no
25385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25386 soname_spec='${libname}${release}${shared_ext}$major'
25387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25388 shlibpath_var=LD_LIBRARY_PATH
25389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25391 # the default ld.so.conf also contains /usr/contrib/lib and
25392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25393 # libtool to hard-code these into programs
25394 ;;
25395
25396cygwin* | mingw* | pw32*)
25397 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025399 need_version=no
25400 need_lib_prefix=no
25401
25402 case $GCC,$host_os in
25403 yes,cygwin* | yes,mingw* | yes,pw32*)
25404 library_names_spec='$libname.dll.a'
25405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025406 postinstall_cmds='base_file=`basename \${file}`~
25407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25408 dldir=$destdir/`dirname \$dlpath`~
25409 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025410 $install_prog $dir/$dlname \$dldir/$dlname~
25411 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025412 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25413 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025414 $rm \$dlpath'
25415 shlibpath_overrides_runpath=yes
25416
25417 case $host_os in
25418 cygwin*)
25419 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25420 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 +000025421 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025422 ;;
25423 mingw*)
25424 # MinGW DLLs use traditional 'lib' prefix
25425 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25427 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25428 # It is most probably a Windows format PATH printed by
25429 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25430 # path with ; separators, and with drive letters. We can handle the
25431 # drive letters (cygwin fileutils understands them), so leave them,
25432 # especially as we might pass files found there to a mingw objdump,
25433 # which wouldn't understand a cygwinified path. Ahh.
25434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25435 else
25436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25437 fi
25438 ;;
25439 pw32*)
25440 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025441 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 +000025442 ;;
25443 esac
25444 ;;
25445
25446 *)
25447 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25448 ;;
25449 esac
25450 dynamic_linker='Win32 ld.exe'
25451 # FIXME: first we should search . and the directory the executable is in
25452 shlibpath_var=PATH
25453 ;;
25454
25455darwin* | rhapsody*)
25456 dynamic_linker="$host_os dyld"
25457 version_type=darwin
25458 need_lib_prefix=no
25459 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025460 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025461 soname_spec='${libname}${release}${major}$shared_ext'
25462 shlibpath_overrides_runpath=yes
25463 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025464 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025465 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025466 if test "$GCC" = yes; then
25467 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"`
25468 else
25469 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025470 fi
25471 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25472 ;;
25473
25474dgux*)
25475 version_type=linux
25476 need_lib_prefix=no
25477 need_version=no
25478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25479 soname_spec='${libname}${release}${shared_ext}$major'
25480 shlibpath_var=LD_LIBRARY_PATH
25481 ;;
25482
25483freebsd1*)
25484 dynamic_linker=no
25485 ;;
25486
Reid Spencer2706f8c2004-09-19 23:53:36 +000025487kfreebsd*-gnu)
25488 version_type=linux
25489 need_lib_prefix=no
25490 need_version=no
25491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25492 soname_spec='${libname}${release}${shared_ext}$major'
25493 shlibpath_var=LD_LIBRARY_PATH
25494 shlibpath_overrides_runpath=no
25495 hardcode_into_libs=yes
25496 dynamic_linker='GNU ld.so'
25497 ;;
25498
Reid Spencera773bd52006-08-04 18:18:08 +000025499freebsd* | dragonfly*)
25500 # DragonFly does not have aout. When/if they implement a new
25501 # versioning mechanism, adjust this.
25502 if test -x /usr/bin/objformat; then
25503 objformat=`/usr/bin/objformat`
25504 else
25505 case $host_os in
25506 freebsd[123]*) objformat=aout ;;
25507 *) objformat=elf ;;
25508 esac
25509 fi
John Criswell47fdd832003-07-14 16:52:07 +000025510 version_type=freebsd-$objformat
25511 case $version_type in
25512 freebsd-elf*)
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25514 need_version=no
25515 need_lib_prefix=no
25516 ;;
25517 freebsd-*)
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25519 need_version=yes
25520 ;;
25521 esac
25522 shlibpath_var=LD_LIBRARY_PATH
25523 case $host_os in
25524 freebsd2*)
25525 shlibpath_overrides_runpath=yes
25526 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025527 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025528 shlibpath_overrides_runpath=yes
25529 hardcode_into_libs=yes
25530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025533 shlibpath_overrides_runpath=no
25534 hardcode_into_libs=yes
25535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025536 freebsd*) # from 4.6 on
25537 shlibpath_overrides_runpath=yes
25538 hardcode_into_libs=yes
25539 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025540 esac
25541 ;;
25542
25543gnu*)
25544 version_type=linux
25545 need_lib_prefix=no
25546 need_version=no
25547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25548 soname_spec='${libname}${release}${shared_ext}$major'
25549 shlibpath_var=LD_LIBRARY_PATH
25550 hardcode_into_libs=yes
25551 ;;
25552
25553hpux9* | hpux10* | hpux11*)
25554 # Give a soname corresponding to the major version so that dld.sl refuses to
25555 # link against other versions.
25556 version_type=sunos
25557 need_lib_prefix=no
25558 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025559 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025560 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025561 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025562 hardcode_into_libs=yes
25563 dynamic_linker="$host_os dld.so"
25564 shlibpath_var=LD_LIBRARY_PATH
25565 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25567 soname_spec='${libname}${release}${shared_ext}$major'
25568 if test "X$HPUX_IA64_MODE" = X32; then
25569 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25570 else
25571 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25572 fi
25573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25574 ;;
25575 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025577 hardcode_into_libs=yes
25578 dynamic_linker="$host_os dld.sl"
25579 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25582 soname_spec='${libname}${release}${shared_ext}$major'
25583 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25585 ;;
25586 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025587 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025588 dynamic_linker="$host_os dld.sl"
25589 shlibpath_var=SHLIB_PATH
25590 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25592 soname_spec='${libname}${release}${shared_ext}$major'
25593 ;;
25594 esac
25595 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25596 postinstall_cmds='chmod 555 $lib'
25597 ;;
25598
Reid Spencera773bd52006-08-04 18:18:08 +000025599interix3*)
25600 version_type=linux
25601 need_lib_prefix=no
25602 need_version=no
25603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25604 soname_spec='${libname}${release}${shared_ext}$major'
25605 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25606 shlibpath_var=LD_LIBRARY_PATH
25607 shlibpath_overrides_runpath=no
25608 hardcode_into_libs=yes
25609 ;;
25610
John Criswell47fdd832003-07-14 16:52:07 +000025611irix5* | irix6* | nonstopux*)
25612 case $host_os in
25613 nonstopux*) version_type=nonstopux ;;
25614 *)
25615 if test "$lt_cv_prog_gnu_ld" = yes; then
25616 version_type=linux
25617 else
25618 version_type=irix
25619 fi ;;
25620 esac
25621 need_lib_prefix=no
25622 need_version=no
25623 soname_spec='${libname}${release}${shared_ext}$major'
25624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25625 case $host_os in
25626 irix5* | nonstopux*)
25627 libsuff= shlibsuff=
25628 ;;
25629 *)
25630 case $LD in # libtool.m4 will add one of these switches to LD
25631 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25632 libsuff= shlibsuff= libmagic=32-bit;;
25633 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25634 libsuff=32 shlibsuff=N32 libmagic=N32;;
25635 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25636 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25637 *) libsuff= shlibsuff= libmagic=never-match;;
25638 esac
25639 ;;
25640 esac
25641 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25642 shlibpath_overrides_runpath=no
25643 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25644 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25645 hardcode_into_libs=yes
25646 ;;
25647
25648# No shared lib support for Linux oldld, aout, or coff.
25649linux*oldld* | linux*aout* | linux*coff*)
25650 dynamic_linker=no
25651 ;;
25652
25653# This must be Linux ELF.
25654linux*)
25655 version_type=linux
25656 need_lib_prefix=no
25657 need_version=no
25658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25659 soname_spec='${libname}${release}${shared_ext}$major'
25660 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25661 shlibpath_var=LD_LIBRARY_PATH
25662 shlibpath_overrides_runpath=no
25663 # This implies no fast_install, which is unacceptable.
25664 # Some rework will be needed to allow for fast_install
25665 # before this can be enabled.
25666 hardcode_into_libs=yes
25667
Reid Spencer2706f8c2004-09-19 23:53:36 +000025668 # Append ld.so.conf contents to the search path
25669 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025670 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 +000025671 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25672 fi
25673
John Criswell47fdd832003-07-14 16:52:07 +000025674 # We used to test for /lib/ld.so.1 and disable shared libraries on
25675 # powerpc, because MkLinux only supported shared libraries with the
25676 # GNU dynamic linker. Since this was broken with cross compilers,
25677 # most powerpc-linux boxes support dynamic linking these days and
25678 # people can always --disable-shared, the test was removed, and we
25679 # assume the GNU/Linux dynamic linker is in use.
25680 dynamic_linker='GNU/Linux ld.so'
25681 ;;
25682
Reid Spencer2706f8c2004-09-19 23:53:36 +000025683knetbsd*-gnu)
25684 version_type=linux
25685 need_lib_prefix=no
25686 need_version=no
25687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25688 soname_spec='${libname}${release}${shared_ext}$major'
25689 shlibpath_var=LD_LIBRARY_PATH
25690 shlibpath_overrides_runpath=no
25691 hardcode_into_libs=yes
25692 dynamic_linker='GNU ld.so'
25693 ;;
25694
John Criswell47fdd832003-07-14 16:52:07 +000025695netbsd*)
25696 version_type=sunos
25697 need_lib_prefix=no
25698 need_version=no
25699 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25701 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25702 dynamic_linker='NetBSD (a.out) ld.so'
25703 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025705 soname_spec='${libname}${release}${shared_ext}$major'
25706 dynamic_linker='NetBSD ld.elf_so'
25707 fi
25708 shlibpath_var=LD_LIBRARY_PATH
25709 shlibpath_overrides_runpath=yes
25710 hardcode_into_libs=yes
25711 ;;
25712
25713newsos6)
25714 version_type=linux
25715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 shlibpath_overrides_runpath=yes
25718 ;;
25719
Reid Spencer2706f8c2004-09-19 23:53:36 +000025720nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025721 version_type=linux
25722 need_lib_prefix=no
25723 need_version=no
25724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25725 soname_spec='${libname}${release}${shared_ext}$major'
25726 shlibpath_var=LD_LIBRARY_PATH
25727 shlibpath_overrides_runpath=yes
25728 ;;
25729
25730openbsd*)
25731 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025732 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025733 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025734 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25735 case $host_os in
25736 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25737 *) need_version=no ;;
25738 esac
John Criswell47fdd832003-07-14 16:52:07 +000025739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25741 shlibpath_var=LD_LIBRARY_PATH
25742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25743 case $host_os in
25744 openbsd2.[89] | openbsd2.[89].*)
25745 shlibpath_overrides_runpath=no
25746 ;;
25747 *)
25748 shlibpath_overrides_runpath=yes
25749 ;;
25750 esac
25751 else
25752 shlibpath_overrides_runpath=yes
25753 fi
25754 ;;
25755
25756os2*)
25757 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025758 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025759 need_lib_prefix=no
25760 library_names_spec='$libname${shared_ext} $libname.a'
25761 dynamic_linker='OS/2 ld.exe'
25762 shlibpath_var=LIBPATH
25763 ;;
25764
25765osf3* | osf4* | osf5*)
25766 version_type=osf
25767 need_lib_prefix=no
25768 need_version=no
25769 soname_spec='${libname}${release}${shared_ext}$major'
25770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771 shlibpath_var=LD_LIBRARY_PATH
25772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25773 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25774 ;;
25775
John Criswell47fdd832003-07-14 16:52:07 +000025776solaris*)
25777 version_type=linux
25778 need_lib_prefix=no
25779 need_version=no
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 shlibpath_var=LD_LIBRARY_PATH
25783 shlibpath_overrides_runpath=yes
25784 hardcode_into_libs=yes
25785 # ldd complains unless libraries are executable
25786 postinstall_cmds='chmod +x $lib'
25787 ;;
25788
25789sunos4*)
25790 version_type=sunos
25791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25792 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25793 shlibpath_var=LD_LIBRARY_PATH
25794 shlibpath_overrides_runpath=yes
25795 if test "$with_gnu_ld" = yes; then
25796 need_lib_prefix=no
25797 fi
25798 need_version=yes
25799 ;;
25800
Reid Spencera773bd52006-08-04 18:18:08 +000025801sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025802 version_type=linux
25803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25804 soname_spec='${libname}${release}${shared_ext}$major'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 case $host_vendor in
25807 sni)
25808 shlibpath_overrides_runpath=no
25809 need_lib_prefix=no
25810 export_dynamic_flag_spec='${wl}-Blargedynsym'
25811 runpath_var=LD_RUN_PATH
25812 ;;
25813 siemens)
25814 need_lib_prefix=no
25815 ;;
25816 motorola)
25817 need_lib_prefix=no
25818 need_version=no
25819 shlibpath_overrides_runpath=no
25820 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25821 ;;
25822 esac
25823 ;;
25824
25825sysv4*MP*)
25826 if test -d /usr/nec ;then
25827 version_type=linux
25828 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25829 soname_spec='$libname${shared_ext}.$major'
25830 shlibpath_var=LD_LIBRARY_PATH
25831 fi
25832 ;;
25833
Reid Spencera773bd52006-08-04 18:18:08 +000025834sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25835 version_type=freebsd-elf
25836 need_lib_prefix=no
25837 need_version=no
25838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25839 soname_spec='${libname}${release}${shared_ext}$major'
25840 shlibpath_var=LD_LIBRARY_PATH
25841 hardcode_into_libs=yes
25842 if test "$with_gnu_ld" = yes; then
25843 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25844 shlibpath_overrides_runpath=no
25845 else
25846 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25847 shlibpath_overrides_runpath=yes
25848 case $host_os in
25849 sco3.2v5*)
25850 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25851 ;;
25852 esac
25853 fi
25854 sys_lib_dlsearch_path_spec='/usr/lib'
25855 ;;
25856
John Criswell47fdd832003-07-14 16:52:07 +000025857uts4*)
25858 version_type=linux
25859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25860 soname_spec='${libname}${release}${shared_ext}$major'
25861 shlibpath_var=LD_LIBRARY_PATH
25862 ;;
25863
25864*)
25865 dynamic_linker=no
25866 ;;
25867esac
Reid Spencera773bd52006-08-04 18:18:08 +000025868{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25869echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025870test "$dynamic_linker" = no && can_build_shared=no
25871
Reid Spencera773bd52006-08-04 18:18:08 +000025872variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25873if test "$GCC" = yes; then
25874 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25875fi
25876
25877{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25878echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025879hardcode_action_GCJ=
25880if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25881 test -n "$runpath_var_GCJ" || \
25882 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25883
25884 # We can hardcode non-existant directories.
25885 if test "$hardcode_direct_GCJ" != no &&
25886 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25887 # have to relink, otherwise we might link with an installed library
25888 # when we should be linking with a yet-to-be-installed one
25889 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25890 test "$hardcode_minus_L_GCJ" != no; then
25891 # Linking always hardcodes the temporary library directory.
25892 hardcode_action_GCJ=relink
25893 else
25894 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25895 hardcode_action_GCJ=immediate
25896 fi
25897else
25898 # We cannot hardcode anything, or else we can only hardcode existing
25899 # directories.
25900 hardcode_action_GCJ=unsupported
25901fi
Reid Spencera773bd52006-08-04 18:18:08 +000025902{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25903echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025904
25905if test "$hardcode_action_GCJ" = relink; then
25906 # Fast installation is not supported
25907 enable_fast_install=no
25908elif test "$shlibpath_overrides_runpath" = yes ||
25909 test "$enable_shared" = no; then
25910 # Fast installation is not necessary
25911 enable_fast_install=needless
25912fi
25913
John Criswell47fdd832003-07-14 16:52:07 +000025914
25915# The else clause should only fire when bootstrapping the
25916# libtool distribution, otherwise you forgot to ship ltmain.sh
25917# with your package, and you will get complaints that there are
25918# no rules to generate ltmain.sh.
25919if test -f "$ltmain"; then
25920 # See if we are running on zsh, and set the options which allow our commands through
25921 # without removal of \ escapes.
25922 if test -n "${ZSH_VERSION+set}" ; then
25923 setopt NO_GLOB_SUBST
25924 fi
25925 # Now quote all the things that may contain metacharacters while being
25926 # careful not to overquote the AC_SUBSTed values. We take copies of the
25927 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025928 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 +000025929 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025930 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25931 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25932 deplibs_check_method reload_flag reload_cmds need_locks \
25933 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25934 lt_cv_sys_global_symbol_to_c_name_address \
25935 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25936 old_postinstall_cmds old_postuninstall_cmds \
25937 compiler_GCJ \
25938 CC_GCJ \
25939 LD_GCJ \
25940 lt_prog_compiler_wl_GCJ \
25941 lt_prog_compiler_pic_GCJ \
25942 lt_prog_compiler_static_GCJ \
25943 lt_prog_compiler_no_builtin_flag_GCJ \
25944 export_dynamic_flag_spec_GCJ \
25945 thread_safe_flag_spec_GCJ \
25946 whole_archive_flag_spec_GCJ \
25947 enable_shared_with_static_runtimes_GCJ \
25948 old_archive_cmds_GCJ \
25949 old_archive_from_new_cmds_GCJ \
25950 predep_objects_GCJ \
25951 postdep_objects_GCJ \
25952 predeps_GCJ \
25953 postdeps_GCJ \
25954 compiler_lib_search_path_GCJ \
25955 archive_cmds_GCJ \
25956 archive_expsym_cmds_GCJ \
25957 postinstall_cmds_GCJ \
25958 postuninstall_cmds_GCJ \
25959 old_archive_from_expsyms_cmds_GCJ \
25960 allow_undefined_flag_GCJ \
25961 no_undefined_flag_GCJ \
25962 export_symbols_cmds_GCJ \
25963 hardcode_libdir_flag_spec_GCJ \
25964 hardcode_libdir_flag_spec_ld_GCJ \
25965 hardcode_libdir_separator_GCJ \
25966 hardcode_automatic_GCJ \
25967 module_cmds_GCJ \
25968 module_expsym_cmds_GCJ \
25969 lt_cv_prog_compiler_c_o_GCJ \
25970 exclude_expsyms_GCJ \
25971 include_expsyms_GCJ; do
25972
25973 case $var in
25974 old_archive_cmds_GCJ | \
25975 old_archive_from_new_cmds_GCJ | \
25976 archive_cmds_GCJ | \
25977 archive_expsym_cmds_GCJ | \
25978 module_cmds_GCJ | \
25979 module_expsym_cmds_GCJ | \
25980 old_archive_from_expsyms_cmds_GCJ | \
25981 export_symbols_cmds_GCJ | \
25982 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25983 postinstall_cmds | postuninstall_cmds | \
25984 old_postinstall_cmds | old_postuninstall_cmds | \
25985 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25986 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025987 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 +000025988 ;;
25989 *)
25990 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25991 ;;
25992 esac
25993 done
25994
25995 case $lt_echo in
25996 *'\$0 --fallback-echo"')
25997 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25998 ;;
25999 esac
26000
26001cfgfile="$ofile"
26002
26003 cat <<__EOF__ >> "$cfgfile"
26004# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26005
26006# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26007
26008# Shell to use when invoking shell scripts.
26009SHELL=$lt_SHELL
26010
26011# Whether or not to build shared libraries.
26012build_libtool_libs=$enable_shared
26013
26014# Whether or not to build static libraries.
26015build_old_libs=$enable_static
26016
26017# Whether or not to add -lc for building shared libraries.
26018build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26019
26020# Whether or not to disallow shared libs when runtime libs are static
26021allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26022
26023# Whether or not to optimize for fast installation.
26024fast_install=$enable_fast_install
26025
26026# The host system.
26027host_alias=$host_alias
26028host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026029host_os=$host_os
26030
26031# The build system.
26032build_alias=$build_alias
26033build=$build
26034build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026035
26036# An echo program that does not interpret backslashes.
26037echo=$lt_echo
26038
26039# The archiver.
26040AR=$lt_AR
26041AR_FLAGS=$lt_AR_FLAGS
26042
26043# A C compiler.
26044LTCC=$lt_LTCC
26045
Reid Spencera773bd52006-08-04 18:18:08 +000026046# LTCC compiler flags.
26047LTCFLAGS=$lt_LTCFLAGS
26048
John Criswell47fdd832003-07-14 16:52:07 +000026049# A language-specific compiler.
26050CC=$lt_compiler_GCJ
26051
26052# Is the compiler the GNU C compiler?
26053with_gcc=$GCC_GCJ
26054
26055# An ERE matcher.
26056EGREP=$lt_EGREP
26057
26058# The linker used to build libraries.
26059LD=$lt_LD_GCJ
26060
26061# Whether we need hard or soft links.
26062LN_S=$lt_LN_S
26063
26064# A BSD-compatible nm program.
26065NM=$lt_NM
26066
26067# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026068STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026069
26070# Used to examine libraries when file_magic_cmd begins "file"
26071MAGIC_CMD=$MAGIC_CMD
26072
26073# Used on cygwin: DLL creation program.
26074DLLTOOL="$DLLTOOL"
26075
26076# Used on cygwin: object dumper.
26077OBJDUMP="$OBJDUMP"
26078
26079# Used on cygwin: assembler.
26080AS="$AS"
26081
26082# The name of the directory that contains temporary libtool files.
26083objdir=$objdir
26084
26085# How to create reloadable object files.
26086reload_flag=$lt_reload_flag
26087reload_cmds=$lt_reload_cmds
26088
26089# How to pass a linker flag through the compiler.
26090wl=$lt_lt_prog_compiler_wl_GCJ
26091
26092# Object file suffix (normally "o").
26093objext="$ac_objext"
26094
26095# Old archive suffix (normally "a").
26096libext="$libext"
26097
26098# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026099shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026100
26101# Executable file suffix (normally "").
26102exeext="$exeext"
26103
26104# Additional compiler flags for building library objects.
26105pic_flag=$lt_lt_prog_compiler_pic_GCJ
26106pic_mode=$pic_mode
26107
26108# What is the maximum length of a command?
26109max_cmd_len=$lt_cv_sys_max_cmd_len
26110
26111# Does compiler simultaneously support -c and -o options?
26112compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26113
Reid Spencera773bd52006-08-04 18:18:08 +000026114# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026115need_locks=$lt_need_locks
26116
26117# Do we need the lib prefix for modules?
26118need_lib_prefix=$need_lib_prefix
26119
26120# Do we need a version for libraries?
26121need_version=$need_version
26122
26123# Whether dlopen is supported.
26124dlopen_support=$enable_dlopen
26125
26126# Whether dlopen of programs is supported.
26127dlopen_self=$enable_dlopen_self
26128
26129# Whether dlopen of statically linked programs is supported.
26130dlopen_self_static=$enable_dlopen_self_static
26131
26132# Compiler flag to prevent dynamic linking.
26133link_static_flag=$lt_lt_prog_compiler_static_GCJ
26134
26135# Compiler flag to turn off builtin functions.
26136no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26137
26138# Compiler flag to allow reflexive dlopens.
26139export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26140
26141# Compiler flag to generate shared objects directly from archives.
26142whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26143
26144# Compiler flag to generate thread-safe objects.
26145thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26146
26147# Library versioning type.
26148version_type=$version_type
26149
26150# Format of library name prefix.
26151libname_spec=$lt_libname_spec
26152
26153# List of archive names. First name is the real one, the rest are links.
26154# The last name is the one that the linker finds with -lNAME.
26155library_names_spec=$lt_library_names_spec
26156
26157# The coded name of the library, if different from the real name.
26158soname_spec=$lt_soname_spec
26159
26160# Commands used to build and install an old-style archive.
26161RANLIB=$lt_RANLIB
26162old_archive_cmds=$lt_old_archive_cmds_GCJ
26163old_postinstall_cmds=$lt_old_postinstall_cmds
26164old_postuninstall_cmds=$lt_old_postuninstall_cmds
26165
26166# Create an old-style archive from a shared archive.
26167old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26168
26169# Create a temporary old-style archive to link instead of a shared archive.
26170old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26171
26172# Commands used to build and install a shared archive.
26173archive_cmds=$lt_archive_cmds_GCJ
26174archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26175postinstall_cmds=$lt_postinstall_cmds
26176postuninstall_cmds=$lt_postuninstall_cmds
26177
26178# Commands used to build a loadable module (assumed same as above if empty)
26179module_cmds=$lt_module_cmds_GCJ
26180module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26181
26182# Commands to strip libraries.
26183old_striplib=$lt_old_striplib
26184striplib=$lt_striplib
26185
26186# Dependencies to place before the objects being linked to create a
26187# shared library.
26188predep_objects=$lt_predep_objects_GCJ
26189
26190# Dependencies to place after the objects being linked to create a
26191# shared library.
26192postdep_objects=$lt_postdep_objects_GCJ
26193
26194# Dependencies to place before the objects being linked to create a
26195# shared library.
26196predeps=$lt_predeps_GCJ
26197
26198# Dependencies to place after the objects being linked to create a
26199# shared library.
26200postdeps=$lt_postdeps_GCJ
26201
26202# The library search path used internally by the compiler when linking
26203# a shared library.
26204compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26205
26206# Method to check whether dependent libraries are shared objects.
26207deplibs_check_method=$lt_deplibs_check_method
26208
26209# Command to use when deplibs_check_method == file_magic.
26210file_magic_cmd=$lt_file_magic_cmd
26211
26212# Flag that allows shared libraries with undefined symbols to be built.
26213allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26214
26215# Flag that forces no undefined symbols.
26216no_undefined_flag=$lt_no_undefined_flag_GCJ
26217
26218# Commands used to finish a libtool library installation in a directory.
26219finish_cmds=$lt_finish_cmds
26220
26221# Same as above, but a single script fragment to be evaled but not shown.
26222finish_eval=$lt_finish_eval
26223
26224# Take the output of nm and produce a listing of raw symbols and C names.
26225global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26226
26227# Transform the output of nm in a proper C declaration
26228global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26229
26230# Transform the output of nm in a C name address pair
26231global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26232
26233# This is the shared library runtime path variable.
26234runpath_var=$runpath_var
26235
26236# This is the shared library path variable.
26237shlibpath_var=$shlibpath_var
26238
26239# Is shlibpath searched before the hard-coded library search path?
26240shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26241
26242# How to hardcode a shared library path into an executable.
26243hardcode_action=$hardcode_action_GCJ
26244
26245# Whether we should hardcode library paths into libraries.
26246hardcode_into_libs=$hardcode_into_libs
26247
26248# Flag to hardcode \$libdir into a binary during linking.
26249# This must work even if \$libdir does not exist.
26250hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26251
26252# If ld is used when linking, flag to hardcode \$libdir into
26253# a binary during linking. This must work even if \$libdir does
26254# not exist.
26255hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26256
26257# Whether we need a single -rpath flag with a separated argument.
26258hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26259
26260# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26261# resulting binary.
26262hardcode_direct=$hardcode_direct_GCJ
26263
26264# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26265# resulting binary.
26266hardcode_minus_L=$hardcode_minus_L_GCJ
26267
26268# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26269# the resulting binary.
26270hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26271
26272# Set to yes if building a shared library automatically hardcodes DIR into the library
26273# and all subsequent libraries and executables linked against it.
26274hardcode_automatic=$hardcode_automatic_GCJ
26275
26276# Variables whose values should be saved in libtool wrapper scripts and
26277# restored at relink time.
26278variables_saved_for_relink="$variables_saved_for_relink"
26279
26280# Whether libtool must link a program against all its dependency libraries.
26281link_all_deplibs=$link_all_deplibs_GCJ
26282
26283# Compile-time system search path for libraries
26284sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26285
26286# Run-time system search path for libraries
26287sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26288
26289# Fix the shell variable \$srcfile for the compiler.
26290fix_srcfile_path="$fix_srcfile_path_GCJ"
26291
26292# Set to yes if exported symbols are required.
26293always_export_symbols=$always_export_symbols_GCJ
26294
26295# The commands to list exported symbols.
26296export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26297
26298# The commands to extract the exported symbol list from a shared archive.
26299extract_expsyms_cmds=$lt_extract_expsyms_cmds
26300
26301# Symbols that should not be listed in the preloaded symbols.
26302exclude_expsyms=$lt_exclude_expsyms_GCJ
26303
26304# Symbols that must always be exported.
26305include_expsyms=$lt_include_expsyms_GCJ
26306
26307# ### END LIBTOOL TAG CONFIG: $tagname
26308
26309__EOF__
26310
26311
26312else
26313 # If there is no Makefile yet, we rely on a make rule to execute
26314 # `config.status --recheck' to rerun these tests and create the
26315 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026316 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26317 if test -f "$ltmain_in"; then
26318 test -f Makefile && make "$ltmain"
26319 fi
John Criswell47fdd832003-07-14 16:52:07 +000026320fi
26321
26322
26323ac_ext=c
26324ac_cpp='$CPP $CPPFLAGS'
26325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26327ac_compiler_gnu=$ac_cv_c_compiler_gnu
26328
26329CC="$lt_save_CC"
26330
26331 else
26332 tagname=""
26333 fi
26334 ;;
26335
26336 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026337 ac_ext=c
26338ac_cpp='$CPP $CPPFLAGS'
26339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26341ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026342
26343
26344# Source file extension for RC test sources.
26345ac_ext=rc
26346
26347# Object file extension for compiled RC test sources.
26348objext=o
26349objext_RC=$objext
26350
26351# Code to be used in simple compile tests
26352lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26353
26354# Code to be used in simple link tests
26355lt_simple_link_test_code="$lt_simple_compile_test_code"
26356
26357# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26358
26359# If no C compiler was specified, use CC.
26360LTCC=${LTCC-"$CC"}
26361
Reid Spencera773bd52006-08-04 18:18:08 +000026362# If no C compiler flags were specified, use CFLAGS.
26363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26364
John Criswell47fdd832003-07-14 16:52:07 +000026365# Allow CC to be a program name with arguments.
26366compiler=$CC
26367
26368
Reid Spencera773bd52006-08-04 18:18:08 +000026369# save warnings/boilerplate of simple test code
26370ac_outfile=conftest.$ac_objext
26371printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26372eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26373_lt_compiler_boilerplate=`cat conftest.err`
26374$rm conftest*
26375
26376ac_outfile=conftest.$ac_objext
26377printf "$lt_simple_link_test_code" >conftest.$ac_ext
26378eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26379_lt_linker_boilerplate=`cat conftest.err`
26380$rm conftest*
26381
26382
John Criswell47fdd832003-07-14 16:52:07 +000026383# Allow CC to be a program name with arguments.
26384lt_save_CC="$CC"
26385CC=${RC-"windres"}
26386compiler=$CC
26387compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026388for cc_temp in $compiler""; do
26389 case $cc_temp in
26390 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26391 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26392 \-*) ;;
26393 *) break;;
26394 esac
26395done
26396cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26397
John Criswell47fdd832003-07-14 16:52:07 +000026398lt_cv_prog_compiler_c_o_RC=yes
26399
26400# The else clause should only fire when bootstrapping the
26401# libtool distribution, otherwise you forgot to ship ltmain.sh
26402# with your package, and you will get complaints that there are
26403# no rules to generate ltmain.sh.
26404if test -f "$ltmain"; then
26405 # See if we are running on zsh, and set the options which allow our commands through
26406 # without removal of \ escapes.
26407 if test -n "${ZSH_VERSION+set}" ; then
26408 setopt NO_GLOB_SUBST
26409 fi
26410 # Now quote all the things that may contain metacharacters while being
26411 # careful not to overquote the AC_SUBSTed values. We take copies of the
26412 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026413 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 +000026414 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026415 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26416 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26417 deplibs_check_method reload_flag reload_cmds need_locks \
26418 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26419 lt_cv_sys_global_symbol_to_c_name_address \
26420 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26421 old_postinstall_cmds old_postuninstall_cmds \
26422 compiler_RC \
26423 CC_RC \
26424 LD_RC \
26425 lt_prog_compiler_wl_RC \
26426 lt_prog_compiler_pic_RC \
26427 lt_prog_compiler_static_RC \
26428 lt_prog_compiler_no_builtin_flag_RC \
26429 export_dynamic_flag_spec_RC \
26430 thread_safe_flag_spec_RC \
26431 whole_archive_flag_spec_RC \
26432 enable_shared_with_static_runtimes_RC \
26433 old_archive_cmds_RC \
26434 old_archive_from_new_cmds_RC \
26435 predep_objects_RC \
26436 postdep_objects_RC \
26437 predeps_RC \
26438 postdeps_RC \
26439 compiler_lib_search_path_RC \
26440 archive_cmds_RC \
26441 archive_expsym_cmds_RC \
26442 postinstall_cmds_RC \
26443 postuninstall_cmds_RC \
26444 old_archive_from_expsyms_cmds_RC \
26445 allow_undefined_flag_RC \
26446 no_undefined_flag_RC \
26447 export_symbols_cmds_RC \
26448 hardcode_libdir_flag_spec_RC \
26449 hardcode_libdir_flag_spec_ld_RC \
26450 hardcode_libdir_separator_RC \
26451 hardcode_automatic_RC \
26452 module_cmds_RC \
26453 module_expsym_cmds_RC \
26454 lt_cv_prog_compiler_c_o_RC \
26455 exclude_expsyms_RC \
26456 include_expsyms_RC; do
26457
26458 case $var in
26459 old_archive_cmds_RC | \
26460 old_archive_from_new_cmds_RC | \
26461 archive_cmds_RC | \
26462 archive_expsym_cmds_RC | \
26463 module_cmds_RC | \
26464 module_expsym_cmds_RC | \
26465 old_archive_from_expsyms_cmds_RC | \
26466 export_symbols_cmds_RC | \
26467 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26468 postinstall_cmds | postuninstall_cmds | \
26469 old_postinstall_cmds | old_postuninstall_cmds | \
26470 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26471 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026472 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 +000026473 ;;
26474 *)
26475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26476 ;;
26477 esac
26478 done
26479
26480 case $lt_echo in
26481 *'\$0 --fallback-echo"')
26482 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26483 ;;
26484 esac
26485
26486cfgfile="$ofile"
26487
26488 cat <<__EOF__ >> "$cfgfile"
26489# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26490
26491# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26492
26493# Shell to use when invoking shell scripts.
26494SHELL=$lt_SHELL
26495
26496# Whether or not to build shared libraries.
26497build_libtool_libs=$enable_shared
26498
26499# Whether or not to build static libraries.
26500build_old_libs=$enable_static
26501
26502# Whether or not to add -lc for building shared libraries.
26503build_libtool_need_lc=$archive_cmds_need_lc_RC
26504
26505# Whether or not to disallow shared libs when runtime libs are static
26506allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26507
26508# Whether or not to optimize for fast installation.
26509fast_install=$enable_fast_install
26510
26511# The host system.
26512host_alias=$host_alias
26513host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026514host_os=$host_os
26515
26516# The build system.
26517build_alias=$build_alias
26518build=$build
26519build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026520
26521# An echo program that does not interpret backslashes.
26522echo=$lt_echo
26523
26524# The archiver.
26525AR=$lt_AR
26526AR_FLAGS=$lt_AR_FLAGS
26527
26528# A C compiler.
26529LTCC=$lt_LTCC
26530
Reid Spencera773bd52006-08-04 18:18:08 +000026531# LTCC compiler flags.
26532LTCFLAGS=$lt_LTCFLAGS
26533
John Criswell47fdd832003-07-14 16:52:07 +000026534# A language-specific compiler.
26535CC=$lt_compiler_RC
26536
26537# Is the compiler the GNU C compiler?
26538with_gcc=$GCC_RC
26539
26540# An ERE matcher.
26541EGREP=$lt_EGREP
26542
26543# The linker used to build libraries.
26544LD=$lt_LD_RC
26545
26546# Whether we need hard or soft links.
26547LN_S=$lt_LN_S
26548
26549# A BSD-compatible nm program.
26550NM=$lt_NM
26551
26552# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026553STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026554
26555# Used to examine libraries when file_magic_cmd begins "file"
26556MAGIC_CMD=$MAGIC_CMD
26557
26558# Used on cygwin: DLL creation program.
26559DLLTOOL="$DLLTOOL"
26560
26561# Used on cygwin: object dumper.
26562OBJDUMP="$OBJDUMP"
26563
26564# Used on cygwin: assembler.
26565AS="$AS"
26566
26567# The name of the directory that contains temporary libtool files.
26568objdir=$objdir
26569
26570# How to create reloadable object files.
26571reload_flag=$lt_reload_flag
26572reload_cmds=$lt_reload_cmds
26573
26574# How to pass a linker flag through the compiler.
26575wl=$lt_lt_prog_compiler_wl_RC
26576
26577# Object file suffix (normally "o").
26578objext="$ac_objext"
26579
26580# Old archive suffix (normally "a").
26581libext="$libext"
26582
26583# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026584shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026585
26586# Executable file suffix (normally "").
26587exeext="$exeext"
26588
26589# Additional compiler flags for building library objects.
26590pic_flag=$lt_lt_prog_compiler_pic_RC
26591pic_mode=$pic_mode
26592
26593# What is the maximum length of a command?
26594max_cmd_len=$lt_cv_sys_max_cmd_len
26595
26596# Does compiler simultaneously support -c and -o options?
26597compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26598
Reid Spencera773bd52006-08-04 18:18:08 +000026599# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026600need_locks=$lt_need_locks
26601
26602# Do we need the lib prefix for modules?
26603need_lib_prefix=$need_lib_prefix
26604
26605# Do we need a version for libraries?
26606need_version=$need_version
26607
26608# Whether dlopen is supported.
26609dlopen_support=$enable_dlopen
26610
26611# Whether dlopen of programs is supported.
26612dlopen_self=$enable_dlopen_self
26613
26614# Whether dlopen of statically linked programs is supported.
26615dlopen_self_static=$enable_dlopen_self_static
26616
26617# Compiler flag to prevent dynamic linking.
26618link_static_flag=$lt_lt_prog_compiler_static_RC
26619
26620# Compiler flag to turn off builtin functions.
26621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26622
26623# Compiler flag to allow reflexive dlopens.
26624export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26625
26626# Compiler flag to generate shared objects directly from archives.
26627whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26628
26629# Compiler flag to generate thread-safe objects.
26630thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26631
26632# Library versioning type.
26633version_type=$version_type
26634
26635# Format of library name prefix.
26636libname_spec=$lt_libname_spec
26637
26638# List of archive names. First name is the real one, the rest are links.
26639# The last name is the one that the linker finds with -lNAME.
26640library_names_spec=$lt_library_names_spec
26641
26642# The coded name of the library, if different from the real name.
26643soname_spec=$lt_soname_spec
26644
26645# Commands used to build and install an old-style archive.
26646RANLIB=$lt_RANLIB
26647old_archive_cmds=$lt_old_archive_cmds_RC
26648old_postinstall_cmds=$lt_old_postinstall_cmds
26649old_postuninstall_cmds=$lt_old_postuninstall_cmds
26650
26651# Create an old-style archive from a shared archive.
26652old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26653
26654# Create a temporary old-style archive to link instead of a shared archive.
26655old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26656
26657# Commands used to build and install a shared archive.
26658archive_cmds=$lt_archive_cmds_RC
26659archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26660postinstall_cmds=$lt_postinstall_cmds
26661postuninstall_cmds=$lt_postuninstall_cmds
26662
26663# Commands used to build a loadable module (assumed same as above if empty)
26664module_cmds=$lt_module_cmds_RC
26665module_expsym_cmds=$lt_module_expsym_cmds_RC
26666
26667# Commands to strip libraries.
26668old_striplib=$lt_old_striplib
26669striplib=$lt_striplib
26670
26671# Dependencies to place before the objects being linked to create a
26672# shared library.
26673predep_objects=$lt_predep_objects_RC
26674
26675# Dependencies to place after the objects being linked to create a
26676# shared library.
26677postdep_objects=$lt_postdep_objects_RC
26678
26679# Dependencies to place before the objects being linked to create a
26680# shared library.
26681predeps=$lt_predeps_RC
26682
26683# Dependencies to place after the objects being linked to create a
26684# shared library.
26685postdeps=$lt_postdeps_RC
26686
26687# The library search path used internally by the compiler when linking
26688# a shared library.
26689compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26690
26691# Method to check whether dependent libraries are shared objects.
26692deplibs_check_method=$lt_deplibs_check_method
26693
26694# Command to use when deplibs_check_method == file_magic.
26695file_magic_cmd=$lt_file_magic_cmd
26696
26697# Flag that allows shared libraries with undefined symbols to be built.
26698allow_undefined_flag=$lt_allow_undefined_flag_RC
26699
26700# Flag that forces no undefined symbols.
26701no_undefined_flag=$lt_no_undefined_flag_RC
26702
26703# Commands used to finish a libtool library installation in a directory.
26704finish_cmds=$lt_finish_cmds
26705
26706# Same as above, but a single script fragment to be evaled but not shown.
26707finish_eval=$lt_finish_eval
26708
26709# Take the output of nm and produce a listing of raw symbols and C names.
26710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26711
26712# Transform the output of nm in a proper C declaration
26713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26714
26715# Transform the output of nm in a C name address pair
26716global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26717
26718# This is the shared library runtime path variable.
26719runpath_var=$runpath_var
26720
26721# This is the shared library path variable.
26722shlibpath_var=$shlibpath_var
26723
26724# Is shlibpath searched before the hard-coded library search path?
26725shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26726
26727# How to hardcode a shared library path into an executable.
26728hardcode_action=$hardcode_action_RC
26729
26730# Whether we should hardcode library paths into libraries.
26731hardcode_into_libs=$hardcode_into_libs
26732
26733# Flag to hardcode \$libdir into a binary during linking.
26734# This must work even if \$libdir does not exist.
26735hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26736
26737# If ld is used when linking, flag to hardcode \$libdir into
26738# a binary during linking. This must work even if \$libdir does
26739# not exist.
26740hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26741
26742# Whether we need a single -rpath flag with a separated argument.
26743hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26744
26745# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26746# resulting binary.
26747hardcode_direct=$hardcode_direct_RC
26748
26749# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26750# resulting binary.
26751hardcode_minus_L=$hardcode_minus_L_RC
26752
26753# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26754# the resulting binary.
26755hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26756
26757# Set to yes if building a shared library automatically hardcodes DIR into the library
26758# and all subsequent libraries and executables linked against it.
26759hardcode_automatic=$hardcode_automatic_RC
26760
26761# Variables whose values should be saved in libtool wrapper scripts and
26762# restored at relink time.
26763variables_saved_for_relink="$variables_saved_for_relink"
26764
26765# Whether libtool must link a program against all its dependency libraries.
26766link_all_deplibs=$link_all_deplibs_RC
26767
26768# Compile-time system search path for libraries
26769sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26770
26771# Run-time system search path for libraries
26772sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26773
26774# Fix the shell variable \$srcfile for the compiler.
26775fix_srcfile_path="$fix_srcfile_path_RC"
26776
26777# Set to yes if exported symbols are required.
26778always_export_symbols=$always_export_symbols_RC
26779
26780# The commands to list exported symbols.
26781export_symbols_cmds=$lt_export_symbols_cmds_RC
26782
26783# The commands to extract the exported symbol list from a shared archive.
26784extract_expsyms_cmds=$lt_extract_expsyms_cmds
26785
26786# Symbols that should not be listed in the preloaded symbols.
26787exclude_expsyms=$lt_exclude_expsyms_RC
26788
26789# Symbols that must always be exported.
26790include_expsyms=$lt_include_expsyms_RC
26791
26792# ### END LIBTOOL TAG CONFIG: $tagname
26793
26794__EOF__
26795
26796
26797else
26798 # If there is no Makefile yet, we rely on a make rule to execute
26799 # `config.status --recheck' to rerun these tests and create the
26800 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026801 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26802 if test -f "$ltmain_in"; then
26803 test -f Makefile && make "$ltmain"
26804 fi
John Criswell47fdd832003-07-14 16:52:07 +000026805fi
26806
26807
26808ac_ext=c
26809ac_cpp='$CPP $CPPFLAGS'
26810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812ac_compiler_gnu=$ac_cv_c_compiler_gnu
26813
26814CC="$lt_save_CC"
26815
26816 ;;
26817
26818 *)
26819 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26820echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26821 { (exit 1); exit 1; }; }
26822 ;;
26823 esac
26824
26825 # Append the new tag name to the list of available tags.
26826 if test -n "$tagname" ; then
26827 available_tags="$available_tags $tagname"
26828 fi
26829 fi
26830 done
26831 IFS="$lt_save_ifs"
26832
26833 # Now substitute the updated list of available tags.
26834 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26835 mv "${ofile}T" "$ofile"
26836 chmod +x "$ofile"
26837 else
26838 rm -f "${ofile}T"
26839 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26840echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26841 { (exit 1); exit 1; }; }
26842 fi
26843fi
John Criswell7a73b802003-06-30 21:59:07 +000026844
26845
26846
26847# This can be used to rebuild libtool when needed
26848LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26849
26850# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026851LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026852
26853# Prevent multiple expansion
26854
26855
26856
John Criswell47fdd832003-07-14 16:52:07 +000026857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026874
Reid Spencer582a23c2004-12-29 07:07:57 +000026875if test "$lt_cv_dlopen_self" = "yes" ; then
26876
26877cat >>confdefs.h <<\_ACEOF
26878#define CAN_DLOPEN_SELF 1
26879_ACEOF
26880
26881fi
26882
Reid Spencer7931a782004-12-27 06:15:02 +000026883if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026884 LLVMGCC="llvm-gcc${EXEEXT}"
26885 LLVMGXX="llvm-g++${EXEEXT}"
26886 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26887set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026890if test "${ac_cv_path_LLVMGCC+set}" = set; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26892else
26893 case $LLVMGCC in
26894 [\\/]* | ?:[\\/]*)
26895 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26896 ;;
26897 *)
26898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26899for as_dir in $PATH
26900do
26901 IFS=$as_save_IFS
26902 test -z "$as_dir" && as_dir=.
26903 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026904 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 +000026905 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26907 break 2
26908 fi
26909done
26910done
Reid Spencera773bd52006-08-04 18:18:08 +000026911IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026912
Reid Spencer59473af2004-12-25 07:31:29 +000026913 ;;
26914esac
26915fi
26916LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026917if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026918 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26919echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026920else
Reid Spencera773bd52006-08-04 18:18:08 +000026921 { echo "$as_me:$LINENO: result: no" >&5
26922echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026923fi
26924
Reid Spencera773bd52006-08-04 18:18:08 +000026925
Reid Spencerc84492c2005-06-02 22:34:49 +000026926 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26927set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026930if test "${ac_cv_path_LLVMGXX+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26932else
26933 case $LLVMGXX in
26934 [\\/]* | ?:[\\/]*)
26935 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26936 ;;
26937 *)
26938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26939for as_dir in $PATH
26940do
26941 IFS=$as_save_IFS
26942 test -z "$as_dir" && as_dir=.
26943 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026944 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 +000026945 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26947 break 2
26948 fi
26949done
26950done
Reid Spencera773bd52006-08-04 18:18:08 +000026951IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026952
Reid Spencer59473af2004-12-25 07:31:29 +000026953 ;;
26954esac
26955fi
26956LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026957if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026958 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26959echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026960else
Reid Spencera773bd52006-08-04 18:18:08 +000026961 { echo "$as_me:$LINENO: result: no" >&5
26962echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026963fi
26964
Reid Spencera773bd52006-08-04 18:18:08 +000026965
Reid Spencer59473af2004-12-25 07:31:29 +000026966else
Devang Patel5d28b882007-12-04 22:54:47 +000026967 if test -z "$LLVMGCC"; then
26968 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26969 fi
26970 if test -z "$LLVMGXX"; then
26971 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26972 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026973 LLVMGCC=$LLVMGCC
26974
26975 LLVMGXX=$LLVMGXX
26976
26977fi
26978
Reid Spencera773bd52006-08-04 18:18:08 +000026979{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26980echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026981
Reid Spencer86901802004-12-08 23:07:27 +000026982ICC=no
26983IXX=no
26984case $CC in
26985 icc*|icpc*)
26986 ICC=yes
26987 IXX=yes
26988 ;;
26989 *)
26990 ;;
26991esac
26992
Duraid Madina937c60a2006-02-15 07:57:42 +000026993if test "$GCC" != "yes" && test "$ICC" != "yes"
26994then
26995 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26996echo "$as_me: error: gcc|icc required but not found" >&2;}
26997 { (exit 1); exit 1; }; }
26998fi
26999
27000if test "$GXX" != "yes" && test "$IXX" != "yes"
27001then
27002 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27003echo "$as_me: error: g++|icc required but not found" >&2;}
27004 { (exit 1); exit 1; }; }
27005fi
27006
Reid Spencer86901802004-12-08 23:07:27 +000027007if test "$GCC" = "yes"
27008then
Chris Lattner399c7c72008-02-05 19:43:53 +000027009 cat >conftest.$ac_ext <<_ACEOF
27010#if !defined(__GNUC__) || __GNUC__ < 3
27011#error Unsupported GCC version
27012#endif
27013
27014_ACEOF
27015rm -f conftest.$ac_objext
27016if { (ac_try="$ac_compile"
27017case "(($ac_try" in
27018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019 *) ac_try_echo=$ac_try;;
27020esac
27021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27022 (eval "$ac_compile") 2>conftest.er1
27023 ac_status=$?
27024 grep -v '^ *+' conftest.er1 >conftest.err
27025 rm -f conftest.er1
27026 cat conftest.err >&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027028 (exit $ac_status); } &&
27029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27030 { (case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27033esac
27034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_try") 2>&5
27036 ac_status=$?
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; } &&
27039 { ac_try='test -s conftest.$ac_objext'
27040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27043esac
27044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027049 :
27050else
27051 echo "$as_me: failed program was:" >&5
27052sed 's/^/| /' conftest.$ac_ext >&5
27053
27054 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027055echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27056 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027057fi
27058
27059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027060fi
27061
27062if test -z "$llvm_cv_gnu_make_command"
27063then
27064 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27065echo "$as_me: error: GNU Make required but not found" >&2;}
27066 { (exit 1); exit 1; }; }
27067fi
27068
Reid Spencera773bd52006-08-04 18:18:08 +000027069{ echo "$as_me:$LINENO: result: ok" >&5
27070echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027071
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027072
John Criswell7a73b802003-06-30 21:59:07 +000027073
Reid Spencera773bd52006-08-04 18:18:08 +000027074{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27075echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027076if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27077 echo $ECHO_N "(cached) $ECHO_C" >&6
27078else
27079 ac_check_lib_save_LIBS=$LIBS
27080LIBS="-lelf $LIBS"
27081cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027082/* confdefs.h. */
27083_ACEOF
27084cat confdefs.h >>conftest.$ac_ext
27085cat >>conftest.$ac_ext <<_ACEOF
27086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027087
Reid Spencera773bd52006-08-04 18:18:08 +000027088/* Override any GCC internal prototype to avoid an error.
27089 Use char because int might match the return type of a GCC
27090 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027091#ifdef __cplusplus
27092extern "C"
27093#endif
John Criswell7a73b802003-06-30 21:59:07 +000027094char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027095int
27096main ()
27097{
Reid Spencera773bd52006-08-04 18:18:08 +000027098return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027099 ;
27100 return 0;
27101}
27102_ACEOF
27103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027104if { (ac_try="$ac_link"
27105case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027112 grep -v '^ *+' conftest.er1 >conftest.err
27113 rm -f conftest.er1
27114 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027116 (exit $ac_status); } &&
27117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27118 { (case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27121esac
27122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27123 (eval "$ac_try") 2>&5
27124 ac_status=$?
27125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27126 (exit $ac_status); }; } &&
27127 { ac_try='test -s conftest$ac_exeext'
27128 { (case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131esac
27132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_try") 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027137 ac_cv_lib_elf_elf_begin=yes
27138else
27139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027140sed 's/^/| /' conftest.$ac_ext >&5
27141
Reid Spencera773bd52006-08-04 18:18:08 +000027142 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027143fi
Reid Spencera773bd52006-08-04 18:18:08 +000027144
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027145rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027146 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027147LIBS=$ac_check_lib_save_LIBS
27148fi
Reid Spencera773bd52006-08-04 18:18:08 +000027149{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27150echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027151if test $ac_cv_lib_elf_elf_begin = yes; then
27152 cat >>confdefs.h <<_ACEOF
27153#define HAVE_LIBELF 1
27154_ACEOF
27155
27156 LIBS="-lelf $LIBS"
27157
27158fi
27159
27160
Reid Spencera773bd52006-08-04 18:18:08 +000027161{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27162echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027163if test "${ac_cv_lib_m_sin+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165else
27166 ac_check_lib_save_LIBS=$LIBS
27167LIBS="-lm $LIBS"
27168cat >conftest.$ac_ext <<_ACEOF
27169/* confdefs.h. */
27170_ACEOF
27171cat confdefs.h >>conftest.$ac_ext
27172cat >>conftest.$ac_ext <<_ACEOF
27173/* end confdefs.h. */
27174
Reid Spencera773bd52006-08-04 18:18:08 +000027175/* Override any GCC internal prototype to avoid an error.
27176 Use char because int might match the return type of a GCC
27177 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027178#ifdef __cplusplus
27179extern "C"
27180#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027181char sin ();
27182int
27183main ()
27184{
Reid Spencera773bd52006-08-04 18:18:08 +000027185return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027186 ;
27187 return 0;
27188}
27189_ACEOF
27190rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027191if { (ac_try="$ac_link"
27192case "(($ac_try" in
27193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194 *) ac_try_echo=$ac_try;;
27195esac
27196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027198 ac_status=$?
27199 grep -v '^ *+' conftest.er1 >conftest.err
27200 rm -f conftest.er1
27201 cat conftest.err >&5
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027203 (exit $ac_status); } &&
27204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27205 { (case "(($ac_try" in
27206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27207 *) ac_try_echo=$ac_try;;
27208esac
27209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27210 (eval "$ac_try") 2>&5
27211 ac_status=$?
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); }; } &&
27214 { ac_try='test -s conftest$ac_exeext'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218esac
27219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027224 ac_cv_lib_m_sin=yes
27225else
27226 echo "$as_me: failed program was:" >&5
27227sed 's/^/| /' conftest.$ac_ext >&5
27228
Reid Spencera773bd52006-08-04 18:18:08 +000027229 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027230fi
Reid Spencera773bd52006-08-04 18:18:08 +000027231
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027232rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027233 conftest$ac_exeext conftest.$ac_ext
27234LIBS=$ac_check_lib_save_LIBS
27235fi
Reid Spencera773bd52006-08-04 18:18:08 +000027236{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27237echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027238if test $ac_cv_lib_m_sin = yes; then
27239 cat >>confdefs.h <<_ACEOF
27240#define HAVE_LIBM 1
27241_ACEOF
27242
27243 LIBS="-lm $LIBS"
27244
27245fi
27246
Jeff Cohen28783c32007-01-12 18:22:38 +000027247if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027248
Reid Spencera773bd52006-08-04 18:18:08 +000027249{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27250echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027251if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027252 echo $ECHO_N "(cached) $ECHO_C" >&6
27253else
27254 ac_check_lib_save_LIBS=$LIBS
27255LIBS="-limagehlp $LIBS"
27256cat >conftest.$ac_ext <<_ACEOF
27257/* confdefs.h. */
27258_ACEOF
27259cat confdefs.h >>conftest.$ac_ext
27260cat >>conftest.$ac_ext <<_ACEOF
27261/* end confdefs.h. */
27262
Reid Spencer48fdf912006-06-01 19:03:21 +000027263
Reid Spencer484fc8e2006-06-01 16:55:59 +000027264int
27265main ()
27266{
Reid Spencera773bd52006-08-04 18:18:08 +000027267return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027268 ;
27269 return 0;
27270}
27271_ACEOF
27272rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027273if { (ac_try="$ac_link"
27274case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027280 ac_status=$?
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
27284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027285 (exit $ac_status); } &&
27286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287 { (case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27290esac
27291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_try") 2>&5
27293 ac_status=$?
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest$ac_exeext'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27300esac
27301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027306 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027307else
27308 echo "$as_me: failed program was:" >&5
27309sed 's/^/| /' conftest.$ac_ext >&5
27310
Reid Spencera773bd52006-08-04 18:18:08 +000027311 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027312fi
Reid Spencera773bd52006-08-04 18:18:08 +000027313
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027314rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027315 conftest$ac_exeext conftest.$ac_ext
27316LIBS=$ac_check_lib_save_LIBS
27317fi
Reid Spencera773bd52006-08-04 18:18:08 +000027318{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27319echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027320if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027321 cat >>confdefs.h <<_ACEOF
27322#define HAVE_LIBIMAGEHLP 1
27323_ACEOF
27324
27325 LIBS="-limagehlp $LIBS"
27326
27327fi
27328
27329
Reid Spencera773bd52006-08-04 18:18:08 +000027330{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27331echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027332if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 ac_check_lib_save_LIBS=$LIBS
27336LIBS="-lpsapi $LIBS"
27337cat >conftest.$ac_ext <<_ACEOF
27338/* confdefs.h. */
27339_ACEOF
27340cat confdefs.h >>conftest.$ac_ext
27341cat >>conftest.$ac_ext <<_ACEOF
27342/* end confdefs.h. */
27343
Reid Spencer48fdf912006-06-01 19:03:21 +000027344
Reid Spencer484fc8e2006-06-01 16:55:59 +000027345int
27346main ()
27347{
Reid Spencera773bd52006-08-04 18:18:08 +000027348return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027354if { (ac_try="$ac_link"
27355case "(($ac_try" in
27356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357 *) ac_try_echo=$ac_try;;
27358esac
27359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027361 ac_status=$?
27362 grep -v '^ *+' conftest.er1 >conftest.err
27363 rm -f conftest.er1
27364 cat conftest.err >&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027366 (exit $ac_status); } &&
27367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27368 { (case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27371esac
27372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_try") 2>&5
27374 ac_status=$?
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27376 (exit $ac_status); }; } &&
27377 { ac_try='test -s conftest$ac_exeext'
27378 { (case "(($ac_try" in
27379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380 *) ac_try_echo=$ac_try;;
27381esac
27382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383 (eval "$ac_try") 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027387 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027388else
27389 echo "$as_me: failed program was:" >&5
27390sed 's/^/| /' conftest.$ac_ext >&5
27391
Reid Spencera773bd52006-08-04 18:18:08 +000027392 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027393fi
Reid Spencera773bd52006-08-04 18:18:08 +000027394
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027395rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027396 conftest$ac_exeext conftest.$ac_ext
27397LIBS=$ac_check_lib_save_LIBS
27398fi
Reid Spencera773bd52006-08-04 18:18:08 +000027399{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27400echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027401if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027402 cat >>confdefs.h <<_ACEOF
27403#define HAVE_LIBPSAPI 1
27404_ACEOF
27405
27406 LIBS="-lpsapi $LIBS"
27407
27408fi
27409
27410fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027411
Reid Spencera773bd52006-08-04 18:18:08 +000027412{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27413echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027414if test "${ac_cv_search_dlopen+set}" = set; then
27415 echo $ECHO_N "(cached) $ECHO_C" >&6
27416else
27417 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027418cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027419/* confdefs.h. */
27420_ACEOF
27421cat confdefs.h >>conftest.$ac_ext
27422cat >>conftest.$ac_ext <<_ACEOF
27423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027424
Reid Spencera773bd52006-08-04 18:18:08 +000027425/* Override any GCC internal prototype to avoid an error.
27426 Use char because int might match the return type of a GCC
27427 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027428#ifdef __cplusplus
27429extern "C"
27430#endif
John Criswell7a73b802003-06-30 21:59:07 +000027431char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027432int
27433main ()
27434{
Reid Spencera773bd52006-08-04 18:18:08 +000027435return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027436 ;
27437 return 0;
27438}
27439_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027440for ac_lib in '' dl; do
27441 if test -z "$ac_lib"; then
27442 ac_res="none required"
27443 else
27444 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027446 fi
27447 rm -f conftest.$ac_objext conftest$ac_exeext
27448if { (ac_try="$ac_link"
27449case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27452esac
27453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027460 (exit $ac_status); } &&
27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27462 { (case "(($ac_try" in
27463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27464 *) ac_try_echo=$ac_try;;
27465esac
27466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27467 (eval "$ac_try") 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; } &&
27471 { ac_try='test -s conftest$ac_exeext'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027481 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027482else
27483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027484sed 's/^/| /' conftest.$ac_ext >&5
27485
Reid Spencera773bd52006-08-04 18:18:08 +000027486
John Criswell7a73b802003-06-30 21:59:07 +000027487fi
Reid Spencera773bd52006-08-04 18:18:08 +000027488
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027489rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027490 conftest$ac_exeext
27491 if test "${ac_cv_search_dlopen+set}" = set; then
27492 break
John Criswell7a73b802003-06-30 21:59:07 +000027493fi
Reid Spencera773bd52006-08-04 18:18:08 +000027494done
27495if test "${ac_cv_search_dlopen+set}" = set; then
27496 :
27497else
27498 ac_cv_search_dlopen=no
27499fi
27500rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027501LIBS=$ac_func_search_save_LIBS
27502fi
Reid Spencera773bd52006-08-04 18:18:08 +000027503{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27504echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27505ac_res=$ac_cv_search_dlopen
27506if test "$ac_res" != no; then
27507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027508
27509cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027510#define HAVE_DLOPEN 1
27511_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027512
27513else
Brian Gaekec45be042003-10-07 06:01:34 +000027514 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27515echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027516fi
27517
27518
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027519{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27520echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27521if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27522 echo $ECHO_N "(cached) $ECHO_C" >&6
27523else
27524 ac_check_lib_save_LIBS=$LIBS
27525LIBS="-lffi $LIBS"
27526cat >conftest.$ac_ext <<_ACEOF
27527/* confdefs.h. */
27528_ACEOF
27529cat confdefs.h >>conftest.$ac_ext
27530cat >>conftest.$ac_ext <<_ACEOF
27531/* end confdefs.h. */
27532
27533/* Override any GCC internal prototype to avoid an error.
27534 Use char because int might match the return type of a GCC
27535 builtin and then its argument prototype would still apply. */
27536#ifdef __cplusplus
27537extern "C"
27538#endif
27539char ffi_call ();
27540int
27541main ()
27542{
27543return ffi_call ();
27544 ;
27545 return 0;
27546}
27547_ACEOF
27548rm -f conftest.$ac_objext conftest$ac_exeext
27549if { (ac_try="$ac_link"
27550case "(($ac_try" in
27551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552 *) ac_try_echo=$ac_try;;
27553esac
27554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27555 (eval "$ac_link") 2>conftest.er1
27556 ac_status=$?
27557 grep -v '^ *+' conftest.er1 >conftest.err
27558 rm -f conftest.er1
27559 cat conftest.err >&5
27560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } &&
27562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27563 { (case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_try") 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; } &&
27572 { ac_try='test -s conftest$ac_exeext'
27573 { (case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27576esac
27577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_try") 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_lib_ffi_ffi_call=yes
27583else
27584 echo "$as_me: failed program was:" >&5
27585sed 's/^/| /' conftest.$ac_ext >&5
27586
27587 ac_cv_lib_ffi_ffi_call=no
27588fi
27589
27590rm -f core conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
27592LIBS=$ac_check_lib_save_LIBS
27593fi
27594{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27595echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27596if test $ac_cv_lib_ffi_ffi_call = yes; then
27597 have_libffi=1
27598else
27599 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27600echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27601fi
27602
27603
Reid Spencera773bd52006-08-04 18:18:08 +000027604{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27605echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027606if test "${ac_cv_search_mallinfo+set}" = set; then
27607 echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027610cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027611/* confdefs.h. */
27612_ACEOF
27613cat confdefs.h >>conftest.$ac_ext
27614cat >>conftest.$ac_ext <<_ACEOF
27615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027616
Reid Spencera773bd52006-08-04 18:18:08 +000027617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027620#ifdef __cplusplus
27621extern "C"
27622#endif
John Criswell7a73b802003-06-30 21:59:07 +000027623char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027624int
27625main ()
27626{
Reid Spencera773bd52006-08-04 18:18:08 +000027627return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027628 ;
27629 return 0;
27630}
27631_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027632for ac_lib in '' malloc; do
27633 if test -z "$ac_lib"; then
27634 ac_res="none required"
27635 else
27636 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027638 fi
27639 rm -f conftest.$ac_objext conftest$ac_exeext
27640if { (ac_try="$ac_link"
27641case "(($ac_try" in
27642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643 *) ac_try_echo=$ac_try;;
27644esac
27645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27646 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027648 grep -v '^ *+' conftest.er1 >conftest.err
27649 rm -f conftest.er1
27650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027652 (exit $ac_status); } &&
27653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27654 { (case "(($ac_try" in
27655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27656 *) ac_try_echo=$ac_try;;
27657esac
27658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27659 (eval "$ac_try") 2>&5
27660 ac_status=$?
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); }; } &&
27663 { ac_try='test -s conftest$ac_exeext'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027673 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027674else
27675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027676sed 's/^/| /' conftest.$ac_ext >&5
27677
Reid Spencera773bd52006-08-04 18:18:08 +000027678
John Criswell7a73b802003-06-30 21:59:07 +000027679fi
Reid Spencera773bd52006-08-04 18:18:08 +000027680
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027681rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027682 conftest$ac_exeext
27683 if test "${ac_cv_search_mallinfo+set}" = set; then
27684 break
John Criswell7a73b802003-06-30 21:59:07 +000027685fi
Reid Spencera773bd52006-08-04 18:18:08 +000027686done
27687if test "${ac_cv_search_mallinfo+set}" = set; then
27688 :
27689else
27690 ac_cv_search_mallinfo=no
27691fi
27692rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027693LIBS=$ac_func_search_save_LIBS
27694fi
Reid Spencera773bd52006-08-04 18:18:08 +000027695{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27696echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27697ac_res=$ac_cv_search_mallinfo
27698if test "$ac_res" != no; then
27699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027700
27701cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027702#define HAVE_MALLINFO 1
27703_ACEOF
27704
27705fi
27706
27707
Reid Spencer0a262ba2005-08-24 10:07:20 +000027708if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027709
Reid Spencera773bd52006-08-04 18:18:08 +000027710{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27711echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027712if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714else
27715 ac_check_lib_save_LIBS=$LIBS
27716LIBS="-lpthread $LIBS"
27717cat >conftest.$ac_ext <<_ACEOF
27718/* confdefs.h. */
27719_ACEOF
27720cat confdefs.h >>conftest.$ac_ext
27721cat >>conftest.$ac_ext <<_ACEOF
27722/* end confdefs.h. */
27723
Reid Spencera773bd52006-08-04 18:18:08 +000027724/* Override any GCC internal prototype to avoid an error.
27725 Use char because int might match the return type of a GCC
27726 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027727#ifdef __cplusplus
27728extern "C"
27729#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027730char pthread_mutex_init ();
27731int
27732main ()
27733{
Reid Spencera773bd52006-08-04 18:18:08 +000027734return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027735 ;
27736 return 0;
27737}
27738_ACEOF
27739rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027740if { (ac_try="$ac_link"
27741case "(($ac_try" in
27742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27743 *) ac_try_echo=$ac_try;;
27744esac
27745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27746 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027752 (exit $ac_status); } &&
27753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27754 { (case "(($ac_try" in
27755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27756 *) ac_try_echo=$ac_try;;
27757esac
27758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27759 (eval "$ac_try") 2>&5
27760 ac_status=$?
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); }; } &&
27763 { ac_try='test -s conftest$ac_exeext'
27764 { (case "(($ac_try" in
27765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766 *) ac_try_echo=$ac_try;;
27767esac
27768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769 (eval "$ac_try") 2>&5
27770 ac_status=$?
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027773 ac_cv_lib_pthread_pthread_mutex_init=yes
27774else
27775 echo "$as_me: failed program was:" >&5
27776sed 's/^/| /' conftest.$ac_ext >&5
27777
Reid Spencera773bd52006-08-04 18:18:08 +000027778 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027779fi
Reid Spencera773bd52006-08-04 18:18:08 +000027780
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027781rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027782 conftest$ac_exeext conftest.$ac_ext
27783LIBS=$ac_check_lib_save_LIBS
27784fi
Reid Spencera773bd52006-08-04 18:18:08 +000027785{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27786echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027787if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27788 cat >>confdefs.h <<_ACEOF
27789#define HAVE_LIBPTHREAD 1
27790_ACEOF
27791
27792 LIBS="-lpthread $LIBS"
27793
27794fi
27795
Reid Spencera773bd52006-08-04 18:18:08 +000027796 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27797echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027798if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27799 echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027802cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803/* confdefs.h. */
27804_ACEOF
27805cat confdefs.h >>conftest.$ac_ext
27806cat >>conftest.$ac_ext <<_ACEOF
27807/* end confdefs.h. */
27808
Reid Spencera773bd52006-08-04 18:18:08 +000027809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027812#ifdef __cplusplus
27813extern "C"
27814#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027815char pthread_mutex_lock ();
27816int
27817main ()
27818{
Reid Spencera773bd52006-08-04 18:18:08 +000027819return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027820 ;
27821 return 0;
27822}
27823_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027824for ac_lib in '' pthread; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27827 else
27828 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027830 fi
27831 rm -f conftest.$ac_objext conftest$ac_exeext
27832if { (ac_try="$ac_link"
27833case "(($ac_try" in
27834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835 *) ac_try_echo=$ac_try;;
27836esac
27837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027839 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027840 grep -v '^ *+' conftest.er1 >conftest.err
27841 rm -f conftest.er1
27842 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027844 (exit $ac_status); } &&
27845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
27852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; } &&
27855 { ac_try='test -s conftest$ac_exeext'
27856 { (case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861 (eval "$ac_try") 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027865 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027866else
27867 echo "$as_me: failed program was:" >&5
27868sed 's/^/| /' conftest.$ac_ext >&5
27869
Reid Spencera773bd52006-08-04 18:18:08 +000027870
Brian Gaeke5f268f72003-12-05 19:29:01 +000027871fi
Reid Spencera773bd52006-08-04 18:18:08 +000027872
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027873rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027874 conftest$ac_exeext
27875 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27876 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027877fi
Reid Spencera773bd52006-08-04 18:18:08 +000027878done
27879if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27880 :
27881else
27882 ac_cv_search_pthread_mutex_lock=no
27883fi
27884rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027885LIBS=$ac_func_search_save_LIBS
27886fi
Reid Spencera773bd52006-08-04 18:18:08 +000027887{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27888echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27889ac_res=$ac_cv_search_pthread_mutex_lock
27890if test "$ac_res" != no; then
27891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027892
John Criswell40468462004-09-24 21:19:06 +000027893cat >>confdefs.h <<\_ACEOF
27894#define HAVE_PTHREAD_MUTEX_LOCK 1
27895_ACEOF
27896
27897fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027898
Reid Spencer0a262ba2005-08-24 10:07:20 +000027899fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027900
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027901
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027902# Check whether --with-udis86 was given.
27903if test "${with_udis86+set}" = set; then
27904 withval=$with_udis86;
27905 USE_UDIS86=1
27906
27907 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027908 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027909 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27910 esac
27911
27912{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27913echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27914if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27915 echo $ECHO_N "(cached) $ECHO_C" >&6
27916else
27917 ac_check_lib_save_LIBS=$LIBS
27918LIBS="-ludis86 $LIBS"
27919cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h. */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h. */
27925
27926/* Override any GCC internal prototype to avoid an error.
27927 Use char because int might match the return type of a GCC
27928 builtin and then its argument prototype would still apply. */
27929#ifdef __cplusplus
27930extern "C"
27931#endif
27932char ud_init ();
27933int
27934main ()
27935{
27936return ud_init ();
27937 ;
27938 return 0;
27939}
27940_ACEOF
27941rm -f conftest.$ac_objext conftest$ac_exeext
27942if { (ac_try="$ac_link"
27943case "(($ac_try" in
27944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27945 *) ac_try_echo=$ac_try;;
27946esac
27947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27948 (eval "$ac_link") 2>conftest.er1
27949 ac_status=$?
27950 grep -v '^ *+' conftest.er1 >conftest.err
27951 rm -f conftest.er1
27952 cat conftest.err >&5
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027954 (exit $ac_status); } &&
27955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27956 { (case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27959esac
27960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_try") 2>&5
27962 ac_status=$?
27963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; } &&
27965 { ac_try='test -s conftest$ac_exeext'
27966 { (case "(($ac_try" in
27967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968 *) ac_try_echo=$ac_try;;
27969esac
27970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27971 (eval "$ac_try") 2>&5
27972 ac_status=$?
27973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27974 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027975 ac_cv_lib_udis86_ud_init=yes
27976else
27977 echo "$as_me: failed program was:" >&5
27978sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 ac_cv_lib_udis86_ud_init=no
27981fi
27982
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027983rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027984 conftest$ac_exeext conftest.$ac_ext
27985LIBS=$ac_check_lib_save_LIBS
27986fi
27987{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27988echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27989if test $ac_cv_lib_udis86_ud_init = yes; then
27990 cat >>confdefs.h <<_ACEOF
27991#define HAVE_LIBUDIS86 1
27992_ACEOF
27993
27994 LIBS="-ludis86 $LIBS"
27995
27996else
27997
27998 echo "Error! You need to have libudis86 around."
27999 exit -1
28000
28001fi
28002
28003
28004else
28005 USE_UDIS86=0
28006
28007fi
28008
28009
28010cat >>confdefs.h <<_ACEOF
28011#define USE_UDIS86 $USE_UDIS86
28012_ACEOF
28013
28014
28015
Reid Spencer59473af2004-12-25 07:31:29 +000028016
28017
28018
28019
28020
28021ac_header_dirent=no
28022for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28023 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028024{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28025echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028027 echo $ECHO_N "(cached) $ECHO_C" >&6
28028else
28029 cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035#include <sys/types.h>
28036#include <$ac_hdr>
28037
28038int
28039main ()
28040{
28041if ((DIR *) 0)
28042return 0;
28043 ;
28044 return 0;
28045}
28046_ACEOF
28047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028048if { (ac_try="$ac_compile"
28049case "(($ac_try" in
28050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28051 *) ac_try_echo=$ac_try;;
28052esac
28053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28054 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028055 ac_status=$?
28056 grep -v '^ *+' conftest.er1 >conftest.err
28057 rm -f conftest.er1
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28062 { (case "(($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_try") 2>&5
28068 ac_status=$?
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070 (exit $ac_status); }; } &&
28071 { ac_try='test -s conftest.$ac_objext'
28072 { (case "(($ac_try" in
28073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28074 *) ac_try_echo=$ac_try;;
28075esac
28076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28077 (eval "$ac_try") 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028081 eval "$as_ac_Header=yes"
28082else
28083 echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
Reid Spencera773bd52006-08-04 18:18:08 +000028086 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028087fi
Reid Spencera773bd52006-08-04 18:18:08 +000028088
28089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028090fi
Reid Spencera773bd52006-08-04 18:18:08 +000028091ac_res=`eval echo '${'$as_ac_Header'}'`
28092 { echo "$as_me:$LINENO: result: $ac_res" >&5
28093echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028094if test `eval echo '${'$as_ac_Header'}'` = yes; then
28095 cat >>confdefs.h <<_ACEOF
28096#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28097_ACEOF
28098
28099ac_header_dirent=$ac_hdr; break
28100fi
28101
28102done
28103# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28104if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028105 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28106echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028107if test "${ac_cv_search_opendir+set}" = set; then
28108 echo $ECHO_N "(cached) $ECHO_C" >&6
28109else
28110 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028111cat >conftest.$ac_ext <<_ACEOF
28112/* confdefs.h. */
28113_ACEOF
28114cat confdefs.h >>conftest.$ac_ext
28115cat >>conftest.$ac_ext <<_ACEOF
28116/* end confdefs.h. */
28117
Reid Spencera773bd52006-08-04 18:18:08 +000028118/* Override any GCC internal prototype to avoid an error.
28119 Use char because int might match the return type of a GCC
28120 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028121#ifdef __cplusplus
28122extern "C"
28123#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028124char opendir ();
28125int
28126main ()
28127{
Reid Spencera773bd52006-08-04 18:18:08 +000028128return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028129 ;
28130 return 0;
28131}
28132_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028133for ac_lib in '' dir; do
28134 if test -z "$ac_lib"; then
28135 ac_res="none required"
28136 else
28137 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028139 fi
28140 rm -f conftest.$ac_objext conftest$ac_exeext
28141if { (ac_try="$ac_link"
28142case "(($ac_try" in
28143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28144 *) ac_try_echo=$ac_try;;
28145esac
28146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28147 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028148 ac_status=$?
28149 grep -v '^ *+' conftest.er1 >conftest.err
28150 rm -f conftest.er1
28151 cat conftest.err >&5
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028153 (exit $ac_status); } &&
28154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28155 { (case "(($ac_try" in
28156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28157 *) ac_try_echo=$ac_try;;
28158esac
28159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28160 (eval "$ac_try") 2>&5
28161 ac_status=$?
28162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28163 (exit $ac_status); }; } &&
28164 { ac_try='test -s conftest$ac_exeext'
28165 { (case "(($ac_try" in
28166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28167 *) ac_try_echo=$ac_try;;
28168esac
28169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28170 (eval "$ac_try") 2>&5
28171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028174 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028175else
28176 echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178
Reid Spencera773bd52006-08-04 18:18:08 +000028179
Reid Spencer59473af2004-12-25 07:31:29 +000028180fi
Reid Spencera773bd52006-08-04 18:18:08 +000028181
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028182rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028183 conftest$ac_exeext
28184 if test "${ac_cv_search_opendir+set}" = set; then
28185 break
Reid Spencer59473af2004-12-25 07:31:29 +000028186fi
Reid Spencera773bd52006-08-04 18:18:08 +000028187done
28188if test "${ac_cv_search_opendir+set}" = set; then
28189 :
28190else
28191 ac_cv_search_opendir=no
28192fi
28193rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028194LIBS=$ac_func_search_save_LIBS
28195fi
Reid Spencera773bd52006-08-04 18:18:08 +000028196{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28197echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28198ac_res=$ac_cv_search_opendir
28199if test "$ac_res" != no; then
28200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028201
28202fi
28203
28204else
Reid Spencera773bd52006-08-04 18:18:08 +000028205 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28206echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028207if test "${ac_cv_search_opendir+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209else
28210 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028211cat >conftest.$ac_ext <<_ACEOF
28212/* confdefs.h. */
28213_ACEOF
28214cat confdefs.h >>conftest.$ac_ext
28215cat >>conftest.$ac_ext <<_ACEOF
28216/* end confdefs.h. */
28217
Reid Spencera773bd52006-08-04 18:18:08 +000028218/* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028221#ifdef __cplusplus
28222extern "C"
28223#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028224char opendir ();
28225int
28226main ()
28227{
Reid Spencera773bd52006-08-04 18:18:08 +000028228return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028229 ;
28230 return 0;
28231}
28232_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028233for ac_lib in '' x; do
28234 if test -z "$ac_lib"; then
28235 ac_res="none required"
28236 else
28237 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028239 fi
28240 rm -f conftest.$ac_objext conftest$ac_exeext
28241if { (ac_try="$ac_link"
28242case "(($ac_try" in
28243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28244 *) ac_try_echo=$ac_try;;
28245esac
28246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28247 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028248 ac_status=$?
28249 grep -v '^ *+' conftest.er1 >conftest.err
28250 rm -f conftest.er1
28251 cat conftest.err >&5
28252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028253 (exit $ac_status); } &&
28254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28255 { (case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28258esac
28259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28260 (eval "$ac_try") 2>&5
28261 ac_status=$?
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); }; } &&
28264 { ac_try='test -s conftest$ac_exeext'
28265 { (case "(($ac_try" in
28266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267 *) ac_try_echo=$ac_try;;
28268esac
28269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270 (eval "$ac_try") 2>&5
28271 ac_status=$?
28272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28273 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028274 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028275else
28276 echo "$as_me: failed program was:" >&5
28277sed 's/^/| /' conftest.$ac_ext >&5
28278
Reid Spencera773bd52006-08-04 18:18:08 +000028279
Reid Spencer59473af2004-12-25 07:31:29 +000028280fi
Reid Spencera773bd52006-08-04 18:18:08 +000028281
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028282rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028283 conftest$ac_exeext
28284 if test "${ac_cv_search_opendir+set}" = set; then
28285 break
Reid Spencer59473af2004-12-25 07:31:29 +000028286fi
Reid Spencera773bd52006-08-04 18:18:08 +000028287done
28288if test "${ac_cv_search_opendir+set}" = set; then
28289 :
28290else
28291 ac_cv_search_opendir=no
28292fi
28293rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028294LIBS=$ac_func_search_save_LIBS
28295fi
Reid Spencera773bd52006-08-04 18:18:08 +000028296{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28297echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28298ac_res=$ac_cv_search_opendir
28299if test "$ac_res" != no; then
28300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028301
28302fi
28303
28304fi
28305
Reid Spencera773bd52006-08-04 18:18:08 +000028306{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28307echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028308if test "${ac_cv_header_mmap_anon+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311 ac_ext=c
28312ac_cpp='$CPP $CPPFLAGS'
28313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28315ac_compiler_gnu=$ac_cv_c_compiler_gnu
28316
28317 cat >conftest.$ac_ext <<_ACEOF
28318/* confdefs.h. */
28319_ACEOF
28320cat confdefs.h >>conftest.$ac_ext
28321cat >>conftest.$ac_ext <<_ACEOF
28322/* end confdefs.h. */
28323#include <sys/mman.h>
28324#include <unistd.h>
28325#include <fcntl.h>
28326int
28327main ()
28328{
28329mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28330 ;
28331 return 0;
28332}
28333_ACEOF
28334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028335if { (ac_try="$ac_compile"
28336case "(($ac_try" in
28337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338 *) ac_try_echo=$ac_try;;
28339esac
28340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028342 ac_status=$?
28343 grep -v '^ *+' conftest.er1 >conftest.err
28344 rm -f conftest.er1
28345 cat conftest.err >&5
28346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028347 (exit $ac_status); } &&
28348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28349 { (case "(($ac_try" in
28350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28351 *) ac_try_echo=$ac_try;;
28352esac
28353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28354 (eval "$ac_try") 2>&5
28355 ac_status=$?
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); }; } &&
28358 { ac_try='test -s conftest.$ac_objext'
28359 { (case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362esac
28363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_try") 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028368 ac_cv_header_mmap_anon=yes
28369else
28370 echo "$as_me: failed program was:" >&5
28371sed 's/^/| /' conftest.$ac_ext >&5
28372
Reid Spencera773bd52006-08-04 18:18:08 +000028373 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028374fi
Reid Spencera773bd52006-08-04 18:18:08 +000028375
28376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028377 ac_ext=c
28378ac_cpp='$CPP $CPPFLAGS'
28379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383
28384fi
Reid Spencera773bd52006-08-04 18:18:08 +000028385{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28386echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028387if test "$ac_cv_header_mmap_anon" = yes; then
28388
28389cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028390#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028391_ACEOF
28392
28393fi
28394
Reid Spencera773bd52006-08-04 18:18:08 +000028395{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28396echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028397if test "${ac_cv_header_stat_broken+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28399else
28400 cat >conftest.$ac_ext <<_ACEOF
28401/* confdefs.h. */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h. */
28406#include <sys/types.h>
28407#include <sys/stat.h>
28408
Reid Spencera773bd52006-08-04 18:18:08 +000028409#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028410# if S_ISBLK (S_IFDIR)
28411You lose.
28412# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028413#endif
28414
Reid Spencera773bd52006-08-04 18:18:08 +000028415#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028416# if S_ISBLK (S_IFCHR)
28417You lose.
28418# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028419#endif
28420
Reid Spencera773bd52006-08-04 18:18:08 +000028421#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028422# if S_ISLNK (S_IFREG)
28423You lose.
28424# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028425#endif
28426
Reid Spencera773bd52006-08-04 18:18:08 +000028427#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028428# if S_ISSOCK (S_IFREG)
28429You lose.
28430# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028431#endif
28432
28433_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028434if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28435 $EGREP "You lose" >/dev/null 2>&1; then
28436 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028437else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028438 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028439fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028440rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028441
Reid Spencer59473af2004-12-25 07:31:29 +000028442fi
Reid Spencera773bd52006-08-04 18:18:08 +000028443{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28444echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028445if test $ac_cv_header_stat_broken = yes; then
28446
28447cat >>confdefs.h <<\_ACEOF
28448#define STAT_MACROS_BROKEN 1
28449_ACEOF
28450
28451fi
28452
Reid Spencera773bd52006-08-04 18:18:08 +000028453{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28454echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028455if test "${ac_cv_header_stdc+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28457else
28458 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028459/* confdefs.h. */
28460_ACEOF
28461cat confdefs.h >>conftest.$ac_ext
28462cat >>conftest.$ac_ext <<_ACEOF
28463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028464#include <stdlib.h>
28465#include <stdarg.h>
28466#include <string.h>
28467#include <float.h>
28468
John Criswell0c38eaf2003-09-10 15:17:25 +000028469int
28470main ()
28471{
28472
28473 ;
28474 return 0;
28475}
John Criswell7a73b802003-06-30 21:59:07 +000028476_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028477rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028478if { (ac_try="$ac_compile"
28479case "(($ac_try" in
28480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28481 *) ac_try_echo=$ac_try;;
28482esac
28483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28484 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028485 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028486 grep -v '^ *+' conftest.er1 >conftest.err
28487 rm -f conftest.er1
28488 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028490 (exit $ac_status); } &&
28491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28492 { (case "(($ac_try" in
28493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28494 *) ac_try_echo=$ac_try;;
28495esac
28496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28497 (eval "$ac_try") 2>&5
28498 ac_status=$?
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; } &&
28501 { ac_try='test -s conftest.$ac_objext'
28502 { (case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_try") 2>&5
28508 ac_status=$?
28509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028511 ac_cv_header_stdc=yes
28512else
28513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028514sed 's/^/| /' conftest.$ac_ext >&5
28515
Reid Spencera773bd52006-08-04 18:18:08 +000028516 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028517fi
Reid Spencera773bd52006-08-04 18:18:08 +000028518
28519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028520
28521if test $ac_cv_header_stdc = yes; then
28522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028524/* confdefs.h. */
28525_ACEOF
28526cat confdefs.h >>conftest.$ac_ext
28527cat >>conftest.$ac_ext <<_ACEOF
28528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028529#include <string.h>
28530
28531_ACEOF
28532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028533 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028534 :
28535else
28536 ac_cv_header_stdc=no
28537fi
28538rm -f conftest*
28539
28540fi
28541
28542if test $ac_cv_header_stdc = yes; then
28543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028545/* confdefs.h. */
28546_ACEOF
28547cat confdefs.h >>conftest.$ac_ext
28548cat >>conftest.$ac_ext <<_ACEOF
28549/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028550#include <stdlib.h>
28551
28552_ACEOF
28553if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028554 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028555 :
28556else
28557 ac_cv_header_stdc=no
28558fi
28559rm -f conftest*
28560
28561fi
28562
28563if test $ac_cv_header_stdc = yes; then
28564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28565 if test "$cross_compiling" = yes; then
28566 :
28567else
28568 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028574#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028575#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028576#if ((' ' & 0x0FF) == 0x020)
28577# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28578# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28579#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028580# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028581 (('a' <= (c) && (c) <= 'i') \
28582 || ('j' <= (c) && (c) <= 'r') \
28583 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028584# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28585#endif
28586
28587#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28588int
28589main ()
28590{
28591 int i;
28592 for (i = 0; i < 256; i++)
28593 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028594 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028595 return 2;
28596 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028597}
28598_ACEOF
28599rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028600if { (ac_try="$ac_link"
28601case "(($ac_try" in
28602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603 *) ac_try_echo=$ac_try;;
28604esac
28605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028607 ac_status=$?
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
28619 :
28620else
28621 echo "$as_me: program exited with status $ac_status" >&5
28622echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028623sed 's/^/| /' conftest.$ac_ext >&5
28624
John Criswell7a73b802003-06-30 21:59:07 +000028625( exit $ac_status )
28626ac_cv_header_stdc=no
28627fi
Reid Spencera773bd52006-08-04 18:18:08 +000028628rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28629fi
28630
28631
John Criswell7a73b802003-06-30 21:59:07 +000028632fi
28633fi
Reid Spencera773bd52006-08-04 18:18:08 +000028634{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28635echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028636if test $ac_cv_header_stdc = yes; then
28637
28638cat >>confdefs.h <<\_ACEOF
28639#define STDC_HEADERS 1
28640_ACEOF
28641
28642fi
28643
Reid Spencera773bd52006-08-04 18:18:08 +000028644{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28645echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028646if test "${ac_cv_header_sys_wait_h+set}" = set; then
28647 echo $ECHO_N "(cached) $ECHO_C" >&6
28648else
28649 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028655#include <sys/types.h>
28656#include <sys/wait.h>
28657#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028658# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028659#endif
28660#ifndef WIFEXITED
28661# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28662#endif
28663
John Criswell7a73b802003-06-30 21:59:07 +000028664int
28665main ()
28666{
28667 int s;
28668 wait (&s);
28669 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28670 ;
28671 return 0;
28672}
28673_ACEOF
28674rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028675if { (ac_try="$ac_compile"
28676case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679esac
28680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28681 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028683 grep -v '^ *+' conftest.er1 >conftest.err
28684 rm -f conftest.er1
28685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028687 (exit $ac_status); } &&
28688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28689 { (case "(($ac_try" in
28690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691 *) ac_try_echo=$ac_try;;
28692esac
28693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694 (eval "$ac_try") 2>&5
28695 ac_status=$?
28696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28697 (exit $ac_status); }; } &&
28698 { ac_try='test -s conftest.$ac_objext'
28699 { (case "(($ac_try" in
28700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28701 *) ac_try_echo=$ac_try;;
28702esac
28703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28704 (eval "$ac_try") 2>&5
28705 ac_status=$?
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028708 ac_cv_header_sys_wait_h=yes
28709else
28710 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028711sed 's/^/| /' conftest.$ac_ext >&5
28712
Reid Spencera773bd52006-08-04 18:18:08 +000028713 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028714fi
Reid Spencera773bd52006-08-04 18:18:08 +000028715
28716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028717fi
Reid Spencera773bd52006-08-04 18:18:08 +000028718{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28719echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028720if test $ac_cv_header_sys_wait_h = yes; then
28721
28722cat >>confdefs.h <<\_ACEOF
28723#define HAVE_SYS_WAIT_H 1
28724_ACEOF
28725
28726fi
28727
Reid Spencera773bd52006-08-04 18:18:08 +000028728{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28729echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028730if test "${ac_cv_header_time+set}" = set; then
28731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732else
28733 cat >conftest.$ac_ext <<_ACEOF
28734/* confdefs.h. */
28735_ACEOF
28736cat confdefs.h >>conftest.$ac_ext
28737cat >>conftest.$ac_ext <<_ACEOF
28738/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028739#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028740#include <sys/time.h>
28741#include <time.h>
28742
28743int
28744main ()
28745{
28746if ((struct tm *) 0)
28747return 0;
28748 ;
28749 return 0;
28750}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028751_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028752rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028753if { (ac_try="$ac_compile"
28754case "(($ac_try" in
28755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28756 *) ac_try_echo=$ac_try;;
28757esac
28758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28759 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028760 ac_status=$?
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028765 (exit $ac_status); } &&
28766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28767 { (case "(($ac_try" in
28768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28769 *) ac_try_echo=$ac_try;;
28770esac
28771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28772 (eval "$ac_try") 2>&5
28773 ac_status=$?
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; } &&
28776 { ac_try='test -s conftest.$ac_objext'
28777 { (case "(($ac_try" in
28778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28779 *) ac_try_echo=$ac_try;;
28780esac
28781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28782 (eval "$ac_try") 2>&5
28783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028786 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028787else
28788 echo "$as_me: failed program was:" >&5
28789sed 's/^/| /' conftest.$ac_ext >&5
28790
Reid Spencera773bd52006-08-04 18:18:08 +000028791 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028792fi
Reid Spencera773bd52006-08-04 18:18:08 +000028793
28794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028795fi
Reid Spencera773bd52006-08-04 18:18:08 +000028796{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28797echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028798if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028799
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028800cat >>confdefs.h <<\_ACEOF
28801#define TIME_WITH_SYS_TIME 1
28802_ACEOF
28803
28804fi
28805
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028806
Reid Spencer59473af2004-12-25 07:31:29 +000028807
28808
28809
28810
28811
28812
28813for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28814do
28815as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028820 echo $ECHO_N "(cached) $ECHO_C" >&6
28821fi
Reid Spencera773bd52006-08-04 18:18:08 +000028822ac_res=`eval echo '${'$as_ac_Header'}'`
28823 { echo "$as_me:$LINENO: result: $ac_res" >&5
28824echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028825else
28826 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028827{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028829cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028830/* confdefs.h. */
28831_ACEOF
28832cat confdefs.h >>conftest.$ac_ext
28833cat >>conftest.$ac_ext <<_ACEOF
28834/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028835$ac_includes_default
28836#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028837_ACEOF
28838rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028839if { (ac_try="$ac_compile"
28840case "(($ac_try" in
28841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842 *) ac_try_echo=$ac_try;;
28843esac
28844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028846 ac_status=$?
28847 grep -v '^ *+' conftest.er1 >conftest.err
28848 rm -f conftest.er1
28849 cat conftest.err >&5
28850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028851 (exit $ac_status); } &&
28852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28853 { (case "(($ac_try" in
28854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28855 *) ac_try_echo=$ac_try;;
28856esac
28857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28858 (eval "$ac_try") 2>&5
28859 ac_status=$?
28860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 (exit $ac_status); }; } &&
28862 { ac_try='test -s conftest.$ac_objext'
28863 { (case "(($ac_try" in
28864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28865 *) ac_try_echo=$ac_try;;
28866esac
28867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28868 (eval "$ac_try") 2>&5
28869 ac_status=$?
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028872 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028873else
28874 echo "$as_me: failed program was:" >&5
28875sed 's/^/| /' conftest.$ac_ext >&5
28876
Reid Spencera773bd52006-08-04 18:18:08 +000028877 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028878fi
Reid Spencera773bd52006-08-04 18:18:08 +000028879
28880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28881{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28882echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028883
Reid Spencer59473af2004-12-25 07:31:29 +000028884# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028885{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028887cat >conftest.$ac_ext <<_ACEOF
28888/* confdefs.h. */
28889_ACEOF
28890cat confdefs.h >>conftest.$ac_ext
28891cat >>conftest.$ac_ext <<_ACEOF
28892/* end confdefs.h. */
28893#include <$ac_header>
28894_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028895if { (ac_try="$ac_cpp conftest.$ac_ext"
28896case "(($ac_try" in
28897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898 *) ac_try_echo=$ac_try;;
28899esac
28900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028902 ac_status=$?
28903 grep -v '^ *+' conftest.er1 >conftest.err
28904 rm -f conftest.er1
28905 cat conftest.err >&5
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028907 (exit $ac_status); } >/dev/null; then
28908 if test -s conftest.err; then
28909 ac_cpp_err=$ac_c_preproc_warn_flag
28910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28911 else
28912 ac_cpp_err=
28913 fi
28914else
28915 ac_cpp_err=yes
28916fi
28917if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028918 ac_header_preproc=yes
28919else
28920 echo "$as_me: failed program was:" >&5
28921sed 's/^/| /' conftest.$ac_ext >&5
28922
28923 ac_header_preproc=no
28924fi
Reid Spencera773bd52006-08-04 18:18:08 +000028925
Reid Spencer59473af2004-12-25 07:31:29 +000028926rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028927{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28928echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028929
28930# So? What about this header?
28931case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28932 yes:no: )
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28936echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28937 ac_header_preproc=yes
28938 ;;
28939 no:yes:* )
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28941echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28943echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28945echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28947echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28949echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28951echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028952 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028953## ----------------------------------- ##
28954## Report this to llvmbugs@cs.uiuc.edu ##
28955## ----------------------------------- ##
28956_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028957 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028958 ;;
28959esac
Reid Spencera773bd52006-08-04 18:18:08 +000028960{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28961echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28962if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028963 echo $ECHO_N "(cached) $ECHO_C" >&6
28964else
28965 eval "$as_ac_Header=\$ac_header_preproc"
28966fi
Reid Spencera773bd52006-08-04 18:18:08 +000028967ac_res=`eval echo '${'$as_ac_Header'}'`
28968 { echo "$as_me:$LINENO: result: $ac_res" >&5
28969echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028970
28971fi
Reid Spencer59473af2004-12-25 07:31:29 +000028972if test `eval echo '${'$as_ac_Header'}'` = yes; then
28973 cat >>confdefs.h <<_ACEOF
28974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028975_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028976
28977fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028978
Reid Spencer59473af2004-12-25 07:31:29 +000028979done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028980
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028981
28982
Reid Spencer59473af2004-12-25 07:31:29 +000028983
28984
28985
28986
Reid Spencercdb08a32006-06-05 16:11:07 +000028987for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028988do
28989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028994 echo $ECHO_N "(cached) $ECHO_C" >&6
28995fi
Reid Spencera773bd52006-08-04 18:18:08 +000028996ac_res=`eval echo '${'$as_ac_Header'}'`
28997 { echo "$as_me:$LINENO: result: $ac_res" >&5
28998echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028999else
29000 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029001{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29002echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029003cat >conftest.$ac_ext <<_ACEOF
29004/* confdefs.h. */
29005_ACEOF
29006cat confdefs.h >>conftest.$ac_ext
29007cat >>conftest.$ac_ext <<_ACEOF
29008/* end confdefs.h. */
29009$ac_includes_default
29010#include <$ac_header>
29011_ACEOF
29012rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029013if { (ac_try="$ac_compile"
29014case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017esac
29018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029020 ac_status=$?
29021 grep -v '^ *+' conftest.er1 >conftest.err
29022 rm -f conftest.er1
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029025 (exit $ac_status); } &&
29026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29027 { (case "(($ac_try" in
29028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29029 *) ac_try_echo=$ac_try;;
29030esac
29031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29032 (eval "$ac_try") 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; } &&
29036 { ac_try='test -s conftest.$ac_objext'
29037 { (case "(($ac_try" in
29038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29039 *) ac_try_echo=$ac_try;;
29040esac
29041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29042 (eval "$ac_try") 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029046 ac_header_compiler=yes
29047else
29048 echo "$as_me: failed program was:" >&5
29049sed 's/^/| /' conftest.$ac_ext >&5
29050
Reid Spencera773bd52006-08-04 18:18:08 +000029051 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029052fi
Reid Spencera773bd52006-08-04 18:18:08 +000029053
29054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29055{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29056echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029057
29058# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029059{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029061cat >conftest.$ac_ext <<_ACEOF
29062/* confdefs.h. */
29063_ACEOF
29064cat confdefs.h >>conftest.$ac_ext
29065cat >>conftest.$ac_ext <<_ACEOF
29066/* end confdefs.h. */
29067#include <$ac_header>
29068_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029069if { (ac_try="$ac_cpp conftest.$ac_ext"
29070case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29073esac
29074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029076 ac_status=$?
29077 grep -v '^ *+' conftest.er1 >conftest.err
29078 rm -f conftest.er1
29079 cat conftest.err >&5
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029081 (exit $ac_status); } >/dev/null; then
29082 if test -s conftest.err; then
29083 ac_cpp_err=$ac_c_preproc_warn_flag
29084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29085 else
29086 ac_cpp_err=
29087 fi
29088else
29089 ac_cpp_err=yes
29090fi
29091if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029092 ac_header_preproc=yes
29093else
29094 echo "$as_me: failed program was:" >&5
29095sed 's/^/| /' conftest.$ac_ext >&5
29096
29097 ac_header_preproc=no
29098fi
Reid Spencera773bd52006-08-04 18:18:08 +000029099
Reid Spencer59473af2004-12-25 07:31:29 +000029100rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029101{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29102echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029103
29104# So? What about this header?
29105case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29106 yes:no: )
29107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29108echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29110echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29111 ac_header_preproc=yes
29112 ;;
29113 no:yes:* )
29114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29115echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29117echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29119echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29121echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29123echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29125echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029126 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029127## ----------------------------------- ##
29128## Report this to llvmbugs@cs.uiuc.edu ##
29129## ----------------------------------- ##
29130_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029131 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029132 ;;
29133esac
Reid Spencera773bd52006-08-04 18:18:08 +000029134{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29136if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029137 echo $ECHO_N "(cached) $ECHO_C" >&6
29138else
29139 eval "$as_ac_Header=\$ac_header_preproc"
29140fi
Reid Spencera773bd52006-08-04 18:18:08 +000029141ac_res=`eval echo '${'$as_ac_Header'}'`
29142 { echo "$as_me:$LINENO: result: $ac_res" >&5
29143echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029144
29145fi
29146if test `eval echo '${'$as_ac_Header'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29149_ACEOF
29150
29151fi
29152
29153done
29154
29155
Reid Spencerbe3e4192007-08-17 05:45:26 +000029156for ac_header in windows.h
29157do
29158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29163 echo $ECHO_N "(cached) $ECHO_C" >&6
29164fi
29165ac_res=`eval echo '${'$as_ac_Header'}'`
29166 { echo "$as_me:$LINENO: result: $ac_res" >&5
29167echo "${ECHO_T}$ac_res" >&6; }
29168else
29169 # Is the header compilable?
29170{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29171echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29172cat >conftest.$ac_ext <<_ACEOF
29173/* confdefs.h. */
29174_ACEOF
29175cat confdefs.h >>conftest.$ac_ext
29176cat >>conftest.$ac_ext <<_ACEOF
29177/* end confdefs.h. */
29178$ac_includes_default
29179#include <$ac_header>
29180_ACEOF
29181rm -f conftest.$ac_objext
29182if { (ac_try="$ac_compile"
29183case "(($ac_try" in
29184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185 *) ac_try_echo=$ac_try;;
29186esac
29187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188 (eval "$ac_compile") 2>conftest.er1
29189 ac_status=$?
29190 grep -v '^ *+' conftest.er1 >conftest.err
29191 rm -f conftest.er1
29192 cat conftest.err >&5
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029194 (exit $ac_status); } &&
29195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29199esac
29200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; } &&
29205 { ac_try='test -s conftest.$ac_objext'
29206 { (case "(($ac_try" in
29207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29208 *) ac_try_echo=$ac_try;;
29209esac
29210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29211 (eval "$ac_try") 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029215 ac_header_compiler=yes
29216else
29217 echo "$as_me: failed program was:" >&5
29218sed 's/^/| /' conftest.$ac_ext >&5
29219
29220 ac_header_compiler=no
29221fi
29222
29223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29224{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29225echo "${ECHO_T}$ac_header_compiler" >&6; }
29226
29227# Is the header present?
29228{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29229echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29230cat >conftest.$ac_ext <<_ACEOF
29231/* confdefs.h. */
29232_ACEOF
29233cat confdefs.h >>conftest.$ac_ext
29234cat >>conftest.$ac_ext <<_ACEOF
29235/* end confdefs.h. */
29236#include <$ac_header>
29237_ACEOF
29238if { (ac_try="$ac_cpp conftest.$ac_ext"
29239case "(($ac_try" in
29240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241 *) ac_try_echo=$ac_try;;
29242esac
29243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29245 ac_status=$?
29246 grep -v '^ *+' conftest.er1 >conftest.err
29247 rm -f conftest.er1
29248 cat conftest.err >&5
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029250 (exit $ac_status); } >/dev/null; then
29251 if test -s conftest.err; then
29252 ac_cpp_err=$ac_c_preproc_warn_flag
29253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29254 else
29255 ac_cpp_err=
29256 fi
29257else
29258 ac_cpp_err=yes
29259fi
29260if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029261 ac_header_preproc=yes
29262else
29263 echo "$as_me: failed program was:" >&5
29264sed 's/^/| /' conftest.$ac_ext >&5
29265
29266 ac_header_preproc=no
29267fi
29268
29269rm -f conftest.err conftest.$ac_ext
29270{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29271echo "${ECHO_T}$ac_header_preproc" >&6; }
29272
29273# So? What about this header?
29274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29275 yes:no: )
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29280 ac_header_preproc=yes
29281 ;;
29282 no:yes:* )
29283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29295 ( cat <<\_ASBOX
29296## ----------------------------------- ##
29297## Report this to llvmbugs@cs.uiuc.edu ##
29298## ----------------------------------- ##
29299_ASBOX
29300 ) | sed "s/^/$as_me: WARNING: /" >&2
29301 ;;
29302esac
29303{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29305if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29306 echo $ECHO_N "(cached) $ECHO_C" >&6
29307else
29308 eval "$as_ac_Header=\$ac_header_preproc"
29309fi
29310ac_res=`eval echo '${'$as_ac_Header'}'`
29311 { echo "$as_me:$LINENO: result: $ac_res" >&5
29312echo "${ECHO_T}$ac_res" >&6; }
29313
29314fi
29315if test `eval echo '${'$as_ac_Header'}'` = yes; then
29316 cat >>confdefs.h <<_ACEOF
29317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29318_ACEOF
29319
29320fi
29321
29322done
Reid Spencer59473af2004-12-25 07:31:29 +000029323
29324
29325
29326
Reid Spencerbe3e4192007-08-17 05:45:26 +000029327
29328for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029329do
29330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029331if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029335 echo $ECHO_N "(cached) $ECHO_C" >&6
29336fi
Reid Spencera773bd52006-08-04 18:18:08 +000029337ac_res=`eval echo '${'$as_ac_Header'}'`
29338 { echo "$as_me:$LINENO: result: $ac_res" >&5
29339echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029340else
29341 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029342{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29343echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029344cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029351#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029352_ACEOF
29353rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029354if { (ac_try="$ac_compile"
29355case "(($ac_try" in
29356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29357 *) ac_try_echo=$ac_try;;
29358esac
29359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29360 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029361 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029362 grep -v '^ *+' conftest.er1 >conftest.err
29363 rm -f conftest.er1
29364 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029366 (exit $ac_status); } &&
29367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29368 { (case "(($ac_try" in
29369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29370 *) ac_try_echo=$ac_try;;
29371esac
29372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29373 (eval "$ac_try") 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; } &&
29377 { ac_try='test -s conftest.$ac_objext'
29378 { (case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29381esac
29382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_try") 2>&5
29384 ac_status=$?
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029387 ac_header_compiler=yes
29388else
29389 echo "$as_me: failed program was:" >&5
29390sed 's/^/| /' conftest.$ac_ext >&5
29391
Reid Spencera773bd52006-08-04 18:18:08 +000029392 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029393fi
Reid Spencera773bd52006-08-04 18:18:08 +000029394
29395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29396{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29397echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029398
29399# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029400{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029402cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029403/* confdefs.h. */
29404_ACEOF
29405cat confdefs.h >>conftest.$ac_ext
29406cat >>conftest.$ac_ext <<_ACEOF
29407/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029408#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029409_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029410if { (ac_try="$ac_cpp conftest.$ac_ext"
29411case "(($ac_try" in
29412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413 *) ac_try_echo=$ac_try;;
29414esac
29415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029417 ac_status=$?
29418 grep -v '^ *+' conftest.er1 >conftest.err
29419 rm -f conftest.er1
29420 cat conftest.err >&5
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029422 (exit $ac_status); } >/dev/null; then
29423 if test -s conftest.err; then
29424 ac_cpp_err=$ac_c_preproc_warn_flag
29425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29426 else
29427 ac_cpp_err=
29428 fi
29429else
29430 ac_cpp_err=yes
29431fi
29432if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029433 ac_header_preproc=yes
29434else
29435 echo "$as_me: failed program was:" >&5
29436sed 's/^/| /' conftest.$ac_ext >&5
29437
29438 ac_header_preproc=no
29439fi
Reid Spencera773bd52006-08-04 18:18:08 +000029440
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029441rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029442{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29443echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029444
29445# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29447 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029452 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029453 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029454 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029467 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029468## ----------------------------------- ##
29469## Report this to llvmbugs@cs.uiuc.edu ##
29470## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029471_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029472 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029473 ;;
29474esac
Reid Spencera773bd52006-08-04 18:18:08 +000029475{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029478 echo $ECHO_N "(cached) $ECHO_C" >&6
29479else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029480 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029481fi
Reid Spencera773bd52006-08-04 18:18:08 +000029482ac_res=`eval echo '${'$as_ac_Header'}'`
29483 { echo "$as_me:$LINENO: result: $ac_res" >&5
29484echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029485
29486fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029487if test `eval echo '${'$as_ac_Header'}'` = yes; then
29488 cat >>confdefs.h <<_ACEOF
29489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029490_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029491
29492fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029494done
29495
John Criswell7ed43ad2004-07-19 16:12:29 +000029496
Reid Spencercdb08a32006-06-05 16:11:07 +000029497
Reid Spencera6d990a2006-09-14 06:17:21 +000029498
29499for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029500do
29501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029506 echo $ECHO_N "(cached) $ECHO_C" >&6
29507fi
Reid Spencera773bd52006-08-04 18:18:08 +000029508ac_res=`eval echo '${'$as_ac_Header'}'`
29509 { echo "$as_me:$LINENO: result: $ac_res" >&5
29510echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029511else
29512 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029513{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029515cat >conftest.$ac_ext <<_ACEOF
29516/* confdefs.h. */
29517_ACEOF
29518cat confdefs.h >>conftest.$ac_ext
29519cat >>conftest.$ac_ext <<_ACEOF
29520/* end confdefs.h. */
29521$ac_includes_default
29522#include <$ac_header>
29523_ACEOF
29524rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029525if { (ac_try="$ac_compile"
29526case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29529esac
29530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029532 ac_status=$?
29533 grep -v '^ *+' conftest.er1 >conftest.err
29534 rm -f conftest.er1
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029537 (exit $ac_status); } &&
29538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29539 { (case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29544 (eval "$ac_try") 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; } &&
29548 { ac_try='test -s conftest.$ac_objext'
29549 { (case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554 (eval "$ac_try") 2>&5
29555 ac_status=$?
29556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029558 ac_header_compiler=yes
29559else
29560 echo "$as_me: failed program was:" >&5
29561sed 's/^/| /' conftest.$ac_ext >&5
29562
Reid Spencera773bd52006-08-04 18:18:08 +000029563 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029564fi
Reid Spencera773bd52006-08-04 18:18:08 +000029565
29566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29567{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29568echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029569
29570# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029571{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029573cat >conftest.$ac_ext <<_ACEOF
29574/* confdefs.h. */
29575_ACEOF
29576cat confdefs.h >>conftest.$ac_ext
29577cat >>conftest.$ac_ext <<_ACEOF
29578/* end confdefs.h. */
29579#include <$ac_header>
29580_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029581if { (ac_try="$ac_cpp conftest.$ac_ext"
29582case "(($ac_try" in
29583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29584 *) ac_try_echo=$ac_try;;
29585esac
29586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029588 ac_status=$?
29589 grep -v '^ *+' conftest.er1 >conftest.err
29590 rm -f conftest.er1
29591 cat conftest.err >&5
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029593 (exit $ac_status); } >/dev/null; then
29594 if test -s conftest.err; then
29595 ac_cpp_err=$ac_c_preproc_warn_flag
29596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29597 else
29598 ac_cpp_err=
29599 fi
29600else
29601 ac_cpp_err=yes
29602fi
29603if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029604 ac_header_preproc=yes
29605else
29606 echo "$as_me: failed program was:" >&5
29607sed 's/^/| /' conftest.$ac_ext >&5
29608
29609 ac_header_preproc=no
29610fi
Reid Spencera773bd52006-08-04 18:18:08 +000029611
Chris Lattner0b142592005-11-14 06:57:34 +000029612rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029613{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29614echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029615
29616# So? What about this header?
29617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29618 yes:no: )
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29623 ac_header_preproc=yes
29624 ;;
29625 no:yes:* )
29626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29629echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29633echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029638 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029639## ----------------------------------- ##
29640## Report this to llvmbugs@cs.uiuc.edu ##
29641## ----------------------------------- ##
29642_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029643 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029644 ;;
29645esac
Reid Spencera773bd52006-08-04 18:18:08 +000029646{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029649 echo $ECHO_N "(cached) $ECHO_C" >&6
29650else
29651 eval "$as_ac_Header=\$ac_header_preproc"
29652fi
Reid Spencera773bd52006-08-04 18:18:08 +000029653ac_res=`eval echo '${'$as_ac_Header'}'`
29654 { echo "$as_me:$LINENO: result: $ac_res" >&5
29655echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029656
29657fi
29658if test `eval echo '${'$as_ac_Header'}'` = yes; then
29659 cat >>confdefs.h <<_ACEOF
29660#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29661_ACEOF
29662
29663fi
29664
29665done
29666
Reid Spencer0a262ba2005-08-24 10:07:20 +000029667if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029668
29669for ac_header in pthread.h
29670do
29671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029676 echo $ECHO_N "(cached) $ECHO_C" >&6
29677fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029678ac_res=`eval echo '${'$as_ac_Header'}'`
29679 { echo "$as_me:$LINENO: result: $ac_res" >&5
29680echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029681else
29682 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029683{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029685cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h. */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h. */
29691$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029692#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029693_ACEOF
29694rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029695if { (ac_try="$ac_compile"
29696case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699esac
29700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029707 (exit $ac_status); } &&
29708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712esac
29713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
29715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; } &&
29718 { ac_try='test -s conftest.$ac_objext'
29719 { (case "(($ac_try" in
29720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29721 *) ac_try_echo=$ac_try;;
29722esac
29723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29724 (eval "$ac_try") 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029728 ac_header_compiler=yes
29729else
29730 echo "$as_me: failed program was:" >&5
29731sed 's/^/| /' conftest.$ac_ext >&5
29732
Reid Spencera773bd52006-08-04 18:18:08 +000029733 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029734fi
Reid Spencera773bd52006-08-04 18:18:08 +000029735
29736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29737{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29738echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029739
29740# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029741{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29742echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029743cat >conftest.$ac_ext <<_ACEOF
29744/* confdefs.h. */
29745_ACEOF
29746cat confdefs.h >>conftest.$ac_ext
29747cat >>conftest.$ac_ext <<_ACEOF
29748/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029749#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029750_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029751if { (ac_try="$ac_cpp conftest.$ac_ext"
29752case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29755esac
29756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029758 ac_status=$?
29759 grep -v '^ *+' conftest.er1 >conftest.err
29760 rm -f conftest.er1
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029763 (exit $ac_status); } >/dev/null; then
29764 if test -s conftest.err; then
29765 ac_cpp_err=$ac_c_preproc_warn_flag
29766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29767 else
29768 ac_cpp_err=
29769 fi
29770else
29771 ac_cpp_err=yes
29772fi
29773if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029774 ac_header_preproc=yes
29775else
29776 echo "$as_me: failed program was:" >&5
29777sed 's/^/| /' conftest.$ac_ext >&5
29778
29779 ac_header_preproc=no
29780fi
Reid Spencera773bd52006-08-04 18:18:08 +000029781
Reid Spencer0a262ba2005-08-24 10:07:20 +000029782rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029783{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29784echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029785
29786# So? What about this header?
29787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29788 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029793 ac_header_preproc=yes
29794 ;;
29795 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029808 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029809## ----------------------------------- ##
29810## Report this to llvmbugs@cs.uiuc.edu ##
29811## ----------------------------------- ##
29812_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029813 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029814 ;;
29815esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029816{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029819 echo $ECHO_N "(cached) $ECHO_C" >&6
29820else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029821 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029822fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029823ac_res=`eval echo '${'$as_ac_Header'}'`
29824 { echo "$as_me:$LINENO: result: $ac_res" >&5
29825echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029826
29827fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029828if test `eval echo '${'$as_ac_Header'}'` = yes; then
29829 cat >>confdefs.h <<_ACEOF
29830#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29831_ACEOF
29832 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029833
29834else
29835 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029836
29837fi
29838
Reid Spencerbe3e4192007-08-17 05:45:26 +000029839done
Reid Spencer1000b732006-12-01 00:37:14 +000029840
29841else
29842 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029843
29844fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029845
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029846if test -n "$have_libffi" ; then
29847
29848
29849for ac_header in ffi.h ffi/ffi.h
29850do
29851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29857fi
29858ac_res=`eval echo '${'$as_ac_Header'}'`
29859 { echo "$as_me:$LINENO: result: $ac_res" >&5
29860echo "${ECHO_T}$ac_res" >&6; }
29861else
29862 # Is the header compilable?
29863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29865cat >conftest.$ac_ext <<_ACEOF
29866/* confdefs.h. */
29867_ACEOF
29868cat confdefs.h >>conftest.$ac_ext
29869cat >>conftest.$ac_ext <<_ACEOF
29870/* end confdefs.h. */
29871$ac_includes_default
29872#include <$ac_header>
29873_ACEOF
29874rm -f conftest.$ac_objext
29875if { (ac_try="$ac_compile"
29876case "(($ac_try" in
29877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878 *) ac_try_echo=$ac_try;;
29879esac
29880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29881 (eval "$ac_compile") 2>conftest.er1
29882 ac_status=$?
29883 grep -v '^ *+' conftest.er1 >conftest.err
29884 rm -f conftest.er1
29885 cat conftest.err >&5
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } &&
29888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29889 { (case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29892esac
29893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_try") 2>&5
29895 ac_status=$?
29896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897 (exit $ac_status); }; } &&
29898 { ac_try='test -s conftest.$ac_objext'
29899 { (case "(($ac_try" in
29900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29901 *) ac_try_echo=$ac_try;;
29902esac
29903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29904 (eval "$ac_try") 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; }; then
29908 ac_header_compiler=yes
29909else
29910 echo "$as_me: failed program was:" >&5
29911sed 's/^/| /' conftest.$ac_ext >&5
29912
29913 ac_header_compiler=no
29914fi
29915
29916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29918echo "${ECHO_T}$ac_header_compiler" >&6; }
29919
29920# Is the header present?
29921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29923cat >conftest.$ac_ext <<_ACEOF
29924/* confdefs.h. */
29925_ACEOF
29926cat confdefs.h >>conftest.$ac_ext
29927cat >>conftest.$ac_ext <<_ACEOF
29928/* end confdefs.h. */
29929#include <$ac_header>
29930_ACEOF
29931if { (ac_try="$ac_cpp conftest.$ac_ext"
29932case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29938 ac_status=$?
29939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } >/dev/null; then
29944 if test -s conftest.err; then
29945 ac_cpp_err=$ac_c_preproc_warn_flag
29946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29947 else
29948 ac_cpp_err=
29949 fi
29950else
29951 ac_cpp_err=yes
29952fi
29953if test -z "$ac_cpp_err"; then
29954 ac_header_preproc=yes
29955else
29956 echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959 ac_header_preproc=no
29960fi
29961
29962rm -f conftest.err conftest.$ac_ext
29963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29964echo "${ECHO_T}$ac_header_preproc" >&6; }
29965
29966# So? What about this header?
29967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29968 yes:no: )
29969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29973 ac_header_preproc=yes
29974 ;;
29975 no:yes:* )
29976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29988 ( cat <<\_ASBOX
29989## ----------------------------------- ##
29990## Report this to llvmbugs@cs.uiuc.edu ##
29991## ----------------------------------- ##
29992_ASBOX
29993 ) | sed "s/^/$as_me: WARNING: /" >&2
29994 ;;
29995esac
29996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001 eval "$as_ac_Header=\$ac_header_preproc"
30002fi
30003ac_res=`eval echo '${'$as_ac_Header'}'`
30004 { echo "$as_me:$LINENO: result: $ac_res" >&5
30005echo "${ECHO_T}$ac_res" >&6; }
30006
30007fi
30008if test `eval echo '${'$as_ac_Header'}'` = yes; then
30009 cat >>confdefs.h <<_ACEOF
30010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30011_ACEOF
30012 HAVE_FFI=1
30013
30014fi
30015
30016done
30017
30018fi
30019
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030020
Reid Spencer8085cff2005-01-16 02:58:39 +000030021
Reid Spencerb2ed05262006-11-03 18:04:08 +000030022 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30023echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30024if test "${ac_cv_huge_val_sanity+set}" = set; then
30025 echo $ECHO_N "(cached) $ECHO_C" >&6
30026else
30027
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030028 ac_ext=cpp
30029ac_cpp='$CXXCPP $CPPFLAGS'
30030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030033
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030034 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030035 if test "$cross_compiling" = yes; then
30036 ac_cv_huge_val_sanity=yes
30037else
30038 cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h. */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h. */
30044#include <math.h>
30045int
30046main ()
30047{
30048double x = HUGE_VAL; return x != x;
30049 ;
30050 return 0;
30051}
30052_ACEOF
30053rm -f conftest$ac_exeext
30054if { (ac_try="$ac_link"
30055case "(($ac_try" in
30056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30057 *) ac_try_echo=$ac_try;;
30058esac
30059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30060 (eval "$ac_link") 2>&5
30061 ac_status=$?
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30064 { (case "(($ac_try" in
30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066 *) ac_try_echo=$ac_try;;
30067esac
30068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069 (eval "$ac_try") 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; }; then
30073 ac_cv_huge_val_sanity=yes
30074else
30075 echo "$as_me: program exited with status $ac_status" >&5
30076echo "$as_me: failed program was:" >&5
30077sed 's/^/| /' conftest.$ac_ext >&5
30078
30079( exit $ac_status )
30080ac_cv_huge_val_sanity=no
30081fi
30082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30083fi
30084
30085
30086 ac_ext=c
30087ac_cpp='$CPP $CPPFLAGS'
30088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30090ac_compiler_gnu=$ac_cv_c_compiler_gnu
30091
30092
30093fi
30094{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30095echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30096 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30097
30098
Reid Spencera773bd52006-08-04 18:18:08 +000030099{ echo "$as_me:$LINENO: checking for pid_t" >&5
30100echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030101if test "${ac_cv_type_pid_t+set}" = set; then
30102 echo $ECHO_N "(cached) $ECHO_C" >&6
30103else
30104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030105/* confdefs.h. */
30106_ACEOF
30107cat confdefs.h >>conftest.$ac_ext
30108cat >>conftest.$ac_ext <<_ACEOF
30109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030110$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030111typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030112int
30113main ()
30114{
Reid Spencera773bd52006-08-04 18:18:08 +000030115if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030116 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030117if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030118 return 0;
30119 ;
30120 return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030124if { (ac_try="$ac_compile"
30125case "(($ac_try" in
30126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30127 *) ac_try_echo=$ac_try;;
30128esac
30129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30130 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030131 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030132 grep -v '^ *+' conftest.er1 >conftest.err
30133 rm -f conftest.er1
30134 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030136 (exit $ac_status); } &&
30137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30138 { (case "(($ac_try" in
30139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30140 *) ac_try_echo=$ac_try;;
30141esac
30142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30143 (eval "$ac_try") 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; } &&
30147 { ac_try='test -s conftest.$ac_objext'
30148 { (case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_try") 2>&5
30154 ac_status=$?
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030157 ac_cv_type_pid_t=yes
30158else
30159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030160sed 's/^/| /' conftest.$ac_ext >&5
30161
Reid Spencera773bd52006-08-04 18:18:08 +000030162 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030163fi
Reid Spencera773bd52006-08-04 18:18:08 +000030164
30165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030166fi
Reid Spencera773bd52006-08-04 18:18:08 +000030167{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30168echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030169if test $ac_cv_type_pid_t = yes; then
30170 :
30171else
30172
30173cat >>confdefs.h <<_ACEOF
30174#define pid_t int
30175_ACEOF
30176
30177fi
30178
Reid Spencera773bd52006-08-04 18:18:08 +000030179{ echo "$as_me:$LINENO: checking for size_t" >&5
30180echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030181if test "${ac_cv_type_size_t+set}" = set; then
30182 echo $ECHO_N "(cached) $ECHO_C" >&6
30183else
30184 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030185/* confdefs.h. */
30186_ACEOF
30187cat confdefs.h >>conftest.$ac_ext
30188cat >>conftest.$ac_ext <<_ACEOF
30189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030190$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030191typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030192int
30193main ()
30194{
Reid Spencera773bd52006-08-04 18:18:08 +000030195if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030196 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030197if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030198 return 0;
30199 ;
30200 return 0;
30201}
30202_ACEOF
30203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030204if { (ac_try="$ac_compile"
30205case "(($ac_try" in
30206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30207 *) ac_try_echo=$ac_try;;
30208esac
30209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30210 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030211 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030216 (exit $ac_status); } &&
30217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30218 { (case "(($ac_try" in
30219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30220 *) ac_try_echo=$ac_try;;
30221esac
30222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30223 (eval "$ac_try") 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; } &&
30227 { ac_try='test -s conftest.$ac_objext'
30228 { (case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30231esac
30232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_try") 2>&5
30234 ac_status=$?
30235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30236 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030237 ac_cv_type_size_t=yes
30238else
30239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030240sed 's/^/| /' conftest.$ac_ext >&5
30241
Reid Spencera773bd52006-08-04 18:18:08 +000030242 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030243fi
Reid Spencera773bd52006-08-04 18:18:08 +000030244
30245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030246fi
Reid Spencera773bd52006-08-04 18:18:08 +000030247{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30248echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030249if test $ac_cv_type_size_t = yes; then
30250 :
30251else
30252
30253cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030254#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030255_ACEOF
30256
30257fi
30258
Reid Spencera773bd52006-08-04 18:18:08 +000030259{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30260echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030261if test "${ac_cv_type_signal+set}" = set; then
30262 echo $ECHO_N "(cached) $ECHO_C" >&6
30263else
30264 cat >conftest.$ac_ext <<_ACEOF
30265/* confdefs.h. */
30266_ACEOF
30267cat confdefs.h >>conftest.$ac_ext
30268cat >>conftest.$ac_ext <<_ACEOF
30269/* end confdefs.h. */
30270#include <sys/types.h>
30271#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272
30273int
30274main ()
30275{
Reid Spencera773bd52006-08-04 18:18:08 +000030276return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030277 ;
30278 return 0;
30279}
30280_ACEOF
30281rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030282if { (ac_try="$ac_compile"
30283case "(($ac_try" in
30284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30285 *) ac_try_echo=$ac_try;;
30286esac
30287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30288 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030289 ac_status=$?
30290 grep -v '^ *+' conftest.er1 >conftest.err
30291 rm -f conftest.er1
30292 cat conftest.err >&5
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030294 (exit $ac_status); } &&
30295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30296 { (case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30301 (eval "$ac_try") 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; } &&
30305 { ac_try='test -s conftest.$ac_objext'
30306 { (case "(($ac_try" in
30307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30308 *) ac_try_echo=$ac_try;;
30309esac
30310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30311 (eval "$ac_try") 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030315 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
Reid Spencera773bd52006-08-04 18:18:08 +000030320 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030321fi
Reid Spencera773bd52006-08-04 18:18:08 +000030322
30323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030324fi
Reid Spencera773bd52006-08-04 18:18:08 +000030325{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30326echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030327
30328cat >>confdefs.h <<_ACEOF
30329#define RETSIGTYPE $ac_cv_type_signal
30330_ACEOF
30331
30332
Reid Spencera773bd52006-08-04 18:18:08 +000030333{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30334echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030335if test "${ac_cv_struct_tm+set}" = set; then
30336 echo $ECHO_N "(cached) $ECHO_C" >&6
30337else
30338 cat >conftest.$ac_ext <<_ACEOF
30339/* confdefs.h. */
30340_ACEOF
30341cat confdefs.h >>conftest.$ac_ext
30342cat >>conftest.$ac_ext <<_ACEOF
30343/* end confdefs.h. */
30344#include <sys/types.h>
30345#include <time.h>
30346
30347int
30348main ()
30349{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030350struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030351 ;
30352 return 0;
30353}
30354_ACEOF
30355rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030356if { (ac_try="$ac_compile"
30357case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360esac
30361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030363 ac_status=$?
30364 grep -v '^ *+' conftest.er1 >conftest.err
30365 rm -f conftest.er1
30366 cat conftest.err >&5
30367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370 { (case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_try") 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030389 ac_cv_struct_tm=time.h
30390else
30391 echo "$as_me: failed program was:" >&5
30392sed 's/^/| /' conftest.$ac_ext >&5
30393
Reid Spencera773bd52006-08-04 18:18:08 +000030394 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030395fi
Reid Spencera773bd52006-08-04 18:18:08 +000030396
30397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030398fi
Reid Spencera773bd52006-08-04 18:18:08 +000030399{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30400echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030401if test $ac_cv_struct_tm = sys/time.h; then
30402
30403cat >>confdefs.h <<\_ACEOF
30404#define TM_IN_SYS_TIME 1
30405_ACEOF
30406
30407fi
30408
Reid Spencera773bd52006-08-04 18:18:08 +000030409{ echo "$as_me:$LINENO: checking for int64_t" >&5
30410echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030411if test "${ac_cv_type_int64_t+set}" = set; then
30412 echo $ECHO_N "(cached) $ECHO_C" >&6
30413else
30414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030415/* confdefs.h. */
30416_ACEOF
30417cat confdefs.h >>conftest.$ac_ext
30418cat >>conftest.$ac_ext <<_ACEOF
30419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030420$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030421typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030422int
30423main ()
30424{
Reid Spencera773bd52006-08-04 18:18:08 +000030425if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030426 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030427if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030428 return 0;
30429 ;
30430 return 0;
30431}
30432_ACEOF
30433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030434if { (ac_try="$ac_compile"
30435case "(($ac_try" in
30436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30437 *) ac_try_echo=$ac_try;;
30438esac
30439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30440 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030441 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030442 grep -v '^ *+' conftest.er1 >conftest.err
30443 rm -f conftest.er1
30444 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030446 (exit $ac_status); } &&
30447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30448 { (case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451esac
30452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_try") 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
30458 { (case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_try") 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030467 ac_cv_type_int64_t=yes
30468else
30469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030470sed 's/^/| /' conftest.$ac_ext >&5
30471
Reid Spencera773bd52006-08-04 18:18:08 +000030472 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030473fi
Reid Spencera773bd52006-08-04 18:18:08 +000030474
30475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030476fi
Reid Spencera773bd52006-08-04 18:18:08 +000030477{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30478echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030479if test $ac_cv_type_int64_t = yes; then
30480
30481cat >>confdefs.h <<_ACEOF
30482#define HAVE_INT64_T 1
30483_ACEOF
30484
30485
30486else
30487 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30488echo "$as_me: error: Type int64_t required but not found" >&2;}
30489 { (exit 1); exit 1; }; }
30490fi
30491
Reid Spencera773bd52006-08-04 18:18:08 +000030492{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30493echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030494if test "${ac_cv_type_uint64_t+set}" = set; then
30495 echo $ECHO_N "(cached) $ECHO_C" >&6
30496else
30497 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030498/* confdefs.h. */
30499_ACEOF
30500cat confdefs.h >>conftest.$ac_ext
30501cat >>conftest.$ac_ext <<_ACEOF
30502/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030503$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030504typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030505int
30506main ()
30507{
Reid Spencera773bd52006-08-04 18:18:08 +000030508if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030509 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030510if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030511 return 0;
30512 ;
30513 return 0;
30514}
30515_ACEOF
30516rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030517if { (ac_try="$ac_compile"
30518case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30521esac
30522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030524 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030525 grep -v '^ *+' conftest.er1 >conftest.err
30526 rm -f conftest.er1
30527 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030529 (exit $ac_status); } &&
30530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30534esac
30535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try='test -s conftest.$ac_objext'
30541 { (case "(($ac_try" in
30542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543 *) ac_try_echo=$ac_try;;
30544esac
30545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546 (eval "$ac_try") 2>&5
30547 ac_status=$?
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030550 ac_cv_type_uint64_t=yes
30551else
30552 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030553sed 's/^/| /' conftest.$ac_ext >&5
30554
Reid Spencera773bd52006-08-04 18:18:08 +000030555 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030556fi
Reid Spencera773bd52006-08-04 18:18:08 +000030557
30558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30561echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030562if test $ac_cv_type_uint64_t = yes; then
30563
30564cat >>confdefs.h <<_ACEOF
30565#define HAVE_UINT64_T 1
30566_ACEOF
30567
30568
30569else
Reid Spencera773bd52006-08-04 18:18:08 +000030570 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30571echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030572if test "${ac_cv_type_u_int64_t+set}" = set; then
30573 echo $ECHO_N "(cached) $ECHO_C" >&6
30574else
30575 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030576/* confdefs.h. */
30577_ACEOF
30578cat confdefs.h >>conftest.$ac_ext
30579cat >>conftest.$ac_ext <<_ACEOF
30580/* end confdefs.h. */
30581$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030582typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030583int
30584main ()
30585{
Reid Spencera773bd52006-08-04 18:18:08 +000030586if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030587 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030588if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030589 return 0;
30590 ;
30591 return 0;
30592}
30593_ACEOF
30594rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030595if { (ac_try="$ac_compile"
30596case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599esac
30600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030607 (exit $ac_status); } &&
30608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
30618 { ac_try='test -s conftest.$ac_objext'
30619 { (case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30622esac
30623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30624 (eval "$ac_try") 2>&5
30625 ac_status=$?
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030628 ac_cv_type_u_int64_t=yes
30629else
30630 echo "$as_me: failed program was:" >&5
30631sed 's/^/| /' conftest.$ac_ext >&5
30632
Reid Spencera773bd52006-08-04 18:18:08 +000030633 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030634fi
Reid Spencera773bd52006-08-04 18:18:08 +000030635
30636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030637fi
Reid Spencera773bd52006-08-04 18:18:08 +000030638{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30639echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030640if test $ac_cv_type_u_int64_t = yes; then
30641
30642cat >>confdefs.h <<_ACEOF
30643#define HAVE_U_INT64_T 1
30644_ACEOF
30645
30646
Misha Brukmanceca9042004-09-02 23:02:30 +000030647else
30648 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30649echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30650 { (exit 1); exit 1; }; }
30651fi
30652
John Criswell679ff312004-09-02 18:44:44 +000030653fi
30654
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030655
30656
30657
30658
30659
30660
30661
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030662
30663
Reid Spencerdf3be822006-01-23 08:15:53 +000030664for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030665do
30666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030667{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30669if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030670 echo $ECHO_N "(cached) $ECHO_C" >&6
30671else
30672 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030673/* confdefs.h. */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30680#define $ac_func innocuous_$ac_func
30681
30682/* System header to define __stub macros and hopefully few prototypes,
30683 which can conflict with char $ac_func (); below.
30684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30685 <limits.h> exists even on freestanding compilers. */
30686
30687#ifdef __STDC__
30688# include <limits.h>
30689#else
30690# include <assert.h>
30691#endif
30692
30693#undef $ac_func
30694
Reid Spencera773bd52006-08-04 18:18:08 +000030695/* Override any GCC internal prototype to avoid an error.
30696 Use char because int might match the return type of a GCC
30697 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030698#ifdef __cplusplus
30699extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030701char $ac_func ();
30702/* The GNU C library defines this for functions which it implements
30703 to always fail with ENOSYS. Some functions are actually named
30704 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030705#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030706choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030707#endif
John Criswell7a73b802003-06-30 21:59:07 +000030708
John Criswell7a73b802003-06-30 21:59:07 +000030709int
30710main ()
30711{
Reid Spencera773bd52006-08-04 18:18:08 +000030712return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030713 ;
30714 return 0;
30715}
30716_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030718if { (ac_try="$ac_link"
30719case "(($ac_try" in
30720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30721 *) ac_try_echo=$ac_try;;
30722esac
30723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30724 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030725 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030726 grep -v '^ *+' conftest.er1 >conftest.err
30727 rm -f conftest.er1
30728 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030730 (exit $ac_status); } &&
30731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30732 { (case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30735esac
30736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30737 (eval "$ac_try") 2>&5
30738 ac_status=$?
30739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740 (exit $ac_status); }; } &&
30741 { ac_try='test -s conftest$ac_exeext'
30742 { (case "(($ac_try" in
30743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744 *) ac_try_echo=$ac_try;;
30745esac
30746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747 (eval "$ac_try") 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030751 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030752else
30753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030754sed 's/^/| /' conftest.$ac_ext >&5
30755
Reid Spencera773bd52006-08-04 18:18:08 +000030756 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030757fi
Reid Spencera773bd52006-08-04 18:18:08 +000030758
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030759rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030760 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030761fi
Reid Spencera773bd52006-08-04 18:18:08 +000030762ac_res=`eval echo '${'$as_ac_var'}'`
30763 { echo "$as_me:$LINENO: result: $ac_res" >&5
30764echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030765if test `eval echo '${'$as_ac_var'}'` = yes; then
30766 cat >>confdefs.h <<_ACEOF
30767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030768_ACEOF
30769
30770fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030771done
John Criswell7a73b802003-06-30 21:59:07 +000030772
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030773
30774
30775
Reid Spencer6af3d262004-12-15 04:01:48 +000030776
Reid Spencer96cf5872007-07-13 10:05:30 +000030777for ac_func in powf fmodf strtof round
30778do
30779as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30780{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30781echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30782if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30783 echo $ECHO_N "(cached) $ECHO_C" >&6
30784else
30785 cat >conftest.$ac_ext <<_ACEOF
30786/* confdefs.h. */
30787_ACEOF
30788cat confdefs.h >>conftest.$ac_ext
30789cat >>conftest.$ac_ext <<_ACEOF
30790/* end confdefs.h. */
30791/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30793#define $ac_func innocuous_$ac_func
30794
30795/* System header to define __stub macros and hopefully few prototypes,
30796 which can conflict with char $ac_func (); below.
30797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30798 <limits.h> exists even on freestanding compilers. */
30799
30800#ifdef __STDC__
30801# include <limits.h>
30802#else
30803# include <assert.h>
30804#endif
30805
30806#undef $ac_func
30807
30808/* Override any GCC internal prototype to avoid an error.
30809 Use char because int might match the return type of a GCC
30810 builtin and then its argument prototype would still apply. */
30811#ifdef __cplusplus
30812extern "C"
30813#endif
30814char $ac_func ();
30815/* The GNU C library defines this for functions which it implements
30816 to always fail with ENOSYS. Some functions are actually named
30817 something starting with __ and the normal name is an alias. */
30818#if defined __stub_$ac_func || defined __stub___$ac_func
30819choke me
30820#endif
30821
30822int
30823main ()
30824{
30825return $ac_func ();
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (ac_try="$ac_link"
30832case "(($ac_try" in
30833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30834 *) ac_try_echo=$ac_try;;
30835esac
30836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30837 (eval "$ac_link") 2>conftest.er1
30838 ac_status=$?
30839 grep -v '^ *+' conftest.er1 >conftest.err
30840 rm -f conftest.er1
30841 cat conftest.err >&5
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030843 (exit $ac_status); } &&
30844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30845 { (case "(($ac_try" in
30846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847 *) ac_try_echo=$ac_try;;
30848esac
30849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850 (eval "$ac_try") 2>&5
30851 ac_status=$?
30852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853 (exit $ac_status); }; } &&
30854 { ac_try='test -s conftest$ac_exeext'
30855 { (case "(($ac_try" in
30856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857 *) ac_try_echo=$ac_try;;
30858esac
30859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860 (eval "$ac_try") 2>&5
30861 ac_status=$?
30862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030864 eval "$as_ac_var=yes"
30865else
30866 echo "$as_me: failed program was:" >&5
30867sed 's/^/| /' conftest.$ac_ext >&5
30868
30869 eval "$as_ac_var=no"
30870fi
30871
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030872rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030873 conftest$ac_exeext conftest.$ac_ext
30874fi
30875ac_res=`eval echo '${'$as_ac_var'}'`
30876 { echo "$as_me:$LINENO: result: $ac_res" >&5
30877echo "${ECHO_T}$ac_res" >&6; }
30878if test `eval echo '${'$as_ac_var'}'` = yes; then
30879 cat >>confdefs.h <<_ACEOF
30880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30881_ACEOF
30882
30883fi
30884done
30885
30886
30887
30888
30889
Reid Spencer6af3d262004-12-15 04:01:48 +000030890
Reid Spencerb90645c2007-02-16 19:17:20 +000030891for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30892do
30893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30897 echo $ECHO_N "(cached) $ECHO_C" >&6
30898else
30899 cat >conftest.$ac_ext <<_ACEOF
30900/* confdefs.h. */
30901_ACEOF
30902cat confdefs.h >>conftest.$ac_ext
30903cat >>conftest.$ac_ext <<_ACEOF
30904/* end confdefs.h. */
30905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30907#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030908
Reid Spencerb90645c2007-02-16 19:17:20 +000030909/* System header to define __stub macros and hopefully few prototypes,
30910 which can conflict with char $ac_func (); below.
30911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912 <limits.h> exists even on freestanding compilers. */
30913
30914#ifdef __STDC__
30915# include <limits.h>
30916#else
30917# include <assert.h>
30918#endif
30919
30920#undef $ac_func
30921
30922/* Override any GCC internal prototype to avoid an error.
30923 Use char because int might match the return type of a GCC
30924 builtin and then its argument prototype would still apply. */
30925#ifdef __cplusplus
30926extern "C"
30927#endif
30928char $ac_func ();
30929/* The GNU C library defines this for functions which it implements
30930 to always fail with ENOSYS. Some functions are actually named
30931 something starting with __ and the normal name is an alias. */
30932#if defined __stub_$ac_func || defined __stub___$ac_func
30933choke me
30934#endif
30935
30936int
30937main ()
30938{
30939return $ac_func ();
30940 ;
30941 return 0;
30942}
30943_ACEOF
30944rm -f conftest.$ac_objext conftest$ac_exeext
30945if { (ac_try="$ac_link"
30946case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30949esac
30950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_link") 2>conftest.er1
30952 ac_status=$?
30953 grep -v '^ *+' conftest.er1 >conftest.err
30954 rm -f conftest.er1
30955 cat conftest.err >&5
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030957 (exit $ac_status); } &&
30958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30959 { (case "(($ac_try" in
30960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30961 *) ac_try_echo=$ac_try;;
30962esac
30963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30964 (eval "$ac_try") 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; } &&
30968 { ac_try='test -s conftest$ac_exeext'
30969 { (case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30972esac
30973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_try") 2>&5
30975 ac_status=$?
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030978 eval "$as_ac_var=yes"
30979else
30980 echo "$as_me: failed program was:" >&5
30981sed 's/^/| /' conftest.$ac_ext >&5
30982
30983 eval "$as_ac_var=no"
30984fi
30985
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030986rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030987 conftest$ac_exeext conftest.$ac_ext
30988fi
30989ac_res=`eval echo '${'$as_ac_var'}'`
30990 { echo "$as_me:$LINENO: result: $ac_res" >&5
30991echo "${ECHO_T}$ac_res" >&6; }
30992if test `eval echo '${'$as_ac_var'}'` = yes; then
30993 cat >>confdefs.h <<_ACEOF
30994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30995_ACEOF
30996
30997fi
30998done
30999
31000
31001
31002
31003for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031004do
31005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010else
31011 cat >conftest.$ac_ext <<_ACEOF
31012/* confdefs.h. */
31013_ACEOF
31014cat confdefs.h >>conftest.$ac_ext
31015cat >>conftest.$ac_ext <<_ACEOF
31016/* end confdefs.h. */
31017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31019#define $ac_func innocuous_$ac_func
31020
31021/* System header to define __stub macros and hopefully few prototypes,
31022 which can conflict with char $ac_func (); below.
31023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31024 <limits.h> exists even on freestanding compilers. */
31025
31026#ifdef __STDC__
31027# include <limits.h>
31028#else
31029# include <assert.h>
31030#endif
31031
31032#undef $ac_func
31033
Reid Spencera773bd52006-08-04 18:18:08 +000031034/* Override any GCC internal prototype to avoid an error.
31035 Use char because int might match the return type of a GCC
31036 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031037#ifdef __cplusplus
31038extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031039#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031040char $ac_func ();
31041/* The GNU C library defines this for functions which it implements
31042 to always fail with ENOSYS. Some functions are actually named
31043 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031044#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031045choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031046#endif
31047
31048int
31049main ()
31050{
Reid Spencera773bd52006-08-04 18:18:08 +000031051return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031057if { (ac_try="$ac_link"
31058case "(($ac_try" in
31059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060 *) ac_try_echo=$ac_try;;
31061esac
31062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031064 ac_status=$?
31065 grep -v '^ *+' conftest.er1 >conftest.err
31066 rm -f conftest.er1
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071 { (case "(($ac_try" in
31072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073 *) ac_try_echo=$ac_try;;
31074esac
31075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076 (eval "$ac_try") 2>&5
31077 ac_status=$?
31078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079 (exit $ac_status); }; } &&
31080 { ac_try='test -s conftest$ac_exeext'
31081 { (case "(($ac_try" in
31082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083 *) ac_try_echo=$ac_try;;
31084esac
31085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086 (eval "$ac_try") 2>&5
31087 ac_status=$?
31088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031090 eval "$as_ac_var=yes"
31091else
31092 echo "$as_me: failed program was:" >&5
31093sed 's/^/| /' conftest.$ac_ext >&5
31094
Reid Spencera773bd52006-08-04 18:18:08 +000031095 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031096fi
Reid Spencera773bd52006-08-04 18:18:08 +000031097
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031098rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031099 conftest$ac_exeext conftest.$ac_ext
31100fi
Reid Spencera773bd52006-08-04 18:18:08 +000031101ac_res=`eval echo '${'$as_ac_var'}'`
31102 { echo "$as_me:$LINENO: result: $ac_res" >&5
31103echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031104if test `eval echo '${'$as_ac_var'}'` = yes; then
31105 cat >>confdefs.h <<_ACEOF
31106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31107_ACEOF
31108
31109fi
31110done
31111
31112
31113
31114
31115
31116
31117
31118
31119for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031120do
31121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031125 echo $ECHO_N "(cached) $ECHO_C" >&6
31126else
31127 cat >conftest.$ac_ext <<_ACEOF
31128/* confdefs.h. */
31129_ACEOF
31130cat confdefs.h >>conftest.$ac_ext
31131cat >>conftest.$ac_ext <<_ACEOF
31132/* end confdefs.h. */
31133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31135#define $ac_func innocuous_$ac_func
31136
31137/* System header to define __stub macros and hopefully few prototypes,
31138 which can conflict with char $ac_func (); below.
31139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140 <limits.h> exists even on freestanding compilers. */
31141
31142#ifdef __STDC__
31143# include <limits.h>
31144#else
31145# include <assert.h>
31146#endif
31147
31148#undef $ac_func
31149
Reid Spencera773bd52006-08-04 18:18:08 +000031150/* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031153#ifdef __cplusplus
31154extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031155#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031156char $ac_func ();
31157/* The GNU C library defines this for functions which it implements
31158 to always fail with ENOSYS. Some functions are actually named
31159 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031160#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031161choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031162#endif
31163
31164int
31165main ()
31166{
Reid Spencera773bd52006-08-04 18:18:08 +000031167return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031168 ;
31169 return 0;
31170}
31171_ACEOF
31172rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031173if { (ac_try="$ac_link"
31174case "(($ac_try" in
31175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176 *) ac_try_echo=$ac_try;;
31177esac
31178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031180 ac_status=$?
31181 grep -v '^ *+' conftest.er1 >conftest.err
31182 rm -f conftest.er1
31183 cat conftest.err >&5
31184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031185 (exit $ac_status); } &&
31186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187 { (case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31190esac
31191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_try") 2>&5
31193 ac_status=$?
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); }; } &&
31196 { ac_try='test -s conftest$ac_exeext'
31197 { (case "(($ac_try" in
31198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199 *) ac_try_echo=$ac_try;;
31200esac
31201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202 (eval "$ac_try") 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031206 eval "$as_ac_var=yes"
31207else
31208 echo "$as_me: failed program was:" >&5
31209sed 's/^/| /' conftest.$ac_ext >&5
31210
Reid Spencera773bd52006-08-04 18:18:08 +000031211 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031212fi
Reid Spencera773bd52006-08-04 18:18:08 +000031213
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031214rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031215 conftest$ac_exeext conftest.$ac_ext
31216fi
Reid Spencera773bd52006-08-04 18:18:08 +000031217ac_res=`eval echo '${'$as_ac_var'}'`
31218 { echo "$as_me:$LINENO: result: $ac_res" >&5
31219echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031220if test `eval echo '${'$as_ac_var'}'` = yes; then
31221 cat >>confdefs.h <<_ACEOF
31222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223_ACEOF
31224
31225fi
31226done
31227
31228
Reid Spencerba46ca32004-12-31 05:49:15 +000031229
31230
Chris Lattner0b142592005-11-14 06:57:34 +000031231
Chris Lattner511f11d2005-11-14 07:25:50 +000031232for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +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
John Criswell7a73b802003-06-30 21:59:07 +000031238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031241/* confdefs.h. */
31242_ACEOF
31243cat confdefs.h >>conftest.$ac_ext
31244cat >>conftest.$ac_ext <<_ACEOF
31245/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031246/* 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 Spencer5e1d9a52004-11-25 04:51:04 +000031266#ifdef __cplusplus
31267extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +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 Spencer5e1d9a52004-11-25 04:51:04 +000031274choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275#endif
John Criswell7a73b802003-06-30 21:59:07 +000031276
John Criswell7a73b802003-06-30 21:59:07 +000031277int
31278main ()
31279{
Reid Spencera773bd52006-08-04 18:18:08 +000031280return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031281 ;
31282 return 0;
31283}
31284_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031285rm -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
John Criswell7a73b802003-06-30 21:59:07 +000031293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031294 grep -v '^ *+' conftest.er1 >conftest.err
31295 rm -f conftest.er1
31296 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031297 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 Spencer5e1d9a52004-11-25 04:51:04 +000031319 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031320else
31321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031322sed 's/^/| /' conftest.$ac_ext >&5
31323
Reid Spencera773bd52006-08-04 18:18:08 +000031324 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +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 Spencer5e1d9a52004-11-25 04:51:04 +000031328 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031329fi
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 Spencer5e1d9a52004-11-25 04:51:04 +000031333if test `eval echo '${'$as_ac_var'}'` = yes; then
31334 cat >>confdefs.h <<_ACEOF
31335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031336_ACEOF
31337
31338fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031339done
John Criswell7a73b802003-06-30 21:59:07 +000031340
Reid Spencercdb08a32006-06-05 16:11:07 +000031341
31342
31343
31344
Reid Spencerafa22e22006-12-10 23:29:19 +000031345for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031346do
31347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031348{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031351 echo $ECHO_N "(cached) $ECHO_C" >&6
31352else
31353 cat >conftest.$ac_ext <<_ACEOF
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
31359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31361#define $ac_func innocuous_$ac_func
31362
31363/* System header to define __stub macros and hopefully few prototypes,
31364 which can conflict with char $ac_func (); below.
31365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366 <limits.h> exists even on freestanding compilers. */
31367
31368#ifdef __STDC__
31369# include <limits.h>
31370#else
31371# include <assert.h>
31372#endif
31373
31374#undef $ac_func
31375
Reid Spencera773bd52006-08-04 18:18:08 +000031376/* Override any GCC internal prototype to avoid an error.
31377 Use char because int might match the return type of a GCC
31378 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031379#ifdef __cplusplus
31380extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031381#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031382char $ac_func ();
31383/* The GNU C library defines this for functions which it implements
31384 to always fail with ENOSYS. Some functions are actually named
31385 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031386#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031387choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031388#endif
31389
31390int
31391main ()
31392{
Reid Spencera773bd52006-08-04 18:18:08 +000031393return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031394 ;
31395 return 0;
31396}
31397_ACEOF
31398rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031399if { (ac_try="$ac_link"
31400case "(($ac_try" in
31401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402 *) ac_try_echo=$ac_try;;
31403esac
31404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031406 ac_status=$?
31407 grep -v '^ *+' conftest.er1 >conftest.err
31408 rm -f conftest.er1
31409 cat conftest.err >&5
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031411 (exit $ac_status); } &&
31412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413 { (case "(($ac_try" in
31414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415 *) ac_try_echo=$ac_try;;
31416esac
31417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418 (eval "$ac_try") 2>&5
31419 ac_status=$?
31420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421 (exit $ac_status); }; } &&
31422 { ac_try='test -s conftest$ac_exeext'
31423 { (case "(($ac_try" in
31424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425 *) ac_try_echo=$ac_try;;
31426esac
31427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428 (eval "$ac_try") 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031432 eval "$as_ac_var=yes"
31433else
31434 echo "$as_me: failed program was:" >&5
31435sed 's/^/| /' conftest.$ac_ext >&5
31436
Reid Spencera773bd52006-08-04 18:18:08 +000031437 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031438fi
Reid Spencera773bd52006-08-04 18:18:08 +000031439
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031440rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031441 conftest$ac_exeext conftest.$ac_ext
31442fi
Reid Spencera773bd52006-08-04 18:18:08 +000031443ac_res=`eval echo '${'$as_ac_var'}'`
31444 { echo "$as_me:$LINENO: result: $ac_res" >&5
31445echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031446if test `eval echo '${'$as_ac_var'}'` = yes; then
31447 cat >>confdefs.h <<_ACEOF
31448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449_ACEOF
31450
31451fi
31452done
31453
Reid Spencera773bd52006-08-04 18:18:08 +000031454{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31455echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031456if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031457 echo $ECHO_N "(cached) $ECHO_C" >&6
31458else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031459 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031460ac_cpp='$CPP $CPPFLAGS'
31461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31463ac_compiler_gnu=$ac_cv_c_compiler_gnu
31464
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031465 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031466 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031467else
31468 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031469
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031470 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031471_ACEOF
31472cat confdefs.h >>conftest.$ac_ext
31473cat >>conftest.$ac_ext <<_ACEOF
31474/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031475
John Criswella0137d32003-10-13 16:22:01 +000031476#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031477#include <stdlib.h>
31478
John Criswella0137d32003-10-13 16:22:01 +000031479int
31480main ()
31481{
31482
Reid Spencer2706f8c2004-09-19 23:53:36 +000031483volatile double A, B;
31484char Buffer[100];
31485A = 1;
31486A /= 10.0;
31487sprintf(Buffer, "%a", A);
31488B = atof(Buffer);
31489if (A != B)
31490 return (1);
31491if (A != 0x1.999999999999ap-4)
31492 return (1);
31493return (0);
John Criswella0137d32003-10-13 16:22:01 +000031494 ;
31495 return 0;
31496}
31497_ACEOF
31498rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031499if { (ac_try="$ac_link"
31500case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031518 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031519else
31520 echo "$as_me: program exited with status $ac_status" >&5
31521echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
31524( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031525llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031526fi
Reid Spencera773bd52006-08-04 18:18:08 +000031527rm -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 +000031528fi
Reid Spencera773bd52006-08-04 18:18:08 +000031529
31530
Reid Spencer2706f8c2004-09-19 23:53:36 +000031531 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031532ac_cpp='$CPP $CPPFLAGS'
31533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535ac_compiler_gnu=$ac_cv_c_compiler_gnu
31536
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031537fi
Reid Spencera773bd52006-08-04 18:18:08 +000031538{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31539echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031540 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031541
31542cat >>confdefs.h <<\_ACEOF
31543#define HAVE_PRINTF_A 1
31544_ACEOF
31545
Reid Spencer2706f8c2004-09-19 23:53:36 +000031546 fi
John Criswella0137d32003-10-13 16:22:01 +000031547
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031548# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31549# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031550{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31551echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031552if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031553 echo $ECHO_N "(cached) $ECHO_C" >&6
31554else
John Criswell0021c312004-02-13 21:57:29 +000031555 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031556/* confdefs.h. */
31557_ACEOF
31558cat confdefs.h >>conftest.$ac_ext
31559cat >>conftest.$ac_ext <<_ACEOF
31560/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031561#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031562int
31563main ()
31564{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031565char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031566 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031567 ;
31568 return 0;
31569}
31570_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031571rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031572if { (ac_try="$ac_link"
31573case "(($ac_try" in
31574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31575 *) ac_try_echo=$ac_try;;
31576esac
31577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31578 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031580 grep -v '^ *+' conftest.er1 >conftest.err
31581 rm -f conftest.er1
31582 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031584 (exit $ac_status); } &&
31585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31586 { (case "(($ac_try" in
31587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31588 *) ac_try_echo=$ac_try;;
31589esac
31590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31591 (eval "$ac_try") 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest$ac_exeext'
31596 { (case "(($ac_try" in
31597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31598 *) ac_try_echo=$ac_try;;
31599esac
31600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31601 (eval "$ac_try") 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031605 ac_cv_working_alloca_h=yes
31606else
31607 echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
Reid Spencera773bd52006-08-04 18:18:08 +000031610 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031611fi
Reid Spencera773bd52006-08-04 18:18:08 +000031612
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031613rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031614 conftest$ac_exeext conftest.$ac_ext
31615fi
Reid Spencera773bd52006-08-04 18:18:08 +000031616{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31617echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618if test $ac_cv_working_alloca_h = yes; then
31619
31620cat >>confdefs.h <<\_ACEOF
31621#define HAVE_ALLOCA_H 1
31622_ACEOF
31623
31624fi
31625
Reid Spencera773bd52006-08-04 18:18:08 +000031626{ echo "$as_me:$LINENO: checking for alloca" >&5
31627echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031628if test "${ac_cv_func_alloca_works+set}" = set; then
31629 echo $ECHO_N "(cached) $ECHO_C" >&6
31630else
31631 cat >conftest.$ac_ext <<_ACEOF
31632/* confdefs.h. */
31633_ACEOF
31634cat confdefs.h >>conftest.$ac_ext
31635cat >>conftest.$ac_ext <<_ACEOF
31636/* end confdefs.h. */
31637#ifdef __GNUC__
31638# define alloca __builtin_alloca
31639#else
31640# ifdef _MSC_VER
31641# include <malloc.h>
31642# define alloca _alloca
31643# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031644# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031645# include <alloca.h>
31646# else
31647# ifdef _AIX
31648 #pragma alloca
31649# else
31650# ifndef alloca /* predefined by HP cc +Olibcalls */
31651char *alloca ();
31652# endif
31653# endif
31654# endif
31655# endif
31656#endif
31657
31658int
31659main ()
31660{
31661char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031662 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031663 ;
31664 return 0;
31665}
31666_ACEOF
31667rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031668if { (ac_try="$ac_link"
31669case "(($ac_try" in
31670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31671 *) ac_try_echo=$ac_try;;
31672esac
31673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31674 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675 ac_status=$?
31676 grep -v '^ *+' conftest.er1 >conftest.err
31677 rm -f conftest.er1
31678 cat conftest.err >&5
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031680 (exit $ac_status); } &&
31681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31682 { (case "(($ac_try" in
31683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31684 *) ac_try_echo=$ac_try;;
31685esac
31686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31687 (eval "$ac_try") 2>&5
31688 ac_status=$?
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); }; } &&
31691 { ac_try='test -s conftest$ac_exeext'
31692 { (case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_try") 2>&5
31698 ac_status=$?
31699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31700 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031701 ac_cv_func_alloca_works=yes
31702else
31703 echo "$as_me: failed program was:" >&5
31704sed 's/^/| /' conftest.$ac_ext >&5
31705
Reid Spencera773bd52006-08-04 18:18:08 +000031706 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031707fi
Reid Spencera773bd52006-08-04 18:18:08 +000031708
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031709rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031710 conftest$ac_exeext conftest.$ac_ext
31711fi
Reid Spencera773bd52006-08-04 18:18:08 +000031712{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31713echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714
31715if test $ac_cv_func_alloca_works = yes; then
31716
31717cat >>confdefs.h <<\_ACEOF
31718#define HAVE_ALLOCA 1
31719_ACEOF
31720
31721else
31722 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31723# that cause trouble. Some versions do not even contain alloca or
31724# contain a buggy version. If you still want to use their alloca,
31725# use ar to extract alloca.o from them instead of compiling alloca.c.
31726
Reid Spencera773bd52006-08-04 18:18:08 +000031727ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031728
31729cat >>confdefs.h <<\_ACEOF
31730#define C_ALLOCA 1
31731_ACEOF
31732
31733
Reid Spencera773bd52006-08-04 18:18:08 +000031734{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31735echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031736if test "${ac_cv_os_cray+set}" = set; then
31737 echo $ECHO_N "(cached) $ECHO_C" >&6
31738else
31739 cat >conftest.$ac_ext <<_ACEOF
31740/* confdefs.h. */
31741_ACEOF
31742cat confdefs.h >>conftest.$ac_ext
31743cat >>conftest.$ac_ext <<_ACEOF
31744/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031745#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031746webecray
31747#else
31748wenotbecray
31749#endif
31750
31751_ACEOF
31752if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31753 $EGREP "webecray" >/dev/null 2>&1; then
31754 ac_cv_os_cray=yes
31755else
31756 ac_cv_os_cray=no
31757fi
31758rm -f conftest*
31759
31760fi
Reid Spencera773bd52006-08-04 18:18:08 +000031761{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31762echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031763if test $ac_cv_os_cray = yes; then
31764 for ac_func in _getb67 GETB67 getb67; do
31765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031766{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31768if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031769 echo $ECHO_N "(cached) $ECHO_C" >&6
31770else
31771 cat >conftest.$ac_ext <<_ACEOF
31772/* confdefs.h. */
31773_ACEOF
31774cat confdefs.h >>conftest.$ac_ext
31775cat >>conftest.$ac_ext <<_ACEOF
31776/* end confdefs.h. */
31777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31779#define $ac_func innocuous_$ac_func
31780
31781/* System header to define __stub macros and hopefully few prototypes,
31782 which can conflict with char $ac_func (); below.
31783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31784 <limits.h> exists even on freestanding compilers. */
31785
31786#ifdef __STDC__
31787# include <limits.h>
31788#else
31789# include <assert.h>
31790#endif
31791
31792#undef $ac_func
31793
Reid Spencera773bd52006-08-04 18:18:08 +000031794/* Override any GCC internal prototype to avoid an error.
31795 Use char because int might match the return type of a GCC
31796 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031797#ifdef __cplusplus
31798extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031799#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031800char $ac_func ();
31801/* The GNU C library defines this for functions which it implements
31802 to always fail with ENOSYS. Some functions are actually named
31803 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031804#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031805choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031806#endif
31807
31808int
31809main ()
31810{
Reid Spencera773bd52006-08-04 18:18:08 +000031811return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031812 ;
31813 return 0;
31814}
31815_ACEOF
31816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031817if { (ac_try="$ac_link"
31818case "(($ac_try" in
31819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31820 *) ac_try_echo=$ac_try;;
31821esac
31822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31823 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031824 ac_status=$?
31825 grep -v '^ *+' conftest.er1 >conftest.err
31826 rm -f conftest.er1
31827 cat conftest.err >&5
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031829 (exit $ac_status); } &&
31830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31831 { (case "(($ac_try" in
31832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31833 *) ac_try_echo=$ac_try;;
31834esac
31835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31836 (eval "$ac_try") 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest$ac_exeext'
31841 { (case "(($ac_try" in
31842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31843 *) ac_try_echo=$ac_try;;
31844esac
31845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31846 (eval "$ac_try") 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031850 eval "$as_ac_var=yes"
31851else
31852 echo "$as_me: failed program was:" >&5
31853sed 's/^/| /' conftest.$ac_ext >&5
31854
Reid Spencera773bd52006-08-04 18:18:08 +000031855 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031856fi
Reid Spencera773bd52006-08-04 18:18:08 +000031857
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031858rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031859 conftest$ac_exeext conftest.$ac_ext
31860fi
Reid Spencera773bd52006-08-04 18:18:08 +000031861ac_res=`eval echo '${'$as_ac_var'}'`
31862 { echo "$as_me:$LINENO: result: $ac_res" >&5
31863echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031864if test `eval echo '${'$as_ac_var'}'` = yes; then
31865
31866cat >>confdefs.h <<_ACEOF
31867#define CRAY_STACKSEG_END $ac_func
31868_ACEOF
31869
31870 break
31871fi
31872
31873 done
31874fi
31875
Reid Spencera773bd52006-08-04 18:18:08 +000031876{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31877echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031878if test "${ac_cv_c_stack_direction+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31880else
31881 if test "$cross_compiling" = yes; then
31882 ac_cv_c_stack_direction=0
31883else
31884 cat >conftest.$ac_ext <<_ACEOF
31885/* confdefs.h. */
31886_ACEOF
31887cat confdefs.h >>conftest.$ac_ext
31888cat >>conftest.$ac_ext <<_ACEOF
31889/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031890$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031891int
31892find_stack_direction ()
31893{
31894 static char *addr = 0;
31895 auto char dummy;
31896 if (addr == 0)
31897 {
31898 addr = &dummy;
31899 return find_stack_direction ();
31900 }
John Criswell0021c312004-02-13 21:57:29 +000031901 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031902 return (&dummy > addr) ? 1 : -1;
31903}
John Criswell0021c312004-02-13 21:57:29 +000031904
John Criswell0021c312004-02-13 21:57:29 +000031905int
31906main ()
31907{
Reid Spencera773bd52006-08-04 18:18:08 +000031908 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031909}
31910_ACEOF
31911rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031912if { (ac_try="$ac_link"
31913case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031919 ac_status=$?
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031922 { (case "(($ac_try" in
31923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924 *) ac_try_echo=$ac_try;;
31925esac
31926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31927 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031928 ac_status=$?
31929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31930 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031931 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031932else
31933 echo "$as_me: program exited with status $ac_status" >&5
31934echo "$as_me: failed program was:" >&5
31935sed 's/^/| /' conftest.$ac_ext >&5
31936
31937( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031938ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031939fi
Reid Spencera773bd52006-08-04 18:18:08 +000031940rm -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 +000031941fi
Reid Spencera773bd52006-08-04 18:18:08 +000031942
31943
John Criswell0021c312004-02-13 21:57:29 +000031944fi
Reid Spencera773bd52006-08-04 18:18:08 +000031945{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31946echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031947
31948cat >>confdefs.h <<_ACEOF
31949#define STACK_DIRECTION $ac_cv_c_stack_direction
31950_ACEOF
31951
31952
John Criswell0021c312004-02-13 21:57:29 +000031953fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031954
31955
Reid Spencera773bd52006-08-04 18:18:08 +000031956{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31957echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031958if test "${ac_cv_func_rand48+set}" = set; then
31959 echo $ECHO_N "(cached) $ECHO_C" >&6
31960else
Reid Spencera773bd52006-08-04 18:18:08 +000031961 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031962ac_cpp='$CXXCPP $CPPFLAGS'
31963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31966
31967 cat >conftest.$ac_ext <<_ACEOF
31968/* confdefs.h. */
31969_ACEOF
31970cat confdefs.h >>conftest.$ac_ext
31971cat >>conftest.$ac_ext <<_ACEOF
31972/* end confdefs.h. */
31973#include <stdlib.h>
31974int
31975main ()
31976{
31977srand48(0);lrand48();drand48();
31978 ;
31979 return 0;
31980}
31981_ACEOF
31982rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031983if { (ac_try="$ac_compile"
31984case "(($ac_try" in
31985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31986 *) ac_try_echo=$ac_try;;
31987esac
31988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31989 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031990 ac_status=$?
31991 grep -v '^ *+' conftest.er1 >conftest.err
31992 rm -f conftest.er1
31993 cat conftest.err >&5
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031995 (exit $ac_status); } &&
31996 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31997 { (case "(($ac_try" in
31998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999 *) ac_try_echo=$ac_try;;
32000esac
32001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002 (eval "$ac_try") 2>&5
32003 ac_status=$?
32004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); }; } &&
32006 { ac_try='test -s conftest.$ac_objext'
32007 { (case "(($ac_try" in
32008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32009 *) ac_try_echo=$ac_try;;
32010esac
32011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32012 (eval "$ac_try") 2>&5
32013 ac_status=$?
32014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32015 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032016 ac_cv_func_rand48=yes
32017else
32018 echo "$as_me: failed program was:" >&5
32019sed 's/^/| /' conftest.$ac_ext >&5
32020
Reid Spencera773bd52006-08-04 18:18:08 +000032021 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032022fi
Reid Spencera773bd52006-08-04 18:18:08 +000032023
32024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032025 ac_ext=c
32026ac_cpp='$CPP $CPPFLAGS'
32027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32029ac_compiler_gnu=$ac_cv_c_compiler_gnu
32030
32031fi
Reid Spencera773bd52006-08-04 18:18:08 +000032032{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32033echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032034
32035if test "$ac_cv_func_rand48" = "yes" ; then
32036
32037cat >>confdefs.h <<\_ACEOF
32038#define HAVE_RAND48 1
32039_ACEOF
32040
32041fi
John Criswell0021c312004-02-13 21:57:29 +000032042
32043
Reid Spencera773bd52006-08-04 18:18:08 +000032044{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32045echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032046if test "${ac_cv_cxx_namespaces+set}" = set; then
32047 echo $ECHO_N "(cached) $ECHO_C" >&6
32048else
Reid Spencera773bd52006-08-04 18:18:08 +000032049 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032050ac_cpp='$CXXCPP $CPPFLAGS'
32051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32054
32055 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032056/* confdefs.h. */
32057_ACEOF
32058cat confdefs.h >>conftest.$ac_ext
32059cat >>conftest.$ac_ext <<_ACEOF
32060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032061namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032062int
32063main ()
32064{
32065using namespace Outer::Inner; return i;
32066 ;
32067 return 0;
32068}
32069_ACEOF
32070rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032071if { (ac_try="$ac_compile"
32072case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32075esac
32076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32077 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032079 grep -v '^ *+' conftest.er1 >conftest.err
32080 rm -f conftest.er1
32081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032083 (exit $ac_status); } &&
32084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32085 { (case "(($ac_try" in
32086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32087 *) ac_try_echo=$ac_try;;
32088esac
32089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32090 (eval "$ac_try") 2>&5
32091 ac_status=$?
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); }; } &&
32094 { ac_try='test -s conftest.$ac_objext'
32095 { (case "(($ac_try" in
32096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32097 *) ac_try_echo=$ac_try;;
32098esac
32099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32100 (eval "$ac_try") 2>&5
32101 ac_status=$?
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032104 ac_cv_cxx_namespaces=yes
32105else
32106 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032107sed 's/^/| /' conftest.$ac_ext >&5
32108
Reid Spencera773bd52006-08-04 18:18:08 +000032109 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032110fi
Reid Spencera773bd52006-08-04 18:18:08 +000032111
32112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032113 ac_ext=c
32114ac_cpp='$CPP $CPPFLAGS'
32115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32117ac_compiler_gnu=$ac_cv_c_compiler_gnu
32118
32119
32120fi
Reid Spencera773bd52006-08-04 18:18:08 +000032121{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32122echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032123if test "$ac_cv_cxx_namespaces" = yes; then
32124
32125cat >>confdefs.h <<\_ACEOF
32126#define HAVE_NAMESPACES
32127_ACEOF
32128
32129fi
32130
Reid Spencera773bd52006-08-04 18:18:08 +000032131{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32132echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032133if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32134 echo $ECHO_N "(cached) $ECHO_C" >&6
32135else
32136
Reid Spencera773bd52006-08-04 18:18:08 +000032137 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032138ac_cpp='$CXXCPP $CPPFLAGS'
32139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32142
32143 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032144/* confdefs.h. */
32145_ACEOF
32146cat confdefs.h >>conftest.$ac_ext
32147cat >>conftest.$ac_ext <<_ACEOF
32148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032149#include <iterator>
32150#ifdef HAVE_NAMESPACES
32151using namespace std;
32152#endif
John Criswell7a73b802003-06-30 21:59:07 +000032153int
32154main ()
32155{
32156iterator<int,int,int> t; return 0;
32157 ;
32158 return 0;
32159}
32160_ACEOF
32161rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032162if { (ac_try="$ac_compile"
32163case "(($ac_try" in
32164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165 *) ac_try_echo=$ac_try;;
32166esac
32167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032169 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032170 grep -v '^ *+' conftest.er1 >conftest.err
32171 rm -f conftest.er1
32172 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032174 (exit $ac_status); } &&
32175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32176 { (case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32179esac
32180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_try") 2>&5
32182 ac_status=$?
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; } &&
32185 { ac_try='test -s conftest.$ac_objext'
32186 { (case "(($ac_try" in
32187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188 *) ac_try_echo=$ac_try;;
32189esac
32190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191 (eval "$ac_try") 2>&5
32192 ac_status=$?
32193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032195 ac_cv_cxx_have_std_iterator=yes
32196else
32197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032198sed 's/^/| /' conftest.$ac_ext >&5
32199
Reid Spencera773bd52006-08-04 18:18:08 +000032200 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032201fi
Reid Spencera773bd52006-08-04 18:18:08 +000032202
32203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032204 ac_ext=c
32205ac_cpp='$CPP $CPPFLAGS'
32206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32208ac_compiler_gnu=$ac_cv_c_compiler_gnu
32209
32210
32211fi
Reid Spencera773bd52006-08-04 18:18:08 +000032212{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32213echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032214if test "$ac_cv_cxx_have_std_iterator" = yes
32215then
John Criswell40468462004-09-24 21:19:06 +000032216
32217cat >>confdefs.h <<\_ACEOF
32218#define HAVE_STD_ITERATOR 1
32219_ACEOF
32220
32221else
32222
32223cat >>confdefs.h <<\_ACEOF
32224#define HAVE_STD_ITERATOR 0
32225_ACEOF
32226
John Criswell7a73b802003-06-30 21:59:07 +000032227fi
32228
Reid Spencera773bd52006-08-04 18:18:08 +000032229{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32230echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032231if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233else
32234
Reid Spencera773bd52006-08-04 18:18:08 +000032235 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032236ac_cpp='$CXXCPP $CPPFLAGS'
32237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
32241 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032242/* confdefs.h. */
32243_ACEOF
32244cat confdefs.h >>conftest.$ac_ext
32245cat >>conftest.$ac_ext <<_ACEOF
32246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032247#include <iterator>
32248#ifdef HAVE_NAMESPACES
32249using namespace std;
32250#endif
John Criswell7a73b802003-06-30 21:59:07 +000032251int
32252main ()
32253{
John Criswellc78022e2003-07-29 19:11:58 +000032254bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032255 ;
32256 return 0;
32257}
32258_ACEOF
32259rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032260if { (ac_try="$ac_compile"
32261case "(($ac_try" in
32262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263 *) ac_try_echo=$ac_try;;
32264esac
32265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032268 grep -v '^ *+' conftest.er1 >conftest.err
32269 rm -f conftest.er1
32270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032272 (exit $ac_status); } &&
32273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32274 { (case "(($ac_try" in
32275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32276 *) ac_try_echo=$ac_try;;
32277esac
32278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32279 (eval "$ac_try") 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; } &&
32283 { ac_try='test -s conftest.$ac_objext'
32284 { (case "(($ac_try" in
32285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32286 *) ac_try_echo=$ac_try;;
32287esac
32288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32289 (eval "$ac_try") 2>&5
32290 ac_status=$?
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032293 ac_cv_cxx_have_bi_iterator=yes
32294else
32295 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032296sed 's/^/| /' conftest.$ac_ext >&5
32297
Reid Spencera773bd52006-08-04 18:18:08 +000032298 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032299fi
Reid Spencera773bd52006-08-04 18:18:08 +000032300
32301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032302 ac_ext=c
32303ac_cpp='$CPP $CPPFLAGS'
32304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32306ac_compiler_gnu=$ac_cv_c_compiler_gnu
32307
32308
32309fi
Reid Spencera773bd52006-08-04 18:18:08 +000032310{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32311echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032312if test "$ac_cv_cxx_have_bi_iterator" = yes
32313then
John Criswell40468462004-09-24 21:19:06 +000032314
32315cat >>confdefs.h <<\_ACEOF
32316#define HAVE_BI_ITERATOR 1
32317_ACEOF
32318
32319else
32320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_BI_ITERATOR 0
32323_ACEOF
32324
John Criswell7a73b802003-06-30 21:59:07 +000032325fi
32326
Reid Spencera773bd52006-08-04 18:18:08 +000032327{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32328echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032329if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32330 echo $ECHO_N "(cached) $ECHO_C" >&6
32331else
32332
Reid Spencera773bd52006-08-04 18:18:08 +000032333 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032334ac_cpp='$CXXCPP $CPPFLAGS'
32335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32338
32339 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032340/* confdefs.h. */
32341_ACEOF
32342cat confdefs.h >>conftest.$ac_ext
32343cat >>conftest.$ac_ext <<_ACEOF
32344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032345#include <iterator>
32346#ifdef HAVE_NAMESPACES
32347using namespace std;
32348#endif
John Criswell7a73b802003-06-30 21:59:07 +000032349int
32350main ()
32351{
John Criswellc78022e2003-07-29 19:11:58 +000032352forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032353 ;
32354 return 0;
32355}
32356_ACEOF
32357rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032358if { (ac_try="$ac_compile"
32359case "(($ac_try" in
32360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361 *) ac_try_echo=$ac_try;;
32362esac
32363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032366 grep -v '^ *+' conftest.er1 >conftest.err
32367 rm -f conftest.er1
32368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032370 (exit $ac_status); } &&
32371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32372 { (case "(($ac_try" in
32373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374 *) ac_try_echo=$ac_try;;
32375esac
32376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377 (eval "$ac_try") 2>&5
32378 ac_status=$?
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); }; } &&
32381 { ac_try='test -s conftest.$ac_objext'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32385esac
32386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032391 ac_cv_cxx_have_fwd_iterator=yes
32392else
32393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032394sed 's/^/| /' conftest.$ac_ext >&5
32395
Reid Spencera773bd52006-08-04 18:18:08 +000032396 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032397fi
Reid Spencera773bd52006-08-04 18:18:08 +000032398
32399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032400 ac_ext=c
32401ac_cpp='$CPP $CPPFLAGS'
32402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32404ac_compiler_gnu=$ac_cv_c_compiler_gnu
32405
32406
32407fi
Reid Spencera773bd52006-08-04 18:18:08 +000032408{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32409echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032410if test "$ac_cv_cxx_have_fwd_iterator" = yes
32411then
John Criswell40468462004-09-24 21:19:06 +000032412
32413cat >>confdefs.h <<\_ACEOF
32414#define HAVE_FWD_ITERATOR 1
32415_ACEOF
32416
32417else
32418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_FWD_ITERATOR 0
32421_ACEOF
32422
John Criswell7a73b802003-06-30 21:59:07 +000032423fi
32424
32425
Reid Spencera773bd52006-08-04 18:18:08 +000032426{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32427echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032428if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32429 echo $ECHO_N "(cached) $ECHO_C" >&6
32430else
Reid Spencera773bd52006-08-04 18:18:08 +000032431 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032432ac_cpp='$CXXCPP $CPPFLAGS'
32433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32436
Reid Spencerabec8f92004-10-27 23:03:44 +000032437 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
32443#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032444int
32445main ()
32446{
32447float f; isnan(f);
32448 ;
32449 return 0;
32450}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032451_ACEOF
32452rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032453if { (ac_try="$ac_compile"
32454case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032461 grep -v '^ *+' conftest.er1 >conftest.err
32462 rm -f conftest.er1
32463 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032465 (exit $ac_status); } &&
32466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32467 { (case "(($ac_try" in
32468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32469 *) ac_try_echo=$ac_try;;
32470esac
32471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32472 (eval "$ac_try") 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; } &&
32476 { ac_try='test -s conftest.$ac_objext'
32477 { (case "(($ac_try" in
32478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479 *) ac_try_echo=$ac_try;;
32480esac
32481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482 (eval "$ac_try") 2>&5
32483 ac_status=$?
32484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32485 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032486 ac_cv_func_isnan_in_math_h=yes
32487else
32488 echo "$as_me: failed program was:" >&5
32489sed 's/^/| /' conftest.$ac_ext >&5
32490
Reid Spencera773bd52006-08-04 18:18:08 +000032491 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032492fi
Reid Spencera773bd52006-08-04 18:18:08 +000032493
32494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032495 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032496ac_cpp='$CPP $CPPFLAGS'
32497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32499ac_compiler_gnu=$ac_cv_c_compiler_gnu
32500
32501fi
Reid Spencera773bd52006-08-04 18:18:08 +000032502{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32503echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032504
32505
32506if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032507
32508cat >>confdefs.h <<\_ACEOF
32509#define HAVE_ISNAN_IN_MATH_H 1
32510_ACEOF
32511
Reid Spencerabec8f92004-10-27 23:03:44 +000032512fi
32513
Reid Spencera773bd52006-08-04 18:18:08 +000032514{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32515echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032516if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
Reid Spencera773bd52006-08-04 18:18:08 +000032519 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032520ac_cpp='$CXXCPP $CPPFLAGS'
32521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
Reid Spencerabec8f92004-10-27 23:03:44 +000032525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032526/* confdefs.h. */
32527_ACEOF
32528cat confdefs.h >>conftest.$ac_ext
32529cat >>conftest.$ac_ext <<_ACEOF
32530/* end confdefs.h. */
32531#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032532int
32533main ()
32534{
32535float f; isnan(f);
32536 ;
32537 return 0;
32538}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032539_ACEOF
32540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032541if { (ac_try="$ac_compile"
32542case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032553 (exit $ac_status); } &&
32554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32555 { (case "(($ac_try" in
32556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32557 *) ac_try_echo=$ac_try;;
32558esac
32559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32560 (eval "$ac_try") 2>&5
32561 ac_status=$?
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); }; } &&
32564 { ac_try='test -s conftest.$ac_objext'
32565 { (case "(($ac_try" in
32566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32567 *) ac_try_echo=$ac_try;;
32568esac
32569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32570 (eval "$ac_try") 2>&5
32571 ac_status=$?
32572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32573 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032574 ac_cv_func_isnan_in_cmath=yes
32575else
32576 echo "$as_me: failed program was:" >&5
32577sed 's/^/| /' conftest.$ac_ext >&5
32578
Reid Spencera773bd52006-08-04 18:18:08 +000032579 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032580fi
Reid Spencera773bd52006-08-04 18:18:08 +000032581
32582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032583 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032584ac_cpp='$CPP $CPPFLAGS'
32585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32587ac_compiler_gnu=$ac_cv_c_compiler_gnu
32588
32589fi
Reid Spencera773bd52006-08-04 18:18:08 +000032590{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32591echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032592
32593if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032594
32595cat >>confdefs.h <<\_ACEOF
32596#define HAVE_ISNAN_IN_CMATH 1
32597_ACEOF
32598
Reid Spencerabec8f92004-10-27 23:03:44 +000032599fi
32600
Reid Spencera773bd52006-08-04 18:18:08 +000032601{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32602echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032603if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32604 echo $ECHO_N "(cached) $ECHO_C" >&6
32605else
Reid Spencera773bd52006-08-04 18:18:08 +000032606 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032607ac_cpp='$CXXCPP $CPPFLAGS'
32608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32611
Reid Spencerabec8f92004-10-27 23:03:44 +000032612 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032613/* confdefs.h. */
32614_ACEOF
32615cat confdefs.h >>conftest.$ac_ext
32616cat >>conftest.$ac_ext <<_ACEOF
32617/* end confdefs.h. */
32618#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032619int
32620main ()
32621{
32622float f; std::isnan(f);
32623 ;
32624 return 0;
32625}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032626_ACEOF
32627rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032628if { (ac_try="$ac_compile"
32629case "(($ac_try" in
32630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32631 *) ac_try_echo=$ac_try;;
32632esac
32633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32634 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032635 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032636 grep -v '^ *+' conftest.er1 >conftest.err
32637 rm -f conftest.er1
32638 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032640 (exit $ac_status); } &&
32641 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32642 { (case "(($ac_try" in
32643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644 *) ac_try_echo=$ac_try;;
32645esac
32646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647 (eval "$ac_try") 2>&5
32648 ac_status=$?
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); }; } &&
32651 { ac_try='test -s conftest.$ac_objext'
32652 { (case "(($ac_try" in
32653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32654 *) ac_try_echo=$ac_try;;
32655esac
32656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32657 (eval "$ac_try") 2>&5
32658 ac_status=$?
32659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32660 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032661 ac_cv_func_std_isnan_in_cmath=yes
32662else
32663 echo "$as_me: failed program was:" >&5
32664sed 's/^/| /' conftest.$ac_ext >&5
32665
Reid Spencera773bd52006-08-04 18:18:08 +000032666 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032667fi
Reid Spencera773bd52006-08-04 18:18:08 +000032668
32669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032670 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032671ac_cpp='$CPP $CPPFLAGS'
32672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32674ac_compiler_gnu=$ac_cv_c_compiler_gnu
32675
32676fi
Reid Spencera773bd52006-08-04 18:18:08 +000032677{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32678echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032679
32680if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032681
32682cat >>confdefs.h <<\_ACEOF
32683#define HAVE_STD_ISNAN_IN_CMATH 1
32684_ACEOF
32685
Reid Spencerabec8f92004-10-27 23:03:44 +000032686fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032687
32688
Reid Spencera773bd52006-08-04 18:18:08 +000032689{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32690echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032691if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32692 echo $ECHO_N "(cached) $ECHO_C" >&6
32693else
Reid Spencera773bd52006-08-04 18:18:08 +000032694 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032695ac_cpp='$CXXCPP $CPPFLAGS'
32696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32699
Reid Spencerabec8f92004-10-27 23:03:44 +000032700 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
32706#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032707int
32708main ()
32709{
32710float f; isinf(f);
32711 ;
32712 return 0;
32713}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032714_ACEOF
32715rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032716if { (ac_try="$ac_compile"
32717case "(($ac_try" in
32718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32719 *) ac_try_echo=$ac_try;;
32720esac
32721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32722 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032724 grep -v '^ *+' conftest.er1 >conftest.err
32725 rm -f conftest.er1
32726 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032728 (exit $ac_status); } &&
32729 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32730 { (case "(($ac_try" in
32731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32732 *) ac_try_echo=$ac_try;;
32733esac
32734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32735 (eval "$ac_try") 2>&5
32736 ac_status=$?
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); }; } &&
32739 { ac_try='test -s conftest.$ac_objext'
32740 { (case "(($ac_try" in
32741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32742 *) ac_try_echo=$ac_try;;
32743esac
32744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32745 (eval "$ac_try") 2>&5
32746 ac_status=$?
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032749 ac_cv_func_isinf_in_math_h=yes
32750else
32751 echo "$as_me: failed program was:" >&5
32752sed 's/^/| /' conftest.$ac_ext >&5
32753
Reid Spencera773bd52006-08-04 18:18:08 +000032754 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032755fi
Reid Spencera773bd52006-08-04 18:18:08 +000032756
32757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032758 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032759ac_cpp='$CPP $CPPFLAGS'
32760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762ac_compiler_gnu=$ac_cv_c_compiler_gnu
32763
32764fi
Reid Spencera773bd52006-08-04 18:18:08 +000032765{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32766echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032767
32768if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032769
32770cat >>confdefs.h <<\_ACEOF
32771#define HAVE_ISINF_IN_MATH_H 1
32772_ACEOF
32773
Reid Spencerabec8f92004-10-27 23:03:44 +000032774fi
32775
Reid Spencera773bd52006-08-04 18:18:08 +000032776{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32777echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032778if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32780else
Reid Spencera773bd52006-08-04 18:18:08 +000032781 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032782ac_cpp='$CXXCPP $CPPFLAGS'
32783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32786
Reid Spencerabec8f92004-10-27 23:03:44 +000032787 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032788/* confdefs.h. */
32789_ACEOF
32790cat confdefs.h >>conftest.$ac_ext
32791cat >>conftest.$ac_ext <<_ACEOF
32792/* end confdefs.h. */
32793#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032794int
32795main ()
32796{
32797float f; isinf(f);
32798 ;
32799 return 0;
32800}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032801_ACEOF
32802rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032803if { (ac_try="$ac_compile"
32804case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32807esac
32808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032811 grep -v '^ *+' conftest.er1 >conftest.err
32812 rm -f conftest.er1
32813 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032815 (exit $ac_status); } &&
32816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32817 { (case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32820esac
32821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_try") 2>&5
32823 ac_status=$?
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; } &&
32826 { ac_try='test -s conftest.$ac_objext'
32827 { (case "(($ac_try" in
32828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32829 *) ac_try_echo=$ac_try;;
32830esac
32831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32832 (eval "$ac_try") 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032836 ac_cv_func_isinf_in_cmath=yes
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
Reid Spencera773bd52006-08-04 18:18:08 +000032841 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032842fi
Reid Spencera773bd52006-08-04 18:18:08 +000032843
32844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032845 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032846ac_cpp='$CPP $CPPFLAGS'
32847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32849ac_compiler_gnu=$ac_cv_c_compiler_gnu
32850
32851fi
Reid Spencera773bd52006-08-04 18:18:08 +000032852{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32853echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032854
32855if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032856
32857cat >>confdefs.h <<\_ACEOF
32858#define HAVE_ISINF_IN_CMATH 1
32859_ACEOF
32860
Reid Spencerabec8f92004-10-27 23:03:44 +000032861fi
32862
Reid Spencera773bd52006-08-04 18:18:08 +000032863{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32864echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032865if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32866 echo $ECHO_N "(cached) $ECHO_C" >&6
32867else
Reid Spencera773bd52006-08-04 18:18:08 +000032868 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032869ac_cpp='$CXXCPP $CPPFLAGS'
32870ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32871ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32872ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32873
Reid Spencerabec8f92004-10-27 23:03:44 +000032874 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032875/* confdefs.h. */
32876_ACEOF
32877cat confdefs.h >>conftest.$ac_ext
32878cat >>conftest.$ac_ext <<_ACEOF
32879/* end confdefs.h. */
32880#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032881int
32882main ()
32883{
32884float f; std::isinf(f)}
32885 ;
32886 return 0;
32887}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032888_ACEOF
32889rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032890if { (ac_try="$ac_compile"
32891case "(($ac_try" in
32892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32893 *) ac_try_echo=$ac_try;;
32894esac
32895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32896 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032898 grep -v '^ *+' conftest.er1 >conftest.err
32899 rm -f conftest.er1
32900 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032902 (exit $ac_status); } &&
32903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32904 { (case "(($ac_try" in
32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32906 *) ac_try_echo=$ac_try;;
32907esac
32908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32909 (eval "$ac_try") 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest.$ac_objext'
32914 { (case "(($ac_try" in
32915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916 *) ac_try_echo=$ac_try;;
32917esac
32918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919 (eval "$ac_try") 2>&5
32920 ac_status=$?
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032923 ac_cv_func_std_isinf_in_cmath=yes
32924else
32925 echo "$as_me: failed program was:" >&5
32926sed 's/^/| /' conftest.$ac_ext >&5
32927
Reid Spencera773bd52006-08-04 18:18:08 +000032928 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032929fi
Reid Spencera773bd52006-08-04 18:18:08 +000032930
32931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032932 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032933ac_cpp='$CPP $CPPFLAGS'
32934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32936ac_compiler_gnu=$ac_cv_c_compiler_gnu
32937
32938fi
Reid Spencera773bd52006-08-04 18:18:08 +000032939{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32940echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032941
32942if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032943
32944cat >>confdefs.h <<\_ACEOF
32945#define HAVE_STD_ISINF_IN_CMATH 1
32946_ACEOF
32947
Reid Spencerabec8f92004-10-27 23:03:44 +000032948fi
32949
Reid Spencera773bd52006-08-04 18:18:08 +000032950{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32951echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032952if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32953 echo $ECHO_N "(cached) $ECHO_C" >&6
32954else
Reid Spencera773bd52006-08-04 18:18:08 +000032955 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032956ac_cpp='$CXXCPP $CPPFLAGS'
32957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32960
Reid Spencerabec8f92004-10-27 23:03:44 +000032961 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032962/* confdefs.h. */
32963_ACEOF
32964cat confdefs.h >>conftest.$ac_ext
32965cat >>conftest.$ac_ext <<_ACEOF
32966/* end confdefs.h. */
32967#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032968int
32969main ()
32970{
32971float f; finite(f);
32972 ;
32973 return 0;
32974}
Brian Gaeked59a6472004-07-21 03:33:58 +000032975_ACEOF
32976rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032977if { (ac_try="$ac_compile"
32978case "(($ac_try" in
32979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32980 *) ac_try_echo=$ac_try;;
32981esac
32982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32983 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032985 grep -v '^ *+' conftest.er1 >conftest.err
32986 rm -f conftest.er1
32987 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032989 (exit $ac_status); } &&
32990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
33000 { ac_try='test -s conftest.$ac_objext'
33001 { (case "(($ac_try" in
33002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33003 *) ac_try_echo=$ac_try;;
33004esac
33005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33006 (eval "$ac_try") 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033010 ac_cv_func_finite_in_ieeefp_h=yes
33011else
33012 echo "$as_me: failed program was:" >&5
33013sed 's/^/| /' conftest.$ac_ext >&5
33014
Reid Spencera773bd52006-08-04 18:18:08 +000033015 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033016fi
Reid Spencera773bd52006-08-04 18:18:08 +000033017
33018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033019 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033020ac_cpp='$CPP $CPPFLAGS'
33021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33023ac_compiler_gnu=$ac_cv_c_compiler_gnu
33024
33025fi
Reid Spencera773bd52006-08-04 18:18:08 +000033026{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33027echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033028
Brian Gaeke6802b552004-10-28 05:06:45 +000033029if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033030
33031cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033032#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033033_ACEOF
33034
Reid Spencerabec8f92004-10-27 23:03:44 +000033035fi
33036
33037
33038
Reid Spencer30fe5262007-01-20 07:48:49 +000033039if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033040
33041
33042for ac_header in stdlib.h unistd.h
33043do
33044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050fi
Reid Spencera773bd52006-08-04 18:18:08 +000033051ac_res=`eval echo '${'$as_ac_Header'}'`
33052 { echo "$as_me:$LINENO: result: $ac_res" >&5
33053echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033054else
33055 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033056{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33057echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033058cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033059/* confdefs.h. */
33060_ACEOF
33061cat confdefs.h >>conftest.$ac_ext
33062cat >>conftest.$ac_ext <<_ACEOF
33063/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033064$ac_includes_default
33065#include <$ac_header>
33066_ACEOF
33067rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033068if { (ac_try="$ac_compile"
33069case "(($ac_try" in
33070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071 *) ac_try_echo=$ac_try;;
33072esac
33073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33074 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033075 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033076 grep -v '^ *+' conftest.er1 >conftest.err
33077 rm -f conftest.er1
33078 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033080 (exit $ac_status); } &&
33081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33082 { (case "(($ac_try" in
33083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33084 *) ac_try_echo=$ac_try;;
33085esac
33086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33087 (eval "$ac_try") 2>&5
33088 ac_status=$?
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try='test -s conftest.$ac_objext'
33092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033101 ac_header_compiler=yes
33102else
33103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033104sed 's/^/| /' conftest.$ac_ext >&5
33105
Reid Spencera773bd52006-08-04 18:18:08 +000033106 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033107fi
Reid Spencera773bd52006-08-04 18:18:08 +000033108
33109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33110{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33111echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033112
33113# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033114{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33115echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033116cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033117/* confdefs.h. */
33118_ACEOF
33119cat confdefs.h >>conftest.$ac_ext
33120cat >>conftest.$ac_ext <<_ACEOF
33121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033122#include <$ac_header>
33123_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033124if { (ac_try="$ac_cpp conftest.$ac_ext"
33125case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128esac
33129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033131 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033132 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033133 rm -f conftest.er1
33134 cat conftest.err >&5
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033136 (exit $ac_status); } >/dev/null; then
33137 if test -s conftest.err; then
33138 ac_cpp_err=$ac_c_preproc_warn_flag
33139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33140 else
33141 ac_cpp_err=
33142 fi
33143else
33144 ac_cpp_err=yes
33145fi
33146if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033147 ac_header_preproc=yes
33148else
33149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033150sed 's/^/| /' conftest.$ac_ext >&5
33151
John Criswell7a73b802003-06-30 21:59:07 +000033152 ac_header_preproc=no
33153fi
Reid Spencera773bd52006-08-04 18:18:08 +000033154
John Criswell7a73b802003-06-30 21:59:07 +000033155rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033156{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33157echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033158
33159# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033160case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33161 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33166 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033167 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033168 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33172echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33176echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033181 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033182## ----------------------------------- ##
33183## Report this to llvmbugs@cs.uiuc.edu ##
33184## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033185_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033186 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033187 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033188esac
Reid Spencera773bd52006-08-04 18:18:08 +000033189{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033192 echo $ECHO_N "(cached) $ECHO_C" >&6
33193else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033194 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033195fi
Reid Spencera773bd52006-08-04 18:18:08 +000033196ac_res=`eval echo '${'$as_ac_Header'}'`
33197 { echo "$as_me:$LINENO: result: $ac_res" >&5
33198echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033199
33200fi
33201if test `eval echo '${'$as_ac_Header'}'` = yes; then
33202 cat >>confdefs.h <<_ACEOF
33203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33204_ACEOF
33205
33206fi
33207
33208done
33209
33210
33211for ac_func in getpagesize
33212do
33213as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033214{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33215echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33216if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033217 echo $ECHO_N "(cached) $ECHO_C" >&6
33218else
33219 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033220/* confdefs.h. */
33221_ACEOF
33222cat confdefs.h >>conftest.$ac_ext
33223cat >>conftest.$ac_ext <<_ACEOF
33224/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033225/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33227#define $ac_func innocuous_$ac_func
33228
John Criswell7a73b802003-06-30 21:59:07 +000033229/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033230 which can conflict with char $ac_func (); below.
33231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33232 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033233
John Criswell0c38eaf2003-09-10 15:17:25 +000033234#ifdef __STDC__
33235# include <limits.h>
33236#else
33237# include <assert.h>
33238#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033239
33240#undef $ac_func
33241
Reid Spencera773bd52006-08-04 18:18:08 +000033242/* Override any GCC internal prototype to avoid an error.
33243 Use char because int might match the return type of a GCC
33244 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033245#ifdef __cplusplus
33246extern "C"
33247#endif
John Criswell7a73b802003-06-30 21:59:07 +000033248char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033249/* The GNU C library defines this for functions which it implements
33250 to always fail with ENOSYS. Some functions are actually named
33251 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033252#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033253choke me
John Criswell7a73b802003-06-30 21:59:07 +000033254#endif
33255
John Criswell0c38eaf2003-09-10 15:17:25 +000033256int
33257main ()
33258{
Reid Spencera773bd52006-08-04 18:18:08 +000033259return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033260 ;
33261 return 0;
33262}
33263_ACEOF
33264rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033265if { (ac_try="$ac_link"
33266case "(($ac_try" in
33267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33268 *) ac_try_echo=$ac_try;;
33269esac
33270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33271 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033273 grep -v '^ *+' conftest.er1 >conftest.err
33274 rm -f conftest.er1
33275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033277 (exit $ac_status); } &&
33278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33279 { (case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33282esac
33283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_try") 2>&5
33285 ac_status=$?
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; } &&
33288 { ac_try='test -s conftest$ac_exeext'
33289 { (case "(($ac_try" in
33290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291 *) ac_try_echo=$ac_try;;
33292esac
33293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294 (eval "$ac_try") 2>&5
33295 ac_status=$?
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033298 eval "$as_ac_var=yes"
33299else
33300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033301sed 's/^/| /' conftest.$ac_ext >&5
33302
Reid Spencera773bd52006-08-04 18:18:08 +000033303 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033304fi
Reid Spencera773bd52006-08-04 18:18:08 +000033305
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033306rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033307 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033308fi
Reid Spencera773bd52006-08-04 18:18:08 +000033309ac_res=`eval echo '${'$as_ac_var'}'`
33310 { echo "$as_me:$LINENO: result: $ac_res" >&5
33311echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033312if test `eval echo '${'$as_ac_var'}'` = yes; then
33313 cat >>confdefs.h <<_ACEOF
33314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33315_ACEOF
33316
33317fi
33318done
33319
Reid Spencera773bd52006-08-04 18:18:08 +000033320{ echo "$as_me:$LINENO: checking for working mmap" >&5
33321echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033322if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33323 echo $ECHO_N "(cached) $ECHO_C" >&6
33324else
33325 if test "$cross_compiling" = yes; then
33326 ac_cv_func_mmap_fixed_mapped=no
33327else
33328 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033329/* confdefs.h. */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033334$ac_includes_default
33335/* malloc might have been renamed as rpl_malloc. */
33336#undef malloc
33337
33338/* Thanks to Mike Haertel and Jim Avera for this test.
33339 Here is a matrix of mmap possibilities:
33340 mmap private not fixed
33341 mmap private fixed at somewhere currently unmapped
33342 mmap private fixed at somewhere already mapped
33343 mmap shared not fixed
33344 mmap shared fixed at somewhere currently unmapped
33345 mmap shared fixed at somewhere already mapped
33346 For private mappings, we should verify that changes cannot be read()
33347 back from the file, nor mmap's back from the file at a different
33348 address. (There have been systems where private was not correctly
33349 implemented like the infamous i386 svr4.0, and systems where the
33350 VM page cache was not coherent with the file system buffer cache
33351 like early versions of FreeBSD and possibly contemporary NetBSD.)
33352 For shared mappings, we should conversely verify that changes get
33353 propagated back to all the places they're supposed to be.
33354
33355 Grep wants private fixed already mapped.
33356 The main things grep needs to know about mmap are:
33357 * does it exist and is it safe to write into the mmap'd area
33358 * how to use it (BSD variants) */
33359
33360#include <fcntl.h>
33361#include <sys/mman.h>
33362
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033363#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033364char *malloc ();
33365#endif
33366
33367/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033368#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033369/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033370# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033371# define HAVE_SYS_PARAM_H 1
33372# endif
33373
33374# ifdef _SC_PAGESIZE
33375# define getpagesize() sysconf(_SC_PAGESIZE)
33376# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033377# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033378# include <sys/param.h>
33379# ifdef EXEC_PAGESIZE
33380# define getpagesize() EXEC_PAGESIZE
33381# else /* no EXEC_PAGESIZE */
33382# ifdef NBPG
33383# define getpagesize() NBPG * CLSIZE
33384# ifndef CLSIZE
33385# define CLSIZE 1
33386# endif /* no CLSIZE */
33387# else /* no NBPG */
33388# ifdef NBPC
33389# define getpagesize() NBPC
33390# else /* no NBPC */
33391# ifdef PAGESIZE
33392# define getpagesize() PAGESIZE
33393# endif /* PAGESIZE */
33394# endif /* no NBPC */
33395# endif /* no NBPG */
33396# endif /* no EXEC_PAGESIZE */
33397# else /* no HAVE_SYS_PARAM_H */
33398# define getpagesize() 8192 /* punt totally */
33399# endif /* no HAVE_SYS_PARAM_H */
33400# endif /* no _SC_PAGESIZE */
33401
33402#endif /* no HAVE_GETPAGESIZE */
33403
33404int
33405main ()
33406{
33407 char *data, *data2, *data3;
33408 int i, pagesize;
33409 int fd;
33410
33411 pagesize = getpagesize ();
33412
33413 /* First, make a file with some known garbage in it. */
33414 data = (char *) malloc (pagesize);
33415 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033416 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033417 for (i = 0; i < pagesize; ++i)
33418 *(data + i) = rand ();
33419 umask (0);
33420 fd = creat ("conftest.mmap", 0600);
33421 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033422 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033423 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033424 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033425 close (fd);
33426
33427 /* Next, try to mmap the file at a fixed address which already has
33428 something else allocated at it. If we can, also make sure that
33429 we see the same garbage. */
33430 fd = open ("conftest.mmap", O_RDWR);
33431 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033432 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033433 data2 = (char *) malloc (2 * pagesize);
33434 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033435 return 1;
33436 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033437 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033438 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033439 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033440 for (i = 0; i < pagesize; ++i)
33441 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033442 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033443
33444 /* Finally, make sure that changes to the mapped area do not
33445 percolate back to the file as seen by read(). (This is a bug on
33446 some variants of i386 svr4.0.) */
33447 for (i = 0; i < pagesize; ++i)
33448 *(data2 + i) = *(data2 + i) + 1;
33449 data3 = (char *) malloc (pagesize);
33450 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033451 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033452 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033453 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033454 for (i = 0; i < pagesize; ++i)
33455 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033456 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033457 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033458 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033459}
33460_ACEOF
33461rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033462if { (ac_try="$ac_link"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033469 ac_status=$?
33470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033472 { (case "(($ac_try" in
33473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474 *) ac_try_echo=$ac_try;;
33475esac
33476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033478 ac_status=$?
33479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480 (exit $ac_status); }; }; then
33481 ac_cv_func_mmap_fixed_mapped=yes
33482else
33483 echo "$as_me: program exited with status $ac_status" >&5
33484echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033485sed 's/^/| /' conftest.$ac_ext >&5
33486
John Criswell7a73b802003-06-30 21:59:07 +000033487( exit $ac_status )
33488ac_cv_func_mmap_fixed_mapped=no
33489fi
Reid Spencera773bd52006-08-04 18:18:08 +000033490rm -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 +000033491fi
Reid Spencera773bd52006-08-04 18:18:08 +000033492
33493
John Criswell7a73b802003-06-30 21:59:07 +000033494fi
Reid Spencera773bd52006-08-04 18:18:08 +000033495{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33496echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033497if test $ac_cv_func_mmap_fixed_mapped = yes; then
33498
33499cat >>confdefs.h <<\_ACEOF
33500#define HAVE_MMAP 1
33501_ACEOF
33502
33503fi
33504rm -f conftest.mmap
33505
Reid Spencer30fe5262007-01-20 07:48:49 +000033506 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033507echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033508if test "${ac_cv_func_mmap_file+set}" = set; then
33509 echo $ECHO_N "(cached) $ECHO_C" >&6
33510else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033511 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033512ac_cpp='$CPP $CPPFLAGS'
33513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515ac_compiler_gnu=$ac_cv_c_compiler_gnu
33516
33517 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033518 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033519else
33520 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033521
Reid Spencer777ce172004-09-20 04:09:56 +000033522 /* confdefs.h. */
33523_ACEOF
33524cat confdefs.h >>conftest.$ac_ext
33525cat >>conftest.$ac_ext <<_ACEOF
33526/* end confdefs.h. */
33527
John Criswell7a73b802003-06-30 21:59:07 +000033528#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033529#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033530#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033531
33532int
33533main ()
33534{
John Criswell7a73b802003-06-30 21:59:07 +000033535
33536 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033537 fd = creat ("foo",0777);
33538 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33539 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033540 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033541 ;
33542 return 0;
33543}
John Criswell7a73b802003-06-30 21:59:07 +000033544_ACEOF
33545rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033546if { (ac_try="$ac_link"
33547case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033556 { (case "(($ac_try" in
33557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33558 *) ac_try_echo=$ac_try;;
33559esac
33560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33561 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033562 ac_status=$?
33563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); }; }; then
33565 ac_cv_func_mmap_file=yes
33566else
33567 echo "$as_me: program exited with status $ac_status" >&5
33568echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033569sed 's/^/| /' conftest.$ac_ext >&5
33570
John Criswell7a73b802003-06-30 21:59:07 +000033571( exit $ac_status )
33572ac_cv_func_mmap_file=no
33573fi
Reid Spencera773bd52006-08-04 18:18:08 +000033574rm -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 +000033575fi
Reid Spencera773bd52006-08-04 18:18:08 +000033576
33577
John Criswell7a73b802003-06-30 21:59:07 +000033578 ac_ext=c
33579ac_cpp='$CPP $CPPFLAGS'
33580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33582ac_compiler_gnu=$ac_cv_c_compiler_gnu
33583
33584
33585fi
Reid Spencera773bd52006-08-04 18:18:08 +000033586{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33587echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033588if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033589
33590cat >>confdefs.h <<\_ACEOF
33591#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033592_ACEOF
33593
33594 MMAP_FILE=yes
33595
33596fi
33597
Reid Spencer30fe5262007-01-20 07:48:49 +000033598 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033599echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033600if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33601 echo $ECHO_N "(cached) $ECHO_C" >&6
33602else
Reid Spencer582a23c2004-12-29 07:07:57 +000033603 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033604 ac_cv_need_dev_zero_for_mmap=yes
33605 else
33606 ac_cv_need_dev_zero_for_mmap=no
33607 fi
33608
33609fi
Reid Spencera773bd52006-08-04 18:18:08 +000033610{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33611echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033612if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33613
33614cat >>confdefs.h <<\_ACEOF
33615#define NEED_DEV_ZERO_FOR_MMAP 1
33616_ACEOF
33617
33618fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033619
Reid Spencer30fe5262007-01-20 07:48:49 +000033620 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33621 then
33622 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033623echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033624 fi
33625 if test "$ac_cv_func_mmap_file" = "no"
33626 then
33627 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033628echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033629 fi
John Criswellb13092b2003-07-22 21:00:24 +000033630fi
John Criswell7a73b802003-06-30 21:59:07 +000033631
33632
Reid Spencer9372f152007-07-30 20:13:24 +000033633
33634for ac_func in __dso_handle
33635do
33636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33637{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33639if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33640 echo $ECHO_N "(cached) $ECHO_C" >&6
33641else
33642 cat >conftest.$ac_ext <<_ACEOF
33643/* confdefs.h. */
33644_ACEOF
33645cat confdefs.h >>conftest.$ac_ext
33646cat >>conftest.$ac_ext <<_ACEOF
33647/* end confdefs.h. */
33648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33650#define $ac_func innocuous_$ac_func
33651
33652/* System header to define __stub macros and hopefully few prototypes,
33653 which can conflict with char $ac_func (); below.
33654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33655 <limits.h> exists even on freestanding compilers. */
33656
33657#ifdef __STDC__
33658# include <limits.h>
33659#else
33660# include <assert.h>
33661#endif
33662
33663#undef $ac_func
33664
33665/* Override any GCC internal prototype to avoid an error.
33666 Use char because int might match the return type of a GCC
33667 builtin and then its argument prototype would still apply. */
33668#ifdef __cplusplus
33669extern "C"
33670#endif
33671char $ac_func ();
33672/* The GNU C library defines this for functions which it implements
33673 to always fail with ENOSYS. Some functions are actually named
33674 something starting with __ and the normal name is an alias. */
33675#if defined __stub_$ac_func || defined __stub___$ac_func
33676choke me
33677#endif
33678
33679int
33680main ()
33681{
33682return $ac_func ();
33683 ;
33684 return 0;
33685}
33686_ACEOF
33687rm -f conftest.$ac_objext conftest$ac_exeext
33688if { (ac_try="$ac_link"
33689case "(($ac_try" in
33690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33691 *) ac_try_echo=$ac_try;;
33692esac
33693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33694 (eval "$ac_link") 2>conftest.er1
33695 ac_status=$?
33696 grep -v '^ *+' conftest.er1 >conftest.err
33697 rm -f conftest.er1
33698 cat conftest.err >&5
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033700 (exit $ac_status); } &&
33701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33702 { (case "(($ac_try" in
33703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704 *) ac_try_echo=$ac_try;;
33705esac
33706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33707 (eval "$ac_try") 2>&5
33708 ac_status=$?
33709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33710 (exit $ac_status); }; } &&
33711 { ac_try='test -s conftest$ac_exeext'
33712 { (case "(($ac_try" in
33713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33714 *) ac_try_echo=$ac_try;;
33715esac
33716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33717 (eval "$ac_try") 2>&5
33718 ac_status=$?
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033721 eval "$as_ac_var=yes"
33722else
33723 echo "$as_me: failed program was:" >&5
33724sed 's/^/| /' conftest.$ac_ext >&5
33725
33726 eval "$as_ac_var=no"
33727fi
33728
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033729rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033730 conftest$ac_exeext conftest.$ac_ext
33731fi
33732ac_res=`eval echo '${'$as_ac_var'}'`
33733 { echo "$as_me:$LINENO: result: $ac_res" >&5
33734echo "${ECHO_T}$ac_res" >&6; }
33735if test `eval echo '${'$as_ac_var'}'` = yes; then
33736 cat >>confdefs.h <<_ACEOF
33737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33738_ACEOF
33739
33740fi
33741done
33742
33743
Reid Spencera773bd52006-08-04 18:18:08 +000033744{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33745echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033746if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
33748else
33749 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033750if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033751 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033752 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33753 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033754 if test $? -eq 0 ; then
33755 llvm_cv_llvmgcc_sanity="yes"
33756 fi
33757 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033758fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033759fi
Reid Spencera773bd52006-08-04 18:18:08 +000033760{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33761echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033762
33763if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033764 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33765echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033766 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033767 LLVMCC1=$llvmcc1path
33768
Reid Spencer502935f2004-12-22 05:56:56 +000033769 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033770 LLVMCC1PLUS=$llvmcc1pluspath
33771
Reid Spencer502935f2004-12-22 05:56:56 +000033772 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33773 LLVMGCCDIR=$llvmgccdir
33774
Reid Spencer282d8c12006-12-21 22:55:41 +000033775 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33776 LLVMGCCLIBEXEC=$llvmgcclibexec
33777
Reid Spencerb5d75b82006-05-09 00:31:01 +000033778 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033779 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33780 LLVMGCC_VERSION=$llvmgccversion
33781
33782 LLVMGCC_MAJVERS=$llvmgccmajvers
33783
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033784 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033785 LLVMGCC_LANGS=$llvmgcclangs
33786
33787 { echo "$as_me:$LINENO: result: ok" >&5
33788echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033789fi
33790
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033791SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033792
33793
Reid Spencere9de0912004-08-20 09:03:57 +000033794# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033795# information into substitutions that will end up in Makefile.config.in
33796# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033797if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033798 prefix="/usr/local"
33799fi
Reid Spencere9de0912004-08-20 09:03:57 +000033800eval LLVM_PREFIX="${prefix}";
33801eval LLVM_BINDIR="${prefix}/bin";
33802eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033803eval LLVM_DATADIR="${prefix}/share/llvm";
33804eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33805eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033806eval LLVM_INCLUDEDIR="${prefix}/include";
33807eval LLVM_INFODIR="${prefix}/info";
33808eval LLVM_MANDIR="${prefix}/man";
33809LLVM_CONFIGTIME=`date`
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033821# Place the various directores into the config.h file as #defines so that we
33822# can know about the installation paths within LLVM.
33823
Reid Spencere9de0912004-08-20 09:03:57 +000033824cat >>confdefs.h <<_ACEOF
33825#define LLVM_PREFIX "$LLVM_PREFIX"
33826_ACEOF
33827
33828
33829cat >>confdefs.h <<_ACEOF
33830#define LLVM_BINDIR "$LLVM_BINDIR"
33831_ACEOF
33832
33833
33834cat >>confdefs.h <<_ACEOF
33835#define LLVM_LIBDIR "$LLVM_LIBDIR"
33836_ACEOF
33837
33838
33839cat >>confdefs.h <<_ACEOF
33840#define LLVM_DATADIR "$LLVM_DATADIR"
33841_ACEOF
33842
33843
33844cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033845#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033846_ACEOF
33847
33848
33849cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033850#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033851_ACEOF
33852
33853
33854cat >>confdefs.h <<_ACEOF
33855#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33856_ACEOF
33857
33858
33859cat >>confdefs.h <<_ACEOF
33860#define LLVM_INFODIR "$LLVM_INFODIR"
33861_ACEOF
33862
33863
33864cat >>confdefs.h <<_ACEOF
33865#define LLVM_MANDIR "$LLVM_MANDIR"
33866_ACEOF
33867
33868
33869cat >>confdefs.h <<_ACEOF
33870#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33871_ACEOF
33872
33873
Eric Christopher790e11c2007-12-01 00:34:39 +000033874cat >>confdefs.h <<_ACEOF
33875#define LLVM_HOSTTRIPLE "$host"
33876_ACEOF
33877
33878
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033879# Determine which bindings to build.
33880if test "$BINDINGS_TO_BUILD" = auto ; then
33881 BINDINGS_TO_BUILD=""
33882 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33883 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33884 fi
33885fi
33886BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33887
33888
33889# This isn't really configurey, but it avoids having to repeat the list in
33890# other files.
33891ALL_BINDINGS=ocaml
33892
33893
Gordon Henriksenf0915682007-10-02 16:42:22 +000033894# Do any work necessary to ensure that bindings have what they need.
33895binding_prereqs_failed=0
33896for a_binding in $BINDINGS_TO_BUILD ; do
33897 case "$a_binding" in
33898 ocaml)
33899 if test "x$OCAMLC" = x ; then
33900 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33901echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33902 binding_prereqs_failed=1
33903 fi
33904 if test "x$OCAMLDEP" = x ; then
33905 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33906echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33907 binding_prereqs_failed=1
33908 fi
33909 if test "x$OCAMLOPT" = x ; then
33910 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33911echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33912 fi
33913 if test "x$with_ocaml_libdir" != xauto ; then
33914 OCAML_LIBDIR=$with_ocaml_libdir
33915
33916 else
33917 ocaml_stdlib="`"$OCAMLC" -where`"
33918 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33919 then
33920 # ocaml stdlib is beneath our prefix; use stdlib
33921 OCAML_LIBDIR=$ocaml_stdlib
33922
33923 else
33924 # ocaml stdlib is outside our prefix; use libdir/ocaml
33925 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33926
33927 fi
33928 fi
33929 ;;
33930 esac
33931done
33932if test "$binding_prereqs_failed" = 1 ; then
33933 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33934echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33935 { (exit 1); exit 1; }; }
33936fi
33937
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033938{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33939echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33940if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33941 echo $ECHO_N "(cached) $ECHO_C" >&6
33942else
33943 ac_ext=cpp
33944ac_cpp='$CXXCPP $CPPFLAGS'
33945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33948
33949 oldcxxflags="$CXXFLAGS"
33950 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33951 cat >conftest.$ac_ext <<_ACEOF
33952/* confdefs.h. */
33953_ACEOF
33954cat confdefs.h >>conftest.$ac_ext
33955cat >>conftest.$ac_ext <<_ACEOF
33956/* end confdefs.h. */
33957
33958int
33959main ()
33960{
33961
33962 ;
33963 return 0;
33964}
33965_ACEOF
33966rm -f conftest.$ac_objext
33967if { (ac_try="$ac_compile"
33968case "(($ac_try" in
33969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970 *) ac_try_echo=$ac_try;;
33971esac
33972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973 (eval "$ac_compile") 2>conftest.er1
33974 ac_status=$?
33975 grep -v '^ *+' conftest.er1 >conftest.err
33976 rm -f conftest.er1
33977 cat conftest.err >&5
33978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033979 (exit $ac_status); } &&
33980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33981 { (case "(($ac_try" in
33982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33983 *) ac_try_echo=$ac_try;;
33984esac
33985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33986 (eval "$ac_try") 2>&5
33987 ac_status=$?
33988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33989 (exit $ac_status); }; } &&
33990 { ac_try='test -s conftest.$ac_objext'
33991 { (case "(($ac_try" in
33992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33993 *) ac_try_echo=$ac_try;;
33994esac
33995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33996 (eval "$ac_try") 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034000 llvm_cv_cxx_visibility_inlines_hidden=yes
34001else
34002 echo "$as_me: failed program was:" >&5
34003sed 's/^/| /' conftest.$ac_ext >&5
34004
34005 llvm_cv_cxx_visibility_inlines_hidden=no
34006fi
34007
34008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34009 CXXFLAGS="$oldcxxflags"
34010 ac_ext=c
34011ac_cpp='$CPP $CPPFLAGS'
34012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34014ac_compiler_gnu=$ac_cv_c_compiler_gnu
34015
34016
34017fi
34018{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34019echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34020if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34021 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34022
34023else
34024 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34025
34026fi
34027
Gordon Henriksenf0915682007-10-02 16:42:22 +000034028
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034029if test "$llvm_cv_link_use_r" = "yes" ; then
34030 RPATH="-Wl,-R"
34031else
34032 RPATH="-Wl,-rpath"
34033fi
34034
34035
34036if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34037 RDYNAMIC="-Wl,-export-dynamic"
34038else
34039 RDYNAMIC=""
34040fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034041
34042
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034043
Reid Spencera773bd52006-08-04 18:18:08 +000034044ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034045
Reid Spencera773bd52006-08-04 18:18:08 +000034046ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034047
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034048ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034049
34050
Reid Spencera773bd52006-08-04 18:18:08 +000034051ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034052
34053
Reid Spencerea949cf2006-08-16 00:45:38 +000034054ac_config_files="$ac_config_files llvm.spec"
34055
34056
Reid Spencera773bd52006-08-04 18:18:08 +000034057ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034058
34059
Reid Spencera773bd52006-08-04 18:18:08 +000034060ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034061
34062
Reid Spencera773bd52006-08-04 18:18:08 +000034063ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034064
Reid Spencera773bd52006-08-04 18:18:08 +000034065ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034066
34067
Reid Spencera773bd52006-08-04 18:18:08 +000034068ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034069
34070
Reid Spencera773bd52006-08-04 18:18:08 +000034071ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034072
34073
Reid Spencera773bd52006-08-04 18:18:08 +000034074ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034075
34076
Reid Spencer8b2e1412006-11-17 03:32:33 +000034077ac_config_commands="$ac_config_commands runtime/Makefile"
34078
34079
Reid Spencera773bd52006-08-04 18:18:08 +000034080ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034081
34082
Reid Spencera773bd52006-08-04 18:18:08 +000034083ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034084
34085
Bill Wendlingf24eb392009-01-04 23:12:30 +000034086ac_config_commands="$ac_config_commands unittests/Makefile"
34087
34088
Reid Spencera773bd52006-08-04 18:18:08 +000034089ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034090
34091
Reid Spencera773bd52006-08-04 18:18:08 +000034092ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034093
34094
Reid Spencera773bd52006-08-04 18:18:08 +000034095ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034096
34097
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034098ac_config_commands="$ac_config_commands bindings/Makefile"
34099
34100
34101ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34102
34103
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034104
John Criswell7a73b802003-06-30 21:59:07 +000034105cat >confcache <<\_ACEOF
34106# This file is a shell script that caches the results of configure
34107# tests run on this system so they can be shared between configure
34108# scripts and configure runs, see configure's option --config-cache.
34109# It is not useful on other systems. If it contains results you don't
34110# want to keep, you may remove or edit it.
34111#
34112# config.status only pays attention to the cache file if you give it
34113# the --recheck option to rerun configure.
34114#
John Criswell0c38eaf2003-09-10 15:17:25 +000034115# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034116# loading this file, other *unset* `ac_cv_foo' will be assigned the
34117# following values.
34118
34119_ACEOF
34120
34121# The following way of writing the cache mishandles newlines in values,
34122# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034123# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034124# Ultrix sh set writes to stderr and can't be redirected directly,
34125# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034126(
34127 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34128 eval ac_val=\$$ac_var
34129 case $ac_val in #(
34130 *${as_nl}*)
34131 case $ac_var in #(
34132 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34133echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34134 esac
34135 case $ac_var in #(
34136 _ | IFS | as_nl) ;; #(
34137 *) $as_unset $ac_var ;;
34138 esac ;;
34139 esac
34140 done
34141
John Criswell7a73b802003-06-30 21:59:07 +000034142 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34144 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034145 # `set' does not quote correctly, so add quotes (double-quote
34146 # substitution turns \\\\ into \\, and sed turns \\ into \).
34147 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034148 "s/'/'\\\\''/g;
34149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034150 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034151 *)
34152 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034154 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034155 esac |
34156 sort
34157) |
John Criswell7a73b802003-06-30 21:59:07 +000034158 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034159 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034160 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034161 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34163 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34165 :end' >>confcache
34166if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34167 if test -w "$cache_file"; then
34168 test "x$cache_file" != "x/dev/null" &&
34169 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34170echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034171 cat confcache >$cache_file
34172 else
Reid Spencera773bd52006-08-04 18:18:08 +000034173 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34174echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034175 fi
34176fi
34177rm -f confcache
34178
34179test "x$prefix" = xNONE && prefix=$ac_default_prefix
34180# Let make expand exec_prefix.
34181test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34182
John Criswell7a73b802003-06-30 21:59:07 +000034183DEFS=-DHAVE_CONFIG_H
34184
John Criswell0c38eaf2003-09-10 15:17:25 +000034185ac_libobjs=
34186ac_ltlibobjs=
34187for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34188 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034189 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34190 ac_i=`echo "$ac_i" | sed "$ac_script"`
34191 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34192 # will be set to the directory where LIBOBJS objects are built.
34193 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34194 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034195done
34196LIBOBJS=$ac_libobjs
34197
34198LTLIBOBJS=$ac_ltlibobjs
34199
34200
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034201if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34202 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34203Usually this means the macro was only invoked conditionally." >&5
34204echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34205Usually this means the macro was only invoked conditionally." >&2;}
34206 { (exit 1); exit 1; }; }
34207fi
34208if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34209 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34210Usually this means the macro was only invoked conditionally." >&5
34211echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34212Usually this means the macro was only invoked conditionally." >&2;}
34213 { (exit 1); exit 1; }; }
34214fi
John Criswell7a73b802003-06-30 21:59:07 +000034215
34216: ${CONFIG_STATUS=./config.status}
34217ac_clean_files_save=$ac_clean_files
34218ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34219{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34220echo "$as_me: creating $CONFIG_STATUS" >&6;}
34221cat >$CONFIG_STATUS <<_ACEOF
34222#! $SHELL
34223# Generated by $as_me.
34224# Run this file to recreate the current configuration.
34225# Compiler output produced by configure, useful for debugging
34226# configure, is in config.log if it exists.
34227
34228debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034229ac_cs_recheck=false
34230ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034231SHELL=\${CONFIG_SHELL-$SHELL}
34232_ACEOF
34233
34234cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034235## --------------------- ##
34236## M4sh Initialization. ##
34237## --------------------- ##
34238
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034239# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34241 emulate sh
34242 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34244 # is contrary to our usage. Disable this feature.
34245 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034246 setopt NO_GLOB_SUBST
34247else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034249fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034250BIN_SH=xpg4; export BIN_SH # for Tru64
34251DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034252
John Criswell7a73b802003-06-30 21:59:07 +000034253
Reid Spencera773bd52006-08-04 18:18:08 +000034254# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034255# Avoid depending upon Character Ranges.
34256as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34257as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34258as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34259as_cr_digits='0123456789'
34260as_cr_alnum=$as_cr_Letters$as_cr_digits
34261
34262# The user is always right.
34263if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034264 echo "#! /bin/sh" >conf$$.sh
34265 echo "exit 0" >>conf$$.sh
34266 chmod +x conf$$.sh
34267 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034268 PATH_SEPARATOR=';'
34269 else
34270 PATH_SEPARATOR=:
34271 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034272 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034273fi
34274
Reid Spencera773bd52006-08-04 18:18:08 +000034275# Support unset when possible.
34276if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34277 as_unset=unset
34278else
34279 as_unset=false
34280fi
John Criswell7a73b802003-06-30 21:59:07 +000034281
Reid Spencera773bd52006-08-04 18:18:08 +000034282
34283# IFS
34284# We need space, tab and new line, in precisely that order. Quoting is
34285# there to prevent editors from complaining about space-tab.
34286# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34287# splitting by setting IFS to empty value.)
34288as_nl='
34289'
34290IFS=" "" $as_nl"
34291
34292# Find who we are. Look in the path if we contain no directory separator.
34293case $0 in
34294 *[\\/]* ) as_myself=$0 ;;
34295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034296for as_dir in $PATH
34297do
34298 IFS=$as_save_IFS
34299 test -z "$as_dir" && as_dir=.
34300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34301done
Reid Spencera773bd52006-08-04 18:18:08 +000034302IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034303
Reid Spencera773bd52006-08-04 18:18:08 +000034304 ;;
34305esac
34306# We did not find ourselves, most probably we were run as `sh COMMAND'
34307# in which case we are not to be found in the path.
34308if test "x$as_myself" = x; then
34309 as_myself=$0
34310fi
34311if test ! -f "$as_myself"; then
34312 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34313 { (exit 1); exit 1; }
34314fi
34315
34316# Work around bugs in pre-3.0 UWIN ksh.
34317for as_var in ENV MAIL MAILPATH
34318do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34319done
34320PS1='$ '
34321PS2='> '
34322PS4='+ '
34323
34324# NLS nuisances.
34325for as_var in \
34326 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34327 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34328 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034329do
Reid Spencera773bd52006-08-04 18:18:08 +000034330 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34331 eval $as_var=C; export $as_var
34332 else
34333 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34334 fi
34335done
34336
34337# Required to use basename.
34338if expr a : '\(a\)' >/dev/null 2>&1 &&
34339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34340 as_expr=expr
34341else
34342 as_expr=false
34343fi
34344
34345if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34346 as_basename=basename
34347else
34348 as_basename=false
34349fi
34350
34351
34352# Name of the executable.
34353as_me=`$as_basename -- "$0" ||
34354$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34355 X"$0" : 'X\(//\)$' \| \
34356 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34357echo X/"$0" |
34358 sed '/^.*\/\([^/][^/]*\)\/*$/{
34359 s//\1/
34360 q
34361 }
34362 /^X\/\(\/\/\)$/{
34363 s//\1/
34364 q
34365 }
34366 /^X\/\(\/\).*/{
34367 s//\1/
34368 q
34369 }
34370 s/.*/./; q'`
34371
34372# CDPATH.
34373$as_unset CDPATH
34374
34375
34376
John Criswell7a73b802003-06-30 21:59:07 +000034377 as_lineno_1=$LINENO
34378 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034379 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034380 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034381
34382 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34383 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034384 # line-number line after each line using $LINENO; the second 'sed'
34385 # does the real work. The second script uses 'N' to pair each
34386 # line-number line with the line containing $LINENO, and appends
34387 # trailing '-' during substitution so that $LINENO is not a special
34388 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034389 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034390 # scripts with optimization help from Paolo Bonzini. Blame Lee
34391 # E. McMahon (1931-1989) for sed's syntax. :-)
34392 sed -n '
34393 p
34394 /[$]LINENO/=
34395 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034396 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034397 s/[$]LINENO.*/&-/
34398 t lineno
34399 b
34400 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034401 N
Reid Spencera773bd52006-08-04 18:18:08 +000034402 :loop
34403 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034404 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034405 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034406 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034407 chmod +x "$as_me.lineno" ||
34408 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034409 { (exit 1); exit 1; }; }
34410
34411 # Don't try to exec as it changes $[0], causing all sort of problems
34412 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034413 # original and so on. Autoconf is especially sensitive to this).
34414 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034415 # Exit status is that of the last command.
34416 exit
34417}
34418
34419
Reid Spencera773bd52006-08-04 18:18:08 +000034420if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34421 as_dirname=dirname
34422else
34423 as_dirname=false
34424fi
34425
34426ECHO_C= ECHO_N= ECHO_T=
34427case `echo -n x` in
34428-n*)
34429 case `echo 'x\c'` in
34430 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34431 *) ECHO_C='\c';;
34432 esac;;
34433*)
34434 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034435esac
34436
Reid Spencera773bd52006-08-04 18:18:08 +000034437if expr a : '\(a\)' >/dev/null 2>&1 &&
34438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034439 as_expr=expr
34440else
34441 as_expr=false
34442fi
34443
34444rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034445if test -d conf$$.dir; then
34446 rm -f conf$$.dir/conf$$.file
34447else
34448 rm -f conf$$.dir
34449 mkdir conf$$.dir
34450fi
John Criswell7a73b802003-06-30 21:59:07 +000034451echo >conf$$.file
34452if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034453 as_ln_s='ln -s'
34454 # ... but there are two gotchas:
34455 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34456 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34457 # In both cases, we have to default to `cp -p'.
34458 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034459 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034460elif ln conf$$.file conf$$ 2>/dev/null; then
34461 as_ln_s=ln
34462else
34463 as_ln_s='cp -p'
34464fi
Reid Spencera773bd52006-08-04 18:18:08 +000034465rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34466rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034467
John Criswell0c38eaf2003-09-10 15:17:25 +000034468if mkdir -p . 2>/dev/null; then
34469 as_mkdir_p=:
34470else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034471 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034472 as_mkdir_p=false
34473fi
34474
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034475# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34476# systems may use methods other than mode bits to determine executability.
34477cat >conf$$.file <<_ASEOF
34478#! /bin/sh
34479exit 0
34480_ASEOF
34481chmod +x conf$$.file
34482if test -x conf$$.file >/dev/null 2>&1; then
34483 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034484else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034485 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034486fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034487rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034488
34489# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034490as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034491
34492# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034493as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034494
34495
John Criswell7a73b802003-06-30 21:59:07 +000034496exec 6>&1
34497
Reid Spencera773bd52006-08-04 18:18:08 +000034498# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034499# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034500# values after options handling.
34501ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034502This file was extended by llvm $as_me 2.6svn, which was
34503generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034504
34505 CONFIG_FILES = $CONFIG_FILES
34506 CONFIG_HEADERS = $CONFIG_HEADERS
34507 CONFIG_LINKS = $CONFIG_LINKS
34508 CONFIG_COMMANDS = $CONFIG_COMMANDS
34509 $ $0 $@
34510
Reid Spencera773bd52006-08-04 18:18:08 +000034511on `(hostname || uname -n) 2>/dev/null | sed 1q`
34512"
34513
John Criswell7a73b802003-06-30 21:59:07 +000034514_ACEOF
34515
Reid Spencera773bd52006-08-04 18:18:08 +000034516cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034517# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034518config_files="$ac_config_files"
34519config_headers="$ac_config_headers"
34520config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034521
Reid Spencera773bd52006-08-04 18:18:08 +000034522_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034523
34524cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034525ac_cs_usage="\
34526\`$as_me' instantiates files from templates according to the
34527current configuration.
34528
34529Usage: $0 [OPTIONS] [FILE]...
34530
34531 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034532 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034533 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034534 -d, --debug don't remove temporary files
34535 --recheck update $as_me by reconfiguring in the same conditions
34536 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034537 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034538 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034539 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034540
34541Configuration files:
34542$config_files
34543
34544Configuration headers:
34545$config_headers
34546
John Criswellc764fbc2003-09-06 15:17:13 +000034547Configuration commands:
34548$config_commands
34549
John Criswell7a73b802003-06-30 21:59:07 +000034550Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034551
Reid Spencera773bd52006-08-04 18:18:08 +000034552_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034553cat >>$CONFIG_STATUS <<_ACEOF
34554ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034555llvm config.status 2.6svn
34556configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034558
Reid Spencera773bd52006-08-04 18:18:08 +000034559Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034560This config.status script is free software; the Free Software Foundation
34561gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034562
34563ac_pwd='$ac_pwd'
34564srcdir='$srcdir'
34565INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034566_ACEOF
34567
34568cat >>$CONFIG_STATUS <<\_ACEOF
34569# If no file are specified by the user, then we need to provide default
34570# value. By we need to know if files were specified by the user.
34571ac_need_defaults=:
34572while test $# != 0
34573do
34574 case $1 in
34575 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034578 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034580 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034581 ac_option=$1
34582 ac_optarg=$2
34583 ac_shift=shift
34584 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034585 esac
34586
John Criswell0c38eaf2003-09-10 15:17:25 +000034587 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034588 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34590 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34592 echo "$ac_cs_version"; exit ;;
34593 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034594 debug=: ;;
34595 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034596 $ac_shift
34597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034598 ac_need_defaults=false;;
34599 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034600 $ac_shift
34601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034602 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034603 --he | --h)
34604 # Conflict between --help and --header
34605 { echo "$as_me: error: ambiguous option: $1
34606Try \`$0 --help' for more information." >&2
34607 { (exit 1); exit 1; }; };;
34608 --help | --hel | -h )
34609 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34611 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34612 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034613
34614 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034615 -*) { echo "$as_me: error: unrecognized option: $1
34616Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034617 { (exit 1); exit 1; }; } ;;
34618
Reid Spencera773bd52006-08-04 18:18:08 +000034619 *) ac_config_targets="$ac_config_targets $1"
34620 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034621
34622 esac
34623 shift
34624done
34625
John Criswell0c38eaf2003-09-10 15:17:25 +000034626ac_configure_extra_args=
34627
34628if $ac_cs_silent; then
34629 exec 6>/dev/null
34630 ac_configure_extra_args="$ac_configure_extra_args --silent"
34631fi
34632
34633_ACEOF
34634cat >>$CONFIG_STATUS <<_ACEOF
34635if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34637 CONFIG_SHELL=$SHELL
34638 export CONFIG_SHELL
34639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034640fi
34641
John Criswell7a73b802003-06-30 21:59:07 +000034642_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034643cat >>$CONFIG_STATUS <<\_ACEOF
34644exec 5>>config.log
34645{
34646 echo
34647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34648## Running $as_me. ##
34649_ASBOX
34650 echo "$ac_log"
34651} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034652
Reid Spencera773bd52006-08-04 18:18:08 +000034653_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034654cat >>$CONFIG_STATUS <<_ACEOF
34655#
Reid Spencera773bd52006-08-04 18:18:08 +000034656# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034657#
Reid Spencerc0682832005-02-24 19:05:19 +000034658llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034659
34660_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034661
John Criswell7a73b802003-06-30 21:59:07 +000034662cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034663
34664# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034665for ac_config_target in $ac_config_targets
34666do
Reid Spencera773bd52006-08-04 18:18:08 +000034667 case $ac_config_target in
34668 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34669 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034670 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034671 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034672 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034673 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34674 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34675 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34676 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34677 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34678 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34679 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034680 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034681 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34682 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034683 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034684 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34685 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34686 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034687 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34688 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034689
John Criswell7a73b802003-06-30 21:59:07 +000034690 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34691echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34692 { (exit 1); exit 1; }; };;
34693 esac
34694done
34695
Reid Spencera773bd52006-08-04 18:18:08 +000034696
John Criswell7a73b802003-06-30 21:59:07 +000034697# If the user did not use the arguments to specify the items to instantiate,
34698# then the envvar interface is used. Set only those that are not.
34699# We use the long form for the default assignment because of an extremely
34700# bizarre bug on SunOS 4.1.3.
34701if $ac_need_defaults; then
34702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034705fi
34706
John Criswell0c38eaf2003-09-10 15:17:25 +000034707# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034708# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034709# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034710# Hook for its removal unless debugging.
34711# Note that there is a small window in which the directory will not be cleaned:
34712# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034713$debug ||
34714{
Reid Spencera773bd52006-08-04 18:18:08 +000034715 tmp=
34716 trap 'exit_status=$?
34717 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34718' 0
John Criswell7a73b802003-06-30 21:59:07 +000034719 trap '{ (exit 1); exit 1; }' 1 2 13 15
34720}
John Criswell7a73b802003-06-30 21:59:07 +000034721# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034722
John Criswell7a73b802003-06-30 21:59:07 +000034723{
Reid Spencera773bd52006-08-04 18:18:08 +000034724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034725 test -n "$tmp" && test -d "$tmp"
34726} ||
34727{
Reid Spencera773bd52006-08-04 18:18:08 +000034728 tmp=./conf$$-$RANDOM
34729 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034730} ||
34731{
John Criswell0c38eaf2003-09-10 15:17:25 +000034732 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034733 { (exit 1); exit 1; }
34734}
34735
John Criswell7a73b802003-06-30 21:59:07 +000034736#
Reid Spencera773bd52006-08-04 18:18:08 +000034737# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034738#
34739
34740# No need to generate the scripts if there are no CONFIG_FILES.
34741# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034742if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034743
34744_ACEOF
34745
Reid Spencera773bd52006-08-04 18:18:08 +000034746
34747
34748ac_delim='%!_!# '
34749for ac_last_try in false false false false false :; do
34750 cat >conf$$subs.sed <<_ACEOF
34751SHELL!$SHELL$ac_delim
34752PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34753PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34754PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34755PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34756PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34757PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34758exec_prefix!$exec_prefix$ac_delim
34759prefix!$prefix$ac_delim
34760program_transform_name!$program_transform_name$ac_delim
34761bindir!$bindir$ac_delim
34762sbindir!$sbindir$ac_delim
34763libexecdir!$libexecdir$ac_delim
34764datarootdir!$datarootdir$ac_delim
34765datadir!$datadir$ac_delim
34766sysconfdir!$sysconfdir$ac_delim
34767sharedstatedir!$sharedstatedir$ac_delim
34768localstatedir!$localstatedir$ac_delim
34769includedir!$includedir$ac_delim
34770oldincludedir!$oldincludedir$ac_delim
34771docdir!$docdir$ac_delim
34772infodir!$infodir$ac_delim
34773htmldir!$htmldir$ac_delim
34774dvidir!$dvidir$ac_delim
34775pdfdir!$pdfdir$ac_delim
34776psdir!$psdir$ac_delim
34777libdir!$libdir$ac_delim
34778localedir!$localedir$ac_delim
34779mandir!$mandir$ac_delim
34780DEFS!$DEFS$ac_delim
34781ECHO_C!$ECHO_C$ac_delim
34782ECHO_N!$ECHO_N$ac_delim
34783ECHO_T!$ECHO_T$ac_delim
34784LIBS!$LIBS$ac_delim
34785build_alias!$build_alias$ac_delim
34786host_alias!$host_alias$ac_delim
34787target_alias!$target_alias$ac_delim
34788LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34789subdirs!$subdirs$ac_delim
34790build!$build$ac_delim
34791build_cpu!$build_cpu$ac_delim
34792build_vendor!$build_vendor$ac_delim
34793build_os!$build_os$ac_delim
34794host!$host$ac_delim
34795host_cpu!$host_cpu$ac_delim
34796host_vendor!$host_vendor$ac_delim
34797host_os!$host_os$ac_delim
34798target!$target$ac_delim
34799target_cpu!$target_cpu$ac_delim
34800target_vendor!$target_vendor$ac_delim
34801target_os!$target_os$ac_delim
34802OS!$OS$ac_delim
34803LINKALL!$LINKALL$ac_delim
34804NOLINKALL!$NOLINKALL$ac_delim
34805LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34806LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034807CC!$CC$ac_delim
34808CFLAGS!$CFLAGS$ac_delim
34809LDFLAGS!$LDFLAGS$ac_delim
34810CPPFLAGS!$CPPFLAGS$ac_delim
34811ac_ct_CC!$ac_ct_CC$ac_delim
34812EXEEXT!$EXEEXT$ac_delim
34813OBJEXT!$OBJEXT$ac_delim
Nick Lewyckyfb138812009-03-12 03:34:33 +000034814ARCH!$ARCH$ac_delim
34815ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034816CPP!$CPP$ac_delim
34817GREP!$GREP$ac_delim
34818EGREP!$EGREP$ac_delim
34819LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34820BUILD_CC!$BUILD_CC$ac_delim
34821BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034822BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034823CVSBUILD!$CVSBUILD$ac_delim
34824ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34825DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034826ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34827EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034828DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034829JIT!$JIT$ac_delim
34830TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34831ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34832ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034833ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034834TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034835ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034836EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034837BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034838CXX!$CXX$ac_delim
34839CXXFLAGS!$CXXFLAGS$ac_delim
34840ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034841NM!$NM$ac_delim
34842ifGNUmake!$ifGNUmake$ac_delim
34843LN_S!$LN_S$ac_delim
34844CMP!$CMP$ac_delim
34845CP!$CP$ac_delim
34846DATE!$DATE$ac_delim
34847FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034848_ACEOF
34849
34850 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34851 break
34852 elif $ac_last_try; then
34853 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34854echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34855 { (exit 1); exit 1; }; }
34856 else
34857 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034858 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034859done
34860
34861ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34862if test -n "$ac_eof"; then
34863 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34864 ac_eof=`expr $ac_eof + 1`
34865fi
34866
34867cat >>$CONFIG_STATUS <<_ACEOF
34868cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34869/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34870_ACEOF
34871sed '
34872s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34873s/^/s,@/; s/!/@,|#_!!_#|/
34874:n
34875t n
34876s/'"$ac_delim"'$/,g/; t
34877s/$/\\/; p
34878N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34879' >>$CONFIG_STATUS <conf$$subs.sed
34880rm -f conf$$subs.sed
34881cat >>$CONFIG_STATUS <<_ACEOF
34882CEOF$ac_eof
34883_ACEOF
34884
34885
34886ac_delim='%!_!# '
34887for ac_last_try in false false false false false :; do
34888 cat >conf$$subs.sed <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034889MKDIR!$MKDIR$ac_delim
34890MV!$MV$ac_delim
34891RANLIB!$RANLIB$ac_delim
34892RM!$RM$ac_delim
34893SED!$SED$ac_delim
34894TAR!$TAR$ac_delim
34895BINPWD!$BINPWD$ac_delim
34896GRAPHVIZ!$GRAPHVIZ$ac_delim
34897DOT!$DOT$ac_delim
34898GV!$GV$ac_delim
34899DOTTY!$DOTTY$ac_delim
34900PERL!$PERL$ac_delim
34901HAVE_PERL!$HAVE_PERL$ac_delim
34902INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34903INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34904INSTALL_DATA!$INSTALL_DATA$ac_delim
34905BZIP2!$BZIP2$ac_delim
34906DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034907GROFF!$GROFF$ac_delim
34908GZIP!$GZIP$ac_delim
34909POD2HTML!$POD2HTML$ac_delim
34910POD2MAN!$POD2MAN$ac_delim
34911RUNTEST!$RUNTEST$ac_delim
34912TCLSH!$TCLSH$ac_delim
34913ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034914OCAMLC!$OCAMLC$ac_delim
34915OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034916OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034917OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034918GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034919INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34920INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34921CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34922CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34923LIBADD_DL!$LIBADD_DL$ac_delim
34924ECHO!$ECHO$ac_delim
34925AR!$AR$ac_delim
34926STRIP!$STRIP$ac_delim
34927CXXCPP!$CXXCPP$ac_delim
34928F77!$F77$ac_delim
34929FFLAGS!$FFLAGS$ac_delim
34930ac_ct_F77!$ac_ct_F77$ac_delim
34931LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034932LLVMGCC!$LLVMGCC$ac_delim
34933LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034934USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034935HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000034936HAVE_FFI!$HAVE_FFI$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034937HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034938ALLOCA!$ALLOCA$ac_delim
34939MMAP_FILE!$MMAP_FILE$ac_delim
34940LLVMCC1!$LLVMCC1$ac_delim
34941LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34942LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034943LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034944LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34945LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034946LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034947SHLIBEXT!$SHLIBEXT$ac_delim
34948LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34949LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34950LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34951LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34952LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34953LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34954LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34955LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34956LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34957LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034958BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34959ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000034960OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034961ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034962RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034963RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034964LIBOBJS!$LIBOBJS$ac_delim
34965LTLIBOBJS!$LTLIBOBJS$ac_delim
34966_ACEOF
34967
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034968 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000034969 break
34970 elif $ac_last_try; then
34971 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34972echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34973 { (exit 1); exit 1; }; }
34974 else
34975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34976 fi
34977done
34978
34979ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34980if test -n "$ac_eof"; then
34981 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34982 ac_eof=`expr $ac_eof + 1`
34983fi
34984
34985cat >>$CONFIG_STATUS <<_ACEOF
34986cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34987/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34988_ACEOF
34989sed '
34990s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34991s/^/s,@/; s/!/@,|#_!!_#|/
34992:n
34993t n
34994s/'"$ac_delim"'$/,g/; t
34995s/$/\\/; p
34996N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34997' >>$CONFIG_STATUS <conf$$subs.sed
34998rm -f conf$$subs.sed
34999cat >>$CONFIG_STATUS <<_ACEOF
35000:end
35001s/|#_!!_#|//g
35002CEOF$ac_eof
35003_ACEOF
35004
35005
35006# VPATH may cause trouble with some makes, so we remove $(srcdir),
35007# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35008# trailing colons and then remove the whole line if VPATH becomes empty
35009# (actually we leave an empty line to preserve line numbers).
35010if test "x$srcdir" = x.; then
35011 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35012s/:*\$(srcdir):*/:/
35013s/:*\${srcdir}:*/:/
35014s/:*@srcdir@:*/:/
35015s/^\([^=]*=[ ]*\):*/\1/
35016s/:*$//
35017s/^[^=]*=[ ]*$//
35018}'
35019fi
35020
35021cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035022fi # test -n "$CONFIG_FILES"
35023
Reid Spencera773bd52006-08-04 18:18:08 +000035024
35025for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35026do
35027 case $ac_tag in
35028 :[FHLC]) ac_mode=$ac_tag; continue;;
35029 esac
35030 case $ac_mode$ac_tag in
35031 :[FHL]*:*);;
35032 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35033echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35034 { (exit 1); exit 1; }; };;
35035 :[FH]-) ac_tag=-:-;;
35036 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35037 esac
35038 ac_save_IFS=$IFS
35039 IFS=:
35040 set x $ac_tag
35041 IFS=$ac_save_IFS
35042 shift
35043 ac_file=$1
35044 shift
35045
35046 case $ac_mode in
35047 :L) ac_source=$1;;
35048 :[FH])
35049 ac_file_inputs=
35050 for ac_f
35051 do
35052 case $ac_f in
35053 -) ac_f="$tmp/stdin";;
35054 *) # Look for the file first in the build tree, then in the source tree
35055 # (if the path is not absolute). The absolute path cannot be DOS-style,
35056 # because $ac_f cannot contain `:'.
35057 test -f "$ac_f" ||
35058 case $ac_f in
35059 [\\/$]*) false;;
35060 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35061 esac ||
35062 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35063echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35064 { (exit 1); exit 1; }; };;
35065 esac
35066 ac_file_inputs="$ac_file_inputs $ac_f"
35067 done
35068
35069 # Let's still pretend it is `configure' which instantiates (i.e., don't
35070 # use $as_me), people would be surprised to read:
35071 # /* config.h. Generated by config.status. */
35072 configure_input="Generated from "`IFS=:
35073 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35074 if test x"$ac_file" != x-; then
35075 configure_input="$ac_file. $configure_input"
35076 { echo "$as_me:$LINENO: creating $ac_file" >&5
35077echo "$as_me: creating $ac_file" >&6;}
35078 fi
35079
35080 case $ac_tag in
35081 *:-:* | *:-) cat >"$tmp/stdin";;
35082 esac
35083 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035084 esac
35085
Reid Spencera773bd52006-08-04 18:18:08 +000035086 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035087$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035088 X"$ac_file" : 'X\(//\)[^/]' \| \
35089 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035091echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35093 s//\1/
35094 q
35095 }
35096 /^X\(\/\/\)[^/].*/{
35097 s//\1/
35098 q
35099 }
35100 /^X\(\/\/\)$/{
35101 s//\1/
35102 q
35103 }
35104 /^X\(\/\).*/{
35105 s//\1/
35106 q
35107 }
35108 s/.*/./; q'`
35109 { as_dir="$ac_dir"
35110 case $as_dir in #(
35111 -*) as_dir=./$as_dir;;
35112 esac
35113 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035114 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035115 while :; do
35116 case $as_dir in #(
35117 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35118 *) as_qdir=$as_dir;;
35119 esac
35120 as_dirs="'$as_qdir' $as_dirs"
35121 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035122$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035123 X"$as_dir" : 'X\(//\)[^/]' \| \
35124 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035125 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035126echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35128 s//\1/
35129 q
35130 }
35131 /^X\(\/\/\)[^/].*/{
35132 s//\1/
35133 q
35134 }
35135 /^X\(\/\/\)$/{
35136 s//\1/
35137 q
35138 }
35139 /^X\(\/\).*/{
35140 s//\1/
35141 q
35142 }
35143 s/.*/./; q'`
35144 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035145 done
Reid Spencera773bd52006-08-04 18:18:08 +000035146 test -z "$as_dirs" || eval "mkdir $as_dirs"
35147 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35148echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035149 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035150 ac_builddir=.
35151
Reid Spencera773bd52006-08-04 18:18:08 +000035152case "$ac_dir" in
35153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35154*)
John Criswell7a73b802003-06-30 21:59:07 +000035155 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035156 # A ".." for each directory in $ac_dir_suffix.
35157 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35158 case $ac_top_builddir_sub in
35159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35161 esac ;;
35162esac
35163ac_abs_top_builddir=$ac_pwd
35164ac_abs_builddir=$ac_pwd$ac_dir_suffix
35165# for backward compatibility:
35166ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035167
35168case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035169 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035170 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035171 ac_top_srcdir=$ac_top_builddir_sub
35172 ac_abs_top_srcdir=$ac_pwd ;;
35173 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035174 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035175 ac_top_srcdir=$srcdir
35176 ac_abs_top_srcdir=$srcdir ;;
35177 *) # Relative name.
35178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35179 ac_top_srcdir=$ac_top_build_prefix$srcdir
35180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035181esac
Reid Spencera773bd52006-08-04 18:18:08 +000035182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035183
John Criswell7a73b802003-06-30 21:59:07 +000035184
Reid Spencera773bd52006-08-04 18:18:08 +000035185 case $ac_mode in
35186 :F)
35187 #
35188 # CONFIG_FILE
35189 #
John Criswell7a73b802003-06-30 21:59:07 +000035190
35191 case $INSTALL in
35192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035194 esac
John Criswell7a73b802003-06-30 21:59:07 +000035195_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035196
35197cat >>$CONFIG_STATUS <<\_ACEOF
35198# If the template does not know about datarootdir, expand it.
35199# FIXME: This hack should be removed a few years after 2.60.
35200ac_datarootdir_hack=; ac_datarootdir_seen=
35201
35202case `sed -n '/datarootdir/ {
35203 p
35204 q
35205}
35206/@datadir@/p
35207/@docdir@/p
35208/@infodir@/p
35209/@localedir@/p
35210/@mandir@/p
35211' $ac_file_inputs` in
35212*datarootdir*) ac_datarootdir_seen=yes;;
35213*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35214 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35215echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35216_ACEOF
35217cat >>$CONFIG_STATUS <<_ACEOF
35218 ac_datarootdir_hack='
35219 s&@datadir@&$datadir&g
35220 s&@docdir@&$docdir&g
35221 s&@infodir@&$infodir&g
35222 s&@localedir@&$localedir&g
35223 s&@mandir@&$mandir&g
35224 s&\\\${datarootdir}&$datarootdir&g' ;;
35225esac
35226_ACEOF
35227
35228# Neutralize VPATH when `$srcdir' = `.'.
35229# Shell code in configure.ac might set extrasub.
35230# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035231cat >>$CONFIG_STATUS <<_ACEOF
35232 sed "$ac_vpsub
35233$extrasub
35234_ACEOF
35235cat >>$CONFIG_STATUS <<\_ACEOF
35236:t
35237/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035238s&@configure_input@&$configure_input&;t t
35239s&@top_builddir@&$ac_top_builddir_sub&;t t
35240s&@srcdir@&$ac_srcdir&;t t
35241s&@abs_srcdir@&$ac_abs_srcdir&;t t
35242s&@top_srcdir@&$ac_top_srcdir&;t t
35243s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35244s&@builddir@&$ac_builddir&;t t
35245s&@abs_builddir@&$ac_abs_builddir&;t t
35246s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35247s&@INSTALL@&$ac_INSTALL&;t t
35248$ac_datarootdir_hack
35249" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035250
Reid Spencera773bd52006-08-04 18:18:08 +000035251test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35254 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35255which seems to be undefined. Please make sure it is defined." >&5
35256echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35257which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035258
Reid Spencera773bd52006-08-04 18:18:08 +000035259 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035260 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035261 -) cat "$tmp/out"; rm -f "$tmp/out";;
35262 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035263 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035264 ;;
35265 :H)
35266 #
35267 # CONFIG_HEADER
35268 #
John Criswell7a73b802003-06-30 21:59:07 +000035269_ACEOF
35270
Reid Spencera773bd52006-08-04 18:18:08 +000035271# Transform confdefs.h into a sed script `conftest.defines', that
35272# substitutes the proper values into config.h.in to produce config.h.
35273rm -f conftest.defines conftest.tail
35274# First, append a space to every undef/define line, to ease matching.
35275echo 's/$/ /' >conftest.defines
35276# Then, protect against being on the right side of a sed subst, or in
35277# an unquoted here document, in config.status. If some macros were
35278# called several times there might be several #defines for the same
35279# symbol, which is useless. But do not sort them, since the last
35280# AC_DEFINE must be honored.
35281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35282# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35283# NAME is the cpp macro being defined, VALUE is the value it is being given.
35284# PARAMS is the parameter list in the macro definition--in most cases, it's
35285# just an empty string.
35286ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35287ac_dB='\\)[ (].*,\\1define\\2'
35288ac_dC=' '
35289ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035290
Reid Spencera773bd52006-08-04 18:18:08 +000035291uniq confdefs.h |
35292 sed -n '
35293 t rset
35294 :rset
35295 s/^[ ]*#[ ]*define[ ][ ]*//
35296 t ok
35297 d
35298 :ok
35299 s/[\\&,]/\\&/g
35300 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35301 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35302 ' >>conftest.defines
35303
35304# Remove the space that was appended to ease matching.
35305# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035306# example, in the case of _POSIX_SOURCE, which is predefined and required
35307# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035308# (The regexp can be short, since the line contains either #define or #undef.)
35309echo 's/ $//
35310s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035311
Reid Spencera773bd52006-08-04 18:18:08 +000035312# Break up conftest.defines:
35313ac_max_sed_lines=50
35314
35315# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35316# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35317# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35318# et cetera.
35319ac_in='$ac_file_inputs'
35320ac_out='"$tmp/out1"'
35321ac_nxt='"$tmp/out2"'
35322
35323while :
John Criswell7a73b802003-06-30 21:59:07 +000035324do
Reid Spencera773bd52006-08-04 18:18:08 +000035325 # Write a here document:
35326 cat >>$CONFIG_STATUS <<_ACEOF
35327 # First, check the format of the line:
35328 cat >"\$tmp/defines.sed" <<\\CEOF
35329/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35330/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35331b
35332:def
35333_ACEOF
35334 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035335 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035336 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35337 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35338 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35339 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035340 rm -f conftest.defines
35341 mv conftest.tail conftest.defines
35342done
Reid Spencera773bd52006-08-04 18:18:08 +000035343rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035344
Reid Spencera773bd52006-08-04 18:18:08 +000035345echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035346cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035347 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035348 echo "/* $configure_input */" >"$tmp/config.h"
35349 cat "$ac_result" >>"$tmp/config.h"
35350 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035351 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35352echo "$as_me: $ac_file is unchanged" >&6;}
35353 else
John Criswell7a73b802003-06-30 21:59:07 +000035354 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035355 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035356 fi
35357 else
Reid Spencera773bd52006-08-04 18:18:08 +000035358 echo "/* $configure_input */"
35359 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035360 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035361 rm -f "$tmp/out12"
35362 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035363
Reid Spencera773bd52006-08-04 18:18:08 +000035364 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35365echo "$as_me: executing $ac_file commands" >&6;}
35366 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035367 esac
John Criswell7a73b802003-06-30 21:59:07 +000035368
Reid Spencera773bd52006-08-04 18:18:08 +000035369
35370 case $ac_file$ac_mode in
35371 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35372 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35373 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35374 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35375 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35376 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35377 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35378 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035379 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35380 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035381 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35382 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35383 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35384 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035385 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35386 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035387 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35388 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35389 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35390 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35391 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35392 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035393 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35394 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35395 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35396 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035397
35398 esac
35399done # for ac_tag
35400
John Criswell7a73b802003-06-30 21:59:07 +000035401
35402{ (exit 0); exit 0; }
35403_ACEOF
35404chmod +x $CONFIG_STATUS
35405ac_clean_files=$ac_clean_files_save
35406
35407
35408# configure is writing to config.log, and then calls config.status.
35409# config.status does its own redirection, appending to config.log.
35410# Unfortunately, on DOS this fails, as config.log is still kept open
35411# by configure, so config.status won't be able to write to it; its
35412# output is simply discarded. So we exec the FD to /dev/null,
35413# effectively closing config.log, so it can be properly (re)opened and
35414# appended to by config.status. When coming back to configure, we
35415# need to make the FD available again.
35416if test "$no_create" != yes; then
35417 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035418 ac_config_status_args=
35419 test "$silent" = yes &&
35420 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035421 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035422 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035423 exec 5>>config.log
35424 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35425 # would make configure fail if this is the last instruction.
35426 $ac_cs_success || { (exit 1); exit 1; }
35427fi
35428
John Criswell12399a12003-09-30 15:55:44 +000035429#
35430# CONFIG_SUBDIRS section.
35431#
35432if test "$no_recursion" != yes; then
35433
35434 # Remove --cache-file and --srcdir arguments so they do not pile up.
35435 ac_sub_configure_args=
35436 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035437 eval "set x $ac_configure_args"
35438 shift
35439 for ac_arg
35440 do
John Criswell12399a12003-09-30 15:55:44 +000035441 if test -n "$ac_prev"; then
35442 ac_prev=
35443 continue
35444 fi
35445 case $ac_arg in
35446 -cache-file | --cache-file | --cache-fil | --cache-fi \
35447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35448 ac_prev=cache_file ;;
35449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35451 | --c=*)
35452 ;;
35453 --config-cache | -C)
35454 ;;
35455 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35456 ac_prev=srcdir ;;
35457 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35458 ;;
35459 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35460 ac_prev=prefix ;;
35461 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035463 *)
35464 case $ac_arg in
35465 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35466 esac
35467 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035468 esac
35469 done
35470
35471 # Always prepend --prefix to ensure using the same prefix
35472 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035473 ac_arg="--prefix=$prefix"
35474 case $ac_arg in
35475 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35476 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035477 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035478
35479 ac_popdir=`pwd`
35480 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35481
35482 # Do not complain, so a configure script can configure whichever
35483 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035484 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035485
Reid Spencera773bd52006-08-04 18:18:08 +000035486 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35487 echo "$as_me:$LINENO: $ac_msg" >&5
35488 echo "$ac_msg" >&6
35489 { as_dir="$ac_dir"
35490 case $as_dir in #(
35491 -*) as_dir=./$as_dir;;
35492 esac
35493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035494 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035495 while :; do
35496 case $as_dir in #(
35497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35498 *) as_qdir=$as_dir;;
35499 esac
35500 as_dirs="'$as_qdir' $as_dirs"
35501 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035503 X"$as_dir" : 'X\(//\)[^/]' \| \
35504 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035506echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35508 s//\1/
35509 q
35510 }
35511 /^X\(\/\/\)[^/].*/{
35512 s//\1/
35513 q
35514 }
35515 /^X\(\/\/\)$/{
35516 s//\1/
35517 q
35518 }
35519 /^X\(\/\).*/{
35520 s//\1/
35521 q
35522 }
35523 s/.*/./; q'`
35524 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035525 done
Reid Spencera773bd52006-08-04 18:18:08 +000035526 test -z "$as_dirs" || eval "mkdir $as_dirs"
35527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35528echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035529 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035530 ac_builddir=.
35531
Reid Spencera773bd52006-08-04 18:18:08 +000035532case "$ac_dir" in
35533.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35534*)
John Criswell12399a12003-09-30 15:55:44 +000035535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035536 # A ".." for each directory in $ac_dir_suffix.
35537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35538 case $ac_top_builddir_sub in
35539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35541 esac ;;
35542esac
35543ac_abs_top_builddir=$ac_pwd
35544ac_abs_builddir=$ac_pwd$ac_dir_suffix
35545# for backward compatibility:
35546ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035547
35548case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035549 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035550 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035551 ac_top_srcdir=$ac_top_builddir_sub
35552 ac_abs_top_srcdir=$ac_pwd ;;
35553 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035554 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035555 ac_top_srcdir=$srcdir
35556 ac_abs_top_srcdir=$srcdir ;;
35557 *) # Relative name.
35558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35559 ac_top_srcdir=$ac_top_build_prefix$srcdir
35560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035561esac
Reid Spencera773bd52006-08-04 18:18:08 +000035562ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035563
35564
Reid Spencera773bd52006-08-04 18:18:08 +000035565 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035566
35567 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035568 if test -f "$ac_srcdir/configure.gnu"; then
35569 ac_sub_configure=$ac_srcdir/configure.gnu
35570 elif test -f "$ac_srcdir/configure"; then
35571 ac_sub_configure=$ac_srcdir/configure
35572 elif test -f "$ac_srcdir/configure.in"; then
35573 # This should be Cygnus configure.
35574 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035575 else
35576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35577echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35578 ac_sub_configure=
35579 fi
35580
35581 # The recursion is here.
35582 if test -n "$ac_sub_configure"; then
35583 # Make the cache file name correct relative to the subdirectory.
35584 case $cache_file in
35585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035586 *) # Relative name.
35587 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035588 esac
35589
Reid Spencera773bd52006-08-04 18:18:08 +000035590 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35591echo "$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 +000035592 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035593 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35594 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035596echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35597 { (exit 1); exit 1; }; }
35598 fi
35599
Reid Spencera773bd52006-08-04 18:18:08 +000035600 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035601 done
35602fi
35603